[20:43:05]OFD Sender: No OFD packet to send [20:43:10]OFD Sender: No OFD packet to send [20:43:15]OFD Sender: No OFD packet to send [20:43:20]OFD Sender: No OFD packet to send [20:43:23]ConnectInit Can't connect to host [20:43:25]OFD Sender: No OFD packet to send [20:43:30]OFD Sender: No OFD packet to send [20:43:35]OFD Sender: No OFD packet to send [20:43:40]OFD Sender: No OFD packet to send [20:43:45]OFD Sender: No OFD packet to send [20:43:50]OFD Sender: No OFD packet to send [20:43:55]OFD Sender: No OFD packet to send [20:44:00]OFD Sender: No OFD packet to send [20:44:05]OFD Sender: No OFD packet to send [20:44:10]OFD Sender: No OFD packet to send [20:44:15]OFD Sender: No OFD packet to send [20:44:20]OFD Sender: No OFD packet to send [20:44:25]OFD Sender: No OFD packet to send [20:44:30]OFD Sender: No OFD packet to send [20:44:36]OFD Sender: No OFD packet to send [20:44:41]OFD Sender: No OFD packet to send [20:44:46]OFD Sender: No OFD packet to send [20:44:51]OFD Sender: No OFD packet to send [20:44:56]OFD Sender: No OFD packet to send [20:45:01]OFD Sender: No OFD packet to send [20:45:06]OFD Sender: No OFD packet to send [20:45:11]OFD Sender: No OFD packet to send [20:45:16]OFD Sender: No OFD packet to send [20:45:21]OFD Sender: No OFD packet to send [20:45:26]OFD Sender: No OFD packet to send [20:45:31]OFD Sender: No OFD packet to send [20:45:36]OFD Sender: No OFD packet to send [20:45:41]OFD Sender: No OFD packet to send [20:45:41]ConnectInit Can't connect to host [20:45:46]OFD Sender: No OFD packet to send [20:45:51]OFD Sender: No OFD packet to send [20:45:56]OFD Sender: No OFD packet to send [20:46:01]OFD Sender: No OFD packet to send [20:46:06]OFD Sender: No OFD packet to send [20:46:11]OFD Sender: No OFD packet to send [20:46:16]OFD Sender: No OFD packet to send [20:46:21]OFD Sender: No OFD packet to send [20:46:26]OFD Sender: No OFD packet to send [20:46:31]OFD Sender: No OFD packet to send [20:46:36]OFD Sender: No OFD packet to send [20:46:41]OFD Sender: No OFD packet to send [20:46:46]OFD Sender: No OFD packet to send [20:46:51]OFD Sender: No OFD packet to send [20:46:56]OFD Sender: No OFD packet to send [20:47:01]OFD Sender: No OFD packet to send [20:47:06]OFD Sender: No OFD packet to send [20:47:11]OFD Sender: No OFD packet to send [20:47:16]OFD Sender: No OFD packet to send [20:47:21]OFD Sender: No OFD packet to send [20:47:26]OFD Sender: No OFD packet to send [20:47:31]OFD Sender: No OFD packet to send [20:47:36]OFD Sender: No OFD packet to send [20:47:41]OFD Sender: No OFD packet to send [20:47:46]OFD Sender: No OFD packet to send [20:47:51]OFD Sender: No OFD packet to send [20:47:56]OFD Sender: No OFD packet to send [20:47:59]ConnectInit Can't connect to host [20:48:01]OFD Sender: No OFD packet to send [20:48:06]OFD Sender: No OFD packet to send [20:48:11]OFD Sender: No OFD packet to send [20:48:16]OFD Sender: No OFD packet to send [20:48:21]OFD Sender: No OFD packet to send [20:48:26]OFD Sender: No OFD packet to send [20:48:31]OFD Sender: No OFD packet to send [20:48:36]OFD Sender: No OFD packet to send [20:48:41]OFD Sender: No OFD packet to send [20:48:46]OFD Sender: No OFD packet to send [20:48:51]OFD Sender: No OFD packet to send [20:48:56]OFD Sender: No OFD packet to send [20:49:01]OFD Sender: No OFD packet to send [20:49:06]OFD Sender: No OFD packet to send [20:49:11]OFD Sender: No OFD packet to send [20:49:16]OFD Sender: No OFD packet to send [20:49:21]OFD Sender: No OFD packet to send [20:49:26]OFD Sender: No OFD packet to send [20:49:31]OFD Sender: No OFD packet to send [20:49:36]OFD Sender: No OFD packet to send [20:49:41]OFD Sender: No OFD packet to send [20:49:46]OFD Sender: No OFD packet to send [20:49:51]OFD Sender: No OFD packet to send [20:49:56]OFD Sender: No OFD packet to send [20:50:01]OFD Sender: No OFD packet to send [20:50:06]OFD Sender: No OFD packet to send [20:50:11]OFD Sender: No OFD packet to send [20:50:16]OFD Sender: No OFD packet to send [20:50:18]ConnectInit Can't connect to host [20:50:21]OFD Sender: No OFD packet to send [20:50:26]OFD Sender: No OFD packet to send [20:50:31]OFD Sender: No OFD packet to send [20:50:36]OFD Sender: No OFD packet to send [20:50:41]OFD Sender: No OFD packet to send [20:50:46]OFD Sender: No OFD packet to send [20:50:51]OFD Sender: No OFD packet to send [20:50:56]OFD Sender: No OFD packet to send [20:51:01]OFD Sender: No OFD packet to send [20:51:06]OFD Sender: No OFD packet to send [20:51:11]OFD Sender: No OFD packet to send [20:51:16]OFD Sender: No OFD packet to send [20:51:21]OFD Sender: No OFD packet to send [20:51:26]OFD Sender: No OFD packet to send [20:51:31]OFD Sender: No OFD packet to send [20:51:36]OFD Sender: No OFD packet to send [20:51:41]OFD Sender: No OFD packet to send [20:51:46]OFD Sender: No OFD packet to send [20:51:51]OFD Sender: No OFD packet to send [20:51:56]OFD Sender: No OFD packet to send [20:52:01]OFD Sender: No OFD packet to send [20:52:06]OFD Sender: No OFD packet to send [20:52:11]OFD Sender: No OFD packet to send [20:52:16]OFD Sender: No OFD packet to send [20:52:21]OFD Sender: No OFD packet to send [20:52:26]OFD Sender: No OFD packet to send [20:52:31]OFD Sender: No OFD packet to send [20:52:36]ConnectInit Can't connect to host [20:52:36]OFD Sender: No OFD packet to send [20:52:41]OFD Sender: No OFD packet to send [20:52:46]OFD Sender: No OFD packet to send [20:52:51]OFD Sender: No OFD packet to send [20:52:56]OFD Sender: No OFD packet to send [20:53:01]OFD Sender: No OFD packet to send [20:53:06]OFD Sender: No OFD packet to send [20:53:11]OFD Sender: No OFD packet to send [20:53:16]OFD Sender: No OFD packet to send [20:53:21]OFD Sender: No OFD packet to send [20:53:26]OFD Sender: No OFD packet to send [20:53:31]OFD Sender: No OFD packet to send [20:53:36]OFD Sender: No OFD packet to send [20:53:41]OFD Sender: No OFD packet to send [20:53:46]OFD Sender: No OFD packet to send [20:53:51]OFD Sender: No OFD packet to send [20:53:56]OFD Sender: No OFD packet to send [20:54:01]OFD Sender: No OFD packet to send [20:54:06]OFD Sender: No OFD packet to send [20:54:11]OFD Sender: No OFD packet to send [20:54:16]OFD Sender: No OFD packet to send [20:54:21]OFD Sender: No OFD packet to send [20:54:26]OFD Sender: No OFD packet to send [20:54:31]OFD Sender: No OFD packet to send [20:54:36]OFD Sender: No OFD packet to send [20:54:41]OFD Sender: No OFD packet to send [20:54:46]OFD Sender: No OFD packet to send [20:54:51]OFD Sender: No OFD packet to send [20:54:54]ConnectInit Can't connect to host [20:54:56]OFD Sender: No OFD packet to send [20:55:01]OFD Sender: No OFD packet to send [20:55:02]accept exits with 10 [20:55:02]New connection [20:55:02]New thread 3066543460 created [20:55:02]Thread 3066686820 joined [20:55:02]Waiting for new connection... [20:55:02] Sock 10.Parse request [20:55:02]Sock 10.Check first char [20:55:02]Sock 10.First char is OK [20:55:02]request: POST /json_proto HTTP/1.0 [20:55:02]Method: POST [20:55:02]URL: /json_proto [20:55:02]Method is POST - this is cgi request [20:55:02]url: /json_proto [20:55:02]query_string will be loaded in cgi processing [20:55:02]execute_cgi json_proto POST (null) [20:55:02]execute_cgi path=json_proto method=POST [20:55:02]POST find Content-Length [20:55:02]Host: 172.17.36.132:8080 [20:55:02]Content-Length: 682 [20:55:02]Content-Type: application/json [20:55:02] [20:55:02]POST finish read [20:55:02]Found Content-Length = 682 [20:55:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706281", "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" : 73.40, "quantity" : 20.440, "sum" : 1500.30, "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:55:02]execute_script... [20:55: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)706281", "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" : 73.40, "quantity" : 20.440, "sum" : 1500.30, "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:55:02]POST & json_proto [20:55:02]process_json_proto [20:55:02]json parsed OK: [20:55:02]protocol is kg_v1.0 [20:55:02]action value=close_receipt [20:55:02]process_action close_receipt [20:55:02]cmd_close_receipt [20:55:02]MH_GetDate [20:55:02]Write to MH i2c: F0 00 00 6B 0C 66 [20:55:02]Write i2c OK [20:55:02]MH_I2C_Read... [20:55:02]Read from MH i2c: F0 [20:55:02]MH_I2C_Read... [20:55:02]Read from MH i2c: F0 09 00 [20:55:02]MH_I2C_Read... [20:55:02]Read from MH i2c: F0 09 00 6B 0C 00 28 DC 5C 66 B2 22 B0 64 1D [20:55:03]GetLastDocTimeStamp 1717360672 [20:55:03]current date 1717361704 [20:55:03]FM_GetShiftState [20:55:03]SAM_PROTO_GetShiftState [20:55:03]wFMCommunicate request_size=4 [20:55:03]MH_SAM_APDU [20:55:03]CAPDU: 80 13 01 00 [20:55:03]Write to MH i2c: E2 08 00 6C 0C 80 13 01 00 00 00 00 00 F5 [20:55:03]Write i2c OK [20:55:03]MH_I2C_Read... [20:55:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:55:03]Read from MH i2c: E2 [20:55:03]MH_I2C_Read... [20:55:03]Read from MH i2c: E2 0E 00 [20:55:03]MH_I2C_Read... [20:55:03]Read from MH i2c: E2 0E 00 6C 0C 00 09 00 01 A4 BB 5B 66 00 00 00 00 90 00 21 [20:55:03]RAPDU: 09 00 01 A4 BB 5B 66 00 00 00 00 90 00 [20:55:03]wFMCommunicate OK [20:55:03]SAM_PROTO_GetShiftState done [20:55:03]FM_GetShiftState done [20:55:03]opened in 1717287844 [20:55:03]opened+sec_in_day 1717374244 [20:55:03]quantity*price = 150029 [20:55:03]sum+1 = 150031 [20:55:03]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.30 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.32 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 224 02.06.2024 20:55 Смена: 322 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 ФМ: 0000000000965400 ФД: 68209 ФПД: 1851011181351 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240602T205504&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68209&fm=1851011181351&tin=02508201610067®Number=0000000000098096&sum=150000 [20:55:06]StoreToDocumentArchive [20:55:06]shift 322 fd 68209 [20:55:06]save to /storage/0322/doc_00068209 [20:55:06]save last doc name /storage/0322/doc_00068209 to /storage/kkm_last_doc_name [20:55:06]save OK [20:55:06]Clear old archive folders... [20:55:06]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:55:06]tlvbuf is 0030D6F0 [20:55:06]SAM_PROTO_ClearQueue [20:55:06]wFMCommunicate request_size=4 [20:55:06]MH_SAM_APDU [20:55:06]CAPDU: 80 09 00 00 [20:55:06]Write to MH i2c: E2 08 00 79 0C 80 09 00 00 00 00 00 00 F7 [20:55:06]Write i2c OK [20:55:06]MH_I2C_Read... [20:55:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:55:06]Read from MH i2c: E2 [20:55:06]MH_I2C_Read... [20:55:06]Read from MH i2c: E2 03 00 [20:55:06]MH_I2C_Read... [20:55:06]Read from MH i2c: E2 03 00 79 0C 00 90 00 F9 [20:55:06]RAPDU: 90 00 [20:55:06]wFMCommunicate OK [20:55:06]SAM_PROTO_ClearQueue done [20:55:06]KKMCreateOFDPacket [20:55:06]OFDProtocolAddRootSTLVToBuf [20:55:06]FM_MakeSignedData [20:55:06]FM_MakeSignedData [20:55:06]SAM_PROTO_SignData [20:55:06]wFMCommunicate request_size=4 [20:55:06]MH_SAM_APDU [20:55:06]CAPDU: 80 0D 01 02 [20:55:06]Write to MH i2c: E2 08 00 7A 0C 80 0D 01 02 00 00 00 00 FF [20:55:06]Write i2c OK [20:55:06]MH_I2C_Read... [20:55:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:55:06]Read from MH i2c: E2 [20:55:06]MH_I2C_Read... [20:55:06]Read from MH i2c: E2 03 00 [20:55:06]MH_I2C_Read... [20:55:06]Read from MH i2c: E2 03 00 7A 0C 00 90 00 FA [20:55:06]RAPDU: 90 00 [20:55:06]wFMCommunicate OK [20:55:06]wFMCommunicate request_size=255 [20:55:06]MH_SAM_APDU [20:55:06]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 D8 4F 00 00 00 00 00 37 04 OFD Sender: No OFD packet to send [20:55:07]06 00 AC 1C 00 00 00 00 13 04 06 00 0E 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 E0 00 00 00 F4 03 04 00 28 DC 5C 66 0E 04 04 00 42 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 71 0A 01 00 35 04 06 00 01 [20:55:07]Write to MH i2c: E2 02 01 7B 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 D8 4F 00 00 00 00 00 37 04 06 00 AC 1C 00 00 00 00 13 04 06 00 0E 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 E0 00 00 00 F4 03 04 00 28 DC 5C 66 0E 04 04 00 42 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 71 0A 01 00 35 04 06 00 01 00 00 E0 [20:55:08]Write i2c OK [20:55:08]MH_I2C_Read... [20:55:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:55:08]Read from MH i2c: E2 [20:55:08]MH_I2C_Read... [20:55:08]Read from MH i2c: E2 03 00 [20:55:08]MH_I2C_Read... [20:55:08]Read from MH i2c: E2 03 00 7B 0C 00 90 00 FB [20:55:08]RAPDU: 90 00 [20:55:08]wFMCommunicate OK [20:55:08]wFMCommunicate request_size=10 [20:55:08]MH_SAM_APDU [20:55:08]CAPDU: 80 0D 02 02 05 AE F8 DD 2B 27 [20:55:08]Write to MH i2c: E2 0D 00 7C 0C 80 0D 02 02 05 00 AE F8 DD 2B 27 00 00 E1 [20:55:08]Write i2c OK [20:55:08]MH_I2C_Read... [20:55:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:55:08]Read from MH i2c: E2 [20:55:08]MH_I2C_Read... [20:55:08]Read from MH i2c: E2 03 00 [20:55:08]MH_I2C_Read... [20:55:08]Read from MH i2c: E2 03 00 7C 0C 00 90 00 FC [20:55:08]RAPDU: 90 00 [20:55:08]wFMCommunicate OK [20:55:08]wFMCommunicate request_size=4 [20:55:08]MH_SAM_APDU [20:55:08]CAPDU: 80 0D 03 02 [20:55:08]Write to MH i2c: E2 08 00 7D 0C 80 0D 03 02 00 00 00 00 04 [20:55:08]Write i2c OK [20:55:08]MH_I2C_Read... [20:55:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:55:08]Read from MH i2c: E2 [20:55:08]MH_I2C_Read... [20:55:08]Read from MH i2c: E2 0B 00 [20:55:08]MH_I2C_Read... [20:55:08]Read from MH i2c: E2 0B 00 7D 0C 00 AD C1 AF 0D 7E 2A 33 27 90 00 31 [20:55:08]RAPDU: AD C1 AF 0D 7E 2A 33 27 90 00 [20:55:08]wFMCommunicate OK [20:55:08]SAM_PROTO_SignData done [20:55:08]FM_MakeSignedData done [20:55:08]CreateOFDProtocolMessage [20:55:08]wFMCommunicate request_size=4 [20:55:08]MH_SAM_APDU [20:55:08]CAPDU: 80 11 00 00 [20:55:08]Write to MH i2c: E2 08 00 7E 0C 80 11 00 00 00 00 00 00 04 [20:55:08]Write i2c OK [20:55:08]MH_I2C_Read... [20:55:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:55:08]Read from MH i2c: E2 [20:55:08]MH_I2C_Read... [20:55:08]Read from MH i2c: E2 17 00 [20:55:08]MH_I2C_Read... [20:55:08]Read from MH i2c: E2 17 00 7E 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 4F [20:55:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [20:55:09]wFMCommunicate OK [20:55:09]CreateOFDProtocolMessage done [20:55:09]OFDSenderStorePacket 68209 [20:55:09]StoreOFDPacket docnum=68209 [20:55:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 96 D5 07 01 15 D2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 D8 4F 00 00 00 00 00 37 04 06 00 AC 1C 00 00 00 00 13 04 06 00 0E 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 E0 00 00 00 F4 03 04 00 28 DC 5C 66 0E 04 04 00 42 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 71 0A 01 00 35 04 06 00 01 AE F8 DD 2B 27 AD C1 AF 0D 7E 2A 33 27 [20:55:09]CheckFolder [20:55:09]dirname=/storage/ofd_packets [20:55:09]CheckFolder done [20:55:09]ProducePacketName [20:55:09]name=ofd_packets/00068209 [20:55:09]NVStorageSaveData ofd_packets/00068209 [20:55:09]File name is /storage/ofd_packets/00068209 [20:55:09]Write 301 bytes [20:55:09]NVStorageSaveData done [20:55:09]OFDSenderStorePacket done [20:55:09]KKMCreateOFDPacket done [20:55:09]NVStorageSaveData kkm_last_timestamp [20:55:09]File name is /storage/kkm_last_timestamp [20:55:09]Write 4 bytes [20:55:09]NVStorageSaveData done [20:55:09]ExternCall_PrintAddStr [20:55:09]wPrintStart [20:55:09]Write to MH i2c: 01 00 00 7F 0C 8B [20:55:09]OFD Sender: Processing packet 68209 [packets to send 26, broken 25] [20:55:09]ProducePacketName [20:55:09]name=ofd_packets/00068209 [20:55:09]OFD Sender: To server: pG, [20:55:09]CommunicateWithHost lk.salyk.kg:30040 [20:55:09]ConnectInit lk.salyk.kg [20:55:09]Write i2c OK [20:55:09]MH_I2C_Read... [20:55:09]Read from MH i2c: 01 [20:55:09]MH_I2C_Read... [20:55:09]Read from MH i2c: 01 07 00 [20:55:09]MH_I2C_Read... [20:55:09]Read from MH i2c: 01 07 00 7F 0C 00 00 00 00 00 FF 0F A0 [20:55:09]RasterBufferAndPrint [20:55:09]line Счет N : (1)706281 [20:55:09]line ИНН: 02508201610067 [20:55:09]line Контрольно-Кассовый Чек [20:55:09]line ПРОДАЖА [20:55:09]line ТРК (МРК, ГНК) : 33 [20:55:09]line Товар: 2710124500 [20:55:09]line Аи-95-К-5 [20:55:09]line 20.440 * 73.40 [20:55:09]line = 1500.30 [20:55:09]line НДС 12% НСП 1% [20:55:09]line > о реализуемом товаре [20:55:09]line ОКРУГЛЕНИЕ: -0.30 [20:55:09]line ИТОГО: 1500.00 [20:55:09]line Внесено: 1500.00 [20:55:09]line СДАЧА: 0.00 [20:55:09]line НСП 1% : 13.28 [20:55:09]line НДС 12% : 159.32 [20:55:09]line Наличными: 1500.00 [20:55:09]line Безнал.: 0.00 [20:55:09]line Место: АЗС № 62 "Партнер Нефть" [20:55:09]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [20:55:09]line СНО: Общий режим [20:55:09]line Чек 224 02.06.2024 20:55 [20:55:09]line Смена: 322 ФФД: 1.0 [20:55:09]line ЗНМ: 0300000181 [20:55:09]Connected sock=11 [20:55:09]line РНМ: 0000000000098096 [20:55:09]Data to sent: line Версия ККМ: 001 [20:55:09]line ФМ: 0000000000965400 [20:55:09]line ФД: 68209 [20:55:09]line ФПД: 1851011181351 [20:55:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240602T205504&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68209&fm=1851011181351&tin=02508201610067®Number=0000000000098096&sum=150000 [20:55:09]87 95 F6 written 0, free lines is 4095 [20:55:09]70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 96 D5 07 01 15 D2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 D8 4F 00 00 00 00 00 37 04 06 00 AC 1C 00 00 00 00 13 04 06 00 0E 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 Write to MH i2c: 01 01 00 12 04 04 00 00 E0 00 00 00 00 F4 03 04 AA 00 0C 28 DC 5C 66 0E 04 B6 04 [20:55:09]00 42 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 Write i2c OK [20:55:10]04 MH_I2C_Read... [20:55:10]04 00 71 0A Read from MH i2c: 01 00 35 04 06 01 00 [20:55:10]01 MH_I2C_Read... [20:55:10]AE F8 DD 2B 27 AD C1 AF 0D 7E 2A 33 27 [20:55:10]Read from MH i2c: 01 07 00 [20:55:10]MH_I2C_Read... [20:55:10]Read from MH i2c: 01 07 00 AA 0C 00 00 00 00 00 4C 0D 16 [20:55:10]RasterBufferAndPrint [20:55:10]line [20:55:10]line [20:55:10]line [20:55:10]line [20:55:10]line [20:55:10]written 0, free lines is 3971 [20:55:10]MH_Cut [20:55:10]Write to MH i2c: D1 01 00 B1 0C 01 8F [20:55:10]Write i2c OK [20:55:10]MH_I2C_Read... [20:55:10]Read from MH i2c: D1 [20:55:10]MH_I2C_Read... [20:55:10]Read from MH i2c: D1 01 00 [20:55:10]MH_I2C_Read... [20:55:10]Read from MH i2c: D1 01 00 B1 0C 00 8E [20:55:10]Write to MH i2c: 01 00 00 B2 0C BE [20:55:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 Write i2c OK [20:55:10]30 MH_I2C_Read... [20:55:10]30 30 39 36 35 34 30 30 4F 00 00 00 73 FF 47 00 71 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 *** Cut start [20:55:10]30 *** Partial cut [20:55:10]30 *** CUTSNS_PIN = 1 [20:55:10]30 30 30 39 36 *** CUTSNS_PIN = 0 [20:55:11]35 *** Brake cut motor [20:55:11]34 30 30 10 04 04 00 71 0A 01 00 F4 03 04 00 2B 83 5C 66 B6 04 01 00 00 E9 E6 15 D2 36 3E AC 36 [20:55:11]CommunicateWithHost err = 0 [20:55:11]CheckOFDResponse [20:55:11]1017 (14) - 77093643461234 [20:55:11]1041 (16) - 0000000000965400 [20:55:11]1040 (4) - 68209 [20:55:11]1012 (4) - 02.06.2024 14:35 [20:55:11]1206 (1) - 0 [20:55:11]OFD Sender: Remove packet 68209 [20:55:11]ProducePacketName [20:55:11]name=ofd_packets/00068209 [20:55:11]NVStorageDeleteData [20:55:11]Read from MH i2c: *** Stop cut motor [20:55:11]01 *** Cut end [20:55:11] [20:55:11]MH_I2C_Read... [20:55:11]Read from MH i2c: 01 07 00 [20:55:11]MH_I2C_Read... [20:55:11]Read from MH i2c: 01 07 00 B2 0C 00 00 00 00 00 FF 0F D3 [20:55:11]process_action close_receipt done [20:55:11]requested_data is exist [20:55:11]produce_requested_data [20:55:11]requested_item fm.sn is exist - process it [20:55:11]wFMCommunicate request_size=4 [20:55:11]MH_SAM_APDU [20:55:11]CAPDU: 80 11 00 00 [20:55:11]Write to MH i2c: E2 08 00 B3 0C 80 11 00 00 00 00 00 00 39 [20:55:11]Write i2c OK [20:55:11]MH_I2C_Read... [20:55:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:55:11]Read from MH i2c: E2 [20:55:11]MH_I2C_Read... [20:55:11]Read from MH i2c: E2 17 00 [20:55:11]MH_I2C_Read... [20:55:11]Read from MH i2c: E2 17 00 B3 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 84 [20:55:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [20:55:11]wFMCommunicate OK [20:55:11]requested_item fd.num is exist - process it [20:55:11]OFD Sender: No OFD packet to send [20:55:11]SAM_PROTO_GetFieldsCounters [20:55:11]wFMCommunicate request_size=4 [20:55:11]MH_SAM_APDU [20:55:11]CAPDU: 80 13 00 00 [20:55:11]Write to MH i2c: E2 08 00 B4 0C 80 13 00 00 00 00 00 00 3C [20:55:11]Write i2c OK [20:55:11]MH_I2C_Read... [20:55:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:55:11]Read from MH i2c: E2 [20:55:11]MH_I2C_Read... [20:55:11]Read from MH i2c: E2 62 00 [20:55:11]MH_I2C_Read... [20:55:11]Read from MH i2c: E2 62 00 B4 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 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 71 0A 01 00 0E 04 04 00 42 01 00 00 12 04 04 00 E0 00 00 00 5E 04 04 00 E0 00 00 00 57 04 04 00 E1 00 00 00 19 04 04 00 00 00 00 00 90 00 BB [20:55: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 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 71 0A 01 00 0E 04 04 00 42 01 00 00 12 04 04 00 E0 00 00 00 5E 04 04 00 E0 00 00 00 57 04 04 00 E1 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:55:12]wFMCommunicate OK [20:55:12]SAM_PROTO_GetFieldsCounters done [20:55:12]requested_item shift.num is exist - process it [20:55:12]requested_item shift.opened is exist - process it [20:55:12]req_shift_opened [20:55:12]FM_GetShiftState [20:55:12]SAM_PROTO_GetShiftState [20:55:12]wFMCommunicate request_size=4 [20:55:12]MH_SAM_APDU [20:55:12]CAPDU: 80 13 01 00 [20:55:12]Write to MH i2c: E2 08 00 B5 0C 80 13 01 00 00 00 00 00 3E [20:55:12]Write i2c OK [20:55:12]MH_I2C_Read... [20:55:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:55:12]Read from MH i2c: E2 [20:55:12]MH_I2C_Read... [20:55:12]Read from MH i2c: E2 0E 00 [20:55:12]MH_I2C_Read... [20:55:12]Read from MH i2c: E2 0E 00 B5 0C 00 09 00 01 A4 BB 5B 66 00 00 00 00 90 00 6A [20:55:12]RAPDU: 09 00 01 A4 BB 5B 66 00 00 00 00 90 00 [20:55:12]wFMCommunicate OK [20:55:12]SAM_PROTO_GetShiftState done [20:55:12]FM_GetShiftState done [20:55:12]req_shift_opened done [20:55:12]requested_item shift.open_date is exist - process it [20:55:12]req_shift_open_date [20:55:12]req_shift_open_date done [20:55:12]produce_requested_data done [20:55:12]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68209,"shift.num":322,"shift.opened":1,"shift.open_date":1717287844} [20:55:12]process_action_free close_receipt [20:55:12]json_value_free [20:55:12]json_value_free done [20:55:12]process_json_proto returns [20:55:12]Send response to host [20:55:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68209,"shift.num":322,"shift.opened":1,"shift.open_date":1717287844}}} [20:55:12]free response buf [20:55:12]execute_script done [20:55:12]execute_script returns [20:55:12]free content buf [20:55:12]Sock 10.Close socket [20:55:12]Sock 10.Thread stoped [20:55:16]OFD Sender: No OFD packet to send [20:55:21]OFD Sender: No OFD packet to send [20:55:26]OFD Sender: No OFD packet to send [20:55:31]OFD Sender: No OFD packet to send [20:55:36]OFD Sender: No OFD packet to send [20:55:41]OFD Sender: No OFD packet to send [20:55:46]OFD Sender: No OFD packet to send [20:55:51]OFD Sender: No OFD packet to send [20:55:56]OFD Sender: No OFD packet to send [20:56:01]OFD Sender: No OFD packet to send [20:56:06]OFD Sender: No OFD packet to send [20:56:11]OFD Sender: No OFD packet to send [20:56:16]OFD Sender: No OFD packet to send [20:56:21]OFD Sender: No OFD packet to send [20:56:26]OFD Sender: No OFD packet to send [20:56:31]OFD Sender: No OFD packet to send [20:56:36]OFD Sender: No OFD packet to send [20:56:41]OFD Sender: No OFD packet to send [20:56:43]accept exits with 9 [20:56:43]New connection [20:56:43]New thread 3066686820 created [20:56:43]Thread 3066543460 joined [20:56:43]Waiting for new connection... [20:56:43] Sock 9.Parse request [20:56:43]Sock 9.Check first char [20:56:43]Sock 9.First char is OK [20:56:43]request: POST /json_proto HTTP/1.0 [20:56:43]Method: POST [20:56:43]URL: /json_proto [20:56:43]Method is POST - this is cgi request [20:56:43]url: /json_proto [20:56:43]query_string will be loaded in cgi processing [20:56:43]execute_cgi json_proto POST (null) [20:56:43]execute_cgi path=json_proto method=POST [20:56:43]POST find Content-Length [20:56:43]Host: 172.17.36.132:8080 [20:56:43]Content-Length: 677 [20:56:43]Content-Type: application/json [20:56:43] [20:56:43]POST finish read [20:56:43]Found Content-Length = 677 [20:56:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706282", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.40, "quantity" : 3.020, "sum" : 200.53, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:56:43]execute_script... [20:56: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)706282", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.40, "quantity" : 3.020, "sum" : 200.53, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:56:43]POST & json_proto [20:56:43]process_json_proto [20:56:43]json parsed OK: [20:56:43]protocol is kg_v1.0 [20:56:43]action value=close_receipt [20:56:43]process_action close_receipt [20:56:43]cmd_close_receipt [20:56:43]MH_GetDate [20:56:43]Write to MH i2c: F0 00 00 B6 0C B1 [20:56:43]Write i2c OK [20:56:43]MH_I2C_Read... [20:56:43]Read from MH i2c: F0 [20:56:43]MH_I2C_Read... [20:56:43]Read from MH i2c: F0 09 00 [20:56:43]MH_I2C_Read... [20:56:43]Read from MH i2c: F0 09 00 B6 0C 00 8D DC 5C 66 B2 22 B0 64 CD [20:56:43]GetLastDocTimeStamp 1717361704 [20:56:43]current date 1717361805 [20:56:43]FM_GetShiftState [20:56:43]SAM_PROTO_GetShiftState [20:56:43]wFMCommunicate request_size=4 [20:56:43]MH_SAM_APDU [20:56:43]CAPDU: 80 13 01 00 [20:56:43]Write to MH i2c: E2 08 00 B7 0C 80 13 01 00 00 00 00 00 40 [20:56:43]Write i2c OK [20:56:43]MH_I2C_Read... [20:56:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:56:43]Read from MH i2c: E2 [20:56:43]MH_I2C_Read... [20:56:43]Read from MH i2c: E2 0E 00 [20:56:43]MH_I2C_Read... [20:56:43]Read from MH i2c: E2 0E 00 B7 0C 00 09 00 01 A4 BB 5B 66 00 00 00 00 90 00 6C [20:56:44]RAPDU: 09 00 01 A4 BB 5B 66 00 00 00 00 90 00 [20:56:44]wFMCommunicate OK [20:56:44]SAM_PROTO_GetShiftState done [20:56:44]FM_GetShiftState done [20:56:44]opened in 1717287844 [20:56:44]opened+sec_in_day 1717374244 [20:56:44]quantity*price = 20052 [20:56:44]sum+1 = 20054 [20:56:44]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.53 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.29 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 225 02.06.2024 20:56 Смена: 322 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 ФМ: 0000000000965400 ФД: 68210 ФПД: 63423213715822 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240602T205645&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68210&fm=63423213715822&tin=02508201610067®Number=0000000000098096&sum=20000 [20:56:47]StoreToDocumentArchive [20:56:47]shift 322 fd 68210 [20:56:47]save to /storage/0322/doc_00068210 [20:56:47]save last doc name /storage/0322/doc_00068210 to /storage/kkm_last_doc_name [20:56:47]save OK [20:56:47]Clear old archive folders... [20:56:47]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:56:47]tlvbuf is 003A2F10 [20:56:47]SAM_PROTO_ClearQueue [20:56:47]wFMCommunicate request_size=4 [20:56:47]MH_SAM_APDU [20:56:47]CAPDU: 80 09 00 00 [20:56:47]Write to MH i2c: E2 08 00 C4 0C 80 09 00 00 00 00 00 00 42 [20:56:47]Write i2c OK [20:56:47]MH_I2C_Read... [20:56:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:56:47]Read from MH i2c: E2 [20:56:47]MH_I2C_Read... [20:56:47]Read from MH i2c: E2 03 00 [20:56:47]MH_I2C_Read... [20:56:47]Read from MH i2c: E2 03 00 C4 0C 00 90 00 44 [20:56:47]RAPDU: 90 00 [20:56:47]wFMCommunicate OK [20:56:47]SAM_PROTO_ClearQueue done [20:56:47]KKMCreateOFDPacket [20:56:47]OFDProtocolAddRootSTLVToBuf [20:56:47]FM_MakeSignedData [20:56:47]FM_MakeSignedData [20:56:47]SAM_PROTO_SignData [20:56:47]wFMCommunicate request_size=4 [20:56:47]MH_SAM_APDU [20:56:47]CAPDU: 80 0D 01 02 [20:56:47]Write to MH i2c: E2 08 00 C5 0C 80 0D 01 02 00 00 00 00 4A [20:56:47]Write i2c OK [20:56:47]MH_I2C_Read... [20:56:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:56:47]Read from MH i2c: E2 [20:56:47]MH_I2C_Read... [20:56:47]Read from MH i2c: E2 03 00 [20:56:47]MH_I2C_Read... [20:56:47]Read from MH i2c: E2 03 00 C5 0C 00 90 00 45 [20:56:47]RAPDU: 90 00 [20:56:47]wFMCommunicate OK [20:56:47]wFMCommunicate request_size=255 [20:56:47]MH_SAM_APDU [20:56:47]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 CC 0B 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 55 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 51 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E1 00 00 00 F4 03 04 00 8D DC 5C 66 0E 04 04 00 42 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 72 0A 01 00 35 04 06 00 39 [20:56:48]Write to MH i2c: E2 02 01 C6 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 34 FF 03 08 00 03 CC 0B 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 55 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 51 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E1 00 00 00 F4 03 04 00 8D DC 5C 66 0E 04 04 00 42 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 72 0A 01 00 35 04 06 00 39 00 00 C0 [20:56:49]Write i2c OK [20:56:49]MH_I2C_Read... [20:56:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:56:49]Read from MH i2c: E2 [20:56:49]MH_I2C_Read... [20:56:49]Read from MH i2c: E2 03 00 [20:56:49]MH_I2C_Read... [20:56:49]Read from MH i2c: E2 03 00 C6 0C 00 90 00 46 [20:56:49]RAPDU: 90 00 [20:56:49]wFMCommunicate OK [20:56:49]wFMCommunicate request_size=10 [20:56:49]MH_SAM_APDU [20:56:49]CAPDU: 80 0D 02 02 05 AE DE 1F C1 6E [20:56:49]Write to MH i2c: E2 0D 00 C7 0C 80 0D 02 02 05 00 AE DE 1F C1 6E 00 00 31 [20:56:49]Write i2c OK [20:56:49]MH_I2C_Read... [20:56:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:56:49]Read from MH i2c: E2 [20:56:49]MH_I2C_Read... [20:56:49]Read from MH i2c: E2 03 00 [20:56:49]MH_I2C_Read... [20:56:49]Read from MH i2c: E2 03 00 C7 0C 00 90 00 47 [20:56:49]RAPDU: 90 00 [20:56:49]wFMCommunicate OK [20:56:49]wFMCommunicate request_size=4 [20:56:49]MH_SAM_APDU [20:56:49]CAPDU: 80 0D 03 02 [20:56:49]Write to MH i2c: E2 08 00 C8 0C 80 0D 03 02 00 00 00 00 4F [20:56:49]Write i2c OK [20:56:49]MH_I2C_Read... [20:56:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:56:49]Read from MH i2c: E2 [20:56:49]MH_I2C_Read... [20:56:49]Read from MH i2c: E2 0B 00 [20:56:49]MH_I2C_Read... [20:56:49]Read from MH i2c: E2 0B 00 C8 0C 00 92 40 9C 57 3F D4 2F 92 90 00 E9 [20:56:49]RAPDU: 92 40 9C 57 3F D4 2F 92 90 00 [20:56:49]wFMCommunicate OK [20:56:49]SAM_PROTO_SignData done [20:56:49]FM_MakeSignedData done [20:56:49]CreateOFDProtocolMessage [20:56:49]wFMCommunicate request_size=4 [20:56:49]MH_SAM_APDU [20:56:49]CAPDU: 80 11 00 00 [20:56:49]Write to MH i2c: E2 08 00 C9 0C 80 11 00 00 00 00 00 00 4F [20:56:50]Write i2c OK [20:56:50]MH_I2C_Read... [20:56:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:56:50]Read from MH i2c: E2 [20:56:50]MH_I2C_Read... [20:56:50]Read from MH i2c: E2 17 00 [20:56:50]MH_I2C_Read... [20:56:50]Read from MH i2c: E2 17 00 C9 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 9A [20:56:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [20:56:50]wFMCommunicate OK [20:56:50]CreateOFDProtocolMessage done [20:56:50]OFDSenderStorePacket 68210 [20:56:50]StoreOFDPacket docnum=68210 [20:56:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 D6 0C 07 01 D5 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 34 FF 03 08 00 03 CC 0B 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 55 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 51 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E1 00 00 00 F4 03 04 00 8D DC 5C 66 0E 04 04 00 42 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 72 0A 01 00 35 04 06 00 39 AE DE 1F C1 6E 92 40 9C 57 3F D4 2F 92 [20:56:50]CheckFolder [20:56:50]dirname=/storage/ofd_packets [20:56:50]CheckFolder done [20:56:50]ProducePacketName [20:56:50]name=ofd_packets/00068210 [20:56:50]NVStorageSaveData ofd_packets/00068210 [20:56:50]File name is /storage/ofd_packets/00068210 [20:56:50]Write 301 bytes [20:56:50]NVStorageSaveData done [20:56:50]OFDSenderStorePacket done [20:56:50]KKMCreateOFDPacket done [20:56:50]NVStorageSaveData kkm_last_timestamp [20:56:50]File name is /storage/kkm_last_timestamp [20:56:50]Write 4 bytes [20:56:50]NVStorageSaveData done [20:56:50]ExternCall_PrintAddStr [20:56:50]wPrintStart [20:56:50]Write to MH i2c: 01 00 00 CA 0C D6 [20:56:50]Write i2c OK [20:56:50]MH_I2C_Read... [20:56:50]Read from MH i2c: 01 [20:56:50]MH_I2C_Read... [20:56:50]Read from MH i2c: 01 07 00 [20:56:50]MH_I2C_Read... [20:56:50]Read from MH i2c: 01 07 00 CA 0C 00 00 00 00 00 FF 0F EB [20:56:50]RasterBufferAndPrint [20:56:50]line Счет N : (1)706282 [20:56:50]OFD Sender: Processing packet 68210 [packets to send 26, broken 25] [20:56:50]line ИНН: 02508201610067 [20:56:50]ProducePacketName [20:56:50]line Контрольно-Кассовый Чек [20:56:50]line ПРОДАЖА [20:56:50]line ТРК (МРК, ГНК) : 32 [20:56:50]line Товар: 2710124130 [20:56:50]name=ofd_packets/00068210 [20:56:50]line Аи-92-К-4 [20:56:50]OFD Sender: To server: pG, [20:56:50]line 3.020 * 66.40 [20:56:50]line = 200.53 [20:56:50]line НДС 12% НСП 1% [20:56:50]line > о реализуемом товаре [20:56:50]line ОКРУГЛЕНИЕ: -0.53 [20:56:50]CommunicateWithHost lk.salyk.kg:30040 [20:56:50]line ИТОГО: 200.00 [20:56:50]ConnectInit lk.salyk.kg [20:56:50]line Внесено: 200.00 [20:56:50]line СДАЧА: 0.00 [20:56:50]line НСП 1% : 1.77 [20:56:50]line НДС 12% : 21.29 [20:56:50]line Наличными: 200.00 [20:56:50]line Безнал.: 0.00 [20:56:50]line Место: АЗС № 62 "Партнер Нефть" [20:56:50]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [20:56:50]line СНО: Общий режим [20:56:50]line Чек 225 02.06.2024 20:56 [20:56:50]line Смена: 322 ФФД: 1.0 [20:56:50]line ЗНМ: 0300000181 [20:56:50]line РНМ: 0000000000098096 [20:56:50]line Версия ККМ: 001 [20:56:50]line ФМ: 0000000000965400 [20:56:50]line ФД: 68210 [20:56:50]line ФПД: 63423213715822 [20:56:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240602T205645&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68210&fm=63423213715822&tin=02508201610067®Number=0000000000098096&sum=20000 [20:56:50]written 0, free lines is 4095 [20:56:50]Connected sock=11 [20:56:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 D6 0C 07 01 D5 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 34 FF 03 08 00 03 CC 0B 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 55 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 Write to MH i2c: 00 01 F2 03 01 00 01 00 F3 00 03 06 00 51 08 F5 00 0C 00 00 00 07 04 01 06 [20:56:51]00 20 4E 00 00 Write i2c OK [20:56:51]00 MH_I2C_Read... [20:56:51]00 39 04 06 00 Read from MH i2c: 00 01 00 00 00 00 00 [20:56:51]1F MH_I2C_Read... [20:56:51]04 02 00 01 00 Read from MH i2c: 12 01 04 07 00 [20:56:51]MH_I2C_Read... [20:56:51]04 Read from MH i2c: 00 01 E1 07 00 00 00 F5 00 0C F4 00 03 00 04 00 00 00 8D 00 DC 41 5C 0E 66 57 0E [20:56:51]04 RasterBufferAndPrint [20:56:51]04 line [20:56:51]00 line [20:56:51]42 line [20:56:51]01 line [20:56:51]00 line [20:56:51]00 B9 04 01 00 01 written 0, free lines is 4048 [20:56:51]0D 04 10 00 MH_Cut [20:56:51]30 Write to MH i2c: 30 D1 30 30 30 30 30 01 30 00 30 30 30 39 38 FC 30 0C 39 36 11 04 10 01 00 DA 30 30 30 30 30 [20:56:51]30 30 30 Write i2c OK [20:56:51]30 MH_I2C_Read... [20:56:51]30 39 36 35 34 30 30 10 04 04 00 72 0A 01 00 35 04 06 00 39 AE DE 1F C1 6E 92 40 9C 57 3F D4 2F 92 [20:56:51]*** Cut start [20:56:51]*** Partial cut [20:56:51]*** CUTSNS_PIN = 1 [20:56:51]*** CUTSNS_PIN = 0 [20:56:51]Read from MH i2c: D1 [20:56:51]MH_I2C_Read... [20:56:51]Read from MH i2c: D1 01 00 [20:56:51]MH_I2C_Read... [20:56:51]Read from MH i2c: D1 01 00 FC 0C 00 D9 [20:56:51]Write to MH i2c: 01 00 00 FD 0C 09 [20:56:51]Write i2c OK [20:56:51]MH_I2C_Read... [20:56:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 AE A6 47 00 D9 81 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 Read from MH i2c: *** Brake cut motor [20:56:52]01 *** Stop cut motor [20:56:52]*** Cut end [20:56:52] [20:56:52]37 MH_I2C_Read... [20:56:52]30 39 33 36 34 Read from MH i2c: 33 01 34 36 31 32 33 07 34 00 11 04 10 00 30 [20:56:52]30 MH_I2C_Read... [20:56:52]30 30 30 30 30 30 30 30 39 36 35 34 30 Read from MH i2c: 30 01 10 04 04 00 72 0A 01 00 F4 03 04 00 91 83 5C 66 B6 04 01 00 00 CD B7 31 4E 75 97 81 75 [20:56:52]CommunicateWithHost err = 0 [20:56:52]CheckOFDResponse [20:56:52]1017 (14) - 77093643461234 [20:56:52]1041 (16) - 0000000000965400 [20:56:52]1040 (4) - 68210 [20:56:52]1012 (4) - 02.06.2024 14:37 [20:56:52]1206 (1) - 0 [20:56:52]07 OFD Sender: Remove packet 68210 [20:56:52]00 ProducePacketName [20:56:52]FD name=ofd_packets/00068210 [20:56:52]0C NVStorageDeleteData [20:56:52]00 00 00 00 00 FF 0F 1E [20:56:52]process_action close_receipt done [20:56:52]requested_data is exist [20:56:52]produce_requested_data [20:56:52]requested_item fm.sn is exist - process it [20:56:52]wFMCommunicate request_size=4 [20:56:52]MH_SAM_APDU [20:56:52]CAPDU: 80 11 00 00 [20:56:52]Write to MH i2c: E2 08 00 FE 0C 80 11 00 00 00 00 00 00 84 [20:56:52]Write i2c OK [20:56:52]MH_I2C_Read... [20:56:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:56:53]Read from MH i2c: E2 [20:56:53]MH_I2C_Read... [20:56:53]Read from MH i2c: E2 17 00 [20:56:53]MH_I2C_Read... [20:56:53]Read from MH i2c: E2 17 00 FE 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 CF [20:56:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [20:56:53]wFMCommunicate OK [20:56:53]requested_item fd.num is exist - process it [20:56:53]SAM_PROTO_GetFieldsCounters [20:56:53]wFMCommunicate request_size=4 [20:56:53]MH_SAM_APDU [20:56:53]CAPDU: 80 13 00 00 [20:56:53]Write to MH i2c: E2 08 00 FF 0C 80 13 00 00 00 00 00 00 87 [20:56:53]Write i2c OK [20:56:53]MH_I2C_Read... [20:56:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:56:53]OFD Sender: No OFD packet to send [20:56:53]Read from MH i2c: E2 [20:56:53]MH_I2C_Read... [20:56:53]Read from MH i2c: E2 62 00 [20:56:53]MH_I2C_Read... [20:56:53]Read from MH i2c: E2 62 00 FF 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 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 72 0A 01 00 0E 04 04 00 42 01 00 00 12 04 04 00 E1 00 00 00 5E 04 04 00 E1 00 00 00 57 04 04 00 E2 00 00 00 19 04 04 00 00 00 00 00 90 00 0A [20:56: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 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 72 0A 01 00 0E 04 04 00 42 01 00 00 12 04 04 00 E1 00 00 00 5E 04 04 00 E1 00 00 00 57 04 04 00 E2 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:56:53]wFMCommunicate OK [20:56:53]SAM_PROTO_GetFieldsCounters done [20:56:53]requested_item shift.num is exist - process it [20:56:53]requested_item shift.opened is exist - process it [20:56:53]req_shift_opened [20:56:53]FM_GetShiftState [20:56:53]SAM_PROTO_GetShiftState [20:56:53]wFMCommunicate request_size=4 [20:56:53]MH_SAM_APDU [20:56:53]CAPDU: 80 13 01 00 [20:56:53]Write to MH i2c: E2 08 00 00 0D 80 13 01 00 00 00 00 00 8A [20:56:54]Write i2c OK [20:56:54]MH_I2C_Read... [20:56:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:56:54]Read from MH i2c: E2 [20:56:54]MH_I2C_Read... [20:56:54]Read from MH i2c: E2 0E 00 [20:56:54]MH_I2C_Read... [20:56:54]Read from MH i2c: E2 0E 00 00 0D 00 09 00 01 A4 BB 5B 66 00 00 00 00 90 00 B6 [20:56:54]RAPDU: 09 00 01 A4 BB 5B 66 00 00 00 00 90 00 [20:56:54]wFMCommunicate OK [20:56:54]SAM_PROTO_GetShiftState done [20:56:54]FM_GetShiftState done [20:56:54]req_shift_opened done [20:56:54]requested_item shift.open_date is exist - process it [20:56:54]req_shift_open_date [20:56:54]req_shift_open_date done [20:56:54]produce_requested_data done [20:56:54]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68210,"shift.num":322,"shift.opened":1,"shift.open_date":1717287844} [20:56:54]process_action_free close_receipt [20:56:54]json_value_free [20:56:54]json_value_free done [20:56:54]process_json_proto returns [20:56:54]Send response to host [20:56:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68210,"shift.num":322,"shift.opened":1,"shift.open_date":1717287844}}} [20:56:54]free response buf [20:56:54]execute_script done [20:56:54]execute_script returns [20:56:54]free content buf [20:56:54]Sock 9.Close socket [20:56:54]Sock 9.Thread stoped [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:12]ConnectInit Can't connect to host [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:31]ConnectInit Can't connect to host [20:59:33]OFD Sender: No OFD packet to send [20:59:38]OFD Sender: No OFD packet to send [20:59:43]OFD Sender: No OFD packet to send [20:59:48]OFD Sender: No OFD packet to send [20:59:53]OFD Sender: No OFD packet to send [20:59:58]OFD Sender: No OFD packet to send [21:00:03]OFD Sender: No OFD packet to send [21:00:08]OFD Sender: No OFD packet to send [21:00:13]OFD Sender: No OFD packet to send [21:00:18]OFD Sender: No OFD packet to send [21:00:23]OFD Sender: No OFD packet to send [21:00:28]OFD Sender: No OFD packet to send [21:00:33]OFD Sender: No OFD packet to send [21:00:38]OFD Sender: No OFD packet to send [21:00:43]OFD Sender: No OFD packet to send [21:00:48]OFD Sender: No OFD packet to send [21:00:53]OFD Sender: No OFD packet to send [21:00:58]OFD Sender: No OFD packet to send [21:01:03]OFD Sender: No OFD packet to send [21:01:08]OFD Sender: No OFD packet to send [21:01:13]OFD Sender: No OFD packet to send [21:01:18]OFD Sender: No OFD packet to send [21:01:23]OFD Sender: No OFD packet to send [21:01:28]OFD Sender: No OFD packet to send [21:01:33]OFD Sender: No OFD packet to send [21:01:38]OFD Sender: No OFD packet to send [21:01:43]OFD Sender: No OFD packet to send [21:01:48]OFD Sender: No OFD packet to send [21:01:49]ConnectInit Can't connect to host [21:01:53]OFD Sender: No OFD packet to send [21:01:58]OFD Sender: No OFD packet to send [21:02:03]OFD Sender: No OFD packet to send [21:02:08]OFD Sender: No OFD packet to send [21:02:13]OFD Sender: No OFD packet to send [21:02:18]OFD Sender: No OFD packet to send [21:02:23]OFD Sender: No OFD packet to send [21:02:28]OFD Sender: No OFD packet to send [21:02:33]OFD Sender: No OFD packet to send [21:02:38]OFD Sender: No OFD packet to send [21:02:43]OFD Sender: No OFD packet to send [21:02:48]OFD Sender: No OFD packet to send [21:02:53]OFD Sender: No OFD packet to send [21:02:58]OFD Sender: No OFD packet to send [21:03:03]OFD Sender: No OFD packet to send [21:03:08]OFD Sender: No OFD packet to send [21:03:13]OFD Sender: No OFD packet to send [21:03:18]OFD Sender: No OFD packet to send [21:03:23]OFD Sender: No OFD packet to send [21:03:28]OFD Sender: No OFD packet to send [21:03:33]OFD Sender: No OFD packet to send [21:03:38]OFD Sender: No OFD packet to send [21:03:43]OFD Sender: No OFD packet to send [21:03:48]OFD Sender: No OFD packet to send [21:03:53]OFD Sender: No OFD packet to send [21:03:58]OFD Sender: No OFD packet to send [21:04:03]OFD Sender: No OFD packet to send [21:04:07]ConnectInit Can't connect to host [21:04:08]OFD Sender: No OFD packet to send [21:04:13]OFD Sender: No OFD packet to send [21:04:18]OFD Sender: No OFD packet to send [21:04:23]OFD Sender: No OFD packet to send [21:04:28]OFD Sender: No OFD packet to send [21:04:33]OFD Sender: No OFD packet to send [21:04:38]OFD Sender: No OFD packet to send [21:04:43]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:25]ConnectInit Can't connect to host [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:43]ConnectInit Can't connect to host [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:02]ConnectInit Can't connect to host [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:33]accept exits with 10 [21:11:33]New connection [21:11:33]New thread 3066543460 created [21:11:33]Thread 3066686820 joined [21:11:33]Waiting for new connection... [21:11:33] Sock 10.Parse request [21:11:33]Sock 10.Check first char [21:11:33]Sock 10.First char is OK [21:11:33]request: POST /json_proto HTTP/1.0 [21:11:33]Method: POST [21:11:33]URL: /json_proto [21:11:33]Method is POST - this is cgi request [21:11:33]url: /json_proto [21:11:33]query_string will be loaded in cgi processing [21:11:33]execute_cgi json_proto POST (null) [21:11:33]execute_cgi path=json_proto method=POST [21:11:33]POST find Content-Length [21:11:33]Host: 172.17.36.132:8080 [21:11:33]Content-Length: 843 [21:11:33]Content-Type: application/json [21:11:33] [21:11:33]POST finish read [21:11:33]Found Content-Length = 843 [21:11:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706283", "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" : 73.40, "quantity" : 27.250, "sum" : 2000.15, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 2000.15 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:11:33]execute_script... [21:11:33]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706283", "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" : 73.40, "quantity" : 27.250, "sum" : 2000.15, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 2000.15 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:11:33]POST & json_proto [21:11:33]process_json_proto [21:11:33]json parsed OK: [21:11:33]protocol is kg_v1.0 [21:11:33]action value=close_receipt [21:11:33]process_action close_receipt [21:11:33]cmd_close_receipt [21:11:33]MH_GetDate [21:11:33]Write to MH i2c: F0 00 00 01 0D FD [21:11:33]Write i2c OK [21:11:33]MH_I2C_Read... [21:11:33]Read from MH i2c: F0 [21:11:33]MH_I2C_Read... [21:11:33]Read from MH i2c: F0 09 00 [21:11:33]MH_I2C_Read... [21:11:33]Read from MH i2c: F0 09 00 01 0D 00 07 E0 5C 66 B2 22 B0 64 97 [21:11:33]GetLastDocTimeStamp 1717361805 [21:11:33]current date 1717362695 [21:11:33]FM_GetShiftState [21:11:33]SAM_PROTO_GetShiftState [21:11:33]wFMCommunicate request_size=4 [21:11:33]MH_SAM_APDU [21:11:33]CAPDU: 80 13 01 00 [21:11:33]Write to MH i2c: E2 08 00 02 0D 80 13 01 00 00 00 00 00 8C [21:11:33]Write i2c OK [21:11:33]MH_I2C_Read... [21:11:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:11:34]Read from MH i2c: E2 [21:11:34]MH_I2C_Read... [21:11:34]Read from MH i2c: E2 0E 00 [21:11:34]MH_I2C_Read... [21:11:34]Read from MH i2c: E2 0E 00 02 0D 00 09 00 01 A4 BB 5B 66 00 00 00 00 90 00 B8 [21:11:34]RAPDU: 09 00 01 A4 BB 5B 66 00 00 00 00 90 00 [21:11:34]wFMCommunicate OK [21:11:34]SAM_PROTO_GetShiftState done [21:11:34]FM_GetShiftState done [21:11:34]opened in 1717287844 [21:11:34]opened+sec_in_day 1717374244 [21:11:34]quantity*price = 200015 [21:11:34]sum+1 = 200016 [21:11:34]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2000.15 НСП 1% : 17.70 НДС 12% : 212.40 Наличными: 0.00 Безнал.: 2000.15 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 226 02.06.2024 21:11 Смена: 322 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000965400 ФД: 68211 ФПД: 206406501188792 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240602T211135&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68211&fm=206406501188792&tin=02508201610067®Number=0000000000098096&sum=200015 [21:11:37]StoreToDocumentArchive [21:11:37]shift 322 fd 68211 [21:11:37]save to /storage/0322/doc_00068211 [21:11:37]save last doc name /storage/0322/doc_00068211 to /storage/kkm_last_doc_name [21:11:37]save OK [21:11:37]Clear old archive folders... [21:11:37]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:11:37]tlvbuf is 002891B0 [21:11:37]SAM_PROTO_ClearQueue [21:11:37]wFMCommunicate request_size=4 [21:11:37]MH_SAM_APDU [21:11:37]CAPDU: 80 09 00 00 [21:11:37]Write to MH i2c: E2 08 00 0F 0D 80 09 00 00 00 00 00 00 8E [21:11:37]Write i2c OK [21:11:37]MH_I2C_Read... [21:11:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:11:37]Read from MH i2c: E2 [21:11:37]MH_I2C_Read... [21:11:37]Read from MH i2c: E2 03 00 [21:11:37]MH_I2C_Read... [21:11:37]Read from MH i2c: E2 03 00 0F 0D 00 90 00 90 [21:11:37]RAPDU: 90 00 [21:11:37]wFMCommunicate OK [21:11:37]SAM_PROTO_ClearQueue done [21:11:37]KKMCreateOFDPacket [21:11:37]OFDProtocolAddRootSTLVToBuf [21:11:37]FM_MakeSignedData [21:11:37]FM_MakeSignedData [21:11:37]SAM_PROTO_SignData [21:11:37]wFMCommunicate request_size=4 [21:11:37]MH_SAM_APDU [21:11:37]CAPDU: 80 0D 01 02 [21:11:37]Write to MH i2c: E2 08 00 10 0D 80 0D 01 02 00 00 00 00 96 [21:11:37]Write i2c OK [21:11:37]MH_I2C_Read... [21:11:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:11:37]Read from MH i2c: E2 [21:11:37]MH_I2C_Read... [21:11:37]Read from MH i2c: E2 03 00 [21:11:37]MH_I2C_Read... [21:11:37]Read from MH i2c: E2 03 00 10 0D 00 90 00 91 [21:11:37]RAPDU: 90 00 [21:11:37]wFMCommunicate OK [21:11:37]wFMCommunicate request_size=255 [21:11:37]MH_SAM_APDU [21: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 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 6A 00 00 00 00 00 37 04 06 00 AC 1C 00 00 00 00 13 04 06 00 4F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4F 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 4F 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 E2 00 00 00 F4 03 04 00 07 E0 5C 66 0E 04 04 00 42 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 73 0A 01 00 35 04 06 00 BB [21:11:38]Write to MH i2c: E2 02 01 11 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 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 6A 00 00 00 00 00 37 04 06 00 AC 1C 00 00 00 00 13 04 06 00 4F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4F 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 4F 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 E2 00 00 00 F4 03 04 00 07 E0 5C 66 0E 04 04 00 42 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 73 0A 01 00 35 04 06 00 BB 00 00 A5 [21:11:38]Write i2c OK [21:11:38]MH_I2C_Read... [21:11:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:11:39]Read from MH i2c: E2 [21:11:39]MH_I2C_Read... [21:11:39]Read from MH i2c: E2 03 00 [21:11:39]MH_I2C_Read... [21:11:39]Read from MH i2c: E2 03 00 11 0D 00 90 00 92 [21:11:39]RAPDU: 90 00 [21:11:39]wFMCommunicate OK [21:11:39]wFMCommunicate request_size=10 [21:11:39]MH_SAM_APDU [21:11:39]CAPDU: 80 0D 02 02 05 B9 C2 2E C4 B8 [21:11:39]Write to MH i2c: E2 0D 00 12 0D 80 0D 02 02 05 00 B9 C2 2E C4 B8 00 00 C8 [21:11:39]Write i2c OK [21:11:39]MH_I2C_Read... [21:11:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:11:39]Read from MH i2c: E2 [21:11:39]MH_I2C_Read... [21:11:39]Read from MH i2c: E2 03 00 [21:11:39]MH_I2C_Read... [21:11:39]Read from MH i2c: E2 03 00 12 0D 00 90 00 93 [21:11:39]RAPDU: 90 00 [21:11:39]wFMCommunicate OK [21:11:39]wFMCommunicate request_size=4 [21:11:39]MH_SAM_APDU [21:11:39]CAPDU: 80 0D 03 02 [21:11:39]Write to MH i2c: E2 08 00 13 0D 80 0D 03 02 00 00 00 00 9B [21:11:39]Write i2c OK [21:11:39]MH_I2C_Read... [21:11:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:11:39]Read from MH i2c: E2 [21:11:39]MH_I2C_Read... [21:11:39]Read from MH i2c: E2 0B 00 [21:11:39]MH_I2C_Read... [21:11:39]Read from MH i2c: E2 0B 00 13 0D 00 4B 8F 75 E2 4C 24 E8 68 90 00 8D [21:11:39]RAPDU: 4B 8F 75 E2 4C 24 E8 68 90 00 [21:11:39]wFMCommunicate OK [21:11:39]SAM_PROTO_SignData done [21:11:39]FM_MakeSignedData done [21:11:39]CreateOFDProtocolMessage [21:11:39]wFMCommunicate request_size=4 [21:11:39]MH_SAM_APDU [21:11:39]CAPDU: 80 11 00 00 [21:11:39]Write to MH i2c: E2 08 00 14 0D 80 11 00 OFD Sender: No OFD packet to send [21:11:39]00 00 00 00 00 9B [21:11:39]Write i2c OK [21:11:39]MH_I2C_Read... [21:11:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:11:39]Read from MH i2c: E2 [21:11:39]MH_I2C_Read... [21:11:39]Read from MH i2c: E2 17 00 [21:11:39]MH_I2C_Read... [21:11:39]Read from MH i2c: E2 17 00 14 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 E6 [21:11:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [21:11:39]wFMCommunicate OK [21:11:39]CreateOFDProtocolMessage done [21:11:39]OFDSenderStorePacket 68211 [21:11:39]StoreOFDPacket docnum=68211 [21:11:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 01 BD 07 01 53 4E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 6A 00 00 00 00 00 37 04 06 00 AC 1C 00 00 00 00 13 04 06 00 4F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4F 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 4F 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 E2 00 00 00 F4 03 04 00 07 E0 5C 66 0E 04 04 00 42 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 73 0A 01 00 35 04 06 00 BB B9 C2 2E C4 B8 4B 8F 75 E2 4C 24 E8 68 [21:11:39]CheckFolder [21:11:39]dirname=/storage/ofd_packets [21:11:39]CheckFolder done [21:11:39]ProducePacketName [21:11:39]name=ofd_packets/00068211 [21:11:39]NVStorageSaveData ofd_packets/00068211 [21:11:39]File name is /storage/ofd_packets/00068211 [21:11:39]Write 301 bytes [21:11:39]NVStorageSaveData done [21:11:40]OFDSenderStorePacket done [21:11:40]KKMCreateOFDPacket done [21:11:40]NVStorageSaveData kkm_last_timestamp [21:11:40]File name is /storage/kkm_last_timestamp [21:11:40]Write 4 bytes [21:11:40]NVStorageSaveData done [21:11:40]ExternCall_PrintAddStr [21:11:40]wPrintStart [21:11:40]Write to MH i2c: 01 00 00 15 0D 22 [21:11:40]Write i2c OK [21:11:40]MH_I2C_Read... [21:11:40]Read from MH i2c: 01 [21:11:40]OFD Sender: Processing packet 68211 [packets to send 26, broken 25] [21:11:40]MH_I2C_Read... [21:11:40]ProducePacketName [21:11:40]name=ofd_packets/00068211 [21:11:40]OFD Sender: To server: pG, [21:11:40]CommunicateWithHost lk.salyk.kg:30040 [21:11:40]ConnectInit lk.salyk.kg [21:11:40]Read from MH i2c: 01 07 00 [21:11:40]MH_I2C_Read... [21:11:40]Read from MH i2c: 01 07 00 15 0D 00 00 00 00 00 FF 0F 37 [21:11:40]RasterBufferAndPrint [21:11:40]line Счет N : (1)706283 [21:11:40]line ИНН: 02508201610067 [21:11:40]line Контрольно-Кассовый Чек [21:11:40]line ПРОДАЖА [21:11:40]line ТРК (МРК, ГНК) : 33 [21:11:40]line Товар: 2710124500 [21:11:40]line Аи-95-К-5 [21:11:40]line 27.250 * 73.40 [21:11:40]line = 2000.15 [21:11:40]line НДС 12% НСП 1% [21:11:40]line > о реализуемом товаре [21:11:40]line ИТОГО: 2000.15 [21:11:40]line НСП 1% : 17.70 [21:11:40]line НДС 12% : 212.40 [21:11:40]line Наличными: 0.00 [21:11:40]line Безнал.: 2000.15 [21:11:40]line Место: АЗС № 62 "Партнер Нефть" [21:11:40]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [21:11:40]line СНО: Общий режим [21:11:40]line Чек 226 02.06.2024 21:11 [21:11:40]line Смена: 322 ФФД: 1.0 [21:11:40]line ЗНМ: 0300000181 [21:11:40]line РНМ: 0000000000098096 [21:11:40]line Версия ККМ: 001 [21:11:40]line Платежная система: АКБ Кыргызстан [21:11:40]line ФМ: 0000000000965400 [21:11:40]line ФД: 68211 [21:11:40]line ФПД: 206406501188792 [21:11:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240602T211135&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68211&fm=206406501188792&tin=02508201610067®Number=0000000000098096&sum=200015 [21:11:40]Connected sock=11 [21:11:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 written 0, free lines is 4095 [21:11:40]30 30 39 36 35 34 30 30 0F 01 00 00 01 BD 07 01 53 4E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 6A 00 00 00 00 00 37 04 06 00 AC 1C 00 00 00 00 13 04 06 00 4F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4F 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 Write to MH i2c: 01 01 00 00 00 3F 0D 4C 01 [21:11:40]F3 03 06 00 F8 Write i2c OK [21:11:40]52 00 MH_I2C_Read... [21:11:40]00 Read from MH i2c: 00 01 [21:11:40]MH_I2C_Read... [21:11:40]00 07 04 06 00 00 00 00 00 Read from MH i2c: 00 01 00 07 00 [21:11:40]MH_I2C_Read... [21:11:40]39 04 06 00 4F 0D 03 00 00 00 1F 04 02 00 Read from MH i2c: 01 01 00 07 12 00 04 3F 04 0D 00 00 E2 00 00 00 F4 00 03 00 04 00 07 E0 5C 66 00 0E 00 04 04 00 42 01 35 00 0D 00 95 B9 [21:11:41]04 01 00 01 0D 04 10 00 30 30 RasterBufferAndPrint [21:11:41]30 line [21:11:41]30 30 line [21:11:41]30 line [21:11:41]line [21:11:41]line [21:11:41]30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 73 written 0, free lines is 3859 [21:11:41]0A 01 00 35 04 MH_Cut [21:11:41]06 Write to MH i2c: 00 D1 BB 01 B9 00 C2 46 2E 0D C4 B8 4B 8F 75 01 E2 25 4C [21:11:41]24 E8 68 [21:11:41]Write i2c OK [21:11:41]MH_I2C_Read... [21:11:41]Read from MH i2c: D1 [21:11:41]MH_I2C_Read... [21:11:41]Read from MH i2c: D1 01 00 [21:11:41]MH_I2C_Read... [21:11:41]Read from MH i2c: D1 01 00 46 0D 00 24 [21:11:41]Write to MH i2c: 01 00 00 47 0D 54 [21:11:41]Write i2c OK [21:11:41]MH_I2C_Read... [21:11:41]*** Cut start [21:11:41]*** Partial cut [21:11:41]*** CUTSNS_PIN = 1 [21:11:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 90 79 47 00 AA C7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 *** CUTSNS_PIN = 0 [21:11:41]36 34 33 34 36 31 32 33 34 *** Brake cut motor [21:11:41]11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 73 0A 01 00 F4 03 04 00 0A 87 5C 66 B6 04 01 00 00 D7 B4 69 35 07 62 47 BB [21:11:42]CommunicateWithHost err = 0 [21:11:42]CheckOFDResponse [21:11:42]1017 (14) - 77093643461234 [21:11:42]1041 (16) - 0000000000965400 [21:11:42]1040 (4) - 68211 [21:11:42]1012 (4) - 02.06.2024 14:51 [21:11:42]1206 (1) - 0 [21:11:42]OFD Sender: Remove packet 68211 [21:11:42]ProducePacketName [21:11:42]name=ofd_packets/00068211 [21:11:42]NVStorageDeleteData [21:11:42]Read from MH i2c: 01 [21:11:42]MH_I2C_Read... [21:11:42]*** Stop cut motor [21:11:42]*** Cut end [21:11:42]Read from MH i2c: 01 07 00 [21:11:42]MH_I2C_Read... [21:11:42]Read from MH i2c: 01 07 00 47 0D 00 00 00 00 00 FF 0F 69 [21:11:42]process_action close_receipt done [21:11:42]requested_data is exist [21:11:42]produce_requested_data [21:11:42]requested_item fm.sn is exist - process it [21:11:42]wFMCommunicate request_size=4 [21:11:42]MH_SAM_APDU [21:11:42]CAPDU: 80 11 00 00 [21:11:42]Write to MH i2c: E2 08 00 48 0D 80 11 00 00 00 00 00 00 CF [21:11:42]Write i2c OK [21:11:42]MH_I2C_Read... [21:11:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:11:42]Read from MH i2c: E2 [21:11:42]MH_I2C_Read... [21:11:42]Read from MH i2c: E2 17 00 [21:11:42]MH_I2C_Read... [21:11:42]Read from MH i2c: E2 17 00 48 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 1A [21:11:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [21:11:42]wFMCommunicate OK [21:11:42]requested_item fd.num is exist - process it [21:11:42]SAM_PROTO_GetFieldsCounters [21:11:42]wFMCommunicate request_size=4 [21:11:42]MH_SAM_APDU [21:11:42]CAPDU: 80 13 00 00 [21:11:42]Write to MH i2c: E2 08 00 49 0D 80 13 00 00 00 00 00 00 D2 [21:11:42]OFD Sender: No OFD packet to send [21:11:42]Write i2c OK [21:11:42]MH_I2C_Read... [21:11:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:11:42]Read from MH i2c: E2 [21:11:42]MH_I2C_Read... [21:11:42]Read from MH i2c: E2 62 00 [21:11:42]MH_I2C_Read... [21:11:42]Read from MH i2c: E2 62 00 49 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 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 73 0A 01 00 0E 04 04 00 42 01 00 00 12 04 04 00 E2 00 00 00 5E 04 04 00 E2 00 00 00 57 04 04 00 E3 00 00 00 19 04 04 00 00 00 00 00 90 00 59 [21:11: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 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 73 0A 01 00 0E 04 04 00 42 01 00 00 12 04 04 00 E2 00 00 00 5E 04 04 00 E2 00 00 00 57 04 04 00 E3 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:11:43]wFMCommunicate OK [21:11:43]SAM_PROTO_GetFieldsCounters done [21:11:43]requested_item shift.num is exist - process it [21:11:43]requested_item shift.opened is exist - process it [21:11:43]req_shift_opened [21:11:43]FM_GetShiftState [21:11:43]SAM_PROTO_GetShiftState [21:11:43]wFMCommunicate request_size=4 [21:11:43]MH_SAM_APDU [21:11:43]CAPDU: 80 13 01 00 [21:11:43]Write to MH i2c: E2 08 00 4A 0D 80 13 01 00 00 00 00 00 D4 [21:11:43]Write i2c OK [21:11:43]MH_I2C_Read... [21:11:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:11:43]Read from MH i2c: E2 [21:11:43]MH_I2C_Read... [21:11:43]Read from MH i2c: E2 0E 00 [21:11:43]MH_I2C_Read... [21:11:43]Read from MH i2c: E2 0E 00 4A 0D 00 09 00 01 A4 BB 5B 66 00 00 00 00 90 00 00 [21:11:43]RAPDU: 09 00 01 A4 BB 5B 66 00 00 00 00 90 00 [21:11:43]wFMCommunicate OK [21:11:43]SAM_PROTO_GetShiftState done [21:11:43]FM_GetShiftState done [21:11:43]req_shift_opened done [21:11:43]requested_item shift.open_date is exist - process it [21:11:43]req_shift_open_date [21:11:43]req_shift_open_date done [21:11:43]produce_requested_data done [21:11:43]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68211,"shift.num":322,"shift.opened":1,"shift.open_date":1717287844} [21:11:43]process_action_free close_receipt [21:11:43]json_value_free [21:11:43]json_value_free done [21:11:43]process_json_proto returns [21:11:43]Send response to host [21:11:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68211,"shift.num":322,"shift.opened":1,"shift.open_date":1717287844}}} [21:11:43]free response buf [21:11:43]execute_script done [21:11:43]execute_script returns [21:11:43]free content buf [21:11:43]Sock 10.Close socket [21:11:43]Sock 10.Thread stoped [21:11:47]OFD Sender: No OFD packet to send [21:11:52]OFD Sender: No OFD packet to send [21:11:57]OFD Sender: No OFD packet to send [21:12:02]OFD Sender: No OFD packet to send [21:12:07]OFD Sender: No OFD packet to send [21:12:12]OFD Sender: No OFD packet to send [21:12:17]OFD Sender: No OFD packet to send [21:12:22]OFD Sender: No OFD packet to send [21:12:27]OFD Sender: No OFD packet to send [21:12:32]OFD Sender: No OFD packet to send [21:12:37]OFD Sender: No OFD packet to send [21:12:42]OFD Sender: No OFD packet to send [21:12:47]OFD Sender: No OFD packet to send [21:12:52]OFD Sender: No OFD packet to send [21:12:57]OFD Sender: No OFD packet to send [21:13:02]OFD Sender: No OFD packet to send [21:13:07]OFD Sender: No OFD packet to send [21:13:12]OFD Sender: No OFD packet to send [21:13:17]OFD Sender: No OFD packet to send [21:13:20]ConnectInit Can't connect to host [21:13:22]OFD Sender: No OFD packet to send [21:13:27]OFD Sender: No OFD packet to send [21:13:32]OFD Sender: No OFD packet to send [21:13:37]OFD Sender: No OFD packet to send [21:13:42]OFD Sender: No OFD packet to send [21:13:47]OFD Sender: No OFD packet to send [21:13:52]OFD Sender: No OFD packet to send [21:13:57]OFD Sender: No OFD packet to send [21:14:02]OFD Sender: No OFD packet to send [21:14:07]OFD Sender: No OFD packet to send [21:14:12]OFD Sender: No OFD packet to send [21:14:17]OFD Sender: No OFD packet to send [21:14:22]OFD Sender: No OFD packet to send [21:14:27]OFD Sender: No OFD packet to send [21:14:32]OFD Sender: No OFD packet to send [21:14:37]OFD Sender: No OFD packet to send [21:14:42]OFD Sender: No OFD packet to send [21:14:47]OFD Sender: No OFD packet to send [21:14:52]OFD Sender: No OFD packet to send [21:14:57]OFD Sender: No OFD packet to send [21:15:02]OFD Sender: No OFD packet to send [21:15:07]OFD Sender: No OFD packet to send [21:15:12]OFD Sender: No OFD packet to send [21:15:17]OFD Sender: No OFD packet to send [21:15:22]OFD Sender: No OFD packet to send [21:15:27]OFD Sender: No OFD packet to send [21:15:32]OFD Sender: No OFD packet to send [21:15:37]OFD Sender: No OFD packet to send [21:15:38]ConnectInit Can't connect to host [21:15:42]OFD Sender: No OFD packet to send [21:15:47]OFD Sender: No OFD packet to send [21:15:52]OFD Sender: No OFD packet to send [21:15:57]OFD Sender: No OFD packet to send [21:16:02]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:56]ConnectInit Can't connect to host [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:08]OFD Sender: No OFD packet to send [21:19:13]OFD Sender: No OFD packet to send [21:19:18]accept exits with 9 [21:19:18]New connection [21:19:18]New thread 3066686820 created [21:19:18]Thread 3066543460 joined [21:19:18]Waiting for new connection... [21:19:18] Sock 9.Parse request [21:19:18]Sock 9.Check first char [21:19:18]Sock 9.First char is OK [21:19:18]request: POST /json_proto HTTP/1.0 [21:19:18]Method: POST [21:19:18]URL: /json_proto [21:19:18]Method is POST - this is cgi request [21:19:18]url: /json_proto [21:19:18]query_string will be loaded in cgi processing [21:19:18]execute_cgi json_proto POST (null) [21:19:18]execute_cgi path=json_proto method=POST [21:19:18]POST find Content-Length [21:19:18]Host: 172.17.36.132:8080 [21:19:18]Content-Length: 682 [21:19:18]Content-Type: application/json [21:19:18] [21:19:18]POST finish read [21:19:18]Found Content-Length = 682 [21:19:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706284", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:18]execute_script... [21:19: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)706284", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:18]POST & json_proto [21:19:18]process_json_proto [21:19:18]json parsed OK: [21:19:18]protocol is kg_v1.0 [21:19:18]action value=close_receipt [21:19:18]process_action close_receipt [21:19:18]cmd_close_receipt [21:19:18]MH_GetDate [21:19:18]Write to MH i2c: F0 00 00 4B 0D 47 [21:19:18]Write i2c OK [21:19:18]MH_I2C_Read... [21:19:18]Read from MH i2c: F0 [21:19:18]MH_I2C_Read... [21:19:18]Read from MH i2c: F0 09 00 [21:19:18]MH_I2C_Read... [21:19:18]Read from MH i2c: F0 09 00 4B 0D 00 D7 E1 5C 66 B2 22 B0 64 B2 [21:19:18]GetLastDocTimeStamp 1717362695 [21:19:18]current date 1717363159 [21:19:18]FM_GetShiftState [21:19:18]SAM_PROTO_GetShiftState [21:19:18]wFMCommunicate request_size=4 [21:19:18]MH_SAM_APDU [21:19:18]CAPDU: 80 13 01 00 [21:19:18]Write to MH i2c: E2 08 00 4C 0D 80 13 01 00 00 00 00 00 D6 [21:19:18]Write i2c OK [21:19:18]MH_I2C_Read... [21:19:18]OFD Sender: No OFD packet to send [21:19:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:19:18]Read from MH i2c: E2 [21:19:18]MH_I2C_Read... [21:19:18]Read from MH i2c: E2 0E 00 [21:19:18]MH_I2C_Read... [21:19:18]Read from MH i2c: E2 0E 00 4C 0D 00 09 00 01 A4 BB 5B 66 00 00 00 00 90 00 02 [21:19:18]RAPDU: 09 00 01 A4 BB 5B 66 00 00 00 00 90 00 [21:19:18]wFMCommunicate OK [21:19:18]SAM_PROTO_GetShiftState done [21:19:18]FM_GetShiftState done [21:19:18]opened in 1717287844 [21:19:18]opened+sec_in_day 1717374244 [21:19:18]quantity*price = 100064 [21:19:18]sum+1 = 100066 [21:19:18]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.65 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.26 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 227 02.06.2024 21:19 Смена: 322 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 ФМ: 0000000000965400 ФД: 68212 ФПД: 274020431500446 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240602T211919&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68212&fm=274020431500446&tin=02508201610067®Number=0000000000098096&sum=100000 [21:19:21]StoreToDocumentArchive [21:19:21]shift 322 fd 68212 [21:19:21]save to /storage/0322/doc_00068212 [21:19:21]save last doc name /storage/0322/doc_00068212 to /storage/kkm_last_doc_name [21:19:21]save OK [21:19:21]Clear old archive folders... [21:19:21]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:19:21]tlvbuf is 00403A00 [21:19:21]SAM_PROTO_ClearQueue [21:19:21]wFMCommunicate request_size=4 [21:19:21]MH_SAM_APDU [21:19:21]CAPDU: 80 09 00 00 [21:19:21]Write to MH i2c: E2 08 00 59 0D 80 09 00 00 00 00 00 00 D8 [21:19:21]Write i2c OK [21:19:21]MH_I2C_Read... [21:19:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:19:21]Read from MH i2c: E2 [21:19:21]MH_I2C_Read... [21:19:21]Read from MH i2c: E2 03 00 [21:19:21]MH_I2C_Read... [21:19:21]Read from MH i2c: E2 03 00 59 0D 00 90 00 DA [21:19:21]RAPDU: 90 00 [21:19:21]wFMCommunicate OK [21:19:21]SAM_PROTO_ClearQueue done [21:19:21]KKMCreateOFDPacket [21:19:21]OFDProtocolAddRootSTLVToBuf [21:19:21]FM_MakeSignedData [21:19:21]FM_MakeSignedData [21:19:21]SAM_PROTO_SignData [21:19:21]wFMCommunicate request_size=4 [21:19:21]MH_SAM_APDU [21:19:21]CAPDU: 80 0D 01 02 [21:19:21]Write to MH i2c: E2 08 00 5A 0D 80 0D 01 02 00 00 00 00 E0 [21:19:21]Write i2c OK [21:19:21]MH_I2C_Read... [21:19:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:19:21]Read from MH i2c: E2 [21:19:21]MH_I2C_Read... [21:19:21]Read from MH i2c: E2 03 00 [21:19:21]MH_I2C_Read... [21:19:21]Read from MH i2c: E2 03 00 5A 0D 00 90 00 DB [21:19:21]RAPDU: 90 00 [21:19:21]wFMCommunicate OK [21:19:21]wFMCommunicate request_size=255 [21:19:21]MH_SAM_APDU [21:19: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 34 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 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 D7 E1 5C 66 0E 04 04 00 42 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 74 0A 01 00 35 04 06 00 F9 [21:19:22]Write to MH i2c: E2 02 01 5B 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 34 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 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 D7 E1 5C 66 0E 04 04 00 42 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 74 0A 01 00 35 04 06 00 F9 00 00 FA [21:19:23]Write i2c OK [21:19:23]MH_I2C_Read... [21:19:23]OFD Sender: No OFD packet to send [21:19:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:19:23]Read from MH i2c: E2 [21:19:23]MH_I2C_Read... [21:19:23]Read from MH i2c: E2 03 00 [21:19:23]MH_I2C_Read... [21:19:23]Read from MH i2c: E2 03 00 5B 0D 00 90 00 DC [21:19:23]RAPDU: 90 00 [21:19:23]wFMCommunicate OK [21:19:23]wFMCommunicate request_size=10 [21:19:23]MH_SAM_APDU [21:19:23]CAPDU: 80 0D 02 02 05 38 5A 7B 14 9E [21:19:23]Write to MH i2c: E2 0D 00 5C 0D 80 0D 02 02 05 00 38 5A 7B 14 9E 00 00 AC [21:19:23]Write i2c OK [21:19:23]MH_I2C_Read... [21:19:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:19:23]Read from MH i2c: E2 [21:19:23]MH_I2C_Read... [21:19:23]Read from MH i2c: E2 03 00 [21:19:23]MH_I2C_Read... [21:19:23]Read from MH i2c: E2 03 00 5C 0D 00 90 00 DD [21:19:23]RAPDU: 90 00 [21:19:23]wFMCommunicate OK [21:19:23]wFMCommunicate request_size=4 [21:19:23]MH_SAM_APDU [21:19:23]CAPDU: 80 0D 03 02 [21:19:23]Write to MH i2c: E2 08 00 5D 0D 80 0D 03 02 00 00 00 00 E5 [21:19:23]Write i2c OK [21:19:23]MH_I2C_Read... [21:19:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:19:23]Read from MH i2c: E2 [21:19:23]MH_I2C_Read... [21:19:23]Read from MH i2c: E2 0B 00 [21:19:23]MH_I2C_Read... [21:19:23]Read from MH i2c: E2 0B 00 5D 0D 00 75 73 B9 86 5D 7D 17 1B 90 00 19 [21:19:23]RAPDU: 75 73 B9 86 5D 7D 17 1B 90 00 [21:19:23]wFMCommunicate OK [21:19:23]SAM_PROTO_SignData done [21:19:23]FM_MakeSignedData done [21:19:23]CreateOFDProtocolMessage [21:19:23]wFMCommunicate request_size=4 [21:19:23]MH_SAM_APDU [21:19:23]CAPDU: 80 11 00 00 [21:19:23]Write to MH i2c: E2 08 00 5E 0D 80 11 00 00 00 00 00 00 E5 [21:19:23]Write i2c OK [21:19:23]MH_I2C_Read... [21:19:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:19:24]Read from MH i2c: E2 [21:19:24]MH_I2C_Read... [21:19:24]Read from MH i2c: E2 17 00 [21:19:24]MH_I2C_Read... [21:19:24]Read from MH i2c: E2 17 00 5E 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 30 [21:19:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [21:19:24]wFMCommunicate OK [21:19:24]CreateOFDProtocolMessage done [21:19:24]OFDSenderStorePacket 68212 [21:19:24]StoreOFDPacket docnum=68212 [21:19:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 A3 AD 07 01 37 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 34 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 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 D7 E1 5C 66 0E 04 04 00 42 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 74 0A 01 00 35 04 06 00 F9 38 5A 7B 14 9E 75 73 B9 86 5D 7D 17 1B [21:19:24]CheckFolder [21:19:24]dirname=/storage/ofd_packets [21:19:24]CheckFolder done [21:19:24]ProducePacketName [21:19:24]name=ofd_packets/00068212 [21:19:24]NVStorageSaveData ofd_packets/00068212 [21:19:24]File name is /storage/ofd_packets/00068212 [21:19:24]Write 301 bytes [21:19:24]NVStorageSaveData done [21:19:24]OFDSenderStorePacket done [21:19:24]KKMCreateOFDPacket done [21:19:24]NVStorageSaveData kkm_last_timestamp [21:19:24]File name is /storage/kkm_last_timestamp [21:19:24]Write 4 bytes [21:19:24]NVStorageSaveData done [21:19:24]ExternCall_PrintAddStr [21:19:24]wPrintStart [21:19:24]Write to MH i2c: 01 00 00 5F 0D 6C [21:19:24]Write i2c OK [21:19:24]MH_I2C_Read... [21:19:24]Read from MH i2c: 01 [21:19:24]MH_I2C_Read... [21:19:24]Read from MH i2c: 01 07 00 [21:19:24]MH_I2C_Read... [21:19:24]Read from MH i2c: 01 07 00 5F 0D 00 00 00 00 00 FF 0F 81 [21:19:24]RasterBufferAndPrint [21:19:24]line Счет N : (1)706284 [21:19:24]line ИНН: 02508201610067 [21:19:24]line Контрольно-Кассовый Чек [21:19:24]line ПРОДАЖА [21:19:24]line ТРК (МРК, ГНК) : 53 [21:19:24]line Товар: 2710124130 [21:19:24]line Аи-92-К-4 [21:19:24]line 15.070 * 66.40 [21:19:24]line = 1000.65 [21:19:24]line НДС 12% НСП 1% [21:19:24]line > о реализуемом товаре [21:19:24]line ОКРУГЛЕНИЕ: -0.65 [21:19:24]line ИТОГО: 1000.00 [21:19:24]line Внесено: 1000.00 [21:19:24]line СДАЧА: 0.00 [21:19:24]line НСП 1% : 8.85 [21:19:24]line НДС 12% : 106.26 [21:19:24]line Наличными: 1000.00 [21:19:24]line Безнал.: 0.00 [21:19:24]line Место: АЗС № 62 "Партнер Нефть" [21:19:24]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [21:19:24]line СНО: Общий режим [21:19:24]OFD Sender: Processing packet 68212 [packets to send 26, broken 25] [21:19:24]line Чек 227 02.06.2024 21:19 [21:19:24]ProducePacketName [21:19:24]line Смена: 322 ФФД: 1.0 [21:19:24]line ЗНМ: 0300000181 [21:19:24]line РНМ: 0000000000098096 [21:19:24]line Версия ККМ: 001 [21:19:24]line ФМ: 0000000000965400 [21:19:24]name=ofd_packets/00068212 [21:19:24]line ФД: 68212 [21:19:24]OFD Sender: To server: pG, [21:19:24]line ФПД: 274020431500446 [21:19:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240602T211919&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68212&fm=274020431500446&tin=02508201610067®Number=0000000000098096&sum=100000 [21:19:24]CommunicateWithHost lk.salyk.kg:30040 [21:19:24]ConnectInit lk.salyk.kg [21:19:24]written 0, free lines is 4095 [21:19:24]Connected sock=11 [21:19:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 A3 AD 07 01 37 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 34 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 Write to MH i2c: 00 01 00 00 00 00 EB 8A 03 0D 26 97 00 [21:19:25]EF 03 0F 00 F6 03 01 Write i2c OK [21:19:25]00 MH_I2C_Read... [21:19:25]01 F7 03 06 00 Read from MH i2c: 75 01 03 00 00 00 00 [21:19:25]EE MH_I2C_Read... [21:19:25]03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 Read from MH i2c: 00 01 00 00 39 04 06 00 07 00 00 00 00 00 00 00 [21:19:25]1F MH_I2C_Read... [21:19:25]04 02 00 01 00 Read from MH i2c: 12 01 04 07 04 00 00 8A E3 0D 00 00 00 00 00 00 00 00 58 0D F4 03 03 [21:19:25]RasterBufferAndPrint [21:19:25]line [21:19:25]line [21:19:25]line [21:19:25]line [21:19:25]04 line [21:19:25]00 D7 E1 5C 66 0E 04 written 0, free lines is 3851 [21:19:25]04 00 42 01 00 00 MH_Cut [21:19:25]B9 Write to MH i2c: 04 D1 01 01 00 00 01 91 0D 0D 04 01 10 70 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 74 0A 01 [21:19:25]00 35 04 06 00 Write i2c OK [21:19:25]F9 MH_I2C_Read... [21:19:25]38 Read from MH i2c: 5A D1 7B [21:19:25]14 MH_I2C_Read... [21:19:25]9E 75 73 B9 Read from MH i2c: *** Cut start [21:19:25]*** Partial cut [21:19:25]*** CUTSNS_PIN = 1 [21:19:25]86 5D 7D 17 1B [21:19:25]D1 01 00 [21:19:25]MH_I2C_Read... [21:19:25]*** CUTSNS_PIN = 0 [21:19:25]Read from MH i2c: D1 01 00 91 0D 00 6F [21:19:25]Write to MH i2c: 01 00 00 92 0D 9F [21:19:25]Write i2c OK [21:19:25]MH_I2C_Read... [21:19:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 *** Brake cut motor [21:19:26]35 34 30 30 4F 00 00 00 33 9D 47 00 1A 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 *** Stop cut motor [21:19:26]30 *** Cut end [21:19:26]Read from MH i2c: 39 01 36 [21:19:26]MH_I2C_Read... [21:19:26]Read from MH i2c: 01 07 00 [21:19:26]MH_I2C_Read... [21:19:26]35 34 30 30 10 04 04 00 74 0A 01 00 F4 03 04 00 DB 88 Read from MH i2c: 5C 01 66 B6 04 01 00 00 07 04 00 5C AE A2 2A B6 92 8F 0D 4C [21:19:26]CommunicateWithHost err = 0 [21:19:26]CheckOFDResponse [21:19:26]1017 (14) - 77093643461234 [21:19:26]00 1041 (16) - 0000000000965400 [21:19:26]00 1040 (4) - 68212 [21:19:26]00 1012 (4) - 02.06.2024 14:59 [21:19:26]00 1206 (1) - 0 [21:19:26]00 OFD Sender: Remove packet 68212 [21:19:26]FF ProducePacketName [21:19:26]0F name=ofd_packets/00068212 [21:19:26]B4 NVStorageDeleteData [21:19:26] [21:19:26]process_action close_receipt done [21:19:26]requested_data is exist [21:19:26]produce_requested_data [21:19:26]requested_item fm.sn is exist - process it [21:19:26]wFMCommunicate request_size=4 [21:19:26]MH_SAM_APDU [21:19:26]CAPDU: 80 11 00 00 [21:19:26]Write to MH i2c: E2 08 00 93 0D 80 11 00 00 00 00 00 00 1A [21:19:26]Write i2c OK [21:19:26]MH_I2C_Read... [21:19:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:19:26]Read from MH i2c: E2 [21:19:26]MH_I2C_Read... [21:19:26]Read from MH i2c: E2 17 00 [21:19:26]MH_I2C_Read... [21:19:26]Read from MH i2c: E2 17 00 93 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 65 [21:19:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [21:19:26]wFMCommunicate OK [21:19:26]requested_item fd.num is exist - process it [21:19:26]SAM_PROTO_GetFieldsCounters [21:19:26]wFMCommunicate request_size=4 [21:19:26]MH_SAM_APDU [21:19:26]CAPDU: 80 13 00 00 [21:19:26]Write to MH i2c: E2 08 00 94 0D 80 13 00 00 00 00 00 00 1D [21:19:26]Write i2c OK [21:19:26]MH_I2C_Read... [21:19:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:19:27]Read from MH i2c: E2 [21:19:27]MH_I2C_Read... [21:19:27]Read from MH i2c: E2 62 00 [21:19:27]MH_I2C_Read... [21:19:27]OFD Sender: No OFD packet to send [21:19:27]Read from MH i2c: E2 62 00 94 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 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 74 0A 01 00 0E 04 04 00 42 01 00 00 12 04 04 00 E3 00 00 00 5E 04 04 00 E3 00 00 00 57 04 04 00 E4 00 00 00 19 04 04 00 00 00 00 00 90 00 A8 [21:19: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 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 74 0A 01 00 0E 04 04 00 42 01 00 00 12 04 04 00 E3 00 00 00 5E 04 04 00 E3 00 00 00 57 04 04 00 E4 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:19:27]wFMCommunicate OK [21:19:27]SAM_PROTO_GetFieldsCounters done [21:19:27]requested_item shift.num is exist - process it [21:19:27]requested_item shift.opened is exist - process it [21:19:27]req_shift_opened [21:19:27]FM_GetShiftState [21:19:27]SAM_PROTO_GetShiftState [21:19:27]wFMCommunicate request_size=4 [21:19:27]MH_SAM_APDU [21:19:27]CAPDU: 80 13 01 00 [21:19:27]Write to MH i2c: E2 08 00 95 0D 80 13 01 00 00 00 00 00 1F [21:19:27]Write i2c OK [21:19:27]MH_I2C_Read... [21:19:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:19:27]Read from MH i2c: E2 [21:19:27]MH_I2C_Read... [21:19:27]Read from MH i2c: E2 0E 00 [21:19:27]MH_I2C_Read... [21:19:27]Read from MH i2c: E2 0E 00 95 0D 00 09 00 01 A4 BB 5B 66 00 00 00 00 90 00 4B [21:19:27]RAPDU: 09 00 01 A4 BB 5B 66 00 00 00 00 90 00 [21:19:27]wFMCommunicate OK [21:19:27]SAM_PROTO_GetShiftState done [21:19:27]FM_GetShiftState done [21:19:27]req_shift_opened done [21:19:27]requested_item shift.open_date is exist - process it [21:19:27]req_shift_open_date [21:19:27]req_shift_open_date done [21:19:27]produce_requested_data done [21:19:27]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68212,"shift.num":322,"shift.opened":1,"shift.open_date":1717287844} [21:19:27]process_action_free close_receipt [21:19:27]json_value_free [21:19:27]json_value_free done [21:19:27]process_json_proto returns [21:19:27]Send response to host [21:19:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68212,"shift.num":322,"shift.opened":1,"shift.open_date":1717287844}}} [21:19:27]free response buf [21:19:27]execute_script done [21:19:27]execute_script returns [21:19:27]free content buf [21:19:27]Sock 9.Close socket [21:19:27]Sock 9.Thread stoped [21:19:29]accept exits with 10 [21:19:29]New connection [21:19:29]New thread 3066543460 created [21:19:29]Thread 3066686820 joined [21:19:29]Waiting for new connection... [21:19:29] Sock 10.Parse request [21:19:29]Sock 10.Check first char [21:19:29]Sock 10.First char is OK [21:19:29]request: POST /json_proto HTTP/1.0 [21:19:29]Method: POST [21:19:29]URL: /json_proto [21:19:29]Method is POST - this is cgi request [21:19:29]url: /json_proto [21:19:29]query_string will be loaded in cgi processing [21:19:29]execute_cgi json_proto POST (null) [21:19:29]execute_cgi path=json_proto method=POST [21:19:29]POST find Content-Length [21:19:29]Host: 172.17.36.132:8080 [21:19:29]Content-Length: 738 [21:19:29]Content-Type: application/json [21:19:29] [21:19:29]POST finish read [21:19:29]Found Content-Length = 738 [21:19:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 68212, "base_FM": "0000000000965400", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706284", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:29]execute_script... [21:19:29]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 68212, "base_FM": "0000000000965400", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706284", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:29]POST & json_proto [21:19:29]process_json_proto [21:19:29]json parsed OK: [21:19:29]protocol is kg_v1.0 [21:19:29]action value=close_receipt [21:19:29]process_action close_receipt [21:19:29]cmd_close_receipt [21:19:29]MH_GetDate [21:19:29]Write to MH i2c: F0 00 00 96 0D 92 [21:19:29]Write i2c OK [21:19:29]MH_I2C_Read... [21:19:29]Read from MH i2c: F0 [21:19:29]MH_I2C_Read... [21:19:29]Read from MH i2c: F0 09 00 [21:19:29]MH_I2C_Read... [21:19:29]Read from MH i2c: F0 09 00 96 0D 00 E3 E1 5C 66 B2 22 B0 64 09 [21:19:29]GetLastDocTimeStamp 1717363159 [21:19:29]current date 1717363171 [21:19:29]FM_GetShiftState [21:19:29]SAM_PROTO_GetShiftState [21:19:29]wFMCommunicate request_size=4 [21:19:29]MH_SAM_APDU [21:19:29]CAPDU: 80 13 01 00 [21:19:29]Write to MH i2c: E2 08 00 97 0D 80 13 01 00 00 00 00 00 21 [21:19:29]Write i2c OK [21:19:29]MH_I2C_Read... [21:19:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:19:29]Read from MH i2c: E2 [21:19:29]MH_I2C_Read... [21:19:29]Read from MH i2c: E2 0E 00 [21:19:29]MH_I2C_Read... [21:19:29]Read from MH i2c: E2 0E 00 97 0D 00 09 00 01 A4 BB 5B 66 00 00 00 00 90 00 4D [21:19:29]RAPDU: 09 00 01 A4 BB 5B 66 00 00 00 00 90 00 [21:19:29]wFMCommunicate OK [21:19:29]SAM_PROTO_GetShiftState done [21:19:29]FM_GetShiftState done [21:19:29]opened in 1717287844 [21:19:29]opened+sec_in_day 1717374244 [21:19:29]quantity*price = 100064 [21:19:29]sum+1 = 100066 [21:19:29]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.65 ИТОГО: 1000.00 НСП 1% : 8.85 НДС 12% : 106.26 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 228 02.06.2024 21:19 Смена: 322 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 ФД осн.: 68212 ФМ осн.: 0000000000965400 ФМ: 0000000000965400 ФД: 68213 ФПД: 224304985421596 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240602T211931&type=2&operation_type=1&fn_number=0000000000965400&fd_number=68213&fm=224304985421596&tin=02508201610067®Number=0000000000098096&sum=100000 [21:19:33]StoreToDocumentArchive [21:19:33]shift 322 fd 68213 [21:19:33]save to /storage/0322/doc_00068213 [21:19:33]save last doc name /storage/0322/doc_00068213 to /storage/kkm_last_doc_name [21:19:33]save OK [21:19:33]Clear old archive folders... [21:19:33]ProcessDocumentItem done err = 0, tmpTLVsize=279 [21:19:33]tlvbuf is 00405580 [21:19:33]SAM_PROTO_ClearQueue [21:19:33]wFMCommunicate request_size=4 [21:19:33]MH_SAM_APDU [21:19:33]CAPDU: 80 09 00 00 [21:19:33]Write to MH i2c: E2 08 00 A6 0D 80 09 00 00 00 00 00 00 25 [21:19:33]Write i2c OK [21:19:33]MH_I2C_Read... [21:19:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:19:34]Read from MH i2c: E2 [21:19:34]MH_I2C_Read... [21:19:34]Read from MH i2c: E2 03 00 [21:19:34]MH_I2C_Read... [21:19:34]Read from MH i2c: E2 03 00 A6 0D 00 90 00 27 [21:19:34]RAPDU: 90 00 [21:19:34]wFMCommunicate OK [21:19:34]SAM_PROTO_ClearQueue done [21:19:34]KKMCreateOFDPacket [21:19:34]OFDProtocolAddRootSTLVToBuf [21:19:34]FM_MakeSignedData [21:19:34]FM_MakeSignedData [21:19:34]SAM_PROTO_SignData [21:19:34]wFMCommunicate request_size=4 [21:19:34]MH_SAM_APDU [21:19:34]CAPDU: 80 0D 01 02 [21:19:34]Write to MH i2c: E2 08 00 A7 0D 80 0D 01 02 00 00 00 00 2D [21:19:34]Write i2c OK [21:19:34]MH_I2C_Read... [21:19:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:19:34]Read from MH i2c: E2 [21:19:34]MH_I2C_Read... [21:19:34]Read from MH i2c: E2 03 00 [21:19:34]MH_I2C_Read... [21:19:34]Read from MH i2c: E2 03 00 A7 0D 00 90 00 28 [21:19:34]RAPDU: 90 00 [21:19:34]wFMCommunicate OK [21:19:34]wFMCommunicate request_size=255 [21:19:34]MH_SAM_APDU [21:19:34]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 34 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 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 E3 E1 5C 66 0E 04 04 00 42 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 27 04 04 00 74 0A 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 11 04 10 00 30 [21:19:34]Write to MH i2c: E2 02 01 A8 0D 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 34 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 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 E3 E1 5C 66 0E 04 04 00 42 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 27 04 04 00 74 0A 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 11 04 10 00 30 00 00 BD [21:19:35]Write i2c OK [21:19:35]MH_I2C_Read... [21:19:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:19:35]Read from MH i2c: E2 [21:19:35]MH_I2C_Read... [21:19:35]Read from MH i2c: E2 03 00 [21:19:35]MH_I2C_Read... [21:19:35]Read from MH i2c: E2 03 00 A8 0D 00 90 00 29 [21:19:35]RAPDU: 90 00 [21:19:35]wFMCommunicate OK [21:19:35]wFMCommunicate request_size=38 [21:19:35]MH_SAM_APDU [21:19:35]CAPDU: 80 0D 02 02 21 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 75 0A 01 00 35 04 06 00 CC 01 12 FA 37 1C [21:19:36]Write to MH i2c: E2 29 00 A9 0D 80 0D 02 02 21 00 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 75 0A 01 00 35 04 06 00 CC 01 12 FA 37 1C 00 00 5D [21:19:36]Write i2c OK [21:19:36]MH_I2C_Read... [21:19:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:19:36]Read from MH i2c: E2 [21:19:36]MH_I2C_Read... [21:19:36]Read from MH i2c: E2 03 00 [21:19:36]MH_I2C_Read... [21:19:36]Read from MH i2c: E2 03 00 A9 0D 00 90 00 2A [21:19:36]RAPDU: 90 00 [21:19:36]wFMCommunicate OK [21:19:36]wFMCommunicate request_size=4 [21:19:36]MH_SAM_APDU [21:19:36]CAPDU: 80 0D 03 02 [21:19:36]Write to MH i2c: E2 08 00 AA 0D 80 0D 03 02 00 00 00 00 32 [21:19:36]Write i2c OK [21:19:36]MH_I2C_Read... [21:19:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:19:36]Read from MH i2c: E2 [21:19:36]MH_I2C_Read... [21:19:36]Read from MH i2c: E2 0B 00 [21:19:36]MH_I2C_Read... [21:19:36]Read from MH i2c: E2 0B 00 AA 0D 00 00 14 2D A9 B7 0F 52 46 90 00 7B [21:19:36]RAPDU: 00 14 2D A9 B7 0F 52 46 90 00 [21:19:36]wFMCommunicate OK [21:19:36]SAM_PROTO_SignData done [21:19:36]FM_MakeSignedData done [21:19:36]CreateOFDProtocolMessage [21:19:36]wFMCommunicate request_size=4 [21:19:36]MH_SAM_APDU [21:19:36]CAPDU: 80 11 00 00 [21:19:36]Write to MH i2c: E2 08 00 AB 0D 80 11 00 00 00 00 00 00 32 [21:19:36]Write i2c OK [21:19:36]MH_I2C_Read... [21:19:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:19:36]Read from MH i2c: E2 [21:19:36]MH_I2C_Read... [21:19:36]Read from MH i2c: E2 17 00 [21:19:36]MH_I2C_Read... [21:19:36]Read from MH i2c: E2 17 00 AB 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 7D [21:19:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [21:19:36]wFMCommunicate OK [21:19:36]CreateOFDProtocolMessage done [21:19:36]OFDSenderStorePacket 68213 [21:19:36]StoreOFDPacket docnum=68213 [21:19:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 2B 01 00 00 60 B5 23 01 CB 71 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 34 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 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 E3 E1 5C 66 0E 04 04 00 42 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 27 04 04 00 74 0A 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 75 0A 01 00 35 04 06 00 CC 01 12 FA 37 1C 00 14 2D A9 B7 0F 52 46 [21:19:36]CheckFolder [21:19:36]dirname=/storage/ofd_packets [21:19:36]CheckFolder done [21:19:36]ProducePacketName [21:19:36]name=ofd_packets/00068213 [21:19:36]NVStorageSaveData ofd_packets/00068213 [21:19:36]File name is /storage/ofd_packets/00068213 [21:19:36]Write 329 bytes [21:19:36]NVStorageSaveData done [21:19:36]OFDSenderStorePacket done [21:19:36]KKMCreateOFDPacket done [21:19:36]NVStorageSaveData kkm_last_timestamp [21:19:36]File name is /storage/kkm_last_timestamp [21:19:36]Write 4 bytes [21:19:36]NVStorageSaveData done [21:19:36]ExternCall_PrintAddStr [21:19:36]wPrintStart [21:19:36]Write to MH i2c: 01 00 00 AC 0D B9 [21:19:36]Write i2c OK [21:19:36]MH_I2C_Read... [21:19:36]Read from MH i2c: 01 [21:19:36]MH_I2C_Read... [21:19:36]Read from MH i2c: 01 07 00 [21:19:36]MH_I2C_Read... [21:19:36]Read from MH i2c: 01 07 00 AC 0D 00 00 00 00 00 FF 0F CE [21:19:36]RasterBufferAndPrint [21:19:36]line Счет N : (1)706284 [21:19:36]line ИНН: 02508201610067 [21:19:36]line Контрольно-Кассовый Чек [21:19:36]line ВОЗВРАТ ПРОДАЖИ [21:19:36]line ТРК (МРК, ГНК) : 53 [21:19:36]line Товар: 2710124130 [21:19:36]line Аи-92-К-4 [21:19:36]line 15.070 * 66.40 [21:19:36]line = 1000.65 [21:19:36]line НДС 12% НСП 1% [21:19:36]OFD Sender: Processing packet 68213 [packets to send 26, broken 25] [21:19:36]line > о реализуемом товаре [21:19:36]ProducePacketName [21:19:36]line ОКРУГЛЕНИЕ: -0.65 [21:19:36]line ИТОГО: 1000.00 [21:19:36]line НСП 1% : 8.85 [21:19:36]line НДС 12% : 106.26 [21:19:36]line Наличными: 1000.00 [21:19:37]name=ofd_packets/00068213 [21:19:37]line Безнал.: 0.00 [21:19:37]OFD Sender: To server: pG, [21:19:37]line Место: АЗС № 62 "Партнер Нефть" [21:19:37]CommunicateWithHost lk.salyk.kg:30040 [21:19:37]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [21:19:37]ConnectInit lk.salyk.kg [21:19:37]line СНО: Общий режим [21:19:37]line Чек 228 02.06.2024 21:19 [21:19:37]line Смена: 322 ФФД: 1.0 [21:19:37]line ЗНМ: 0300000181 [21:19:37]line РНМ: 0000000000098096 [21:19:37]line Версия ККМ: 001 [21:19:37]line ФД осн.: 68212 [21:19:37]line ФМ осн.: 0000000000965400 [21:19:37]line ФМ: 0000000000965400 [21:19:37]line ФД: 68213 [21:19:37]line ФПД: 224304985421596 [21:19:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240602T211931&type=2&operation_type=1&fn_number=0000000000965400&fd_number=68213&fm=224304985421596&tin=02508201610067®Number=0000000000098096&sum=100000 [21:19:37]written 0, free lines is 4095 [21:19:37]Connected sock=11 [21:19:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 2B 01 00 00 60 B5 23 01 CB 71 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 34 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 Write to MH i2c: EE 01 03 0F 00 F2 03 00 01 00 00 D7 01 0D F3 E4 03 [21:19:37]06 00 82 29 00 00 Write i2c OK [21:19:37]00 MH_I2C_Read... [21:19:37]00 Read from MH i2c: 07 01 04 [21:19:37]06 MH_I2C_Read... [21:19:37]00 Read from MH i2c: A0 01 07 00 [21:19:37]MH_I2C_Read... [21:19:37]86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 Read from MH i2c: 00 01 01 07 00 00 12 D7 04 04 0D 00 00 00 00 00 2E 0E 27 [21:19:38]RasterBufferAndPrint [21:19:38]line [21:19:38]line [21:19:38]line [21:19:38]line [21:19:38]line [21:19:38]00 E4 00 00 00 F4 03 04 00 E3 E1 5C 66 written 0, free lines is 4059 [21:19:38]0E 04 04 00 MH_Cut [21:19:38]42 Write to MH i2c: 01 D1 00 00 B9 04 01 01 00 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 27 04 04 00 74 0A 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 11 04 10 00 DE 30 0D 30 01 30 BD 30 [21:19:38]30 Write i2c OK [21:19:38]30 MH_I2C_Read... [21:19:38]30 Read from MH i2c: D1 [21:19:38]30 MH_I2C_Read... [21:19:38]*** Cut start [21:19:38]*** Partial cut [21:19:38]30 *** CUTSNS_PIN = 1 [21:19:38]*** CUTSNS_PIN = 0 [21:19:38]Read from MH i2c: 30 D1 39 01 00 [21:19:38]MH_I2C_Read... [21:19:38]36 35 34 30 30 10 04 04 00 75 0A 01 00 35 04 06 00 CC 01 12 Read from MH i2c: FA D1 37 01 1C 00 DE 0D 00 BC 00 [21:19:38]14 Write to MH i2c: 01 00 00 DF 0D 2D EC A9 [21:19:38]B7 0F 52 46 [21:19:38]Write i2c OK [21:19:38]MH_I2C_Read... [21:19:38]*** Brake cut motor [21:19:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 25 78 47 00 41 3B A5 07 01 00 07 Read from MH i2c: 00 01 3B *** Stop cut motor [21:19:39]*** Cut end [21:19:39] [21:19:39]MH_I2C_Read... [21:19:39]00 Read from MH i2c: F9 01 07 00 [21:19:39]MH_I2C_Read... [21:19:39]03 Read from MH i2c: 0E 00 01 37 07 37 00 30 DF 39 0D 33 00 36 00 34 00 33 00 34 00 36 FF 31 0F 32 33 01 34 [21:19:39]11 process_action close_receipt done [21:19:39]04 requested_data is exist [21:19:39]10 00 30 30 produce_requested_data [21:19:39]30 requested_item fm.sn is exist - process it [21:19:39]30 30 30 30 30 wFMCommunicate request_size=4 [21:19:39]30 MH_SAM_APDU [21:19:39]30 39 36 35 34 CAPDU: 30 80 30 10 04 04 00 11 75 00 0A 01 00 F4 03 00 04 [21:19:39]00 E8 88 5C 66 Write to MH i2c: B6 E2 04 08 01 00 00 E0 00 0D 8B 80 59 11 D8 00 AC 00 8B 00 C6 65 00 00 00 67 [21:19:39]00 Write i2c OK [21:19:39] [21:19:39]MH_I2C_Read... [21:19:39]CommunicateWithHost err = 0 [21:19:39]CheckOFDResponse [21:19:39]1017 (14) - 77093643461234 [21:19:39]1041 (16) - 0000000000965400 [21:19:39]1040 (4) - 68213 [21:19:39]1012 (4) - 02.06.2024 14:59 [21:19:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:19:39]1206 (1) - 0 [21:19:39]Read from MH i2c: OFD Sender: Remove packet 68213 [21:19:39]E2 ProducePacketName [21:19:39] [21:19:39]name=ofd_packets/00068213 [21:19:39]MH_I2C_Read... [21:19:39]NVStorageDeleteData [21:19:39]Read from MH i2c: E2 17 00 [21:19:39]MH_I2C_Read... [21:19:39]Read from MH i2c: E2 17 00 E0 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 B2 [21:19:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [21:19:39]wFMCommunicate OK [21:19:39]requested_item fd.num is exist - process it [21:19:39]SAM_PROTO_GetFieldsCounters [21:19:39]wFMCommunicate request_size=4 [21:19:39]MH_SAM_APDU [21:19:39]CAPDU: 80 13 00 00 [21:19:39]Write to MH i2c: E2 08 00 E1 0D 80 13 00 00 00 00 00 00 6A [21:19:39]Write i2c OK [21:19:39]MH_I2C_Read... [21:19:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:19:40]Read from MH i2c: E2 [21:19:40]MH_I2C_Read... [21:19:40]Read from MH i2c: E2 62 00 [21:19:40]MH_I2C_Read... [21:19:40]Read from MH i2c: E2 62 00 E1 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 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 OFD Sender: No OFD packet to send [21:19:40]39 38 30 39 36 10 04 04 00 75 0A 01 00 0E 04 04 00 42 01 00 00 12 04 04 00 E4 00 00 00 5E 04 04 00 E4 00 00 00 57 04 04 00 E5 00 00 00 19 04 04 00 00 00 00 00 90 00 F9 [21:19: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 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 75 0A 01 00 0E 04 04 00 42 01 00 00 12 04 04 00 E4 00 00 00 5E 04 04 00 E4 00 00 00 57 04 04 00 E5 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:19:40]wFMCommunicate OK [21:19:40]SAM_PROTO_GetFieldsCounters done [21:19:40]requested_item shift.num is exist - process it [21:19:40]requested_item shift.opened is exist - process it [21:19:40]req_shift_opened [21:19:40]FM_GetShiftState [21:19:40]SAM_PROTO_GetShiftState [21:19:40]wFMCommunicate request_size=4 [21:19:40]MH_SAM_APDU [21:19:40]CAPDU: 80 13 01 00 [21:19:40]Write to MH i2c: E2 08 00 E2 0D 80 13 01 00 00 00 00 00 6C [21:19:40]Write i2c OK [21:19:40]MH_I2C_Read... [21:19:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:19:40]Read from MH i2c: E2 [21:19:40]MH_I2C_Read... [21:19:40]Read from MH i2c: E2 0E 00 [21:19:40]MH_I2C_Read... [21:19:40]Read from MH i2c: E2 0E 00 E2 0D 00 09 00 01 A4 BB 5B 66 00 00 00 00 90 00 98 [21:19:40]RAPDU: 09 00 01 A4 BB 5B 66 00 00 00 00 90 00 [21:19:40]wFMCommunicate OK [21:19:40]SAM_PROTO_GetShiftState done [21:19:40]FM_GetShiftState done [21:19:40]req_shift_opened done [21:19:40]requested_item shift.open_date is exist - process it [21:19:40]req_shift_open_date [21:19:40]req_shift_open_date done [21:19:40]produce_requested_data done [21:19:40]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68213,"shift.num":322,"shift.opened":1,"shift.open_date":1717287844} [21:19:40]process_action_free close_receipt [21:19:40]json_value_free [21:19:40]json_value_free done [21:19:40]process_json_proto returns [21:19:40]Send response to host [21:19:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68213,"shift.num":322,"shift.opened":1,"shift.open_date":1717287844}}} [21:19:40]free response buf [21:19:40]execute_script done [21:19:40]execute_script returns [21:19:40]free content buf [21:19:40]Sock 10.Close socket [21:19:40]Sock 10.Thread stoped [21:19:45]OFD Sender: No OFD packet to send [21:19:50]OFD Sender: No OFD packet to send [21:19:55]OFD Sender: No OFD packet to send [21:20:00]OFD Sender: No OFD packet to send [21:20:05]OFD Sender: No OFD packet to send [21:20:10]OFD Sender: No OFD packet to send [21:20:15]ConnectInit Can't connect to host [21:20:15]OFD Sender: No OFD packet to send [21:20:20]OFD Sender: No OFD packet to send [21:20:25]OFD Sender: No OFD packet to send [21:20:30]OFD Sender: No OFD packet to send [21:20:35]OFD Sender: No OFD packet to send [21:20:40]OFD Sender: No OFD packet to send [21:20:45]OFD Sender: No OFD packet to send [21:20:50]OFD Sender: No OFD packet to send [21:20:55]OFD Sender: No OFD packet to send [21:21:00]OFD Sender: No OFD packet to send [21:21:05]OFD Sender: No OFD packet to send [21:21:10]OFD Sender: No OFD packet to send [21:21:15]OFD Sender: No OFD packet to send [21:21:20]OFD Sender: No OFD packet to send [21:21:25]OFD Sender: No OFD packet to send [21:21:30]OFD Sender: No OFD packet to send [21:21:35]OFD Sender: No OFD packet to send [21:21:40]OFD Sender: No OFD packet to send [21:21:45]OFD Sender: No OFD packet to send [21:21:50]OFD Sender: No OFD packet to send [21:21:55]OFD Sender: No OFD packet to send [21:22:00]OFD Sender: No OFD packet to send [21:22:05]OFD Sender: No OFD packet to send [21:22:10]OFD Sender: No OFD packet to send [21:22:15]OFD Sender: No OFD packet to send [21:22:20]OFD Sender: No OFD packet to send [21:22:25]OFD Sender: No OFD packet to send [21:22:30]OFD Sender: No OFD packet to send [21:22:33]ConnectInit Can't connect to host [21:22:35]OFD Sender: No OFD packet to send [21:22:40]OFD Sender: No OFD packet to send [21:22:45]OFD Sender: No OFD packet to send [21:22:50]OFD Sender: No OFD packet to send [21:22:55]OFD Sender: No OFD packet to send [21:23:00]OFD Sender: No OFD packet to send [21:23:05]OFD Sender: No OFD packet to send [21:23:10]OFD Sender: No OFD packet to send [21:23:15]OFD Sender: No OFD packet to send [21:23:20]OFD Sender: No OFD packet to send [21:23:25]OFD Sender: No OFD packet to send [21:23:30]OFD Sender: No OFD packet to send [21:23:35]OFD Sender: No OFD packet to send [21:23:40]OFD Sender: No OFD packet to send [21:23:45]OFD Sender: No OFD packet to send [21:23:50]OFD Sender: No OFD packet to send [21:23:55]OFD Sender: No OFD packet to send [21:24:00]OFD Sender: No OFD packet to send [21:24:05]OFD Sender: No OFD packet to send [21:24:10]OFD Sender: No OFD packet to send [21:24:15]OFD Sender: No OFD packet to send [21:24:20]OFD Sender: No OFD packet to send [21:24:25]OFD Sender: No OFD packet to send [21:24:30]OFD Sender: No OFD packet to send [21:24:35]OFD Sender: No OFD packet to send [21:24:40]OFD Sender: No OFD packet to send [21:24:45]OFD Sender: No OFD packet to send [21:24:50]OFD Sender: No OFD packet to send [21:24:51]ConnectInit Can't connect to host [21:24:55]OFD Sender: No OFD packet to send [21:25:00]OFD Sender: No OFD packet to send [21:25:05]OFD Sender: No OFD packet to send [21:25:10]OFD Sender: No OFD packet to send [21:25:15]OFD Sender: No OFD packet to send [21:25:20]OFD Sender: No OFD packet to send [21:25:25]OFD Sender: No OFD packet to send [21:25:30]OFD Sender: No OFD packet to send [21:25:35]OFD Sender: No OFD packet to send [21:25:40]OFD Sender: No OFD packet to send [21:25:45]OFD Sender: No OFD packet to send [21:25:50]OFD Sender: No OFD packet to send [21:25:55]OFD Sender: No OFD packet to send [21:26:00]OFD Sender: No OFD packet to send [21:26:05]OFD Sender: No OFD packet to send [21:26:10]OFD Sender: No OFD packet to send [21:26:15]OFD Sender: No OFD packet to send [21:26:20]OFD Sender: No OFD packet to send [21:26:25]OFD Sender: No OFD packet to send [21:26:30]OFD Sender: No OFD packet to send [21:26:35]OFD Sender: No OFD packet to send [21:26:40]OFD Sender: No OFD packet to send [21:26:45]OFD Sender: No OFD packet to send [21:26:50]OFD Sender: No OFD packet to send [21:26:55]OFD Sender: No OFD packet to send [21:27:00]OFD Sender: No OFD packet to send [21:27:05]OFD Sender: No OFD packet to send [21:27:09]ConnectInit Can't connect to host [21:27:10]OFD Sender: No OFD packet to send [21:27:15]OFD Sender: No OFD packet to send [21:27:20]OFD Sender: No OFD packet to send [21:27:25]OFD Sender: No OFD packet to send [21:27:30]OFD Sender: No OFD packet to send [21:27:35]OFD Sender: No OFD packet to send [21:27:40]OFD Sender: No OFD packet to send [21:27:45]OFD Sender: No OFD packet to send [21:27:50]OFD Sender: No OFD packet to send [21:27:55]OFD Sender: No OFD packet to send [21:28:00]OFD Sender: No OFD packet to send [21:28:05]OFD Sender: No OFD packet to send [21:28:10]OFD Sender: No OFD packet to send [21:28:15]OFD Sender: No OFD packet to send [21:28:20]OFD Sender: No OFD packet to send [21:28:25]OFD Sender: No OFD packet to send [21:28:30]OFD Sender: No OFD packet to send [21:28:35]OFD Sender: No OFD packet to send [21:28:40]OFD Sender: No OFD packet to send [21:28:45]OFD Sender: No OFD packet to send [21:28:50]OFD Sender: No OFD packet to send [21:28:55]OFD Sender: No OFD packet to send [21:29:00]OFD Sender: No OFD packet to send [21:29:05]OFD Sender: No OFD packet to send [21:29:10]OFD Sender: No OFD packet to send [21:29:15]OFD Sender: No OFD packet to send [21:29:21]OFD Sender: No OFD packet to send [21:29:26]OFD Sender: No OFD packet to send [21:29:28]ConnectInit Can't connect to host [21:29:31]OFD Sender: No OFD packet to send [21:29:36]OFD Sender: No OFD packet to send [21:29:41]OFD Sender: No OFD packet to send [21:29:46]OFD Sender: No OFD packet to send [21:29:51]OFD Sender: No OFD packet to send [21:29:56]OFD Sender: No OFD packet to send [21:30:01]OFD Sender: No OFD packet to send [21:30:06]OFD Sender: No OFD packet to send [21:30:11]OFD Sender: No OFD packet to send [21:30:16]OFD Sender: No OFD packet to send [21:30:21]OFD Sender: No OFD packet to send [21:30:26]OFD Sender: No OFD packet to send [21:30:31]OFD Sender: No OFD packet to send [21:30:36]OFD Sender: No OFD packet to send [21:30:41]OFD Sender: No OFD packet to send [21:30:46]OFD Sender: No OFD packet to send [21:30:51]OFD Sender: No OFD packet to send [21:30:56]OFD Sender: No OFD packet to send [21:31:01]OFD Sender: No OFD packet to send [21:31:06]OFD Sender: No OFD packet to send [21:31:11]OFD Sender: No OFD packet to send [21:31:16]OFD Sender: No OFD packet to send [21:31:21]OFD Sender: No OFD packet to send [21:31:26]OFD Sender: No OFD packet to send [21:31:31]OFD Sender: No OFD packet to send [21:31:36]OFD Sender: No OFD packet to send [21:31:41]OFD Sender: No OFD packet to send [21:31:46]OFD Sender: No OFD packet to send [21:31:46]ConnectInit Can't connect to host [21:31:51]OFD Sender: No OFD packet to send [21:31:56]OFD Sender: No OFD packet to send [21:32:01]OFD Sender: No OFD packet to send [21:32:06]OFD Sender: No OFD packet to send [21:32:11]OFD Sender: No OFD packet to send [21:32:16]OFD Sender: No OFD packet to send [21:32:21]OFD Sender: No OFD packet to send [21:32:26]OFD Sender: No OFD packet to send [21:32:31]OFD Sender: No OFD packet to send [21:32:36]OFD Sender: No OFD packet to send [21:32:41]OFD Sender: No OFD packet to send [21:32:46]OFD Sender: No OFD packet to send [21:32:51]OFD Sender: No OFD packet to send [21:32:56]OFD Sender: No OFD packet to send [21:33:01]OFD Sender: No OFD packet to send [21:33:06]OFD Sender: No OFD packet to send [21:33:11]OFD Sender: No OFD packet to send [21:33:16]OFD Sender: No OFD packet to send [21:33:21]OFD Sender: No OFD packet to send [21:33:26]OFD Sender: No OFD packet to send [21:33:31]OFD Sender: No OFD packet to send [21:33:36]OFD Sender: No OFD packet to send [21:33:41]OFD Sender: No OFD packet to send [21:33:46]OFD Sender: No OFD packet to send [21:33:51]OFD Sender: No OFD packet to send [21:33:56]OFD Sender: No OFD packet to send [21:34:01]OFD Sender: No OFD packet to send [21:34:04]ConnectInit Can't connect to host [21:34:06]OFD Sender: No OFD packet to send [21:34:11]OFD Sender: No OFD packet to send [21:34:16]OFD Sender: No OFD packet to send [21:34:21]OFD Sender: No OFD packet to send [21:34:26]OFD Sender: No OFD packet to send [21:34:31]OFD Sender: No OFD packet to send [21:34:36]OFD Sender: No OFD packet to send [21:34:41]OFD Sender: No OFD packet to send [21:34:46]OFD Sender: No OFD packet to send [21:34:51]OFD Sender: No OFD packet to send [21:34:56]OFD Sender: No OFD packet to send [21:35:01]OFD Sender: No OFD packet to send [21:35:05]accept exits with 9 [21:35:05]New connection [21:35:05]New thread 3066686820 created [21:35:05]Thread 3066543460 joined [21:35:05]Waiting for new connection... [21:35:05] Sock 9.Parse request [21:35:05]Sock 9.Check first char [21:35:05]Sock 9.First char is OK [21:35:05]request: POST /json_proto HTTP/1.0 [21:35:05]Method: POST [21:35:05]URL: /json_proto [21:35:05]Method is POST - this is cgi request [21:35:05]url: /json_proto [21:35:05]query_string will be loaded in cgi processing [21:35:05]execute_cgi json_proto POST (null) [21:35:05]execute_cgi path=json_proto method=POST [21:35:05]POST find Content-Length [21:35:05]Host: 172.17.36.132:8080 [21:35:05]Content-Length: 682 [21:35:05]Content-Type: application/json [21:35:05] [21:35:05]POST finish read [21:35:05]Found Content-Length = 682 [21:35:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706285", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:35:05]execute_script... [21:35: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)706285", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:35:05]POST & json_proto [21:35:05]process_json_proto [21:35:05]json parsed OK: [21:35:05]protocol is kg_v1.0 [21:35:05]action value=close_receipt [21:35:05]process_action close_receipt [21:35:05]cmd_close_receipt [21:35:05]MH_GetDate [21:35:05]Write to MH i2c: F0 00 00 E3 0D DF [21:35:05]Write i2c OK [21:35:05]MH_I2C_Read... [21:35:05]Read from MH i2c: F0 [21:35:05]MH_I2C_Read... [21:35:05]Read from MH i2c: F0 09 00 [21:35:05]MH_I2C_Read... [21:35:05]Read from MH i2c: F0 09 00 E3 0D 00 8A E5 5C 66 B2 22 B0 64 01 [21:35:05]GetLastDocTimeStamp 1717363171 [21:35:05]current date 1717364106 [21:35:05]FM_GetShiftState [21:35:05]SAM_PROTO_GetShiftState [21:35:05]wFMCommunicate request_size=4 [21:35:05]MH_SAM_APDU [21:35:05]CAPDU: 80 13 01 00 [21:35:05]Write to MH i2c: E2 08 00 E4 0D 80 13 01 00 00 00 00 00 6E [21:35:05]Write i2c OK [21:35:05]MH_I2C_Read... [21:35:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:35:05]Read from MH i2c: E2 [21:35:05]MH_I2C_Read... [21:35:05]Read from MH i2c: E2 0E 00 [21:35:05]MH_I2C_Read... [21:35:05]Read from MH i2c: E2 0E 00 E4 0D 00 09 00 01 A4 BB 5B 66 00 00 00 00 90 00 9A [21:35:05]RAPDU: 09 00 01 A4 BB 5B 66 00 00 00 00 90 00 [21:35:05]wFMCommunicate OK [21:35:05]SAM_PROTO_GetShiftState done [21:35:05]FM_GetShiftState done [21:35:05]opened in 1717287844 [21:35:05]opened+sec_in_day 1717374244 [21:35:05]quantity*price = 100064 [21:35:05]sum+1 = 100066 [21:35:05]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.65 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.26 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 229 02.06.2024 21:35 Смена: 322 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 ФМ: 0000000000965400 ФД: 68214 ФПД: 21986796370444 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240602T213506&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68214&fm=21986796370444&tin=02508201610067®Number=0000000000098096&sum=100000 [21:35:08]StoreToDocumentArchive [21:35:08]shift 322 fd 68214 [21:35:08]save to /storage/0322/doc_00068214 [21:35:08]save last doc name /storage/0322/doc_00068214 to /storage/kkm_last_doc_name [21:35:08]save OK [21:35:08]Clear old archive folders... [21:35:08]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:35:08]tlvbuf is 0042AE20 [21:35:08]SAM_PROTO_ClearQueue [21:35:08]wFMCommunicate request_size=4 [21:35:08]MH_SAM_APDU [21:35:08]CAPDU: 80 09 00 00 [21:35:08]Write to MH i2c: E2 08 00 F1 0D 80 09 00 00 00 00 00 00 70 [21:35:08]Write i2c OK [21:35:08]MH_I2C_Read... [21:35:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:35:08]Read from MH i2c: E2 [21:35:08]MH_I2C_Read... [21:35:08]Read from MH i2c: E2 03 00 [21:35:08]MH_I2C_Read... [21:35:08]Read from MH i2c: E2 03 00 F1 0D 00 90 00 72 [21:35:08]RAPDU: 90 00 [21:35:08]wFMCommunicate OK [21:35:08]SAM_PROTO_ClearQueue done [21:35:08]KKMCreateOFDPacket [21:35:08]OFDProtocolAddRootSTLVToBuf [21:35:08]FM_MakeSignedData [21:35:08]FM_MakeSignedData [21:35:08]SAM_PROTO_SignData [21:35:08]wFMCommunicate request_size=4 [21:35:08]MH_SAM_APDU [21:35:08]CAPDU: 80 0D 01 02 [21:35:08]Write to MH i2c: E2 08 00 F2 0D 80 0D 01 02 00 00 00 00 78 [21:35:08]Write i2c OK [21:35:08]MH_I2C_Read... [21:35:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:35:08]Read from MH i2c: E2 [21:35:08]MH_I2C_Read... [21:35:08]Read from MH i2c: E2 03 00 [21:35:08]MH_I2C_Read... [21:35:08]Read from MH i2c: E2 03 00 F2 0D 00 90 00 73 [21:35:08]RAPDU: 90 00 [21:35:08]wFMCommunicate OK [21:35:08]wFMCommunicate request_size=255 [21:35:08]MH_SAM_APDU [21:35: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 34 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E5 00 00 00 F4 03 04 00 8A E5 5C 66 0E 04 04 00 42 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 76 0A 01 00 35 04 06 00 13 [21:35:09]Write to MH i2c: E2 02 01 F3 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 34 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E5 00 00 00 F4 03 04 00 8A E5 5C 66 0E 04 04 00 42 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 76 0A 01 00 35 04 06 00 13 00 00 67 [21:35:10]Write i2c OK [21:35:10]MH_I2C_Read... [21:35:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:35:10]Read from MH i2c: E2 [21:35:10]MH_I2C_Read... [21:35:10]Read from MH i2c: E2 03 00 [21:35:10]MH_I2C_Read... [21:35:10]Read from MH i2c: E2 03 00 F3 0D 00 90 00 74 [21:35:10]RAPDU: 90 00 [21:35:10]wFMCommunicate OK [21:35:10]wFMCommunicate request_size=10 [21:35:10]MH_SAM_APDU [21:35:10]CAPDU: 80 0D 02 02 05 FF 33 2F FA 0C [21:35:10]Write to MH i2c: E2 0D 00 F4 0D 80 0D 02 02 05 00 FF 33 2F FA 0C 00 00 EC [21:35:10]Write i2c OK [21:35:10]MH_I2C_Read... [21:35:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:35:10]Read from MH i2c: E2 [21:35:10]MH_I2C_Read... [21:35:10]Read from MH i2c: E2 03 00 [21:35:10]MH_I2C_Read... [21:35:10]Read from MH i2c: E2 03 00 F4 0D 00 90 00 75 [21:35:10]RAPDU: 90 00 [21:35:10]wFMCommunicate OK [21:35:10]wFMCommunicate request_size=4 [21:35:10]MH_SAM_APDU [21:35:10]CAPDU: 80 0D 03 02 [21:35:10]Write to MH i2c: E2 08 00 F5 0D 80 0D 03 02 00 00 00 00 7D [21:35:10]Write i2c OK [21:35:10]MH_I2C_Read... [21:35:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:35:10]Read from MH i2c: E2 [21:35:10]MH_I2C_Read... [21:35:10]Read from MH i2c: E2 0B 00 [21:35:10]MH_I2C_Read... [21:35:10]Read from MH i2c: E2 0B 00 F5 0D 00 FB DC 12 6F 3E 5A 91 D7 90 00 D6 [21:35:10]RAPDU: FB DC 12 6F 3E 5A 91 D7 90 00 [21:35:10]wFMCommunicate OK [21:35:10]SAM_PROTO_SignData done [21:35:10]FM_MakeSignedData done [21:35:10]CreateOFDProtocolMessage [21:35:10]wFMCommunicate request_size=4 [21:35:10]MH_SAM_APDU [21:35:10]CAPDU: 80 11 00 00 [21:35:10]Write to MH i2c: E2 08 00 F6 0D 80 11 00 00 00 00 00 00 7D [21:35:10]Write i2c OK [21:35:10]MH_I2C_Read... [21:35:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:35:11]Read from MH i2c: E2 [21:35:11]MH_I2C_Read... [21:35:11]Read from MH i2c: E2 17 00 [21:35:11]MH_I2C_Read... [21:35:11]Read from MH i2c: E2 17 00 F6 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 C8 [21:35:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [21:35:11]wFMCommunicate OK [21:35:11]CreateOFDProtocolMessage done [21:35:11]OFDSenderStorePacket 68214 [21:35:11]StoreOFDPacket docnum=68214 [21:35:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 CE 8D 07 01 76 4C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E5 00 00 00 F4 03 04 00 8A E5 5C 66 0E 04 04 00 42 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 76 0A 01 00 35 04 06 00 13 FF 33 2F FA 0C FB DC 12 6F 3E 5A 91 D7 [21:35:11]CheckFolder [21:35:11]dirname=/storage/ofd_packets [21:35:11]CheckFolder done [21:35:11]ProducePacketName [21:35:11]name=ofd_packets/00068214 [21:35:11]NVStorageSaveData ofd_packets/00068214 [21:35:11]File name is /storage/ofd_packets/00068214 [21:35:11]Write 301 bytes [21:35:11]NVStorageSaveData done [21:35:11]OFDSenderStorePacket done [21:35:11]KKMCreateOFDPacket done [21:35:11]NVStorageSaveData kkm_last_timestamp [21:35:11]File name is /storage/kkm_last_timestamp [21:35:11]Write 4 bytes [21:35:11]NVStorageSaveData done [21:35:11]ExternCall_PrintAddStr [21:35:11]wPrintStart [21:35:11]Write to MH i2c: 01 00 00 F7 0D 04 [21:35:11]Write i2c OK [21:35:11]MH_I2C_Read... [21:35:11]Read from MH i2c: 01 [21:35:11]MH_I2C_Read... [21:35:11]Read from MH i2c: 01 07 00 [21:35:11]MH_I2C_Read... [21:35:11]Read from MH i2c: 01 07 00 F7 0D 00 00 00 00 00 FF 0F 19 [21:35:11]RasterBufferAndPrint [21:35:11]line Счет N : (1)706285 [21:35:11]line ИНН: 02508201610067 [21:35:11]line Контрольно-Кассовый Чек [21:35:11]line ПРОДАЖА [21:35:11]line ТРК (МРК, ГНК) : 42 [21:35:11]line Товар: 2710124130 [21:35:11]line Аи-92-К-4 [21:35:11]line 15.070 * 66.40 [21:35:11]line = 1000.65 [21:35:11]line НДС 12% НСП 1% [21:35:11]line > о реализуемом товаре [21:35:11]line ОКРУГЛЕНИЕ: -0.65 [21:35:11]line ИТОГО: 1000.00 [21:35:11]line Внесено: 1000.00 [21:35:11]line СДАЧА: 0.00 [21:35:11]line НСП 1% : 8.85 [21:35:11]line НДС 12% : 106.26 [21:35:11]line Наличными: 1000.00 [21:35:11]line Безнал.: 0.00 [21:35:11]line Место: АЗС № 62 "Партнер Нефть" [21:35:11]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [21:35:11]line СНО: Общий режим [21:35:11]line Чек 229 02.06.2024 21:35 [21:35:11]line Смена: 322 ФФД: 1.0 [21:35:11]line ЗНМ: 0300000181 [21:35:11]line РНМ: 0000000000098096 [21:35:11]line Версия ККМ: 001 [21:35:11]line ФМ: 0000000000965400 [21:35:11]line ФД: 68214 [21:35:11]line ФПД: 21986796370444 [21:35:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240602T213506&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68214&fm=21986796370444&tin=02508201610067®Number=0000000000098096&sum=100000 [21:35:11]OFD Sender: Processing packet 68214 [packets to send 26, broken 25] [21:35:11]ProducePacketName [21:35:11]written 0, free lines is 4095 [21:35:11]name=ofd_packets/00068214 [21:35:11]OFD Sender: To server: pG, [21:35:11]CommunicateWithHost lk.salyk.kg:30040 [21:35:11]ConnectInit lk.salyk.kg [21:35:11]Connected sock=11 [21:35:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 CE 8D 07 01 76 4C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 Write to MH i2c: 75 01 03 00 00 00 00 22 00 0E 00 30 EE [21:35:12]03 Write i2c OK [21:35:12]0F MH_I2C_Read... [21:35:12]00 F2 03 01 00 Read from MH i2c: 01 01 F3 03 06 00 82 [21:35:12]29 MH_I2C_Read... [21:35:12]00 00 00 00 07 04 Read from MH i2c: 06 01 00 07 A0 00 86 01 00 00 00 39 04 06 [21:35:12]00 MH_I2C_Read... [21:35:12]00 00 00 00 00 Read from MH i2c: 00 01 1F 07 04 00 02 22 00 0E 01 00 00 00 12 00 04 04 00 E5 00 00 00 00 00 F4 03 04 00 64 8A 0D E5 A8 5C [21:35:12]66 RasterBufferAndPrint [21:35:12]0E line [21:35:12]04 line [21:35:12]04 line [21:35:12]00 line [21:35:12]line [21:35:12]42 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 written 0, free lines is 3836 [21:35:12]30 30 30 30 30 30 30 MH_Cut [21:35:12]39 Write to MH i2c: 38 30 39 36 11 D1 04 01 10 00 29 0E 01 09 [21:35:12]00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 76 0A 01 00 35 04 06 00 13 FF 33 2F FA 0C FB DC 12 6F 3E 5A 91 D7 [21:35:12]Write i2c OK [21:35:12]*** Cut start [21:35:12]MH_I2C_Read... [21:35:12]*** Partial cut [21:35:12]*** CUTSNS_PIN = 1 [21:35:12]Read from MH i2c: D1 [21:35:12]MH_I2C_Read... [21:35:12]Read from MH i2c: D1 01 00 [21:35:12]MH_I2C_Read... [21:35:12]*** CUTSNS_PIN = 0 [21:35:12]Read from MH i2c: D1 01 00 29 0E 00 08 [21:35:12]Write to MH i2c: 01 00 00 2A 0E 38 [21:35:12]Write i2c OK [21:35:12]MH_I2C_Read... [21:35:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 *** Brake cut motor [21:35:13]4F 00 00 00 B8 23 47 00 79 42 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 76 *** Stop cut motor [21:35:13]0A 01 00 F4 *** Cut end [21:35:13]Read from MH i2c: 01 [21:35:13]MH_I2C_Read... [21:35:13]03 04 00 8E 8C 5C 66 B6 04 01 00 00 8F 85 B1 DF 63 5B 31 88 [21:35:13]CommunicateWithHost err = 0 [21:35:13]CheckOFDResponse [21:35:13]1017 (14) - 77093643461234 [21:35:13]1041 (16) - 0000000000965400 [21:35:13]1040 (4) - 68214 [21:35:13]1012 (4) - 02.06.2024 15:15 [21:35:13]1206 (1) - 0 [21:35:13]OFD Sender: Remove packet 68214 [21:35:13]ProducePacketName [21:35:13]name=ofd_packets/00068214 [21:35:13]NVStorageDeleteData [21:35:13]Read from MH i2c: 01 07 00 [21:35:13]MH_I2C_Read... [21:35:13]Read from MH i2c: 01 07 00 2A 0E 00 00 00 00 00 FF 0F 4D [21:35:13]process_action close_receipt done [21:35:13]requested_data is exist [21:35:13]produce_requested_data [21:35:13]requested_item fm.sn is exist - process it [21:35:13]wFMCommunicate request_size=4 [21:35:13]MH_SAM_APDU [21:35:13]CAPDU: 80 11 00 00 [21:35:13]Write to MH i2c: E2 08 00 2B 0E 80 11 00 00 00 00 00 00 B3 [21:35:13]Write i2c OK [21:35:13]MH_I2C_Read... [21:35:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:35:13]Read from MH i2c: E2 [21:35:13]MH_I2C_Read... [21:35:13]Read from MH i2c: E2 17 00 [21:35:13]MH_I2C_Read... [21:35:13]Read from MH i2c: E2 17 00 2B 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 FE [21:35:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [21:35:13]wFMCommunicate OK [21:35:13]requested_item fd.num is exist - process it [21:35:13]SAM_PROTO_GetFieldsCounters [21:35:13]wFMCommunicate request_size=4 [21:35:13]MH_SAM_APDU [21:35:13]CAPDU: 80 13 00 00 [21:35:13]Write to MH i2c: E2 08 00 2C 0E 80 13 00 00 00 00 00 00 B6 [21:35:13]Write i2c OK [21:35:13]MH_I2C_Read... [21:35:14]OFD Sender: No OFD packet to send [21:35:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:35:14]Read from MH i2c: E2 [21:35:14]MH_I2C_Read... [21:35:14]Read from MH i2c: E2 62 00 [21:35:14]MH_I2C_Read... [21:35:14]Read from MH i2c: E2 62 00 2C 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 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 76 0A 01 00 0E 04 04 00 42 01 00 00 12 04 04 00 E5 00 00 00 5E 04 04 00 E5 00 00 00 57 04 04 00 E6 00 00 00 19 04 04 00 00 00 00 00 90 00 49 [21:35: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 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 76 0A 01 00 0E 04 04 00 42 01 00 00 12 04 04 00 E5 00 00 00 5E 04 04 00 E5 00 00 00 57 04 04 00 E6 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:35:14]wFMCommunicate OK [21:35:14]SAM_PROTO_GetFieldsCounters done [21:35:14]requested_item shift.num is exist - process it [21:35:14]requested_item shift.opened is exist - process it [21:35:14]req_shift_opened [21:35:14]FM_GetShiftState [21:35:14]SAM_PROTO_GetShiftState [21:35:14]wFMCommunicate request_size=4 [21:35:14]MH_SAM_APDU [21:35:14]CAPDU: 80 13 01 00 [21:35:14]Write to MH i2c: E2 08 00 2D 0E 80 13 01 00 00 00 00 00 B8 [21:35:14]Write i2c OK [21:35:14]MH_I2C_Read... [21:35:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:35:14]Read from MH i2c: E2 [21:35:14]MH_I2C_Read... [21:35:14]Read from MH i2c: E2 0E 00 [21:35:14]MH_I2C_Read... [21:35:14]Read from MH i2c: E2 0E 00 2D 0E 00 09 00 01 A4 BB 5B 66 00 00 00 00 90 00 E4 [21:35:14]RAPDU: 09 00 01 A4 BB 5B 66 00 00 00 00 90 00 [21:35:14]wFMCommunicate OK [21:35:14]SAM_PROTO_GetShiftState done [21:35:14]FM_GetShiftState done [21:35:14]req_shift_opened done [21:35:14]requested_item shift.open_date is exist - process it [21:35:14]req_shift_open_date [21:35:14]req_shift_open_date done [21:35:14]produce_requested_data done [21:35:14]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68214,"shift.num":322,"shift.opened":1,"shift.open_date":1717287844} [21:35:14]process_action_free close_receipt [21:35:14]json_value_free [21:35:14]json_value_free done [21:35:14]process_json_proto returns [21:35:14]Send response to host [21:35:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68214,"shift.num":322,"shift.opened":1,"shift.open_date":1717287844}}} [21:35:14]free response buf [21:35:14]execute_script done [21:35:14]execute_script returns [21:35:14]free content buf [21:35:14]Sock 9.Close socket [21:35:14]Sock 9.Thread stoped [21:35:19]OFD Sender: No OFD packet to send [21:35:24]OFD Sender: No OFD packet to send [21:35:29]OFD Sender: No OFD packet to send [21:35:34]OFD Sender: No OFD packet to send [21:35:39]OFD Sender: No OFD packet to send [21:35:44]OFD Sender: No OFD packet to send [21:35:49]OFD Sender: No OFD packet to send [21:35:54]OFD Sender: No OFD packet to send [21:35:59]OFD Sender: No OFD packet to send [21:36:04]OFD Sender: No OFD packet to send [21:36:09]OFD Sender: No OFD packet to send [21:36:14]OFD Sender: No OFD packet to send [21:36:19]OFD Sender: No OFD packet to send [21:36:22]ConnectInit Can't connect to host [21:36:24]OFD Sender: No OFD packet to send [21:36:29]OFD Sender: No OFD packet to send [21:36:34]OFD Sender: No OFD packet to send [21:36:39]OFD Sender: No OFD packet to send [21:36:44]OFD Sender: No OFD packet to send [21:36:49]OFD Sender: No OFD packet to send [21:36:54]OFD Sender: No OFD packet to send [21:36:59]OFD Sender: No OFD packet to send [21:37:04]OFD Sender: No OFD packet to send [21:37:09]OFD Sender: No OFD packet to send [21:37:14]OFD Sender: No OFD packet to send [21:37:19]OFD Sender: No OFD packet to send [21:37:24]OFD Sender: No OFD packet to send [21:37:29]OFD Sender: No OFD packet to send [21:37:34]OFD Sender: No OFD packet to send [21:37:39]OFD Sender: No OFD packet to send [21:37:44]OFD Sender: No OFD packet to send [21:37:49]OFD Sender: No OFD packet to send [21:37:54]OFD Sender: No OFD packet to send [21:37:59]OFD Sender: No OFD packet to send [21:38:04]OFD Sender: No OFD packet to send [21:38:09]OFD Sender: No OFD packet to send [21:38:14]OFD Sender: No OFD packet to send [21:38:19]OFD Sender: No OFD packet to send [21:38:24]OFD Sender: No OFD packet to send [21:38:29]OFD Sender: No OFD packet to send [21:38:34]OFD Sender: No OFD packet to send [21:38:39]OFD Sender: No OFD packet to send [21:38:41]ConnectInit Can't connect to host [21:38:44]OFD Sender: No OFD packet to send [21:38:49]OFD Sender: No OFD packet to send [21:38:51]accept exits with 10 [21:38:51]New connection [21:38:51]New thread 3066543460 created [21:38:51]Thread 3066686820 joined [21:38:51]Waiting for new connection... [21:38:51] Sock 10.Parse request [21:38:51]Sock 10.Check first char [21:38:51]Sock 10.First char is OK [21:38:51]request: POST /json_proto HTTP/1.0 [21:38:51]Method: POST [21:38:51]URL: /json_proto [21:38:51]Method is POST - this is cgi request [21:38:51]url: /json_proto [21:38:51]query_string will be loaded in cgi processing [21:38:51]execute_cgi json_proto POST (null) [21:38:51]execute_cgi path=json_proto method=POST [21:38:51]POST find Content-Length [21:38:51]Host: 172.17.36.132:8080 [21:38:51]Content-Length: 677 [21:38:51]Content-Type: application/json [21:38:51] [21:38:51]POST finish read [21:38:51]Found Content-Length = 677 [21:38:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706286", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "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:38:51]execute_script... [21: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)706286", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "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:38:51]POST & json_proto [21:38:51]process_json_proto [21:38:51]json parsed OK: [21:38:51]protocol is kg_v1.0 [21:38:51]action value=close_receipt [21:38:51]process_action close_receipt [21:38:51]cmd_close_receipt [21:38:51]MH_GetDate [21:38:51]Write to MH i2c: F0 00 00 2E 0E 2B [21:38:51]Write i2c OK [21:38:51]MH_I2C_Read... [21:38:51]Read from MH i2c: F0 [21:38:51]MH_I2C_Read... [21:38:51]Read from MH i2c: F0 09 00 [21:38:51]MH_I2C_Read... [21:38:51]Read from MH i2c: F0 09 00 2E 0E 00 6D E6 5C 66 B2 22 B0 64 31 [21:38:51]GetLastDocTimeStamp 1717364106 [21:38:51]current date 1717364333 [21:38:51]FM_GetShiftState [21:38:51]SAM_PROTO_GetShiftState [21:38:51]wFMCommunicate request_size=4 [21:38:51]MH_SAM_APDU [21:38:51]CAPDU: 80 13 01 00 [21:38:51]Write to MH i2c: E2 08 00 2F 0E 80 13 01 00 00 00 00 00 BA [21:38:51]Write i2c OK [21:38:51]MH_I2C_Read... [21:38:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:38:51]Read from MH i2c: E2 [21:38:51]MH_I2C_Read... [21:38:51]Read from MH i2c: E2 0E 00 [21:38:51]MH_I2C_Read... [21:38:51]Read from MH i2c: E2 0E 00 2F 0E 00 09 00 01 A4 BB 5B 66 00 00 00 00 90 00 E6 [21:38:51]RAPDU: 09 00 01 A4 BB 5B 66 00 00 00 00 90 00 [21:38:51]wFMCommunicate OK [21:38:51]SAM_PROTO_GetShiftState done [21:38:51]FM_GetShiftState done [21:38:51]opened in 1717287844 [21:38:51]opened+sec_in_day 1717374244 [21:38:51]quantity*price = 50065 [21:38:51]sum+1 = 50067 [21:38:51]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.66 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.17 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 230 02.06.2024 21:38 Смена: 322 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 ФМ: 0000000000965400 ФД: 68215 ФПД: 16071654739160 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240602T213853&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68215&fm=16071654739160&tin=02508201610067®Number=0000000000098096&sum=50000 [21:38:55]StoreToDocumentArchive [21:38:55]shift 322 fd 68215 [21:38:55]save to /storage/0322/doc_00068215 [21:38:55]save last doc name /storage/0322/doc_00068215 to /storage/kkm_last_doc_name [21:38:55]save OK [21:38:55]Clear old archive folders... [21:38:55]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:38:55]tlvbuf is 0032FD90 [21:38:55]SAM_PROTO_ClearQueue [21:38:55]wFMCommunicate request_size=4 [21:38:55]MH_SAM_APDU [21:38:55]CAPDU: 80 09 00 00 [21:38:55]Write to MH i2c: E2 08 00 3C 0E 80 09 00 00 00 00 00 00 BC [21:38:55]Write i2c OK [21:38:55]MH_I2C_Read... [21:38:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:38:55]Read from MH i2c: E2 [21:38:55]MH_I2C_Read... [21:38:55]Read from MH i2c: E2 03 00 [21:38:55]MH_I2C_Read... [21:38:55]Read from MH i2c: E2 03 00 3C 0E 00 90 00 BE [21:38:55]RAPDU: 90 00 [21:38:55]wFMCommunicate OK [21:38:55]SAM_PROTO_ClearQueue done [21:38:55]KKMCreateOFDPacket [21:38:55]OFDProtocolAddRootSTLVToBuf [21:38:55]FM_MakeSignedData [21:38:55]FM_MakeSignedData [21:38:55]SAM_PROTO_SignData [21:38:55]wFMCommunicate request_size=4 [21:38:55]MH_SAM_APDU [21:38:55]CAPDU: 80 0D 01 02 [21:38:55]Write to MH i2c: E2 08 00 3D 0E 80 0D 01 02 00 00 00 00 C4 [21:38:55]Write i2c OK [21:38:55]MH_I2C_Read... [21:38:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:38:55]Read from MH i2c: E2 [21:38:55]MH_I2C_Read... [21:38:55]Read from MH i2c: E2 03 00 [21:38:55]MH_I2C_Read... [21:38:55]Read from MH i2c: E2 03 00 3D 0E 00 90 00 BF [21:38:55]RAPDU: 90 00 [21:38:55]wFMCommunicate OK [21:38:55]wFMCommunicate request_size=255 [21:38:55]MH_SAM_APDU [21:38:55]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E6 00 00 00 F4 03 04 00 6D E6 5C 66 0E 04 04 00 42 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 77 0A 01 00 35 04 06 00 0E [21:38:56]Write to MH i2c: E2 02 01 3E 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 34 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E6 00 00 00 F4 03 04 00 6D E6 5C 66 0E 04 04 00 42 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 77 0A 01 00 35 04 06 00 0E 00 00 44 [21:38:56]Write i2c OK [21:38:56]MH_I2C_Read... [21:38:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:38:57]Read from MH i2c: E2 [21:38:57]MH_I2C_Read... [21:38:57]Read from MH i2c: E2 03 00 [21:38:57]MH_I2C_Read... [21:38:57]Read from MH i2c: E2 03 00 3E 0E 00 90 00 C0 [21:38:57]RAPDU: 90 00 [21:38:57]wFMCommunicate OK [21:38:57]wFMCommunicate request_size=10 [21:38:57]MH_SAM_APDU [21:38:57]CAPDU: 80 0D 02 02 05 9D F9 45 8C D8 [21:38:57]Write to MH i2c: E2 0D 00 3F 0E 80 0D 02 02 05 00 9D F9 45 8C D8 00 00 10 [21:38:57]Write i2c OK [21:38:57]MH_I2C_Read... [21:38:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:38:57]Read from MH i2c: E2 [21:38:57]MH_I2C_Read... [21:38:57]Read from MH i2c: E2 03 00 [21:38:57]MH_I2C_Read... [21:38:57]Read from MH i2c: E2 03 00 3F 0E 00 90 00 C1 [21:38:57]RAPDU: 90 00 [21:38:57]wFMCommunicate OK [21:38:57]wFMCommunicate request_size=4 [21:38:57]MH_SAM_APDU [21:38:57]CAPDU: 80 0D 03 02 [21:38:57]Write to MH i2c: E2 08 00 40 0E 80 0D 03 02 00 00 00 00 C9 [21:38:57]Write i2c OK [21:38:57]MH_I2C_Read... [21:38:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:38:57]Read from MH i2c: E2 [21:38:57]MH_I2C_Read... [21:38:57]Read from MH i2c: E2 0B 00 [21:38:57]MH_I2C_Read... [21:38:57]Read from MH i2c: E2 0B 00 40 0E 00 5D 63 27 A0 86 A0 93 AA 90 00 B4 [21:38:57]RAPDU: 5D 63 27 A0 86 A0 93 AA 90 00 [21:38:57]wFMCommunicate OK [21:38:57]SAM_PROTO_SignData done [21:38:57]FM_MakeSignedData done [21:38:57]CreateOFDProtocolMessage [21:38:57]wFMCommunicate request_size=4 [21:38:57]MH_SAM_APDU [21:38:57]CAPDU: 80 11 00 00 [21:38:57]Write to MH i2c: E2 08 00 41 0E 80 11 00 00 00 00 00 00 C9 [21:38:57]Write i2c OK [21:38:57]MH_I2C_Read... [21:38:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:38:57]Read from MH i2c: E2 [21:38:57]MH_I2C_Read... [21:38:57]Read from MH i2c: E2 17 00 [21:38:57]MH_I2C_Read... [21:38:57]Read from MH i2c: E2 17 00 41 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 14 [21:38:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [21:38:57]wFMCommunicate OK [21:38:57]CreateOFDProtocolMessage done [21:38:57]OFDSenderStorePacket 68215 [21:38:57]StoreOFDPacket docnum=68215 [21:38:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 44 1F 07 01 EE 94 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E6 00 00 00 F4 03 04 00 6D E6 5C 66 0E 04 04 00 42 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 77 0A 01 00 35 04 06 00 0E 9D F9 45 8C D8 5D 63 27 A0 86 A0 93 AA [21:38:57]CheckFolder [21:38:57]dirname=/storage/ofd_packets [21:38:57]CheckFolder done [21:38:57]ProducePacketName [21:38:57]name=ofd_packets/00068215 [21:38:57]NVStorageSaveData ofd_packets/00068215 [21:38:57]File name is /storage/ofd_packets/00068215 [21:38:57]Write 301 bytes [21:38:57]NVStorageSaveData done [21:38:57]OFDSenderStorePacket done [21:38:57]KKMCreateOFDPacket done [21:38:57]NVStorageSaveData kkm_last_timestamp [21:38:57]File name is /storage/kkm_last_timestamp [21:38:57]Write 4 bytes [21:38:57]NVStorageSaveData done [21:38:57]ExternCall_PrintAddStr [21:38:57]wPrintStart [21:38:57]Write to MH i2c: 01 00 00 42 0E 50 [21:38:57]Write i2c OK [21:38:57]MH_I2C_Read... [21:38:57]Read from MH i2c: 01 [21:38:57]MH_I2C_Read... [21:38:57]Read from MH i2c: 01 07 00 [21:38:57]MH_I2C_Read... [21:38:57]Read from MH i2c: 01 07 00 42 0E 00 00 00 00 00 FF 0F 65 [21:38:58]RasterBufferAndPrint [21:38:58]line Счет N : (1)706286 [21:38:58]line ИНН: 02508201610067 [21:38:58]line Контрольно-Кассовый Чек [21:38:58]line ПРОДАЖА [21:38:58]line ТРК (МРК, ГНК) : 23 [21:38:58]line Товар: 2710124130 [21:38:58]line Аи-92-К-4 [21:38:58]OFD Sender: Processing packet 68215 [packets to send 26, broken 25] [21:38:58]line 7.540 * 66.40 [21:38:58]ProducePacketName [21:38:58]line = 500.66 [21:38:58]name=ofd_packets/00068215 [21:38:58]line НДС 12% НСП 1% [21:38:58]OFD Sender: To server: pG, [21:38:58]line > о реализуемом товаре [21:38:58]CommunicateWithHost lk.salyk.kg:30040 [21:38:58]line ОКРУГЛЕНИЕ: -0.66 [21:38:58]ConnectInit lk.salyk.kg [21:38:58]line ИТОГО: 500.00 [21:38:58]line Внесено: 500.00 [21:38:58]line СДАЧА: 0.00 [21:38:58]line НСП 1% : 4.43 [21:38:58]line НДС 12% : 53.17 [21:38:58]line Наличными: 500.00 [21:38:58]line Безнал.: 0.00 [21:38:58]line Место: АЗС № 62 "Партнер Нефть" [21:38:58]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [21:38:58]line СНО: Общий режим [21:38:58]line Чек 230 02.06.2024 21:38 [21:38:58]line Смена: 322 ФФД: 1.0 [21:38:58]line ЗНМ: 0300000181 [21:38:58]line РНМ: 0000000000098096 [21:38:58]line Версия ККМ: 001 [21:38:58]line ФМ: 0000000000965400 [21:38:58]line ФД: 68215 [21:38:58]line ФПД: 16071654739160 [21:38:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240602T213853&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68215&fm=16071654739160&tin=02508201610067®Number=0000000000098096&sum=50000 [21:38:58]written 0, free lines is 4095 [21:38:58]Connected sock=11 [21:38:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 44 1F 07 01 EE 94 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 Write to MH i2c: E6 01 00 00 00 F4 03 04 00 00 00 6D E6 5C 66 0E 6D 04 0E 04 00 42 01 00 7B 00 [21:38:58]B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 Write i2c OK [21:38:59]04 MH_I2C_Read... [21:38:59]10 00 30 30 30 Read from MH i2c: 30 01 30 [21:38:59]30 MH_I2C_Read... [21:38:59]30 30 30 30 39 Read from MH i2c: 36 01 35 07 34 00 30 [21:38:59]30 MH_I2C_Read... [21:38:59]10 04 04 00 77 0A Read from MH i2c: 01 01 00 07 35 00 04 06 00 0E 9D 6D F9 0E 45 00 8C 00 D8 00 5D 00 63 00 27 4A A0 0E 86 DA A0 [21:38:59]93 RasterBufferAndPrint [21:38:59]AA line [21:38:59] [21:38:59]line [21:38:59]line [21:38:59]line [21:38:59]line [21:38:59]written 0, free lines is 4089 [21:38:59]MH_Cut [21:38:59]Write to MH i2c: D1 01 00 74 0E 01 54 [21:38:59]Write i2c OK [21:38:59]MH_I2C_Read... [21:38:59]Read from MH i2c: D1 [21:38:59]MH_I2C_Read... [21:38:59]Read from MH i2c: D1 01 00 [21:38:59]MH_I2C_Read... [21:38:59]Read from MH i2c: D1 01 00 74 0E 00 53 [21:38:59]Write to MH i2c: 01 00 00 75 0E 83 [21:38:59]Write i2c OK [21:38:59]MH_I2C_Read... [21:38:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 09 61 47 00 *** Cut start [21:38:59]1C *** Partial cut [21:38:59]B7 *** CUTSNS_PIN = 1 [21:38:59]A5 *** CUTSNS_PIN = 0 [21:38:59]07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 *** Brake cut motor [21:38:59]39 36 35 34 30 30 10 04 04 00 77 0A 01 00 F4 03 04 00 70 8D 5C 66 B6 04 01 00 00 3A 94 48 D3 74 D1 CA 88 [21:38:59]CommunicateWithHost err = 0 [21:38:59]CheckOFDResponse [21:38:59]1017 (14) - 77093643461234 [21:39:00]1041 (16) - 0000000000965400 [21:39:00]1040 (4) - 68215 [21:39:00]1012 (4) - 02.06.2024 15:19 [21:39:00]1206 (1) - 0 [21:39:00]OFD Sender: Remove packet 68215 [21:39:00]ProducePacketName [21:39:00]name=ofd_packets/00068215 [21:39:00]NVStorageDeleteData [21:39:00]Read from MH i2c: *** Stop cut motor [21:39:00]01 [21:39:00]MH_I2C_Read... [21:39:00]Read from MH i2c: 01 *** Cut end [21:39:00]07 00 [21:39:00]MH_I2C_Read... [21:39:00]Read from MH i2c: 01 07 00 75 0E 00 00 00 00 00 FF 0F 98 [21:39:00]process_action close_receipt done [21:39:00]requested_data is exist [21:39:00]produce_requested_data [21:39:00]requested_item fm.sn is exist - process it [21:39:00]wFMCommunicate request_size=4 [21:39:00]MH_SAM_APDU [21:39:00]CAPDU: 80 11 00 00 [21:39:00]Write to MH i2c: E2 08 00 76 0E 80 11 00 00 00 00 00 00 FE [21:39:00]Write i2c OK [21:39:00]MH_I2C_Read... [21:39:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:39:00]Read from MH i2c: E2 [21:39:00]MH_I2C_Read... [21:39:00]Read from MH i2c: E2 17 00 [21:39:00]MH_I2C_Read... [21:39:00]Read from MH i2c: E2 17 00 76 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 49 [21:39:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [21:39:00]wFMCommunicate OK [21:39:00]requested_item fd.num is exist - process it [21:39:00]SAM_PROTO_GetFieldsCounters [21:39:00]wFMCommunicate request_size=4 [21:39:00]MH_SAM_APDU [21:39:00]CAPDU: OFD Sender: No OFD packet to send [21:39:00]80 13 00 00 [21:39:00]Write to MH i2c: E2 08 00 77 0E 80 13 00 00 00 00 00 00 01 [21:39:00]Write i2c OK [21:39:00]MH_I2C_Read... [21:39:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:39:00]Read from MH i2c: E2 [21:39:00]MH_I2C_Read... [21:39:00]Read from MH i2c: E2 62 00 [21:39:00]MH_I2C_Read... [21:39:00]Read from MH i2c: E2 62 00 77 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 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 77 0A 01 00 0E 04 04 00 42 01 00 00 12 04 04 00 E6 00 00 00 5E 04 04 00 E6 00 00 00 57 04 04 00 E7 00 00 00 19 04 04 00 00 00 00 00 90 00 98 [21:39: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 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 77 0A 01 00 0E 04 04 00 42 01 00 00 12 04 04 00 E6 00 00 00 5E 04 04 00 E6 00 00 00 57 04 04 00 E7 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:39:01]wFMCommunicate OK [21:39:01]SAM_PROTO_GetFieldsCounters done [21:39:01]requested_item shift.num is exist - process it [21:39:01]requested_item shift.opened is exist - process it [21:39:01]req_shift_opened [21:39:01]FM_GetShiftState [21:39:01]SAM_PROTO_GetShiftState [21:39:01]wFMCommunicate request_size=4 [21:39:01]MH_SAM_APDU [21:39:01]CAPDU: 80 13 01 00 [21:39:01]Write to MH i2c: E2 08 00 78 0E 80 13 01 00 00 00 00 00 03 [21:39:01]Write i2c OK [21:39:01]MH_I2C_Read... [21:39:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:39:01]Read from MH i2c: E2 [21:39:01]MH_I2C_Read... [21:39:01]Read from MH i2c: E2 0E 00 [21:39:01]MH_I2C_Read... [21:39:01]Read from MH i2c: E2 0E 00 78 0E 00 09 00 01 A4 BB 5B 66 00 00 00 00 90 00 2F [21:39:01]RAPDU: 09 00 01 A4 BB 5B 66 00 00 00 00 90 00 [21:39:01]wFMCommunicate OK [21:39:01]SAM_PROTO_GetShiftState done [21:39:01]FM_GetShiftState done [21:39:01]req_shift_opened done [21:39:01]requested_item shift.open_date is exist - process it [21:39:01]req_shift_open_date [21:39:01]req_shift_open_date done [21:39:01]produce_requested_data done [21:39:01]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68215,"shift.num":322,"shift.opened":1,"shift.open_date":1717287844} [21:39:01]process_action_free close_receipt [21:39:01]json_value_free [21:39:01]json_value_free done [21:39:01]process_json_proto returns [21:39:01]Send response to host [21:39:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68215,"shift.num":322,"shift.opened":1,"shift.open_date":1717287844}}} [21:39:01]free response buf [21:39:01]execute_script done [21:39:01]execute_script returns [21:39:01]free content buf [21:39:01]Sock 10.Close socket [21:39:01]Sock 10.Thread stoped [21:39:05]OFD Sender: No OFD packet to send [21:39:10]OFD Sender: No OFD packet to send [21:39:15]OFD Sender: No OFD packet to send [21:39:20]OFD Sender: No OFD packet to send [21:39:25]OFD Sender: No OFD packet to send [21:39:30]OFD Sender: No OFD packet to send [21:39:35]OFD Sender: No OFD packet to send [21:39:40]OFD Sender: No OFD packet to send [21:39:45]OFD Sender: No OFD packet to send [21:39:50]OFD Sender: No OFD packet to send [21:39:55]OFD Sender: No OFD packet to send [21:40:00]OFD Sender: No OFD packet to send [21:40:05]OFD Sender: No OFD packet to send [21:40:10]OFD Sender: No OFD packet to send [21:40:15]OFD Sender: No OFD packet to send [21:40:20]OFD Sender: No OFD packet to send [21:40:25]OFD Sender: No OFD packet to send [21:40:30]OFD Sender: No OFD packet to send [21:40:35]OFD Sender: No OFD packet to send [21:40:40]OFD Sender: No OFD packet to send [21:40:45]OFD Sender: No OFD packet to send [21:40:48]accept exits with 9 [21:40:48]New connection [21:40:48]New thread 3066686820 created [21:40:48]Thread 3066543460 joined [21:40:48]Waiting for new connection... [21:40:48] Sock 9.Parse request [21:40:48]Sock 9.Check first char [21:40:48]Sock 9.First char is OK [21:40:48]request: POST /json_proto HTTP/1.0 [21:40:48]Method: POST [21:40:48]URL: /json_proto [21:40:48]Method is POST - this is cgi request [21:40:48]url: /json_proto [21:40:48]query_string will be loaded in cgi processing [21:40:48]execute_cgi json_proto POST (null) [21:40:48]execute_cgi path=json_proto method=POST [21:40:48]POST find Content-Length [21:40:48]Host: 172.17.36.132:8080 [21:40:48]Content-Length: 640 [21:40:48]Content-Type: application/json [21:40:48] [21:40:48]POST finish read [21:40:48]Found Content-Length = 640 [21:40:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706287", "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" : 73.40, "quantity" : 10.000, "sum" : 734.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 734.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:40:48]execute_script... [21:40: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)706287", "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" : 73.40, "quantity" : 10.000, "sum" : 734.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 734.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:40:48]POST & json_proto [21:40:48]process_json_proto [21:40:48]json parsed OK: [21:40:48]protocol is kg_v1.0 [21:40:48]action value=close_receipt [21:40:48]process_action close_receipt [21:40:48]cmd_close_receipt [21:40:48]MH_GetDate [21:40:48]Write to MH i2c: F0 00 00 79 0E 76 [21:40:48]Write i2c OK [21:40:48]MH_I2C_Read... [21:40:48]Read from MH i2c: F0 [21:40:48]MH_I2C_Read... [21:40:48]Read from MH i2c: F0 09 00 [21:40:48]MH_I2C_Read... [21:40:48]Read from MH i2c: F0 09 00 79 0E 00 E2 E6 5C 66 B2 22 B0 64 F1 [21:40:48]GetLastDocTimeStamp 1717364333 [21:40:48]current date 1717364450 [21:40:48]FM_GetShiftState [21:40:48]SAM_PROTO_GetShiftState [21:40:48]wFMCommunicate request_size=4 [21:40:48]MH_SAM_APDU [21:40:48]CAPDU: 80 13 01 00 [21:40:48]Write to MH i2c: E2 08 00 7A 0E 80 13 01 00 00 00 00 00 05 [21:40:48]Write i2c OK [21:40:48]MH_I2C_Read... [21:40:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:40:49]Read from MH i2c: E2 [21:40:49]MH_I2C_Read... [21:40:49]Read from MH i2c: E2 0E 00 [21:40:49]MH_I2C_Read... [21:40:49]Read from MH i2c: E2 0E 00 7A 0E 00 09 00 01 A4 BB 5B 66 00 00 00 00 90 00 31 [21:40:49]RAPDU: 09 00 01 A4 BB 5B 66 00 00 00 00 90 00 [21:40:49]wFMCommunicate OK [21:40:49]SAM_PROTO_GetShiftState done [21:40:49]FM_GetShiftState done [21:40:49]opened in 1717287844 [21:40:49]opened+sec_in_day 1717374244 [21:40:49]quantity*price = 73400 [21:40:49]sum+1 = 73401 [21:40:49]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 734.00 НСП 1% : 6.50 НДС 12% : 77.95 Наличными: 734.00 Безнал.: 0.00 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 231 02.06.2024 21:40 Смена: 322 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 ФМ: 0000000000965400 ФД: 68216 ФПД: 80231226861866 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240602T214050&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68216&fm=80231226861866&tin=02508201610067®Number=0000000000098096&sum=73400 [21:40:52]StoreToDocumentArchive [21:40:52]shift 322 fd 68216 [21:40:52]save to /storage/0322/doc_00068216 [21:40:52]save last doc name /storage/0322/doc_00068216 to /storage/kkm_last_doc_name [21:40:52]save OK [21:40:52]Clear old archive folders... [21:40:52]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:40:52]tlvbuf is 003ED620 [21:40:52]SAM_PROTO_ClearQueue [21:40:52]wFMCommunicate request_size=4 [21:40:52]MH_SAM_APDU [21:40:52]CAPDU: 80 09 00 00 [21:40:52]Write to MH i2c: E2 08 00 87 0E 80 09 00 00 00 00 00 00 07 [21:40:52]Write i2c OK [21:40:52]MH_I2C_Read... [21:40:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:40:52]Read from MH i2c: E2 [21:40:52]MH_I2C_Read... [21:40:52]Read from MH i2c: E2 03 00 [21:40:52]MH_I2C_Read... [21:40:52]Read from MH i2c: E2 03 00 87 0E 00 90 00 09 [21:40:52]RAPDU: 90 00 [21:40:52]wFMCommunicate OK [21:40:52]SAM_PROTO_ClearQueue done [21:40:52]KKMCreateOFDPacket [21:40:52]OFDProtocolAddRootSTLVToBuf [21:40:52]FM_MakeSignedData [21:40:52]FM_MakeSignedData [21:40:52]SAM_PROTO_SignData [21:40:52]wFMCommunicate request_size=4 [21:40:52]MH_SAM_APDU [21:40:52]CAPDU: 80 0D 01 02 [21:40:52]Write to MH i2c: E2 08 00 88 0E 80 0D 01 02 00 00 00 00 0F [21:40:52]Write i2c OK [21:40:52]MH_I2C_Read... [21:40:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:40:53]Read from MH i2c: E2 [21:40:53]MH_I2C_Read... [21:40:53]Read from MH i2c: E2 03 00 [21:40:53]MH_I2C_Read... [21:40:53]Read from MH i2c: E2 03 00 88 0E 00 90 00 0A [21:40:53]RAPDU: 90 00 [21:40:53]wFMCommunicate OK [21:40:53]wFMCommunicate request_size=255 [21:40:53]MH_SAM_APDU [21:40: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 10 27 00 00 00 00 00 37 04 06 00 AC 1C 00 00 00 00 13 04 06 00 B8 1E 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 1E 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8A 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 1E 00 00 00 00 07 04 06 00 B8 1E 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E7 00 00 00 F4 03 04 00 E2 E6 5C 66 0E 04 04 00 42 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 78 0A 01 00 35 04 06 00 48 [21:40:53]Write to MH i2c: E2 02 01 89 0E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 AC 1C 00 00 00 00 13 04 06 00 B8 1E 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 1E 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8A 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 1E 00 00 00 00 07 04 06 00 B8 1E 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E7 00 00 00 F4 03 04 00 E2 E6 5C 66 0E 04 04 00 42 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 78 0A 01 00 35 04 06 00 48 00 00 3C [21:40:54]Write i2c OK [21:40:54]MH_I2C_Read... [21:40:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:40:54]Read from MH i2c: E2 [21:40:54]MH_I2C_Read... [21:40:54]Read from MH i2c: E2 03 00 [21:40:54]MH_I2C_Read... [21:40:54]Read from MH i2c: E2 03 00 89 0E 00 90 00 0B [21:40:54]RAPDU: 90 00 [21:40:54]wFMCommunicate OK [21:40:54]wFMCommunicate request_size=10 [21:40:54]MH_SAM_APDU [21:40:54]CAPDU: 80 0D 02 02 05 F8 49 C6 E9 2A [21:40:54]Write to MH i2c: E2 0D 00 8A 0E 80 0D 02 02 05 00 F8 49 C6 E9 2A 00 00 36 [21:40:54]Write i2c OK [21:40:54]MH_I2C_Read... [21:40:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:40:54]Read from MH i2c: E2 [21:40:54]MH_I2C_Read... [21:40:54]Read from MH i2c: E2 03 00 [21:40:54]MH_I2C_Read... [21:40:54]Read from MH i2c: E2 03 00 8A 0E 00 90 00 0C [21:40:54]RAPDU: 90 00 [21:40:54]wFMCommunicate OK [21:40:54]wFMCommunicate request_size=4 [21:40:54]MH_SAM_APDU [21:40:54]CAPDU: 80 0D 03 02 [21:40:54]Write to MH i2c: E2 08 00 8B 0E 80 0D 03 02 00 00 00 00 14 [21:40:55]Write i2c OK [21:40:55]MH_I2C_Read... [21:40:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:40:55]Read from MH i2c: E2 [21:40:55]MH_I2C_Read... [21:40:55]Read from MH i2c: E2 0B 00 [21:40:55]MH_I2C_Read... [21:40:55]Read from MH i2c: E2 0B 00 8B 0E 00 44 C6 3B D1 F8 FE 3F 1E 90 00 7E [21:40:55]RAPDU: 44 C6 3B D1 F8 FE 3F 1E 90 00 [21:40:55]wFMCommunicate OK [21:40:55]SAM_PROTO_SignData done [21:40:55]FM_MakeSignedData done [21:40:55]CreateOFDProtocolMessage [21:40:55]wFMCommunicate request_size=4 [21:40:55]MH_SAM_APDU [21:40:55]CAPDU: 80 11 00 00 [21:40:55]Write to MH i2c: E2 08 00 8C 0E 80 11 00 00 00 00 00 00 14 [21:40:55]Write i2c OK [21:40:55]MH_I2C_Read... [21:40:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:40:55]Read from MH i2c: E2 [21:40:55]MH_I2C_Read... [21:40:55]Read from MH i2c: E2 17 00 [21:40:55]MH_I2C_Read... [21:40:55]Read from MH i2c: E2 17 00 8C 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 5F [21:40:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [21:40:55]wFMCommunicate OK [21:40:55]CreateOFDProtocolMessage done [21:40:55]OFDSenderStorePacket 68216 [21:40:55]StoreOFDPacket docnum=68216 [21:40:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 5D E2 07 01 B2 E1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 AC 1C 00 00 00 00 13 04 06 00 B8 1E 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 1E 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8A 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 1E 00 00 00 00 07 04 06 00 B8 1E 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E7 00 00 00 F4 03 04 00 E2 E6 5C 66 0E 04 04 00 42 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 78 0A 01 00 35 04 06 00 48 F8 49 C6 E9 2A 44 C6 3B D1 F8 FE 3F 1E [21:40:55]CheckFolder [21:40:55]dirname=/storage/ofd_packets [21:40:55]CheckFolder done [21:40:55]ProducePacketName [21:40:55]name=ofd_packets/00068216 [21:40:55]NVStorageSaveData ofd_packets/00068216 [21:40:55]File name is /storage/ofd_packets/00068216 [21:40:55]Write 301 bytes [21:40:55]NVStorageSaveData done [21:40:55]OFDSenderStorePacket done [21:40:55]KKMCreateOFDPacket done [21:40:55]NVStorageSaveData kkm_last_timestamp [21:40:55]File name is /storage/kkm_last_timestamp [21:40:55]Write 4 bytes [21:40:55]NVStorageSaveData done [21:40:55]ExternCall_PrintAddStr [21:40:55]wPrintStart [21:40:55]Write to MH i2c: 01 00 00 8D 0E 9B [21:40:55]Write i2c OK [21:40:55]MH_I2C_Read... [21:40:55]Read from MH i2c: 01 [21:40:55]MH_I2C_Read... [21:40:55]Read from MH i2c: 01 07 00 [21:40:55]MH_I2C_Read... [21:40:55]Read from MH i2c: 01 07 00 8D 0E 00 00 00 00 00 FF 0F B0 [21:40:55]RasterBufferAndPrint [21:40:55]line Счет N : (1)706287 [21:40:55]line ИНН: 02508201610067 [21:40:55]line Контрольно-Кассовый Чек [21:40:55]line ПРОДАЖА [21:40:55]line ТРК (МРК, ГНК) : 43 [21:40:55]line Товар: 2710124500 [21:40:55]line Аи-95-К-5 [21:40:55]line 10.000 * 73.40 [21:40:55]line = 734.00 [21:40:55]line НДС 12% НСП 1% [21:40:55]line > о реализуемом товаре [21:40:55]OFD Sender: Processing packet 68216 [packets to send 26, broken 25] [21:40:55]line ИТОГО: 734.00 [21:40:55]ProducePacketName [21:40:55]line НСП 1% : 6.50 [21:40:55]line НДС 12% : 77.95 [21:40:55]line Наличными: 734.00 [21:40:55]line Безнал.: 0.00 [21:40:55]name=ofd_packets/00068216 [21:40:55]line Место: АЗС № 62 "Партнер Нефть" [21:40:55]OFD Sender: To server: pG, [21:40:55]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [21:40:55]line СНО: Общий режим [21:40:55]line Чек 231 02.06.2024 21:40 [21:40:55]line Смена: 322 ФФД: 1.0 [21:40:55]line ЗНМ: 0300000181 [21:40:55]CommunicateWithHost lk.salyk.kg:30040 [21:40:55]line РНМ: 0000000000098096 [21:40:55]ConnectInit lk.salyk.kg [21:40:55]line Версия ККМ: 001 [21:40:55]line ФМ: 0000000000965400 [21:40:55]line ФД: 68216 [21:40:55]line ФПД: 80231226861866 [21:40:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240602T214050&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68216&fm=80231226861866&tin=02508201610067®Number=0000000000098096&sum=73400 [21:40:55]written 0, free lines is 4095 [21:40:55]Connected sock=11 [21:40:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 5D E2 07 01 B2 E1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 AC 1C 00 00 00 00 13 04 06 00 B8 1E 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 Write to MH i2c: BC 01 04 01 00 01 FC 00 03 00 06 00 B8 1E 01 B5 0E 00 C3 00 [21:40:56]00 Write i2c OK [21:40:56]EB MH_I2C_Read... [21:40:56]03 26 00 EF 03 Read from MH i2c: 0F 01 00 F6 03 01 00 [21:40:56]01 MH_I2C_Read... [21:40:56]F7 03 06 00 8A Read from MH i2c: 02 01 00 00 00 00 07 EE 00 03 0F 00 F2 03 [21:40:56]01 MH_I2C_Read... [21:40:56]00 01 F3 03 06 Read from MH i2c: 00 01 73 07 1E 00 B5 0E 00 00 00 00 00 00 00 CD 0D A4 00 [21:40:56]00 RasterBufferAndPrint [21:40:56]line [21:40:56]line [21:40:56]line [21:40:56]line [21:40:56]07 line [21:40:56]04 06 00 B8 1E 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E7 00 00 00 written 0, free lines is 3797 [21:40:56]F4 03 04 00 MH_Cut [21:40:56]E2 Write to MH i2c: E6 D1 5C 66 0E 04 04 01 00 00 42 01 00 00 B9 BC 04 0E 01 00 01 0D 04 01 10 9C 00 30 30 30 [21:40:56]30 30 30 Write i2c OK [21:40:56]30 MH_I2C_Read... [21:40:56]30 30 30 30 39 Read from MH i2c: 38 D1 30 39 36 11 04 [21:40:56]10 MH_I2C_Read... [21:40:56]00 Read from MH i2c: 30 D1 30 01 30 00 30 [21:40:56]30 MH_I2C_Read... [21:40:56]30 Read from MH i2c: 30 D1 30 30 01 30 00 *** Cut start [21:40:56]*** Partial cut [21:40:56]*** CUTSNS_PIN = 1 [21:40:56]39 36 BC 35 0E 34 30 30 10 04 04 00 78 0A 01 00 35 04 06 00 48 00 *** CUTSNS_PIN = 0 [21:40:57]9B F8 49 C6 E9 2A [21:40:57]44 Write to MH i2c: C6 3B D1 F8 FE 01 3F 00 1E [21:40:57]00 BD 0E CB [21:40:57]Write i2c OK [21:40:57]MH_I2C_Read... [21:40:57]*** Brake cut motor [21:40:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 A1 87 47 00 B1 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 *** Stop cut motor [21:40:57]39 *** Cut end [21:40:57]36 35 34 30 30 10 04 04 00 78 0A 01 00 F4 03 04 00 E6 8D 5C 66 B6 04 01 00 00 10 C6 96 A8 67 1A B2 AE [21:40:57]CommunicateWithHost err = 0 [21:40:57]CheckOFDResponse [21:40:57]1017 (14) - 77093643461234 [21:40:57]1041 (16) - 0000000000965400 [21:40:57]1040 (4) - 68216 [21:40:57]1012 (4) - 02.06.2024 15:21 [21:40:57]1206 (1) - 0 [21:40:57]OFD Sender: Remove packet 68216 [21:40:57]ProducePacketName [21:40:57]name=ofd_packets/00068216 [21:40:57]NVStorageDeleteData [21:40:57]Read from MH i2c: 01 [21:40:57]MH_I2C_Read... [21:40:57]Read from MH i2c: 01 07 00 [21:40:57]MH_I2C_Read... [21:40:57]Read from MH i2c: 01 07 00 BD 0E 00 00 00 00 00 FF 0F E0 [21:40:57]process_action close_receipt done [21:40:57]requested_data is exist [21:40:57]produce_requested_data [21:40:57]requested_item fm.sn is exist - process it [21:40:57]wFMCommunicate request_size=4 [21:40:57]MH_SAM_APDU [21:40:57]CAPDU: 80 11 00 00 [21:40:57]Write to MH i2c: E2 08 00 BE 0E 80 11 00 00 00 00 00 00 46 [21:40:57]Write i2c OK [21:40:57]MH_I2C_Read... [21:40:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:40:58]Read from MH i2c: E2 [21:40:58]MH_I2C_Read... [21:40:58]Read from MH i2c: E2 17 00 [21:40:58]MH_I2C_Read... [21:40:58]Read from MH i2c: E2 17 00 BE 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 91 [21:40:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [21:40:58]wFMCommunicate OK [21:40:58]requested_item fd.num is exist - process it [21:40:58]SAM_PROTO_GetFieldsCounters [21:40:58]wFMCommunicate request_size=4 [21:40:58]MH_SAM_APDU [21:40:58]CAPDU: 80 13 00 00 [21:40:58]Write to MH i2c: E2 08 00 BF 0E 80 13 00 00 00 00 00 00 49 [21:40:58]Write i2c OK [21:40:58]MH_I2C_Read... [21:40:58]OFD Sender: No OFD packet to send [21:40:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:40:58]Read from MH i2c: E2 [21:40:58]MH_I2C_Read... [21:40:58]Read from MH i2c: E2 62 00 [21:40:58]MH_I2C_Read... [21:40:58]Read from MH i2c: E2 62 00 BF 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 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 78 0A 01 00 0E 04 04 00 42 01 00 00 12 04 04 00 E7 00 00 00 5E 04 04 00 E7 00 00 00 57 04 04 00 E8 00 00 00 19 04 04 00 00 00 00 00 90 00 E4 [21:40: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 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 78 0A 01 00 0E 04 04 00 42 01 00 00 12 04 04 00 E7 00 00 00 5E 04 04 00 E7 00 00 00 57 04 04 00 E8 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:40:58]wFMCommunicate OK [21:40:58]SAM_PROTO_GetFieldsCounters done [21:40:58]requested_item shift.num is exist - process it [21:40:58]requested_item shift.opened is exist - process it [21:40:58]req_shift_opened [21:40:58]FM_GetShiftState [21:40:58]SAM_PROTO_GetShiftState [21:40:58]wFMCommunicate request_size=4 [21:40:58]MH_SAM_APDU [21:40:58]CAPDU: 80 13 01 00 [21:40:58]Write to MH i2c: E2 08 00 C0 0E 80 13 01 00 00 00 00 00 4B [21:40:59]Write i2c OK [21:40:59]MH_I2C_Read... [21:40:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:40:59]Read from MH i2c: E2 [21:40:59]MH_I2C_Read... [21:40:59]Read from MH i2c: E2 0E 00 [21:40:59]MH_I2C_Read... [21:40:59]Read from MH i2c: E2 0E 00 C0 0E 00 09 00 01 A4 BB 5B 66 00 00 00 00 90 00 77 [21:40:59]RAPDU: 09 00 01 A4 BB 5B 66 00 00 00 00 90 00 [21:40:59]wFMCommunicate OK [21:40:59]SAM_PROTO_GetShiftState done [21:40:59]FM_GetShiftState done [21:40:59]req_shift_opened done [21:40:59]requested_item shift.open_date is exist - process it [21:40:59]req_shift_open_date [21:40:59]req_shift_open_date done [21:40:59]produce_requested_data done [21:40:59]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68216,"shift.num":322,"shift.opened":1,"shift.open_date":1717287844} [21:40:59]process_action_free close_receipt [21:40:59]json_value_free [21:40:59]json_value_free done [21:40:59]process_json_proto returns [21:40:59]Send response to host [21:40:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68216,"shift.num":322,"shift.opened":1,"shift.open_date":1717287844}}} [21:40:59]free response buf [21:40:59]execute_script done [21:40:59]execute_script returns [21:40:59]free content buf [21:40:59]Sock 9.Close socket [21:40:59]Sock 9.Thread stoped [21:40:59]ConnectInit Can't connect to host [21:41:03]OFD Sender: No OFD packet to send [21:41:08]OFD Sender: No OFD packet to send [21:41:13]OFD Sender: No OFD packet to send [21:41:18]OFD Sender: No OFD packet to send [21:41:23]OFD Sender: No OFD packet to send [21:41:28]OFD Sender: No OFD packet to send [21:41:33]OFD Sender: No OFD packet to send [21:41:38]OFD Sender: No OFD packet to send [21:41:43]OFD Sender: No OFD packet to send [21:41:48]OFD Sender: No OFD packet to send [21:41:53]OFD Sender: No OFD packet to send [21:41:58]OFD Sender: No OFD packet to send [21:42:03]OFD Sender: No OFD packet to send [21:42:08]OFD Sender: No OFD packet to send [21:42:13]OFD Sender: No OFD packet to send [21:42:18]OFD Sender: No OFD packet to send [21:42:23]OFD Sender: No OFD packet to send [21:42:28]OFD Sender: No OFD packet to send [21:42:33]OFD Sender: No OFD packet to send [21:42:38]OFD Sender: No OFD packet to send [21:42:43]OFD Sender: No OFD packet to send [21:42:48]OFD Sender: No OFD packet to send [21:42:53]OFD Sender: No OFD packet to send [21:42:58]OFD Sender: No OFD packet to send [21:43:03]OFD Sender: No OFD packet to send [21:43:08]OFD Sender: No OFD packet to send [21:43:13]OFD Sender: No OFD packet to send [21:43:17]ConnectInit Can't connect to host [21:43:18]OFD Sender: No OFD packet to send [21:43:23]OFD Sender: No OFD packet to send [21:43:28]OFD Sender: No OFD packet to send [21:43:33]OFD Sender: No OFD packet to send [21:43:38]OFD Sender: No OFD packet to send [21:43:43]OFD Sender: No OFD packet to send [21:43:48]OFD Sender: No OFD packet to send [21:43:53]OFD Sender: No OFD packet to send [21:43:58]OFD Sender: No OFD packet to send [21:44:03]OFD Sender: No OFD packet to send [21:44:08]OFD Sender: No OFD packet to send [21:44:13]OFD Sender: No OFD packet to send [21:44:18]OFD Sender: No OFD packet to send [21:44:23]OFD Sender: No OFD packet to send [21:44:28]OFD Sender: No OFD packet to send [21:44:33]OFD Sender: No OFD packet to send [21:44:38]OFD Sender: No OFD packet to send [21:44:43]OFD Sender: No OFD packet to send [21:44:48]OFD Sender: No OFD packet to send [21:44:53]OFD Sender: No OFD packet to send [21:44:58]OFD Sender: No OFD packet to send [21:45:03]OFD Sender: No OFD packet to send [21:45:08]OFD Sender: No OFD packet to send [21:45:13]OFD Sender: No OFD packet to send [21:45:18]OFD Sender: No OFD packet to send [21:45:23]OFD Sender: No OFD packet to send [21:45:28]OFD Sender: No OFD packet to send [21:45:33]OFD Sender: No OFD packet to send [21:45:35]ConnectInit Can't connect to host [21:45:38]OFD Sender: No OFD packet to send [21:45:43]OFD Sender: No OFD packet to send [21:45:48]OFD Sender: No OFD packet to send [21:45:53]OFD Sender: No OFD packet to send [21:45:54]accept exits with 10 [21:45:54]New connection [21:45:54]New thread 3066543460 created [21:45:54]Thread 3066686820 joined [21:45:54]Waiting for new connection... [21:45:54] Sock 10.Parse request [21:45:54]Sock 10.Check first char [21:45:54]Sock 10.First char is OK [21:45:54]request: POST /json_proto HTTP/1.0 [21:45:54]Method: POST [21:45:54]URL: /json_proto [21:45:54]Method is POST - this is cgi request [21:45:54]url: /json_proto [21:45:54]query_string will be loaded in cgi processing [21:45:54]execute_cgi json_proto POST (null) [21:45:54]execute_cgi path=json_proto method=POST [21:45:54]POST find Content-Length [21:45:54]Host: 172.17.36.132:8080 [21:45:54]Content-Length: 677 [21:45:54]Content-Type: application/json [21:45:54] [21:45:54]POST finish read [21:45:54]Found Content-Length = 677 [21:45:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706288", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.40, "quantity" : 6.030, "sum" : 400.39, "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" ] } } [21:45:54]execute_script... [21:45: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)706288", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.40, "quantity" : 6.030, "sum" : 400.39, "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" ] } } [21:45:54]POST & json_proto [21:45:54]process_json_proto [21:45:54]json parsed OK: [21:45:54]protocol is kg_v1.0 [21:45:54]action value=close_receipt [21:45:54]process_action close_receipt [21:45:54]cmd_close_receipt [21:45:54]MH_GetDate [21:45:54]Write to MH i2c: F0 00 00 C1 0E BE [21:45:54]Write i2c OK [21:45:54]MH_I2C_Read... [21:45:54]Read from MH i2c: F0 [21:45:54]MH_I2C_Read... [21:45:54]Read from MH i2c: F0 09 00 [21:45:54]MH_I2C_Read... [21:45:54]Read from MH i2c: F0 09 00 C1 0E 00 14 E8 5C 66 B2 22 B0 64 6D [21:45:54]GetLastDocTimeStamp 1717364450 [21:45:54]current date 1717364756 [21:45:54]FM_GetShiftState [21:45:54]SAM_PROTO_GetShiftState [21:45:54]wFMCommunicate request_size=4 [21:45:54]MH_SAM_APDU [21:45:54]CAPDU: 80 13 01 00 [21:45:54]Write to MH i2c: E2 08 00 C2 0E 80 13 01 00 00 00 00 00 4D [21:45:54]Write i2c OK [21:45:54]MH_I2C_Read... [21:45:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:45:54]Read from MH i2c: E2 [21:45:54]MH_I2C_Read... [21:45:54]Read from MH i2c: E2 0E 00 [21:45:55]MH_I2C_Read... [21:45:55]Read from MH i2c: E2 0E 00 C2 0E 00 09 00 01 A4 BB 5B 66 00 00 00 00 90 00 79 [21:45:55]RAPDU: 09 00 01 A4 BB 5B 66 00 00 00 00 90 00 [21:45:55]wFMCommunicate OK [21:45:55]SAM_PROTO_GetShiftState done [21:45:55]FM_GetShiftState done [21:45:55]opened in 1717287844 [21:45:55]opened+sec_in_day 1717374244 [21:45:55]quantity*price = 40039 [21:45:55]sum+1 = 40040 [21:45:55]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.39 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.52 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 232 02.06.2024 21:45 Смена: 322 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 ФМ: 0000000000965400 ФД: 68217 ФПД: 75804521157155 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240602T214556&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68217&fm=75804521157155&tin=02508201610067®Number=0000000000098096&sum=40000 [21:45:58]StoreToDocumentArchive [21:45:58]shift 322 fd 68217 [21:45:58]save to /storage/0322/doc_00068217 [21:45:58]save last doc name /storage/0322/doc_00068217 to /storage/kkm_last_doc_name [21:45:58]save OK [21:45:58]Clear old archive folders... [21:45:58]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:45:58]tlvbuf is 002A73A0 [21:45:58]SAM_PROTO_ClearQueue [21:45:58]wFMCommunicate request_size=4 [21:45:58]MH_SAM_APDU [21:45:58]CAPDU: 80 09 00 00 [21:45:58]Write to MH i2c: E2 08 00 CF 0E 80 09 00 00 00 00 00 00 4F [21:45:58]Write i2c OK [21:45:58]MH_I2C_Read... [21:45:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:45:58]Read from MH i2c: E2 [21:45:58]MH_I2C_Read... [21:45:58]OFD Sender: No OFD packet to send [21:45:58]Read from MH i2c: E2 03 00 [21:45:58]MH_I2C_Read... [21:45:58]Read from MH i2c: E2 03 00 CF 0E 00 90 00 51 [21:45:58]RAPDU: 90 00 [21:45:58]wFMCommunicate OK [21:45:58]SAM_PROTO_ClearQueue done [21:45:58]KKMCreateOFDPacket [21:45:58]OFDProtocolAddRootSTLVToBuf [21:45:58]FM_MakeSignedData [21:45:58]FM_MakeSignedData [21:45:58]SAM_PROTO_SignData [21:45:58]wFMCommunicate request_size=4 [21:45:58]MH_SAM_APDU [21:45:58]CAPDU: 80 0D 01 02 [21:45:58]Write to MH i2c: E2 08 00 D0 0E 80 0D 01 02 00 00 00 00 57 [21:45:58]Write i2c OK [21:45:58]MH_I2C_Read... [21:45:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:45:58]Read from MH i2c: E2 [21:45:58]MH_I2C_Read... [21:45:58]Read from MH i2c: E2 03 00 [21:45:58]MH_I2C_Read... [21:45:58]Read from MH i2c: E2 03 00 D0 0E 00 90 00 52 [21:45:59]RAPDU: 90 00 [21:45:59]wFMCommunicate OK [21:45:59]wFMCommunicate request_size=255 [21:45:59]MH_SAM_APDU [21:45: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 34 FF 03 08 00 03 8E 17 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 67 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E8 00 00 00 F4 03 04 00 14 E8 5C 66 0E 04 04 00 42 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 79 0A 01 00 35 04 06 00 44 [21:45:59]Write to MH i2c: E2 02 01 D1 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 34 FF 03 08 00 03 8E 17 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 67 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E8 00 00 00 F4 03 04 00 14 E8 5C 66 0E 04 04 00 42 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 79 0A 01 00 35 04 06 00 44 00 00 88 [21:46:00]Write i2c OK [21:46:00]MH_I2C_Read... [21:46:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:46:00]Read from MH i2c: E2 [21:46:00]MH_I2C_Read... [21:46:00]Read from MH i2c: E2 03 00 [21:46:00]MH_I2C_Read... [21:46:00]Read from MH i2c: E2 03 00 D1 0E 00 90 00 53 [21:46:00]RAPDU: 90 00 [21:46:00]wFMCommunicate OK [21:46:00]wFMCommunicate request_size=10 [21:46:00]MH_SAM_APDU [21:46:00]CAPDU: 80 0D 02 02 05 F1 9D 8E 52 23 [21:46:00]Write to MH i2c: E2 0D 00 D2 0E 80 0D 02 02 05 00 F1 9D 8E 52 23 00 00 F5 [21:46:00]Write i2c OK [21:46:00]MH_I2C_Read... [21:46:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:46:00]Read from MH i2c: E2 [21:46:00]MH_I2C_Read... [21:46:00]Read from MH i2c: E2 03 00 [21:46:00]MH_I2C_Read... [21:46:00]Read from MH i2c: E2 03 00 D2 0E 00 90 00 54 [21:46:00]RAPDU: 90 00 [21:46:00]wFMCommunicate OK [21:46:00]wFMCommunicate request_size=4 [21:46:00]MH_SAM_APDU [21:46:00]CAPDU: 80 0D 03 02 [21:46:00]Write to MH i2c: E2 08 00 D3 0E 80 0D 03 02 00 00 00 00 5C [21:46:00]Write i2c OK [21:46:00]MH_I2C_Read... [21:46:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:46:01]Read from MH i2c: E2 [21:46:01]MH_I2C_Read... [21:46:01]Read from MH i2c: E2 0B 00 [21:46:01]MH_I2C_Read... [21:46:01]Read from MH i2c: E2 0B 00 D3 0E 00 F8 F5 9A E0 56 22 F4 16 90 00 46 [21:46:01]RAPDU: F8 F5 9A E0 56 22 F4 16 90 00 [21:46:01]wFMCommunicate OK [21:46:01]SAM_PROTO_SignData done [21:46:01]FM_MakeSignedData done [21:46:01]CreateOFDProtocolMessage [21:46:01]wFMCommunicate request_size=4 [21:46:01]MH_SAM_APDU [21:46:01]CAPDU: 80 11 00 00 [21:46:01]Write to MH i2c: E2 08 00 D4 0E 80 11 00 00 00 00 00 00 5C [21:46:01]Write i2c OK [21:46:01]MH_I2C_Read... [21:46:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:46:01]Read from MH i2c: E2 [21:46:01]MH_I2C_Read... [21:46:01]Read from MH i2c: E2 17 00 [21:46:01]MH_I2C_Read... [21:46:01]Read from MH i2c: E2 17 00 D4 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 A7 [21:46:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [21:46:01]wFMCommunicate OK [21:46:01]CreateOFDProtocolMessage done [21:46:01]OFDSenderStorePacket 68217 [21:46:01]StoreOFDPacket docnum=68217 [21:46:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 94 D4 07 01 D4 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 34 FF 03 08 00 03 8E 17 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 67 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E8 00 00 00 F4 03 04 00 14 E8 5C 66 0E 04 04 00 42 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 79 0A 01 00 35 04 06 00 44 F1 9D 8E 52 23 F8 F5 9A E0 56 22 F4 16 [21:46:01]CheckFolder [21:46:01]dirname=/storage/ofd_packets [21:46:01]CheckFolder done [21:46:01]ProducePacketName [21:46:01]name=ofd_packets/00068217 [21:46:01]NVStorageSaveData ofd_packets/00068217 [21:46:01]File name is /storage/ofd_packets/00068217 [21:46:01]Write 301 bytes [21:46:01]NVStorageSaveData done [21:46:01]OFDSenderStorePacket done [21:46:01]KKMCreateOFDPacket done [21:46:01]NVStorageSaveData kkm_last_timestamp [21:46:01]File name is /storage/kkm_last_timestamp [21:46:01]Write 4 bytes [21:46:01]NVStorageSaveData done [21:46:01]ExternCall_PrintAddStr [21:46:01]wPrintStart [21:46:01]Write to MH i2c: 01 00 00 D5 0E E3 [21:46:01]OFD Sender: Processing packet 68217 [packets to send 26, broken 25] [21:46:01]ProducePacketName [21:46:01]name=ofd_packets/00068217 [21:46:01]OFD Sender: To server: pG, [21:46:01]CommunicateWithHost lk.salyk.kg:30040 [21:46:01]ConnectInit lk.salyk.kg [21:46:01]Write i2c OK [21:46:01]MH_I2C_Read... [21:46:01]Read from MH i2c: 01 [21:46:01]MH_I2C_Read... [21:46:01]Read from MH i2c: 01 07 00 [21:46:01]MH_I2C_Read... [21:46:01]Read from MH i2c: 01 07 00 D5 0E 00 00 00 00 00 FF 0F F8 [21:46:01]RasterBufferAndPrint [21:46:01]line Счет N : (1)706288 [21:46:01]line ИНН: 02508201610067 [21:46:01]line Контрольно-Кассовый Чек [21:46:01]line ПРОДАЖА [21:46:01]line ТРК (МРК, ГНК) : 42 [21:46:01]line Товар: 2710124130 [21:46:01]line Аи-92-К-4 [21:46:01]line 6.030 * 66.40 [21:46:01]line = 400.39 [21:46:01]line НДС 12% НСП 1% [21:46:01]line > о реализуемом товаре [21:46:01]line ОКРУГЛЕНИЕ: -0.39 [21:46:01]Connected sock=11 [21:46:01]line ИТОГО: 400.00 [21:46:01]Data to sent: line Внесено: 400.00 [21:46:01]line СДАЧА: 0.00 [21:46:01]line НСП 1% : 3.54 [21:46:01]line НДС 12% : 42.52 [21:46:01]87 line Наличными: 400.00 [21:46:01]95 line Безнал.: 0.00 [21:46:01]line Место: АЗС № 62 "Партнер Нефть" [21:46:01]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [21:46:01]line СНО: Общий режим [21:46:01]line Чек 232 02.06.2024 21:45 [21:46:01]F6 line Смена: 322 ФФД: 1.0 [21:46:01]70 line ЗНМ: 0300000181 [21:46:01]line РНМ: 0000000000098096 [21:46:01]line Версия ККМ: 001 [21:46:01]line ФМ: 0000000000965400 [21:46:01]47 line ФД: 68217 [21:46:01]2C line ФПД: 75804521157155 [21:46:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240602T214556&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68217&fm=75804521157155&tin=02508201610067®Number=0000000000098096&sum=40000 [21:46:01]01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 94 D4 07 01 D4 31 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 written 0, free lines is 4095 [21:46:01]0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 8E 17 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 67 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 Write to MH i2c: 00 01 E8 00 00 00 F4 00 03 00 04 00 14 E8 5C 00 66 0F 0E 04 04 00 42 0F 01 [21:46:02]00 Write i2c OK [21:46:02]00 MH_I2C_Read... [21:46:02]B9 Read from MH i2c: 04 01 [21:46:02]01 MH_I2C_Read... [21:46:02]00 01 0D 04 10 Read from MH i2c: 00 01 30 07 30 00 30 [21:46:02]30 MH_I2C_Read... [21:46:02]30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 79 0A 01 00 35 04 06 00 44 F1 9D 8E 52 23 F8 F5 9A E0 56 22 F4 16 [21:46:03]Read from MH i2c: 01 07 00 00 0F 00 00 00 00 00 F3 0D 16 [21:46:03]RasterBufferAndPrint [21:46:03]line [21:46:03]line [21:46:03]line [21:46:03]line [21:46:03]line [21:46:03]written 0, free lines is 4095 [21:46:03]MH_Cut [21:46:03]Write to MH i2c: D1 01 00 07 0F 01 E8 [21:46:03]Write i2c OK [21:46:03]MH_I2C_Read... [21:46:03]Read from MH i2c: D1 [21:46:03]MH_I2C_Read... [21:46:03]Read from MH i2c: D1 01 00 [21:46:03]MH_I2C_Read... [21:46:03]Read from MH i2c: D1 01 00 07 0F 00 E7 [21:46:03]Write to MH i2c: 01 00 00 08 0F 17 [21:46:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 Write i2c OK [21:46:03]39 MH_I2C_Read... [21:46:03]36 35 34 30 *** Cut start [21:46:03]30 *** Partial cut [21:46:03]*** CUTSNS_PIN = 1 [21:46:03]4F 00 00 00 B9 C0 47 00 35 FC A5 *** CUTSNS_PIN = 0 [21:46:03]07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 79 0A 01 00 F4 03 04 00 18 8F 5C 66 B6 04 01 00 00 30 63 A1 17 41 89 1B 3F [21:46:03]CommunicateWithHost err = 0 [21:46:03]CheckOFDResponse [21:46:03]1017 (14) - 77093643461234 [21:46:03]1041 (16) - 0000000000965400 [21:46:03]1040 (4) - 68217 [21:46:03]*** Brake cut motor [21:46:03]1012 (4) - 02.06.2024 15:26 [21:46:03]1206 (1) - 0 [21:46:03]OFD Sender: Remove packet 68217 [21:46:03]ProducePacketName [21:46:03]name=ofd_packets/00068217 [21:46:03]NVStorageDeleteData [21:46:04]Read from MH i2c: *** Stop cut motor [21:46:04]01 *** Cut end [21:46:04] [21:46:04]MH_I2C_Read... [21:46:04]Read from MH i2c: 01 07 00 [21:46:04]MH_I2C_Read... [21:46:04]Read from MH i2c: 01 07 00 08 0F 00 00 00 00 00 FF 0F 2C [21:46:04]process_action close_receipt done [21:46:04]requested_data is exist [21:46:04]produce_requested_data [21:46:04]requested_item fm.sn is exist - process it [21:46:04]wFMCommunicate request_size=4 [21:46:04]MH_SAM_APDU [21:46:04]CAPDU: 80 11 00 00 [21:46:04]Write to MH i2c: E2 08 00 09 0F 80 11 00 00 00 00 00 00 92 [21:46:04]Write i2c OK [21:46:04]MH_I2C_Read... [21:46:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:46:04]Read from MH i2c: OFD Sender: No OFD packet to send [21:46:04]E2 [21:46:04]MH_I2C_Read... [21:46:04]Read from MH i2c: E2 17 00 [21:46:04]MH_I2C_Read... [21:46:04]Read from MH i2c: E2 17 00 09 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 DD [21:46:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [21:46:04]wFMCommunicate OK [21:46:04]requested_item fd.num is exist - process it [21:46:04]SAM_PROTO_GetFieldsCounters [21:46:04]wFMCommunicate request_size=4 [21:46:04]MH_SAM_APDU [21:46:04]CAPDU: 80 13 00 00 [21:46:04]Write to MH i2c: E2 08 00 0A 0F 80 13 00 00 00 00 00 00 95 [21:46:04]Write i2c OK [21:46:04]MH_I2C_Read... [21:46:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:46:04]Read from MH i2c: E2 [21:46:04]MH_I2C_Read... [21:46:04]Read from MH i2c: E2 62 00 [21:46:04]MH_I2C_Read... [21:46:04]Read from MH i2c: E2 62 00 0A 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 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 79 0A 01 00 0E 04 04 00 42 01 00 00 12 04 04 00 E8 00 00 00 5E 04 04 00 E8 00 00 00 57 04 04 00 E9 00 00 00 19 04 04 00 00 00 00 00 90 00 34 [21:46: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 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 79 0A 01 00 0E 04 04 00 42 01 00 00 12 04 04 00 E8 00 00 00 5E 04 04 00 E8 00 00 00 57 04 04 00 E9 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:46:05]wFMCommunicate OK [21:46:05]SAM_PROTO_GetFieldsCounters done [21:46:05]requested_item shift.num is exist - process it [21:46:05]requested_item shift.opened is exist - process it [21:46:05]req_shift_opened [21:46:05]FM_GetShiftState [21:46:05]SAM_PROTO_GetShiftState [21:46:05]wFMCommunicate request_size=4 [21:46:05]MH_SAM_APDU [21:46:05]CAPDU: 80 13 01 00 [21:46:05]Write to MH i2c: E2 08 00 0B 0F 80 13 01 00 00 00 00 00 97 [21:46:05]Write i2c OK [21:46:05]MH_I2C_Read... [21:46:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:46:05]Read from MH i2c: E2 [21:46:05]MH_I2C_Read... [21:46:05]Read from MH i2c: E2 0E 00 [21:46:05]MH_I2C_Read... [21:46:05]Read from MH i2c: E2 0E 00 0B 0F 00 09 00 01 A4 BB 5B 66 00 00 00 00 90 00 C3 [21:46:05]RAPDU: 09 00 01 A4 BB 5B 66 00 00 00 00 90 00 [21:46:05]wFMCommunicate OK [21:46:05]SAM_PROTO_GetShiftState done [21:46:05]FM_GetShiftState done [21:46:05]req_shift_opened done [21:46:05]requested_item shift.open_date is exist - process it [21:46:05]req_shift_open_date [21:46:05]req_shift_open_date done [21:46:05]produce_requested_data done [21:46:05]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68217,"shift.num":322,"shift.opened":1,"shift.open_date":1717287844} [21:46:05]process_action_free close_receipt [21:46:05]json_value_free [21:46:05]json_value_free done [21:46:05]process_json_proto returns [21:46:05]Send response to host [21:46:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68217,"shift.num":322,"shift.opened":1,"shift.open_date":1717287844}}} [21:46:05]free response buf [21:46:05]execute_script done [21:46:05]execute_script returns [21:46:05]free content buf [21:46:05]Sock 10.Close socket [21:46:05]Sock 10.Thread stoped [21:46:09]OFD Sender: No OFD packet to send [21:46:14]OFD Sender: No OFD packet to send [21:46:19]OFD Sender: No OFD packet to send [21:46:24]OFD Sender: No OFD packet to send [21:46:29]OFD Sender: No OFD packet to send [21:46:34]OFD Sender: No OFD packet to send [21:46:39]OFD Sender: No OFD packet to send [21:46:44]OFD Sender: No OFD packet to send [21:46:49]OFD Sender: No OFD packet to send [21:46:54]OFD Sender: No OFD packet to send [21:46:59]OFD Sender: No OFD packet to send [21:47:04]OFD Sender: No OFD packet to send [21:47:09]OFD Sender: No OFD packet to send [21:47:14]OFD Sender: No OFD packet to send [21:47:19]OFD Sender: No OFD packet to send [21:47:24]OFD Sender: No OFD packet to send [21:47:29]OFD Sender: No OFD packet to send [21:47:34]OFD Sender: No OFD packet to send [21:47:39]OFD Sender: No OFD packet to send [21:47:44]OFD Sender: No OFD packet to send [21:47:49]OFD Sender: No OFD packet to send [21:47:54]ConnectInit Can't connect to host [21:47:54]OFD Sender: No OFD packet to send [21:47:59]OFD Sender: No OFD packet to send [21:48:04]OFD Sender: No OFD packet to send [21:48:09]OFD Sender: No OFD packet to send [21:48:14]OFD Sender: No OFD packet to send [21:48:19]OFD Sender: No OFD packet to send [21:48:24]OFD Sender: No OFD packet to send [21:48:29]OFD Sender: No OFD packet to send [21:48:34]OFD Sender: No OFD packet to send [21:48:39]OFD Sender: No OFD packet to send [21:48:44]OFD Sender: No OFD packet to send [21:48:49]OFD Sender: No OFD packet to send [21:48:54]OFD Sender: No OFD packet to send [21:48:59]OFD Sender: No OFD packet to send [21:49:04]OFD Sender: No OFD packet to send [21:49:09]OFD Sender: No OFD packet to send [21:49:14]OFD Sender: No OFD packet to send [21:49:19]OFD Sender: No OFD packet to send [21:49:24]OFD Sender: No OFD packet to send [21:49:29]OFD Sender: No OFD packet to send [21:49:34]OFD Sender: No OFD packet to send [21:49:39]OFD Sender: No OFD packet to send [21:49:44]OFD Sender: No OFD packet to send [21:49:49]OFD Sender: No OFD packet to send [21:49:54]OFD Sender: No OFD packet to send [21:49:59]OFD Sender: No OFD packet to send [21:50:04]OFD Sender: No OFD packet to send [21:50:09]OFD Sender: No OFD packet to send [21:50:12]ConnectInit Can't connect to host [21:50:14]OFD Sender: No OFD packet to send [21:50:19]OFD Sender: No OFD packet to send [21:50:24]OFD Sender: No OFD packet to send [21:50:29]OFD Sender: No OFD packet to send [21:50:34]OFD Sender: No OFD packet to send [21:50:39]OFD Sender: No OFD packet to send [21:50:44]OFD Sender: No OFD packet to send [21:50:49]OFD Sender: No OFD packet to send [21:50:54]OFD Sender: No OFD packet to send [21:50:59]OFD Sender: No OFD packet to send [21:51:04]OFD Sender: No OFD packet to send [21:51:09]OFD Sender: No OFD packet to send [21:51:14]OFD Sender: No OFD packet to send [21:51:19]OFD Sender: No OFD packet to send [21:51:24]OFD Sender: No OFD packet to send [21:51:29]OFD Sender: No OFD packet to send [21:51:34]OFD Sender: No OFD packet to send [21:51:39]OFD Sender: No OFD packet to send [21:51:44]OFD Sender: No OFD packet to send [21:51:49]OFD Sender: No OFD packet to send [21:51:54]OFD Sender: No OFD packet to send [21:51:59]OFD Sender: No OFD packet to send [21:52:04]OFD Sender: No OFD packet to send [21:52:09]OFD Sender: No OFD packet to send [21:52:14]OFD Sender: No OFD packet to send [21:52:19]OFD Sender: No OFD packet to send [21:52:24]OFD Sender: No OFD packet to send [21:52:29]OFD Sender: No OFD packet to send [21:52:30]ConnectInit Can't connect to host [21:52:34]OFD Sender: No OFD packet to send [21:52:39]OFD Sender: No OFD packet to send [21:52:44]OFD Sender: No OFD packet to send [21:52:49]OFD Sender: No OFD packet to send [21:52:54]OFD Sender: No OFD packet to send [21:52:59]OFD Sender: No OFD packet to send [21:53:04]OFD Sender: No OFD packet to send [21:53:09]OFD Sender: No OFD packet to send [21:53:13]accept exits with 9 [21:53:13]New connection [21:53:13]New thread 3066686820 created [21:53:13]Thread 3066543460 joined [21:53:13]Waiting for new connection... [21:53:13] Sock 9.Parse request [21:53:13]Sock 9.Check first char [21:53:13]Sock 9.First char is OK [21:53:13]request: POST /json_proto HTTP/1.0 [21:53:13]Method: POST [21:53:13]URL: /json_proto [21:53:13]Method is POST - this is cgi request [21:53:13]url: /json_proto [21:53:13]query_string will be loaded in cgi processing [21:53:13]execute_cgi json_proto POST (null) [21:53:13]execute_cgi path=json_proto method=POST [21:53:13]POST find Content-Length [21:53:13]Host: 172.17.36.132:8080 [21:53:13]Content-Length: 840 [21:53:13]Content-Type: application/json [21:53:13] [21:53:13]POST finish read [21:53:13]Found Content-Length = 840 [21:53:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706289", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.40, "quantity" : 3.770, "sum" : 250.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: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 250.33 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:53:13]execute_script... [21:53: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)706289", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.40, "quantity" : 3.770, "sum" : 250.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: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 250.33 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:53:13]POST & json_proto [21:53:13]process_json_proto [21:53:13]json parsed OK: [21:53:13]protocol is kg_v1.0 [21:53:13]action value=close_receipt [21:53:13]process_action close_receipt [21:53:13]cmd_close_receipt [21:53:13]MH_GetDate [21:53:13]Write to MH i2c: F0 00 00 0C 0F 0A [21:53:13]Write i2c OK [21:53:13]MH_I2C_Read... [21:53:13]Read from MH i2c: F0 [21:53:13]MH_I2C_Read... [21:53:13]Read from MH i2c: F0 09 00 [21:53:13]MH_I2C_Read... [21:53:13]Read from MH i2c: F0 09 00 0C 0F 00 CA E9 5C 66 B2 22 B0 64 70 [21:53:13]GetLastDocTimeStamp 1717364756 [21:53:13]current date 1717365194 [21:53:13]FM_GetShiftState [21:53:13]SAM_PROTO_GetShiftState [21:53:13]wFMCommunicate request_size=4 [21:53:13]MH_SAM_APDU [21:53:13]CAPDU: 80 13 01 00 [21:53:13]Write to MH i2c: E2 08 00 0D 0F 80 13 01 00 00 00 00 00 99 [21:53:13]Write i2c OK [21:53:13]MH_I2C_Read... [21:53:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:53:13]Read from MH i2c: E2 [21:53:13]MH_I2C_Read... [21:53:13]Read from MH i2c: E2 0E 00 [21:53:13]MH_I2C_Read... [21:53:13]Read from MH i2c: E2 0E 00 0D 0F 00 09 00 01 A4 BB 5B 66 00 00 00 00 90 00 C5 [21:53:13]RAPDU: 09 00 01 A4 BB 5B 66 00 00 00 00 90 00 [21:53:13]wFMCommunicate OK [21:53:13]SAM_PROTO_GetShiftState done [21:53:13]FM_GetShiftState done [21:53:13]opened in 1717287844 [21:53:13]opened+sec_in_day 1717374244 [21:53:13]quantity*price = 25032 [21:53:13]sum+1 = 25034 [21:53:13]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 250.33 НСП 1% : 2.21 НДС 12% : 26.58 Наличными: 0.00 Безнал.: 250.33 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 233 02.06.2024 21:53 Смена: 322 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000965400 ФД: 68218 ФПД: 150479835728394 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240602T215315&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68218&fm=150479835728394&tin=02508201610067®Number=0000000000098096&sum=25033 [21:53:17]StoreToDocumentArchive [21:53:17]shift 322 fd 68218 [21:53:17]save to /storage/0322/doc_00068218 [21:53:17]save last doc name /storage/0322/doc_00068218 to /storage/kkm_last_doc_name [21:53:17]save OK [21:53:17]Clear old archive folders... [21:53:17]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:53:17]tlvbuf is 00210910 [21:53:17]SAM_PROTO_ClearQueue [21:53:17]wFMCommunicate request_size=4 [21:53:17]MH_SAM_APDU [21:53:17]CAPDU: 80 09 00 00 [21:53:17]Write to MH i2c: E2 08 00 1A 0F 80 09 00 00 00 00 00 00 9B [21:53:17]Write i2c OK [21:53:17]MH_I2C_Read... [21:53:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:53:17]Read from MH i2c: E2 [21:53:17]MH_I2C_Read... [21:53:17]Read from MH i2c: E2 03 00 [21:53:17]MH_I2C_Read... [21:53:17]Read from MH i2c: E2 03 00 1A 0F 00 90 00 9D [21:53:17]RAPDU: 90 00 [21:53:17]wFMCommunicate OK [21:53:17]SAM_PROTO_ClearQueue done [21:53:17]KKMCreateOFDPacket [21:53:17]OFDProtocolAddRootSTLVToBuf [21:53:17]FM_MakeSignedData [21:53:17]FM_MakeSignedData [21:53:17]SAM_PROTO_SignData [21:53:17]wFMCommunicate request_size=4 [21:53:17]MH_SAM_APDU [21:53:17]CAPDU: 80 0D 01 02 [21:53:17]Write to MH i2c: E2 08 00 1B 0F 80 0D 01 02 00 00 00 00 A3 [21:53:17]Write i2c OK [21:53:17]MH_I2C_Read... [21:53:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:53:17]Read from MH i2c: E2 [21:53:17]MH_I2C_Read... [21:53:17]Read from MH i2c: E2 03 00 [21:53:17]MH_I2C_Read... [21:53:17]Read from MH i2c: E2 03 00 1B 0F 00 90 00 9E [21:53:17]RAPDU: 90 00 [21:53:17]wFMCommunicate OK [21:53:17]wFMCommunicate request_size=255 [21:53:17]MH_SAM_APDU [21:53:17]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 BA 0E 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 C9 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C9 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 62 0A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C9 61 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E9 00 00 00 F4 03 04 00 CB E9 5C 66 0E 04 04 00 42 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 7A 0A 01 00 35 04 06 00 88 [21:53:18]Write to MH i2c: E2 02 01 1C 0F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 BA 0E 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 C9 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C9 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 62 0A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C9 61 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E9 00 00 00 F4 03 04 00 CB E9 5C 66 0E 04 04 00 42 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 7A 0A 01 00 35 04 06 00 88 00 00 F2 [21:53:19]Write i2c OK [21:53:19]MH_I2C_Read... [21:53:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:53:19]Read from MH i2c: E2 [21:53:19]MH_I2C_Read... [21:53:19]Read from MH i2c: E2 03 00 [21:53:19]MH_I2C_Read... [21:53:19]Read from MH i2c: E2 03 00 1C 0F 00 90 00 9F [21:53:19]RAPDU: 90 00 [21:53:19]wFMCommunicate OK [21:53:19]wFMCommunicate request_size=10 [21:53:19]MH_SAM_APDU [21:53:19]CAPDU: 80 0D 02 02 05 DC 51 27 8A 0A [21:53:19]Write to MH i2c: E2 0D 00 1D 0F 80 0D 02 02 05 00 DC 51 27 8A 0A 00 00 98 [21:53:19]Write i2c OK [21:53:19]MH_I2C_Read... [21:53:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:53:19]Read from MH i2c: E2 [21:53:19]MH_I2C_Read... [21:53:19]Read from MH i2c: E2 03 00 [21:53:19]MH_I2C_Read... [21:53:19]Read from MH i2c: E2 03 00 1D 0F 00 90 00 A0 [21:53:19]RAPDU: 90 00 [21:53:19]wFMCommunicate OK [21:53:19]wFMCommunicate request_size=4 [21:53:19]MH_SAM_APDU [21:53:19]CAPDU: 80 0D 03 02 [21:53:19]Write to MH i2c: E2 08 00 1E 0F 80 0D 03 02 00 00 00 00 A8 [21:53:19]Write i2c OK [21:53:19]MH_I2C_Read... [21:53:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:53:19]Read from MH i2c: E2 [21:53:19]MH_I2C_Read... [21:53:19]Read from MH i2c: E2 0B 00 [21:53:19]MH_I2C_Read... [21:53:19]Read from MH i2c: E2 0B 00 1E 0F 00 80 01 01 B2 41 65 F2 3F 90 00 B4 [21:53:19]RAPDU: 80 01 01 B2 41 65 F2 3F 90 00 [21:53:19]wFMCommunicate OK [21:53:19]SAM_PROTO_SignData done [21:53:19]FM_MakeSignedData done [21:53:19]CreateOFDProtocolMessage [21:53:19]wFMCommunicate request_size=4 [21:53:19]MH_SAM_APDU [21:53:19]CAPDU: 80 11 00 00 [21:53:19]Write to MH i2c: E2 08 00 1F 0F 80 11 00 00 00 00 00 00 A8 [21:53:19]Write i2c OK [21:53:19]MH_I2C_Read... [21:53:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:53:19]Read from MH i2c: E2 [21:53:19]MH_I2C_Read... [21:53:19]Read from MH i2c: E2 17 00 [21:53:19]MH_I2C_Read... [21:53:19]Read from MH i2c: E2 17 00 1F 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 F3 [21:53:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [21:53:20]wFMCommunicate OK [21:53:20]CreateOFDProtocolMessage done [21:53:20]OFDSenderStorePacket 68218 [21:53:20]StoreOFDPacket docnum=68218 [21:53:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 14 07 07 01 2E 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 34 FF 03 08 00 03 BA 0E 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 C9 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C9 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 62 0A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C9 61 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E9 00 00 00 F4 03 04 00 CB E9 5C 66 0E 04 04 00 42 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 7A 0A 01 00 35 04 06 00 88 DC 51 27 8A 0A 80 01 01 B2 41 65 F2 3F [21:53:20]CheckFolder [21:53:20]dirname=/storage/ofd_packets [21:53:20]CheckFolder done [21:53:20]OFD Sender: No OFD packet to send [21:53:20]ProducePacketName [21:53:20]name=ofd_packets/00068218 [21:53:20]NVStorageSaveData ofd_packets/00068218 [21:53:20]File name is /storage/ofd_packets/00068218 [21:53:20]Write 301 bytes [21:53:20]NVStorageSaveData done [21:53:20]OFDSenderStorePacket done [21:53:20]KKMCreateOFDPacket done [21:53:20]NVStorageSaveData kkm_last_timestamp [21:53:20]File name is /storage/kkm_last_timestamp [21:53:20]Write 4 bytes [21:53:20]NVStorageSaveData done [21:53:20]ExternCall_PrintAddStr [21:53:20]wPrintStart [21:53:20]Write to MH i2c: 01 00 00 20 0F 2F [21:53:20]Write i2c OK [21:53:20]MH_I2C_Read... [21:53:20]Read from MH i2c: 01 [21:53:20]MH_I2C_Read... [21:53:20]Read from MH i2c: 01 07 00 [21:53:20]MH_I2C_Read... [21:53:20]Read from MH i2c: 01 07 00 OFD Sender: Processing packet 68218 [packets to send 26, broken 25] [21:53:20]20 ProducePacketName [21:53:20]0F name=ofd_packets/00068218 [21:53:20]00 OFD Sender: To server: pG, [21:53:20]00 CommunicateWithHost lk.salyk.kg:30040 [21:53:20]ConnectInit lk.salyk.kg [21:53:20]00 00 00 FF 0F 44 [21:53:20]RasterBufferAndPrint [21:53:20]line Счет N : (1)706289 [21:53:20]line ИНН: 02508201610067 [21:53:20]line Контрольно-Кассовый Чек [21:53:20]line ПРОДАЖА [21:53:20]line ТРК (МРК, ГНК) : 32 [21:53:20]line Товар: 2710124130 [21:53:20]line Аи-92-К-4 [21:53:20]line 3.770 * 66.40 [21:53:20]line = 250.33 [21:53:20]line НДС 12% НСП 1% [21:53:20]line > о реализуемом товаре [21:53:20]line ИТОГО: 250.33 [21:53:20]line НСП 1% : 2.21 [21:53:20]line НДС 12% : 26.58 [21:53:20]line Наличными: 0.00 [21:53:20]line Безнал.: 250.33 [21:53:20]line Место: АЗС № 62 "Партнер Нефть" [21:53:20]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [21:53:20]line СНО: Общий режим [21:53:20]line Чек 233 02.06.2024 21:53 [21:53:20]line Смена: 322 ФФД: 1.0 [21:53:20]line ЗНМ: 0300000181 [21:53:20]line РНМ: 0000000000098096 [21:53:20]line Версия ККМ: 001 [21:53:20]line Платежная система: АКБ Кыргызстан [21:53:20]line ФМ: 0000000000965400 [21:53:20]line ФД: 68218 [21:53:20]line ФПД: 150479835728394 [21:53:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240602T215315&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68218&fm=150479835728394&tin=02508201610067®Number=0000000000098096&sum=25033 [21:53:20]Connected sock=11 [21:53:20]Data to sent: 87 95 F6 70 written 0, free lines is 4095 [21:53:20]47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 14 07 07 01 2E 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 34 FF 03 08 00 03 BA 0E 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 C9 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C9 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 Write to MH i2c: 00 01 00 00 EE 03 0F 00 00 00 F2 03 01 00 01 4A F3 0F 03 06 00 62 59 0A [21:53:21]00 Write i2c OK [21:53:21]00 MH_I2C_Read... [21:53:21]00 00 07 04 06 Read from MH i2c: 00 01 00 00 00 00 [21:53:21]00 MH_I2C_Read... [21:53:21]00 39 04 06 00 Read from MH i2c: C9 01 61 00 00 00 07 00 00 1F [21:53:21]04 MH_I2C_Read... [21:53:21]02 00 01 00 12 04 04 Read from MH i2c: 00 01 E9 07 00 00 00 4A 00 0F F4 00 03 00 04 00 00 00 CB 00 E9 D3 5C 0D 66 0E 04 04 00 40 42 [21:53:21]01 00 00 B9 04 RasterBufferAndPrint [21:53:21]01 line [21:53:21]00 01 0D 04 line [21:53:21]10 line [21:53:21]00 30 30 30 30 30 30 30 30 30 30 30 39 line [21:53:21]38 line [21:53:21]30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 written 0, free lines is 4048 [21:53:21]30 39 36 35 MH_Cut [21:53:21]34 Write to MH i2c: 30 D1 30 01 10 00 04 51 04 0F 00 01 7A 32 0A [21:53:21]01 00 35 04 06 Write i2c OK [21:53:21]00 MH_I2C_Read... [21:53:21]88 DC 51 27 8A Read from MH i2c: 0A D1 80 01 01 B2 [21:53:21]41 MH_I2C_Read... [21:53:21]65 F2 3F [21:53:21]Read from MH i2c: D1 01 00 [21:53:21]MH_I2C_Read... [21:53:21]Read from MH i2c: D1 01 00 51 0F 00 31 [21:53:21]Write to MH i2c: 01 00 00 52 0F 61 [21:53:21]Write i2c OK [21:53:21]MH_I2C_Read... [21:53:21]*** Cut start [21:53:21]*** Partial cut [21:53:21]*** CUTSNS_PIN = 1 [21:53:21]*** CUTSNS_PIN = 0 [21:53:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 C5 73 47 00 56 E0 A5 07 01 00 07 *** Brake cut motor [21:53:22]00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 7A 0A 01 00 F4 03 04 00 CF 90 5C Read from MH i2c: 66 01 B6 *** Stop cut motor [21:53:22]04 *** Cut end [21:53:22]01 00 00 39 08 [21:53:22]1C MH_I2C_Read... [21:53:22]D5 Read from MH i2c: 40 01 67 07 15 00 B8 [21:53:22] [21:53:22]MH_I2C_Read... [21:53:22]CommunicateWithHost err = 0 [21:53:22]Read from MH i2c: CheckOFDResponse [21:53:22]01 1017 (14) - 77093643461234 [21:53:22]07 1041 (16) - 0000000000965400 [21:53:22]00 52 0F 00 1040 (4) - 68218 [21:53:22]00 1012 (4) - 02.06.2024 15:33 [21:53:22]00 00 00 FF 0F 1206 (1) - 0 [21:53:22]76 OFD Sender: Remove packet 68218 [21:53:22] [21:53:22]process_action close_receipt done [21:53:22]requested_data is exist [21:53:22]produce_requested_data [21:53:22]ProducePacketName [21:53:22]requested_item fm.sn is exist - process it [21:53:22]name=ofd_packets/00068218 [21:53:22]wFMCommunicate request_size=4 [21:53:22]MH_SAM_APDU [21:53:22]CAPDU: 80 NVStorageDeleteData [21:53:22]11 00 00 [21:53:22]Write to MH i2c: E2 08 00 53 0F 80 11 00 00 00 00 00 00 DC [21:53:22]Write i2c OK [21:53:22]MH_I2C_Read... [21:53:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:53:22]Read from MH i2c: E2 [21:53:22]MH_I2C_Read... [21:53:22]Read from MH i2c: E2 17 00 [21:53:22]MH_I2C_Read... [21:53:22]Read from MH i2c: E2 17 00 53 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 27 [21:53:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [21:53:22]wFMCommunicate OK [21:53:22]requested_item fd.num is exist - process it [21:53:22]SAM_PROTO_GetFieldsCounters [21:53:22]wFMCommunicate request_size=4 [21:53:22]MH_SAM_APDU [21:53:22]CAPDU: 80 13 00 00 [21:53:23]Write to MH i2c: E2 08 00 54 0F 80 13 00 00 00 00 00 00 DF [21:53:23]Write i2c OK [21:53:23]MH_I2C_Read... [21:53:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:53:23]Read from MH i2c: E2 [21:53:23]MH_I2C_Read... [21:53:23]Read from MH i2c: E2 62 00 [21:53:23]OFD Sender: No OFD packet to send [21:53:23]MH_I2C_Read... [21:53:23]Read from MH i2c: E2 62 00 54 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 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 7A 0A 01 00 0E 04 04 00 42 01 00 00 12 04 04 00 E9 00 00 00 5E 04 04 00 E9 00 00 00 57 04 04 00 EA 00 00 00 19 04 04 00 00 00 00 00 90 00 82 [21:53: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 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 7A 0A 01 00 0E 04 04 00 42 01 00 00 12 04 04 00 E9 00 00 00 5E 04 04 00 E9 00 00 00 57 04 04 00 EA 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:53:23]wFMCommunicate OK [21:53:23]SAM_PROTO_GetFieldsCounters done [21:53:23]requested_item shift.num is exist - process it [21:53:23]requested_item shift.opened is exist - process it [21:53:23]req_shift_opened [21:53:23]FM_GetShiftState [21:53:23]SAM_PROTO_GetShiftState [21:53:23]wFMCommunicate request_size=4 [21:53:23]MH_SAM_APDU [21:53:23]CAPDU: 80 13 01 00 [21:53:23]Write to MH i2c: E2 08 00 55 0F 80 13 01 00 00 00 00 00 E1 [21:53:23]Write i2c OK [21:53:23]MH_I2C_Read... [21:53:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:53:23]Read from MH i2c: E2 [21:53:23]MH_I2C_Read... [21:53:23]Read from MH i2c: E2 0E 00 [21:53:23]MH_I2C_Read... [21:53:23]Read from MH i2c: E2 0E 00 55 0F 00 09 00 01 A4 BB 5B 66 00 00 00 00 90 00 0D [21:53:23]RAPDU: 09 00 01 A4 BB 5B 66 00 00 00 00 90 00 [21:53:24]wFMCommunicate OK [21:53:24]SAM_PROTO_GetShiftState done [21:53:24]FM_GetShiftState done [21:53:24]req_shift_opened done [21:53:24]requested_item shift.open_date is exist - process it [21:53:24]req_shift_open_date [21:53:24]req_shift_open_date done [21:53:24]produce_requested_data done [21:53:24]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68218,"shift.num":322,"shift.opened":1,"shift.open_date":1717287844} [21:53:24]process_action_free close_receipt [21:53:24]json_value_free [21:53:24]json_value_free done [21:53:24]process_json_proto returns [21:53:24]Send response to host [21:53:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68218,"shift.num":322,"shift.opened":1,"shift.open_date":1717287844}}} [21:53:24]free response buf [21:53:24]execute_script done [21:53:24]execute_script returns [21:53:24]free content buf [21:53:24]Sock 9.Close socket [21:53:24]Sock 9.Thread stoped [21:53:28]OFD Sender: No OFD packet to send [21:53:33]OFD Sender: No OFD packet to send [21:53:38]OFD Sender: No OFD packet to send [21:53:43]OFD Sender: No OFD packet to send [21:53:48]OFD Sender: No OFD packet to send [21:53:53]OFD Sender: No OFD packet to send [21:53:58]OFD Sender: No OFD packet to send [21:53:58]accept exits with 10 [21:53:58]New connection [21:53:58]New thread 3066543460 created [21:53:58]Thread 3066686820 joined [21:53:58]Waiting for new connection... [21:53:58] Sock 10.Parse request [21:53:58]Sock 10.Check first char [21:53:58]Sock 10.First char is OK [21:53:58]request: POST /json_proto HTTP/1.0 [21:53:58]Method: POST [21:53:58]URL: /json_proto [21:53:58]Method is POST - this is cgi request [21:53:58]url: /json_proto [21:53:58]query_string will be loaded in cgi processing [21:53:58]execute_cgi json_proto POST (null) [21:53:58]execute_cgi path=json_proto method=POST [21:53:58]POST find Content-Length [21:53:58]Host: 172.17.36.132:8080 [21:53:58]Content-Length: 836 [21:53:58]Content-Type: application/json [21:53:58] [21:53:58]POST finish read [21:53:58]Found Content-Length = 836 [21:53:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706290", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "Super-92-\u041A-5", "price" : 67.40, "quantity" : 14.840, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 1000.22 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:53:58]execute_script... [21:53:58]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706290", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "Super-92-\u041A-5", "price" : 67.40, "quantity" : 14.840, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 1000.22 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:53:58]POST & json_proto [21:53:58]process_json_proto [21:53:58]json parsed OK: [21:53:58]protocol is kg_v1.0 [21:53:58]action value=close_receipt [21:53:58]process_action close_receipt [21:53:58]cmd_close_receipt [21:53:58]MH_GetDate [21:53:58]Write to MH i2c: F0 00 00 56 0F 54 [21:53:59]Write i2c OK [21:53:59]MH_I2C_Read... [21:53:59]Read from MH i2c: F0 [21:53:59]MH_I2C_Read... [21:53:59]Read from MH i2c: F0 09 00 [21:53:59]MH_I2C_Read... [21:53:59]Read from MH i2c: F0 09 00 56 0F 00 F8 E9 5C 66 B2 22 B0 64 E8 [21:53:59]GetLastDocTimeStamp 1717365195 [21:53:59]current date 1717365240 [21:53:59]FM_GetShiftState [21:53:59]SAM_PROTO_GetShiftState [21:53:59]wFMCommunicate request_size=4 [21:53:59]MH_SAM_APDU [21:53:59]CAPDU: 80 13 01 00 [21:53:59]Write to MH i2c: E2 08 00 57 0F 80 13 01 00 00 00 00 00 E3 [21:53:59]Write i2c OK [21:53:59]MH_I2C_Read... [21:53:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:53:59]Read from MH i2c: E2 [21:53:59]MH_I2C_Read... [21:53:59]Read from MH i2c: E2 0E 00 [21:53:59]MH_I2C_Read... [21:53:59]Read from MH i2c: E2 0E 00 57 0F 00 09 00 01 A4 BB 5B 66 00 00 00 00 90 00 0F [21:53:59]RAPDU: 09 00 01 A4 BB 5B 66 00 00 00 00 90 00 [21:53:59]wFMCommunicate OK [21:53:59]SAM_PROTO_GetShiftState done [21:53:59]FM_GetShiftState done [21:53:59]opened in 1717287844 [21:53:59]opened+sec_in_day 1717374244 [21:53:59]quantity*price = 100021 [21:53:59]sum+1 = 100023 [21:53:59]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.22 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 0.00 Безнал.: 1000.22 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 234 02.06.2024 21:54 Смена: 322 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000965400 ФД: 68219 ФПД: 223997264169990 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240602T215400&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68219&fm=223997264169990&tin=02508201610067®Number=0000000000098096&sum=100022 [21:54:03]StoreToDocumentArchive [21:54:03]shift 322 fd 68219 [21:54:03]save to /storage/0322/doc_00068219 [21:54:03]save last doc name /storage/0322/doc_00068219 to /storage/kkm_last_doc_name [21:54:03]save OK [21:54:03]Clear old archive folders... [21:54:03]ProcessDocumentItem done err = 0, tmpTLVsize=252 [21:54:03]tlvbuf is 004EC860 [21:54:03]SAM_PROTO_ClearQueue [21:54:03]wFMCommunicate request_size=4 [21:54:03]MH_SAM_APDU [21:54:03]CAPDU: 80 09 00 00 [21:54:03]Write to MH i2c: E2 08 00 64 0F 80 09 00 00 00 00 00 00 E5 [21:54:03]Write i2c OK [21:54:03]MH_I2C_Read... [21:54:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:54:03]Read from MH i2c: E2 [21:54:03]MH_I2C_Read... [21:54:03]Read from MH i2c: E2 03 00 [21:54:03]MH_I2C_Read... [21:54:03]Read from MH i2c: E2 03 00 64 0F 00 90 00 E7 [21:54:03]RAPDU: 90 00 [21:54:03]wFMCommunicate OK [21:54:03]SAM_PROTO_ClearQueue done [21:54:03]KKMCreateOFDPacket [21:54:03]OFDProtocolAddRootSTLVToBuf [21:54:03]FM_MakeSignedData [21:54:03]FM_MakeSignedData [21:54:03]SAM_PROTO_SignData [21:54:03]wFMCommunicate request_size=4 [21:54:03]MH_SAM_APDU [21:54:03]CAPDU: 80 0D 01 02 [21:54:03]Write to MH i2c: E2 08 00 65 0F 80 0D 01 02 00 00 00 00 ED [21:54:03]OFD Sender: No OFD packet to send [21:54:03]Write i2c OK [21:54:03]MH_I2C_Read... [21:54:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:54:03]Read from MH i2c: E2 [21:54:03]MH_I2C_Read... [21:54:03]Read from MH i2c: E2 03 00 [21:54:03]MH_I2C_Read... [21:54:03]Read from MH i2c: E2 03 00 65 0F 00 90 00 E8 [21:54:03]RAPDU: 90 00 [21:54:03]wFMCommunicate OK [21:54:03]wFMCommunicate request_size=255 [21:54:03]MH_SAM_APDU [21:54:03]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F8 39 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B6 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B6 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 EA 00 00 00 F4 03 04 00 F8 E9 5C 66 0E 04 04 00 42 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 7B 0A 01 00 35 04 06 00 [21:54:04]Write to MH i2c: E2 02 01 66 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 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F8 39 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B6 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B6 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 EA 00 00 00 F4 03 04 00 F8 E9 5C 66 0E 04 04 00 42 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 7B 0A 01 00 35 04 06 00 00 00 EB [21:54:04]Write i2c OK [21:54:04]MH_I2C_Read... [21:54:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:54:05]Read from MH i2c: E2 [21:54:05]MH_I2C_Read... [21:54:05]Read from MH i2c: E2 03 00 [21:54:05]MH_I2C_Read... [21:54:05]Read from MH i2c: E2 03 00 66 0F 00 90 00 E9 [21:54:05]RAPDU: 90 00 [21:54:05]wFMCommunicate OK [21:54:05]wFMCommunicate request_size=11 [21:54:05]MH_SAM_APDU [21:54:05]CAPDU: 80 0D 02 02 06 CB B9 6D 5C 8C 06 [21:54:05]Write to MH i2c: E2 0E 00 67 0F 80 0D 02 02 06 00 CB B9 6D 5C 8C 06 00 00 DB [21:54:05]Write i2c OK [21:54:05]MH_I2C_Read... [21:54:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:54:05]Read from MH i2c: E2 [21:54:05]MH_I2C_Read... [21:54:05]Read from MH i2c: E2 03 00 [21:54:05]MH_I2C_Read... [21:54:05]Read from MH i2c: E2 03 00 67 0F 00 90 00 EA [21:54:05]RAPDU: 90 00 [21:54:05]wFMCommunicate OK [21:54:05]wFMCommunicate request_size=4 [21:54:05]MH_SAM_APDU [21:54:05]CAPDU: 80 0D 03 02 [21:54:05]Write to MH i2c: E2 08 00 68 0F 80 0D 03 02 00 00 00 00 F2 [21:54:05]Write i2c OK [21:54:05]MH_I2C_Read... [21:54:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:54:05]Read from MH i2c: E2 [21:54:05]MH_I2C_Read... [21:54:05]Read from MH i2c: E2 0B 00 [21:54:05]MH_I2C_Read... [21:54:05]Read from MH i2c: E2 0B 00 68 0F 00 1D 5C AB F1 05 65 EA D3 90 00 2F [21:54:05]RAPDU: 1D 5C AB F1 05 65 EA D3 90 00 [21:54:05]wFMCommunicate OK [21:54:05]SAM_PROTO_SignData done [21:54:05]FM_MakeSignedData done [21:54:05]CreateOFDProtocolMessage [21:54:05]wFMCommunicate request_size=4 [21:54:05]MH_SAM_APDU [21:54:05]CAPDU: 80 11 00 00 [21:54:05]Write to MH i2c: E2 08 00 69 0F 80 11 00 00 00 00 00 00 F2 [21:54:05]Write i2c OK [21:54:05]MH_I2C_Read... [21:54:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:54:05]Read from MH i2c: E2 [21:54:05]MH_I2C_Read... [21:54:05]Read from MH i2c: E2 17 00 [21:54:05]MH_I2C_Read... [21:54:05]Read from MH i2c: E2 17 00 69 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 3D [21:54:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [21:54:05]wFMCommunicate OK [21:54:05]CreateOFDProtocolMessage done [21:54:05]OFDSenderStorePacket 68219 [21:54:05]StoreOFDPacket docnum=68219 [21:54:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 01 00 00 15 5E 08 01 4D FB 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F8 39 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B6 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B6 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 EA 00 00 00 F4 03 04 00 F8 E9 5C 66 0E 04 04 00 42 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 7B 0A 01 00 35 04 06 00 CB B9 6D 5C 8C 06 1D 5C AB F1 05 65 EA D3 [21:54:05]CheckFolder [21:54:05]dirname=/storage/ofd_packets [21:54:05]CheckFolder done [21:54:06]ProducePacketName [21:54:06]name=ofd_packets/00068219 [21:54:06]NVStorageSaveData ofd_packets/00068219 [21:54:06]File name is /storage/ofd_packets/00068219 [21:54:06]Write 302 bytes [21:54:06]NVStorageSaveData done [21:54:06]OFDSenderStorePacket done [21:54:06]KKMCreateOFDPacket done [21:54:06]NVStorageSaveData kkm_last_timestamp [21:54:06]File name is /storage/kkm_last_timestamp [21:54:06]Write 4 bytes [21:54:06]NVStorageSaveData done [21:54:06]ExternCall_PrintAddStr [21:54:06]wPrintStart [21:54:06]Write to MH i2c: 01 00 00 6A 0F 79 [21:54:06]OFD Sender: Processing packet 68219 [packets to send 26, broken 25] [21:54:06]ProducePacketName [21:54:06]name=ofd_packets/00068219 [21:54:06]Write i2c OK [21:54:06]OFD Sender: To server: pG, [21:54:06]MH_I2C_Read... [21:54:06]CommunicateWithHost lk.salyk.kg:30040 [21:54:06]ConnectInit lk.salyk.kg [21:54:06]Read from MH i2c: 01 [21:54:06]MH_I2C_Read... [21:54:06]Read from MH i2c: 01 07 00 [21:54:06]MH_I2C_Read... [21:54:06]Read from MH i2c: 01 07 00 6A 0F 00 00 00 00 00 FF 0F 8E [21:54:06]Connected sock=11 [21:54:06]RasterBufferAndPrint [21:54:06]Data to sent: line Счет N : (1)706290 [21:54:06]line ИНН: 02508201610067 [21:54:06]line Контрольно-Кассовый Чек [21:54:06]line ПРОДАЖА [21:54:06]line ТРК (МРК, ГНК) : 62 [21:54:06]87 line Товар: 2710124130 [21:54:06]95 line Super-92-К-5 [21:54:06]F6 line 14.840 * 67.40 [21:54:06]70 line = 1000.22 [21:54:06]47 line НДС 12% НСП 1% [21:54:06]line > о реализуемом товаре [21:54:06]line ИТОГО: 1000.22 [21:54:06]line НСП 1% : 8.85 [21:54:06]line НДС 12% : 106.22 [21:54:06]2C line Наличными: 0.00 [21:54:06]01 line Безнал.: 1000.22 [21:54:06]00 line Место: АЗС № 62 "Партнер Нефть" [21:54:06]30 line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [21:54:06]30 line СНО: Общий режим [21:54:06]line Чек 234 02.06.2024 21:54 [21:54:06]line Смена: 322 ФФД: 1.0 [21:54:06]line ЗНМ: 0300000181 [21:54:06]line РНМ: 0000000000098096 [21:54:06]30 line Версия ККМ: 001 [21:54:06]30 line Платежная система: АКБ Кыргызстан [21:54:06]30 30 30 30 30 30 39 36 35 34 30 30 10 01 00 00 15 5E 08 01 4D FB 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 line ФМ: 0000000000965400 [21:54:06]04 line ФД: 68219 [21:54:06]4E line ФПД: 223997264169990 [21:54:06]00 line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240602T215400&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68219&fm=223997264169990&tin=02508201610067®Number=0000000000098096&sum=100022 [21:54:06]8A 04 0A 00 32 37 31 30 31 32 34 written 0, free lines is 4095 [21:54:06]31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F8 39 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B6 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B6 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 EA 00 00 00 F4 03 04 00 F8 E9 5C 66 0E 04 04 00 42 01 00 00 Write to MH i2c: B9 01 04 00 01 00 01 0D 00 04 94 10 00 30 30 30 0F 30 A3 30 30 [21:54:07]30 30 30 Write i2c OK [21:54:07]30 30 39 MH_I2C_Read... [21:54:07]38 30 39 36 11 Read from MH i2c: 04 01 10 [21:54:07]00 30 30 30 30 MH_I2C_Read... [21:54:07]30 Read from MH i2c: 30 30 30 30 30 01 39 07 36 35 34 30 30 00 10 [21:54:07]04 MH_I2C_Read... [21:54:07]04 Read from MH i2c: 01 07 00 94 0F 00 00 00 00 00 6E 00 0D 7B 25 0A [21:54:07]01 00 35 04 06 RasterBufferAndPrint [21:54:07]00 line [21:54:07]CB B9 6D 5C 8C line [21:54:07]06 line [21:54:07]1D line [21:54:07]5C line [21:54:07]AB F1 05 65 EA D3 [21:54:07]written 0, free lines is 3888 [21:54:07]MH_Cut [21:54:07]Write to MH i2c: D1 01 00 9B 0F 01 7C [21:54:07]Write i2c OK [21:54:07]MH_I2C_Read... [21:54:07]Read from MH i2c: D1 [21:54:07]MH_I2C_Read... [21:54:07]Read from MH i2c: D1 01 00 [21:54:07]MH_I2C_Read... [21:54:07]Read from MH i2c: D1 01 00 9B 0F 00 7B [21:54:07]Write to MH i2c: 01 00 00 9C 0F AB [21:54:07]Write i2c OK [21:54:07]MH_I2C_Read... [21:54:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 67 CA 47 00 1C 7C A5 07 01 00 07 00 *** Cut start [21:54:07]3B *** Partial cut [21:54:07]00 *** CUTSNS_PIN = 1 [21:54:07]F9 03 0E 00 37 37 30 39 33 36 34 33 *** CUTSNS_PIN = 0 [21:54:07]34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 7B 0A 01 00 F4 03 04 00 FD 90 5C 66 B6 04 01 00 00 F4 6F 3F 0F *** Brake cut motor [21:54:08]97 5B 81 EE [21:54:08]CommunicateWithHost err = 0 [21:54:08]CheckOFDResponse [21:54:08]1017 (14) - 77093643461234 [21:54:08]1041 (16) - 0000000000965400 [21:54:08]1040 (4) - 68219 [21:54:08]1012 (4) - 02.06.2024 15:34 [21:54:08]1206 (1) - 0 [21:54:08]OFD Sender: Remove packet 68219 [21:54:08]ProducePacketName [21:54:08]name=ofd_packets/00068219 [21:54:08]NVStorageDeleteData [21:54:08]Read from MH i2c: *** Stop cut motor [21:54:08]01 *** Cut end [21:54:08] [21:54:08]MH_I2C_Read... [21:54:08]Read from MH i2c: 01 07 00 [21:54:08]MH_I2C_Read... [21:54:08]Read from MH i2c: 01 07 00 9C 0F 00 00 00 00 00 FF 0F C0 [21:54:08]process_action close_receipt done [21:54:08]requested_data is exist [21:54:08]produce_requested_data [21:54:08]requested_item fm.sn is exist - process it [21:54:08]wFMCommunicate request_size=4 [21:54:08]MH_SAM_APDU [21:54:08]CAPDU: 80 11 00 00 [21:54:08]Write to MH i2c: E2 08 00 9D 0F 80 11 00 00 00 00 00 00 26 [21:54:08]Write i2c OK [21:54:08]MH_I2C_Read... [21:54:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:54:08]Read from MH i2c: E2 [21:54:08]MH_I2C_Read... [21:54:08]Read from MH i2c: E2 17 00 [21:54:08]MH_I2C_Read... [21:54:08]Read from MH i2c: E2 17 00 9D 0F 00 OFD Sender: No OFD packet to send [21:54:08]11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 71 [21:54:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [21:54:08]wFMCommunicate OK [21:54:08]requested_item fd.num is exist - process it [21:54:08]SAM_PROTO_GetFieldsCounters [21:54:08]wFMCommunicate request_size=4 [21:54:08]MH_SAM_APDU [21:54:08]CAPDU: 80 13 00 00 [21:54:08]Write to MH i2c: E2 08 00 9E 0F 80 13 00 00 00 00 00 00 29 [21:54:08]Write i2c OK [21:54:08]MH_I2C_Read... [21:54:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:54:09]Read from MH i2c: E2 [21:54:09]MH_I2C_Read... [21:54:09]Read from MH i2c: E2 62 00 [21:54:09]MH_I2C_Read... [21:54:09]Read from MH i2c: E2 62 00 9E 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 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 7B 0A 01 00 0E 04 04 00 42 01 00 00 12 04 04 00 EA 00 00 00 5E 04 04 00 EA 00 00 00 57 04 04 00 EB 00 00 00 19 04 04 00 00 00 00 00 90 00 D0 [21:54: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 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 7B 0A 01 00 0E 04 04 00 42 01 00 00 12 04 04 00 EA 00 00 00 5E 04 04 00 EA 00 00 00 57 04 04 00 EB 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:54:09]wFMCommunicate OK [21:54:09]SAM_PROTO_GetFieldsCounters done [21:54:09]requested_item shift.num is exist - process it [21:54:09]requested_item shift.opened is exist - process it [21:54:09]req_shift_opened [21:54:09]FM_GetShiftState [21:54:09]SAM_PROTO_GetShiftState [21:54:09]wFMCommunicate request_size=4 [21:54:09]MH_SAM_APDU [21:54:09]CAPDU: 80 13 01 00 [21:54:09]Write to MH i2c: E2 08 00 9F 0F 80 13 01 00 00 00 00 00 2B [21:54:09]Write i2c OK [21:54:09]MH_I2C_Read... [21:54:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:54:09]Read from MH i2c: E2 [21:54:09]MH_I2C_Read... [21:54:09]Read from MH i2c: E2 0E 00 [21:54:09]MH_I2C_Read... [21:54:09]Read from MH i2c: E2 0E 00 9F 0F 00 09 00 01 A4 BB 5B 66 00 00 00 00 90 00 57 [21:54:09]RAPDU: 09 00 01 A4 BB 5B 66 00 00 00 00 90 00 [21:54:09]wFMCommunicate OK [21:54:09]SAM_PROTO_GetShiftState done [21:54:09]FM_GetShiftState done [21:54:09]req_shift_opened done [21:54:09]requested_item shift.open_date is exist - process it [21:54:09]req_shift_open_date [21:54:09]req_shift_open_date done [21:54:09]produce_requested_data done [21:54:09]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68219,"shift.num":322,"shift.opened":1,"shift.open_date":1717287844} [21:54:09]process_action_free close_receipt [21:54:09]json_value_free [21:54:09]json_value_free done [21:54:09]process_json_proto returns [21:54:09]Send response to host [21:54:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68219,"shift.num":322,"shift.opened":1,"shift.open_date":1717287844}}} [21:54:09]free response buf [21:54:09]execute_script done [21:54:09]execute_script returns [21:54:09]free content buf [21:54:09]Sock 10.Close socket [21:54:09]Sock 10.Thread stoped [21:54:13]OFD Sender: No OFD packet to send [21:54:18]OFD Sender: No OFD packet to send [21:54:23]OFD Sender: No OFD packet to send [21:54:28]OFD Sender: No OFD packet to send [21:54:33]OFD Sender: No OFD packet to send [21:54:38]OFD Sender: No OFD packet to send [21:54:43]OFD Sender: No OFD packet to send [21:54:48]OFD Sender: No OFD packet to send [21:54:48]ConnectInit Can't connect to host [21:54:53]OFD Sender: No OFD packet to send [21:54:58]OFD Sender: No OFD packet to send [21:55:03]OFD Sender: No OFD packet to send [21:55:08]OFD Sender: No OFD packet to send [21:55:13]OFD Sender: No OFD packet to send [21:55:18]OFD Sender: No OFD packet to send [21:55:23]OFD Sender: No OFD packet to send [21:55:28]OFD Sender: No OFD packet to send [21:55:33]OFD Sender: No OFD packet to send [21:55:38]OFD Sender: No OFD packet to send [21:55:43]OFD Sender: No OFD packet to send [21:55:48]OFD Sender: No OFD packet to send [21:55:53]OFD Sender: No OFD packet to send [21:55:58]OFD Sender: No OFD packet to send [21:56:03]OFD Sender: No OFD packet to send [21:56:08]OFD Sender: No OFD packet to send [21:56:13]OFD Sender: No OFD packet to send [21:56:18]OFD Sender: No OFD packet to send [21:56:23]OFD Sender: No OFD packet to send [21:56:28]OFD Sender: No OFD packet to send [21:56:33]OFD Sender: No OFD packet to send [21:56:38]OFD Sender: No OFD packet to send [21:56:43]OFD Sender: No OFD packet to send [21:56:48]OFD Sender: No OFD packet to send [21:56:53]OFD Sender: No OFD packet to send [21:56:58]OFD Sender: No OFD packet to send [21:57:03]OFD Sender: No OFD packet to send [21:57:07]ConnectInit Can't connect to host [21:57:08]OFD Sender: No OFD packet to send [21:57:13]OFD Sender: No OFD packet to send [21:57:18]OFD Sender: No OFD packet to send [21:57:23]OFD Sender: No OFD packet to send [21:57:28]OFD Sender: No OFD packet to send [21:57:33]OFD Sender: No OFD packet to send [21:57: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:25]ConnectInit Can't connect to host [21:59:29]OFD Sender: No OFD packet to send [21:59:34]OFD Sender: No OFD packet to send [21:59:39]OFD Sender: No OFD packet to send [21:59:44]OFD Sender: No OFD packet to send [21:59:49]OFD Sender: No OFD packet to send [21:59:54]OFD Sender: No OFD packet to send [21:59:59]OFD Sender: No OFD packet to send [22:00:04]OFD Sender: No OFD packet to send [22:00:09]OFD Sender: No OFD packet to send [22:00:14]OFD Sender: No OFD packet to send [22:00:19]OFD Sender: No OFD packet to send [22:00:24]OFD Sender: No OFD packet to send [22:00:29]OFD Sender: No OFD packet to send [22:00:34]OFD Sender: No OFD packet to send [22:00:39]OFD Sender: No OFD packet to send [22:00:44]OFD Sender: No OFD packet to send [22:00:49]OFD Sender: No OFD packet to send [22:00:54]OFD Sender: No OFD packet to send [22:00:59]OFD Sender: No OFD packet to send [22:01:04]OFD Sender: No OFD packet to send [22:01:09]OFD Sender: No OFD packet to send [22:01:14]OFD Sender: No OFD packet to send [22:01:19]OFD Sender: No OFD packet to send [22:01:24]OFD Sender: No OFD packet to send [22:01:29]OFD Sender: No OFD packet to send [22:01:34]OFD Sender: No OFD packet to send [22:01:39]OFD Sender: No OFD packet to send [22:01:43]ConnectInit Can't connect to host [22:01:44]OFD Sender: No OFD packet to send [22:01:49]OFD Sender: No OFD packet to send [22:01:54]OFD Sender: No OFD packet to send [22:01:59]OFD Sender: No OFD packet to send [22:02:04]OFD Sender: No OFD packet to send [22:02:09]OFD Sender: No OFD packet to send [22:02:14]OFD Sender: No OFD packet to send [22:02:19]OFD Sender: No OFD packet to send [22:02:24]OFD Sender: No OFD packet to send [22:02:29]OFD Sender: No OFD packet to send [22:02:34]OFD Sender: No OFD packet to send [22:02:39]OFD Sender: No OFD packet to send [22:02:44]OFD Sender: No OFD packet to send [22:02:49]OFD Sender: No OFD packet to send [22:02:54]OFD Sender: No OFD packet to send [22:02:59]OFD Sender: No OFD packet to send [22:03:04]OFD Sender: No OFD packet to send [22:03:09]OFD Sender: No OFD packet to send [22:03:14]OFD Sender: No OFD packet to send [22:03:19]OFD Sender: No OFD packet to send [22:03:24]OFD Sender: No OFD packet to send [22:03:29]OFD Sender: No OFD packet to send [22:03:34]OFD Sender: No OFD packet to send [22:03:39]OFD Sender: No OFD packet to send [22:03:44]OFD Sender: No OFD packet to send [22:03:49]OFD Sender: No OFD packet to send [22:03:52]accept exits with 9 [22:03:52]New connection [22:03:52]New thread 3066686820 created [22:03:52]Thread 3066543460 joined [22:03:52]Waiting for new connection... [22:03:52] Sock 9.Parse request [22:03:52]Sock 9.Check first char [22:03:52]Sock 9.First char is OK [22:03:52]request: POST /json_proto HTTP/1.0 [22:03:52]Method: POST [22:03:52]URL: /json_proto [22:03:52]Method is POST - this is cgi request [22:03:52]url: /json_proto [22:03:52]query_string will be loaded in cgi processing [22:03:52]execute_cgi json_proto POST (null) [22:03:52]execute_cgi path=json_proto method=POST [22:03:52]POST find Content-Length [22:03:52]Host: 172.17.36.132:8080 [22:03:52]Content-Length: 678 [22:03:52]Content-Type: application/json [22:03:52] [22:03:52]POST finish read [22:03:52]Found Content-Length = 678 [22:03:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706291", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.40, "quantity" : 12.810, "sum" : 850.58, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 850.00, "total" : 850.00, "payments": [ { "type": 0, "sum" : 850.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:03:52]execute_script... [22:03: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)706291", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.40, "quantity" : 12.810, "sum" : 850.58, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 850.00, "total" : 850.00, "payments": [ { "type": 0, "sum" : 850.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:03:52]POST & json_proto [22:03:52]process_json_proto [22:03:52]json parsed OK: [22:03:52]protocol is kg_v1.0 [22:03:52]action value=close_receipt [22:03:52]process_action close_receipt [22:03:52]cmd_close_receipt [22:03:52]MH_GetDate [22:03:52]Write to MH i2c: F0 00 00 A0 0F 9E [22:03:52]Write i2c OK [22:03:52]MH_I2C_Read... [22:03:52]Read from MH i2c: F0 [22:03:52]MH_I2C_Read... [22:03:52]Read from MH i2c: F0 09 00 [22:03:52]MH_I2C_Read... [22:03:52]Read from MH i2c: F0 09 00 A0 0F 00 49 EC 5C 66 B2 22 B0 64 86 [22:03:52]GetLastDocTimeStamp 1717365240 [22:03:52]current date 1717365833 [22:03:52]FM_GetShiftState [22:03:52]SAM_PROTO_GetShiftState [22:03:52]wFMCommunicate request_size=4 [22:03:52]MH_SAM_APDU [22:03:52]CAPDU: 80 13 01 00 [22:03:52]Write to MH i2c: E2 08 00 A1 0F 80 13 01 00 00 00 00 00 2D [22:03:52]Write i2c OK [22:03:52]MH_I2C_Read... [22:03:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:03:52]Read from MH i2c: E2 [22:03:52]MH_I2C_Read... [22:03:52]Read from MH i2c: E2 0E 00 [22:03:52]MH_I2C_Read... [22:03:52]Read from MH i2c: E2 0E 00 A1 0F 00 09 00 01 A4 BB 5B 66 00 00 00 00 90 00 59 [22:03:52]RAPDU: 09 00 01 A4 BB 5B 66 00 00 00 00 90 00 [22:03:52]wFMCommunicate OK [22:03:52]SAM_PROTO_GetShiftState done [22:03:52]FM_GetShiftState done [22:03:52]opened in 1717287844 [22:03:52]opened+sec_in_day 1717374244 [22:03:52]quantity*price = 85058 [22:03:52]sum+1 = 85059 [22:03:52]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.58 ИТОГО: 850.00 Внесено: 850.00 СДАЧА: 0.00 НСП 1% : 7.53 НДС 12% : 90.33 Наличными: 850.00 Безнал.: 0.00 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 235 02.06.2024 22:03 Смена: 322 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 ФМ: 0000000000965400 ФД: 68220 ФПД: 104974778420710 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240602T220354&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68220&fm=104974778420710&tin=02508201610067®Number=0000000000098096&sum=85000 [22:03:56]StoreToDocumentArchive [22:03:56]shift 322 fd 68220 [22:03:56]save to /storage/0322/doc_00068220 [22:03:56]save last doc name /storage/0322/doc_00068220 to /storage/kkm_last_doc_name [22:03:56]save OK [22:03:56]Clear old archive folders... [22:03:56]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:03:56]tlvbuf is 005108D0 [22:03:56]SAM_PROTO_ClearQueue [22:03:56]wFMCommunicate request_size=4 [22:03:56]MH_SAM_APDU [22:03:56]CAPDU: 80 09 00 00 [22:03:56]Write to MH i2c: E2 08 00 AE 0F 80 09 00 00 00 00 00 00 2F [22:03:56]Write i2c OK [22:03:56]MH_I2C_Read... [22:03:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:03:56]Read from MH i2c: E2 [22:03:56]MH_I2C_Read... [22:03:56]Read from MH i2c: E2 03 00 [22:03:56]MH_I2C_Read... [22:03:56]Read from MH i2c: E2 03 00 AE 0F 00 90 00 31 [22:03:56]RAPDU: 90 00 [22:03:56]wFMCommunicate OK [22:03:56]SAM_PROTO_ClearQueue done [22:03:56]KKMCreateOFDPacket [22:03:56]OFDProtocolAddRootSTLVToBuf [22:03:56]FM_MakeSignedData [22:03:56]FM_MakeSignedData [22:03:56]SAM_PROTO_SignData [22:03:56]wFMCommunicate request_size=4 [22:03:56]MH_SAM_APDU [22:03:56]CAPDU: 80 0D 01 02 [22:03:56]Write to MH i2c: E2 08 00 AF 0F 80 0D 01 02 00 00 00 00 37 [22:03:56]Write i2c OK [22:03:56]MH_I2C_Read... [22:03:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:03:56]Read from MH i2c: E2 [22:03:56]MH_I2C_Read... [22:03:56]Read from MH i2c: E2 03 00 [22:03:56]MH_I2C_Read... [22:03:56]Read from MH i2c: E2 03 00 AF 0F 00 90 00 32 [22:03:56]RAPDU: 90 00 [22:03:56]wFMCommunicate OK [22:03:56]wFMCommunicate request_size=255 [22:03:56]MH_SAM_APDU [22:03: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 34 FF 03 08 00 03 0A 32 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 42 4C 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 4C 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F1 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 49 23 00 00 00 00 07 04 06 00 08 4C 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EB 00 00 00 F4 03 04 00 4A EC 5C 66 0E 04 04 00 42 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 7C 0A 01 00 35 04 06 00 5F [22:03:57]Write to MH i2c: E2 02 01 B0 0F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 0A 32 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 42 4C 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 4C 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F1 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 49 23 00 00 00 00 07 04 06 00 08 4C 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EB 00 00 00 F4 03 04 00 4A EC 5C 66 0E 04 04 00 42 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 7C 0A 01 00 35 04 06 00 5F 00 00 28 [22:03:58]Write i2c OK [22:03:58]MH_I2C_Read... [22:03:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:03:58]Read from MH i2c: E2 [22:03:58]MH_I2C_Read... [22:03:58]Read from MH i2c: E2 03 00 [22:03:58]MH_I2C_Read... [22:03:58]Read from MH i2c: E2 03 00 B0 0F 00 90 00 33 [22:03:58]RAPDU: 90 00 [22:03:58]wFMCommunicate OK [22:03:58]wFMCommunicate request_size=10 [22:03:58]MH_SAM_APDU [22:03:58]CAPDU: 80 0D 02 02 05 79 58 60 CD E6 [22:03:58]Write to MH i2c: E2 0D 00 B1 0F 80 0D 02 02 05 00 79 58 60 CD E6 00 00 28 [22:03:58]Write i2c OK [22:03:58]MH_I2C_Read... [22:03:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:03:58]Read from MH i2c: E2 [22:03:58]MH_I2C_Read... [22:03:58]Read from MH i2c: E2 03 00 [22:03:58]MH_I2C_Read... [22:03:58]Read from MH i2c: E2 03 00 B1 0F 00 90 00 34 [22:03:58]RAPDU: 90 00 [22:03:58]wFMCommunicate OK [22:03:58]wFMCommunicate request_size=4 [22:03:58]MH_SAM_APDU [22:03:58]CAPDU: 80 0D 03 02 [22:03:58]Write to MH i2c: E2 08 00 B2 0F 80 0D 03 02 00 00 00 00 3C [22:03:58]Write i2c OK [22:03:58]MH_I2C_Read... [22:03:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:03:58]Read from MH i2c: E2 [22:03:58]MH_I2C_Read... [22:03:58]Read from MH i2c: E2 0B 00 [22:03:58]MH_I2C_Read... [22:03:58]Read from MH i2c: E2 0B 00 B2 0F 00 6A 63 6E 44 7B E8 A4 89 90 00 4C [22:03:58]RAPDU: 6A 63 6E 44 7B E8 A4 89 90 00 [22:03:58]wFMCommunicate OK [22:03:58]SAM_PROTO_SignData done [22:03:58]FM_MakeSignedData done [22:03:58]CreateOFDProtocolMessage [22:03:58]wFMCommunicate request_size=4 [22:03:58]MH_SAM_APDU [22:03:58]CAPDU: 80 11 00 00 [22:03:58]Write to MH i2c: E2 08 00 B3 0F 80 11 00 00 00 00 00 00 3C [22:03:58]Write i2c OK [22:03:58]MH_I2C_Read... [22:03:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:03:58]Read from MH i2c: E2 [22:03:58]MH_I2C_Read... [22:03:58]Read from MH i2c: E2 17 00 [22:03:58]MH_I2C_Read... [22:03:58]Read from MH i2c: E2 17 00 B3 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 87 [22:03:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [22:03:59]wFMCommunicate OK [22:03:59]CreateOFDProtocolMessage done [22:03:59]OFDSenderStorePacket 68220 [22:03:59]StoreOFDPacket docnum=68220 [22:03:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 83 BE 07 01 04 AA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 0A 32 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 42 4C 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 4C 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F1 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 49 23 00 00 00 00 07 04 06 00 08 4C 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EB 00 00 00 F4 03 04 00 4A EC 5C 66 0E 04 04 00 42 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 7C 0A 01 00 35 04 06 00 5F 79 58 60 CD E6 6A 63 6E 44 7B E8 A4 89 [22:03:59]CheckFolder [22:03:59]dirname=/storage/ofd_packets [22:03:59]CheckFolder done [22:03:59]ProducePacketName [22:03:59]name=ofd_packets/00068220 [22:03:59]NVStorageSaveData ofd_packets/00068220 [22:03:59]File name is /storage/ofd_packets/00068220 [22:03:59]Write 301 bytes [22:03:59]NVStorageSaveData done [22:03:59]OFDSenderStorePacket done [22:03:59]KKMCreateOFDPacket done [22:03:59]NVStorageSaveData kkm_last_timestamp [22:03:59]File name is /storage/kkm_last_timestamp [22:03:59]Write 4 bytes [22:03:59]NVStorageSaveData done [22:03:59]ExternCall_PrintAddStr [22:03:59]wPrintStart [22:03:59]Write to MH i2c: 01 00 00 B4 0F C3 [22:03:59]Write i2c OK [22:03:59]MH_I2C_Read... [22:03:59]Read from MH i2c: 01 [22:03:59]MH_I2C_Read... [22:03:59]Read from MH i2c: 01 07 00 [22:03:59]MH_I2C_Read... [22:03:59]OFD Sender: Processing packet 68220 [packets to send 26, broken 25] [22:03:59]ProducePacketName [22:03:59]name=ofd_packets/00068220 [22:03:59]OFD Sender: To server: pG, [22:03:59]CommunicateWithHost lk.salyk.kg:30040 [22:03:59]ConnectInit lk.salyk.kg [22:03:59]Read from MH i2c: 01 07 00 B4 0F 00 00 00 00 00 FF 0F D8 [22:03:59]RasterBufferAndPrint [22:03:59]line Счет N : (1)706291 [22:03:59]line ИНН: 02508201610067 [22:03:59]line Контрольно-Кассовый Чек [22:03:59]line ПРОДАЖА [22:03:59]line ТРК (МРК, ГНК) : 63 [22:03:59]line Товар: 2710124130 [22:03:59]line Аи-92-К-4 [22:03:59]line 12.810 * 66.40 [22:03:59]line = 850.58 [22:03:59]Connected sock=11 [22:03:59]line НДС 12% НСП 1% [22:03:59]line > о реализуемом товаре [22:03:59]line ОКРУГЛЕНИЕ: -0.58 [22:03:59]line ИТОГО: 850.00 [22:03:59]line Внесено: 850.00 [22:03:59]Data to sent: line СДАЧА: 0.00 [22:03:59]87 line НСП 1% : 7.53 [22:03:59]95 line НДС 12% : 90.33 [22:03:59]F6 line Наличными: 850.00 [22:03:59]70 line Безнал.: 0.00 [22:03:59]47 line Место: АЗС № 62 "Партнер Нефть" [22:03:59]2C line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [22:03:59]line СНО: Общий режим [22:03:59]line Чек 235 02.06.2024 22:03 [22:03:59]line Смена: 322 ФФД: 1.0 [22:03:59]line ЗНМ: 0300000181 [22:03:59]01 line РНМ: 0000000000098096 [22:03:59]00 line Версия ККМ: 001 [22:03:59]30 line ФМ: 0000000000965400 [22:03:59]30 line ФД: 68220 [22:03:59]30 line ФПД: 104974778420710 [22:03:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240602T220354&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68220&fm=104974778420710&tin=02508201610067®Number=0000000000098096&sum=85000 [22:03:59]30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 83 BE 07 01 04 AA 5A 03 01 00 03 00 FB 00 1E 04 01 written 0, free lines is 4095 [22:03:59]00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 0A 32 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 42 4C 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 4C 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F1 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 49 23 00 00 00 00 07 04 06 00 08 4C 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EB 00 00 00 F4 Write to MH i2c: 03 01 04 00 00 4A EC 5C 66 0E 04 04 00 00 DF 42 01 0F 00 EE 00 B9 04 [22:04:00]01 Write i2c OK [22:04:00]00 MH_I2C_Read... [22:04:00]01 Read from MH i2c: 0D 01 04 [22:04:00]10 00 30 30 30 MH_I2C_Read... [22:04:00]30 30 30 Read from MH i2c: 30 01 30 07 00 [22:04:00]MH_I2C_Read... [22:04:00]30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 7C 0A 01 00 35 Read from MH i2c: 04 01 06 00 5F 79 58 07 60 CD E6 6A 63 6E 00 44 DF 7B 0F E8 00 A4 00 89 00 [22:04:00]00 00 66 0D 68 [22:04:00]RasterBufferAndPrint [22:04:00]line [22:04:00]line [22:04:00]line [22:04:00]line [22:04:00]line [22:04:00]written 0, free lines is 4043 [22:04:00]MH_Cut [22:04:00]Write to MH i2c: D1 01 00 E6 0F 01 C7 [22:04:00]Write i2c OK [22:04:00]MH_I2C_Read... [22:04:00]Read from MH i2c: D1 [22:04:00]MH_I2C_Read... [22:04:00]Read from MH i2c: D1 01 00 [22:04:00]MH_I2C_Read... [22:04:00]Read from MH i2c: D1 01 00 E6 0F 00 C6 [22:04:00]Write to MH i2c: 01 00 00 E7 0F F6 Received data: [22:04:00]87 Write i2c OK [22:04:00]95 MH_I2C_Read... [22:04:00]F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 97 DB 47 00 08 62 *** Cut start [22:04:01]A5 07 *** Partial cut [22:04:01]01 00 07 *** CUTSNS_PIN = 1 [22:04:01]00 3B *** CUTSNS_PIN = 0 [22:04:01]00 *** Brake cut motor [22:04:01]F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 7C 0A 01 00 F4 *** Stop cut motor [22:04:01]03 *** Cut end [22:04:01]04 00 4E 93 5C 66 B6 04 01 00 00 FA 89 BB 0B 11 13 46 61 [22:04:01]CommunicateWithHost err = 0 [22:04:01]CheckOFDResponse [22:04:01]1017 (14) - 77093643461234 [22:04:01]1041 (16) - 0000000000965400 [22:04:01]1040 (4) - 68220 [22:04:01]1012 (4) - 02.06.2024 15:44 [22:04:01]1206 (1) - 0 [22:04:01]OFD Sender: Remove packet 68220 [22:04:01]ProducePacketName [22:04:01]name=ofd_packets/00068220 [22:04:01]NVStorageDeleteData [22:04:01]ConnectInit Can't connect to host [22:04:01]Read from MH i2c: 01 [22:04:01]MH_I2C_Read... [22:04:01]Read from MH i2c: 01 07 00 [22:04:01]MH_I2C_Read... [22:04:01]Read from MH i2c: 01 07 00 E7 0F 00 00 00 00 00 FF 0F 0B [22:04:01]process_action close_receipt done [22:04:01]requested_data is exist [22:04:01]produce_requested_data [22:04:01]requested_item fm.sn is exist - process it [22:04:01]wFMCommunicate request_size=4 [22:04:01]MH_SAM_APDU [22:04:01]CAPDU: 80 11 00 00 [22:04:01]Write to MH i2c: E2 08 00 E8 0F 80 11 00 00 00 00 00 00 71 [22:04:01]Write i2c OK [22:04:01]MH_I2C_Read... [22:04:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:04:01]Read from MH i2c: E2 [22:04:01]MH_I2C_Read... [22:04:01]Read from MH i2c: E2 17 00 [22:04:01]MH_I2C_Read... [22:04:01]Read from MH i2c: E2 17 00 E8 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 BC [22:04:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [22:04:02]wFMCommunicate OK [22:04:02]requested_item fd.num is exist - process it [22:04:02]SAM_PROTO_GetFieldsCounters [22:04:02]wFMCommunicate request_size=4 [22:04:02]MH_SAM_APDU [22:04:02]CAPDU: 80 13 00 00 [22:04:02]Write to MH i2c: E2 08 00 E9 0F 80 13 00 00 00 00 00 00 74 [22:04:02]Write i2c OK [22:04:02]MH_I2C_Read... [22:04:02]OFD Sender: No OFD packet to send [22:04:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:04:02]Read from MH i2c: E2 [22:04:02]MH_I2C_Read... [22:04:02]Read from MH i2c: E2 62 00 [22:04:02]MH_I2C_Read... [22:04:02]Read from MH i2c: E2 62 00 E9 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 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 7C 0A 01 00 0E 04 04 00 42 01 00 00 12 04 04 00 EB 00 00 00 5E 04 04 00 EB 00 00 00 57 04 04 00 EC 00 00 00 19 04 04 00 00 00 00 00 90 00 1F [22:04: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 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 7C 0A 01 00 0E 04 04 00 42 01 00 00 12 04 04 00 EB 00 00 00 5E 04 04 00 EB 00 00 00 57 04 04 00 EC 00 00 00 19 04 04 00 00 00 00 00 90 00 [22:04:02]wFMCommunicate OK [22:04:02]SAM_PROTO_GetFieldsCounters done [22:04:02]requested_item shift.num is exist - process it [22:04:02]requested_item shift.opened is exist - process it [22:04:02]req_shift_opened [22:04:02]FM_GetShiftState [22:04:02]SAM_PROTO_GetShiftState [22:04:02]wFMCommunicate request_size=4 [22:04:02]MH_SAM_APDU [22:04:02]CAPDU: 80 13 01 00 [22:04:03]Write to MH i2c: E2 08 00 EA 0F 80 13 01 00 00 00 00 00 76 [22:04:03]Write i2c OK [22:04:03]MH_I2C_Read... [22:04:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:04:03]Read from MH i2c: E2 [22:04:03]MH_I2C_Read... [22:04:03]Read from MH i2c: E2 0E 00 [22:04:03]MH_I2C_Read... [22:04:03]Read from MH i2c: E2 0E 00 EA 0F 00 09 00 01 A4 BB 5B 66 00 00 00 00 90 00 A2 [22:04:03]RAPDU: 09 00 01 A4 BB 5B 66 00 00 00 00 90 00 [22:04:03]wFMCommunicate OK [22:04:03]SAM_PROTO_GetShiftState done [22:04:03]FM_GetShiftState done [22:04:03]req_shift_opened done [22:04:03]requested_item shift.open_date is exist - process it [22:04:03]req_shift_open_date [22:04:03]req_shift_open_date done [22:04:03]produce_requested_data done [22:04:03]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68220,"shift.num":322,"shift.opened":1,"shift.open_date":1717287844} [22:04:03]process_action_free close_receipt [22:04:03]json_value_free [22:04:03]json_value_free done [22:04:03]process_json_proto returns [22:04:03]Send response to host [22:04:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68220,"shift.num":322,"shift.opened":1,"shift.open_date":1717287844}}} [22:04:03]free response buf [22:04:03]execute_script done [22:04:03]execute_script returns [22:04:03]free content buf [22:04:03]Sock 9.Close socket [22:04:03]Sock 9.Thread stoped [22:04:07]OFD Sender: No OFD packet to send [22:04:12]OFD Sender: No OFD packet to send [22:04:17]OFD Sender: No OFD packet to send [22:04:22]OFD Sender: No OFD packet to send [22:04:27]OFD Sender: No OFD packet to send [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:42]OFD Sender: No OFD packet to send [22:05:47]OFD Sender: No OFD packet to send [22:05:52]OFD Sender: No OFD packet to send [22:05:57]OFD Sender: No OFD packet to send [22:06:00]accept exits with 10 [22:06:00]New connection [22:06:00]New thread 3066543460 created [22:06:00]Thread 3066686820 joined [22:06:00]Waiting for new connection... [22:06:00] Sock 10.Parse request [22:06:00]Sock 10.Check first char [22:06:00]Sock 10.First char is OK [22:06:00]request: POST /json_proto HTTP/1.0 [22:06:00]Method: POST [22:06:00]URL: /json_proto [22:06:00]Method is POST - this is cgi request [22:06:00]url: /json_proto [22:06:00]query_string will be loaded in cgi processing [22:06:00]execute_cgi json_proto POST (null) [22:06:00]execute_cgi path=json_proto method=POST [22:06:00]POST find Content-Length [22:06:00]Host: 172.17.36.132:8080 [22:06:00]Content-Length: 677 [22:06:00]Content-Type: application/json [22:06:00] [22:06:00]POST finish read [22:06:00]Found Content-Length = 677 [22:06:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706292", "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" : 73.40, "quantity" : 6.820, "sum" : 500.59, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:06:00]execute_script... [22:06: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)706292", "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" : 73.40, "quantity" : 6.820, "sum" : 500.59, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:06:00]POST & json_proto [22:06:00]process_json_proto [22:06:00]json parsed OK: [22:06:00]protocol is kg_v1.0 [22:06:00]action value=close_receipt [22:06:00]process_action close_receipt [22:06:00]cmd_close_receipt [22:06:00]MH_GetDate [22:06:00]Write to MH i2c: F0 00 00 EB 0F E9 [22:06:00]Write i2c OK [22:06:00]MH_I2C_Read... [22:06:00]Read from MH i2c: F0 [22:06:00]MH_I2C_Read... [22:06:00]Read from MH i2c: F0 09 00 [22:06:00]MH_I2C_Read... [22:06:00]Read from MH i2c: F0 09 00 EB 0F 00 C9 EC 5C 66 B2 22 B0 64 51 [22:06:00]GetLastDocTimeStamp 1717365834 [22:06:00]current date 1717365961 [22:06:00]FM_GetShiftState [22:06:00]SAM_PROTO_GetShiftState [22:06:00]wFMCommunicate request_size=4 [22:06:00]MH_SAM_APDU [22:06:00]CAPDU: 80 13 01 00 [22:06:00]Write to MH i2c: E2 08 00 EC 0F 80 13 01 00 00 00 00 00 78 [22:06:00]Write i2c OK [22:06:00]MH_I2C_Read... [22:06:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:06:00]Read from MH i2c: E2 [22:06:00]MH_I2C_Read... [22:06:00]Read from MH i2c: E2 0E 00 [22:06:00]MH_I2C_Read... [22:06:00]Read from MH i2c: E2 0E 00 EC 0F 00 09 00 01 A4 BB 5B 66 00 00 00 00 90 00 A4 [22:06:00]RAPDU: 09 00 01 A4 BB 5B 66 00 00 00 00 90 00 [22:06:00]wFMCommunicate OK [22:06:00]SAM_PROTO_GetShiftState done [22:06:00]FM_GetShiftState done [22:06:00]opened in 1717287844 [22:06:00]opened+sec_in_day 1717374244 [22:06:00]quantity*price = 50058 [22:06:00]sum+1 = 50060 [22:06:00]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.59 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.16 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 236 02.06.2024 22:06 Смена: 322 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 ФМ: 0000000000965400 ФД: 68221 ФПД: 63960502764658 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240602T220602&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68221&fm=63960502764658&tin=02508201610067®Number=0000000000098096&sum=50000 [22:06:04]StoreToDocumentArchive [22:06:04]shift 322 fd 68221 [22:06:04]save to /storage/0322/doc_00068221 [22:06:04]save last doc name /storage/0322/doc_00068221 to /storage/kkm_last_doc_name [22:06:04]save OK [22:06:04]Clear old archive folders... [22:06:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:06:04]tlvbuf is 002CBFA0 [22:06:04]SAM_PROTO_ClearQueue [22:06:04]wFMCommunicate request_size=4 [22:06:04]MH_SAM_APDU [22:06:04]CAPDU: 80 09 00 00 [22:06:04]Write to MH i2c: E2 08 00 F9 0F 80 09 00 00 00 00 00 00 7A [22:06:04]Write i2c OK [22:06:04]MH_I2C_Read... [22:06:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:06:04]Read from MH i2c: E2 [22:06:04]MH_I2C_Read... [22:06:04]Read from MH i2c: E2 03 00 [22:06:04]MH_I2C_Read... [22:06:04]Read from MH i2c: E2 03 00 F9 0F 00 90 00 7C [22:06:04]RAPDU: 90 00 [22:06:04]wFMCommunicate OK [22:06:04]SAM_PROTO_ClearQueue done [22:06:04]KKMCreateOFDPacket [22:06:04]OFDProtocolAddRootSTLVToBuf [22:06:04]FM_MakeSignedData [22:06:04]FM_MakeSignedData [22:06:04]SAM_PROTO_SignData [22:06:04]wFMCommunicate request_size=4 [22:06:04]MH_SAM_APDU [22:06:04]CAPDU: 80 0D 01 02 [22:06:04]Write to MH i2c: E2 08 00 FA 0F 80 0D 01 02 00 00 00 00 82 [22:06:04]Write i2c OK [22:06:04]MH_I2C_Read... [22:06:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:06:04]Read from MH i2c: E2 [22:06:04]MH_I2C_Read... [22:06:04]Read from MH i2c: E2 03 00 [22:06:04]MH_I2C_Read... [22:06:04]Read from MH i2c: E2 03 00 FA 0F 00 90 00 7D [22:06:04]RAPDU: 90 00 [22:06:04]wFMCommunicate OK [22:06:04]wFMCommunicate request_size=255 [22:06:04]MH_SAM_APDU [22:06: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 A4 1A 00 00 00 00 00 37 04 06 00 AC 1C 00 00 00 00 13 04 06 00 8B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EC 00 00 00 F4 03 04 00 CA EC 5C 66 0E 04 04 00 42 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 7D 0A 01 00 35 04 06 00 3A [22:06:05]Write to MH i2c: E2 02 01 FB 0F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A4 1A 00 00 00 00 00 37 04 06 00 AC 1C 00 00 00 00 13 04 06 00 8B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EC 00 00 00 F4 03 04 00 CA EC 5C 66 0E 04 04 00 42 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 7D 0A 01 00 35 04 06 00 3A 00 00 86 [22:06:06]Write i2c OK [22:06:06]MH_I2C_Read... [22:06:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:06:06]Read from MH i2c: E2 [22:06:06]MH_I2C_Read... [22:06:06]Read from MH i2c: E2 03 00 [22:06:06]MH_I2C_Read... [22:06:06]Read from MH i2c: E2 03 00 FB 0F 00 90 00 7E [22:06:06]RAPDU: 90 00 [22:06:06]wFMCommunicate OK [22:06:06]wFMCommunicate request_size=10 [22:06:06]MH_SAM_APDU [22:06:06]CAPDU: 80 0D 02 02 05 2B F7 0C 04 72 [22:06:06]Write to MH i2c: E2 0D 00 FC 0F 80 0D 02 02 05 00 2B F7 0C 04 72 00 00 33 [22:06:06]Write i2c OK [22:06:06]MH_I2C_Read... [22:06:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:06:06]Read from MH i2c: E2 [22:06:06]MH_I2C_Read... [22:06:06]Read from MH i2c: E2 03 00 [22:06:06]MH_I2C_Read... [22:06:06]Read from MH i2c: E2 03 00 FC 0F 00 90 00 7F [22:06:06]RAPDU: 90 00 [22:06:06]wFMCommunicate OK [22:06:06]wFMCommunicate request_size=4 [22:06:06]MH_SAM_APDU [22:06:06]CAPDU: 80 0D 03 02 [22:06:06]Write to MH i2c: E2 08 00 FD 0F 80 0D 03 02 00 00 00 00 87 [22:06:07]Write i2c OK [22:06:07]MH_I2C_Read... [22:06:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:06:07]Read from MH i2c: E2 [22:06:07]MH_I2C_Read... [22:06:07]Read from MH i2c: E2 0B 00 [22:06:07]MH_I2C_Read... [22:06:07]Read from MH i2c: E2 0B 00 FD 0F 00 23 B8 20 E9 3D 4B C5 71 90 00 2A [22:06:07]RAPDU: 23 B8 20 E9 3D 4B C5 71 90 00 [22:06:07]wFMCommunicate OK [22:06:07]SAM_PROTO_SignData done [22:06:07]FM_MakeSignedData done [22:06:07]CreateOFDProtocolMessage [22:06:07]wFMCommunicate request_size=4 [22:06:07]MH_SAM_APDU [22:06:07]CAPDU: 80 11 00 00 [22:06:07]Write to MH i2c: E2 08 00 FE 0F 80 11 00 00 00 00 00 00 87 [22:06:07]Write i2c OK [22:06:07]MH_I2C_Read... [22:06:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:06:07]Read from MH i2c: E2 [22:06:07]MH_I2C_Read... [22:06:07]Read from MH i2c: E2 17 00 [22:06:07]MH_I2C_Read... [22:06:07]Read from MH i2c: E2 17 00 FE 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 D2 [22:06:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [22:06:07]wFMCommunicate OK [22:06:07]CreateOFDProtocolMessage done [22:06:07]OFDSenderStorePacket 68221 [22:06:07]StoreOFDPacket docnum=68221 [22:06:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 BD 52 07 01 B7 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 A4 1A 00 00 00 00 00 37 04 06 00 AC 1C 00 00 00 00 13 04 06 00 8B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EC 00 00 00 F4 03 04 00 CA EC 5C 66 0E 04 04 00 42 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 7D 0A 01 00 35 04 06 00 3A 2B F7 0C 04 72 23 B8 20 E9 3D 4B C5 71 [22:06:07]CheckFolder [22:06:07]dirname=/storage/ofd_packets [22:06:07]CheckFolder done [22:06:07]ProducePacketName [22:06:07]name=ofd_packets/00068221 [22:06:07]NVStorageSaveData ofd_packets/00068221 [22:06:07]File name is /storage/ofd_packets/00068221 [22:06:07]Write 301 bytes [22:06:07]NVStorageSaveData done [22:06:07]OFDSenderStorePacket done [22:06:07]KKMCreateOFDPacket done [22:06:07]NVStorageSaveData kkm_last_timestamp [22:06:07]File name is /storage/kkm_last_timestamp [22:06:07]Write 4 bytes [22:06:07]NVStorageSaveData done [22:06:07]ExternCall_PrintAddStr [22:06:07]wPrintStart [22:06:07]Write to MH i2c: 01 00 00 FF 0F 0E [22:06:07]OFD Sender: No OFD packet to send [22:06:07]Write i2c OK [22:06:07]MH_I2C_Read... [22:06:07]Read from MH i2c: 01 [22:06:07]MH_I2C_Read... [22:06:07]Read from MH i2c: 01 07 00 [22:06:07]MH_I2C_Read... [22:06:07]Read from MH i2c: 01 07 00 FF 0F 00 00 00 00 00 FF 0F 23 [22:06:07]RasterBufferAndPrint [22:06:07]line Счет N : (1)706292 [22:06:07]line ИНН: 02508201610067 [22:06:07]line Контрольно-Кассовый Чек [22:06:07]line ПРОДАЖА [22:06:07]line ТРК (МРК, ГНК) : 33 [22:06:07]line Товар: 2710124500 [22:06:07]OFD Sender: Processing packet 68221 [packets to send 26, broken 25] [22:06:07]line Аи-95-К-5 [22:06:07]ProducePacketName [22:06:07]name=ofd_packets/00068221 [22:06:07]OFD Sender: To server: pG, [22:06:07]CommunicateWithHost lk.salyk.kg:30040 [22:06:07]ConnectInit lk.salyk.kg [22:06:07]line 6.820 * 73.40 [22:06:07]line = 500.59 [22:06:07]line НДС 12% НСП 1% [22:06:07]line > о реализуемом товаре [22:06:07]line ОКРУГЛЕНИЕ: -0.59 [22:06:07]line ИТОГО: 500.00 [22:06:07]line Внесено: 500.00 [22:06:07]line СДАЧА: 0.00 [22:06:07]line НСП 1% : 4.43 [22:06:07]line НДС 12% : 53.16 [22:06:07]line Наличными: 500.00 [22:06:07]line Безнал.: 0.00 [22:06:07]line Место: АЗС № 62 "Партнер Нефть" [22:06:07]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [22:06:07]line СНО: Общий режим [22:06:07]line Чек 236 02.06.2024 22:06 [22:06:07]line Смена: 322 ФФД: 1.0 [22:06:07]line ЗНМ: 0300000181 [22:06:07]line РНМ: 0000000000098096 [22:06:07]line Версия ККМ: 001 [22:06:07]line ФМ: 0000000000965400 [22:06:07]line ФД: 68221 [22:06:07]line ФПД: 63960502764658 [22:06:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240602T220602&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68221&fm=63960502764658&tin=02508201610067®Number=0000000000098096&sum=50000 [22:06:07]Connected sock=11 [22:06:07]Data to sent: 87 written 0, free lines is 4095 [22:06:07]95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 BD 52 07 01 B7 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 A4 1A 00 00 00 00 00 37 04 06 00 AC 1C 00 00 00 00 13 04 06 00 8B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 Write to MH i2c: 26 01 00 EF 03 0F 00 00 00 F6 03 01 00 2A 01 10 F7 03 06 00 3A BB [22:06:08]01 00 00 00 00 Write i2c OK [22:06:08]EE MH_I2C_Read... [22:06:08]03 Read from MH i2c: 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 01 00 [22:06:08]MH_I2C_Read... [22:06:08]07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 Read from MH i2c: 00 01 01 00 12 04 07 04 00 00 [22:06:08]EC MH_I2C_Read... [22:06:08]00 Read from MH i2c: 00 01 07 00 2A 10 00 00 F4 00 03 00 04 00 CA EC 5C 00 66 00 0E 04 04 00 CE 42 0D 01 00 00 B9 1C 04 [22:06:08]01 00 01 0D RasterBufferAndPrint [22:06:08]04 line [22:06:08]10 00 30 30 line [22:06:08]30 line [22:06:08]30 30 30 30 line [22:06:08]30 line [22:06:08]30 30 30 39 written 0, free lines is 4093 [22:06:09]38 30 39 36 11 MH_Cut [22:06:09]04 Write to MH i2c: 10 D1 00 01 30 00 30 30 30 30 30 31 30 10 30 01 30 13 30 [22:06:09]39 36 35 34 30 30 10 04 04 00 7D 0A 01 00 35 04 06 00 3A 2B F7 0C 04 Write i2c OK [22:06:09]72 MH_I2C_Read... [22:06:09]23 B8 20 E9 Read from MH i2c: D1 3D 4B C5 71 [22:06:09] [22:06:09]MH_I2C_Read... [22:06:09]Read from MH i2c: D1 01 00 *** Cut start [22:06:09] [22:06:09]*** Partial cut [22:06:09]MH_I2C_Read... [22:06:09]*** CUTSNS_PIN = 1 [22:06:09]Read from MH i2c: D1 01 00 31 10 00 12 [22:06:09]Write to MH i2c: 01 *** CUTSNS_PIN = 0 [22:06:09]00 00 32 10 42 [22:06:09]Write i2c OK [22:06:09]MH_I2C_Read... [22:06:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 23 CC 47 00 6F 80 A5 07 01 00 07 00 *** Brake cut motor [22:06:09]3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 7D 0A 01 00 F4 03 04 00 CE 93 5C 66 B6 04 01 00 00 EC 49 00 2F B8 AC 59 08 [22:06:09]CommunicateWithHost err = 0 [22:06:09]CheckOFDResponse [22:06:09]1017 (14) - 77093643461234 [22:06:09]1041 (16) - 0000000000965400 [22:06:09]1040 (4) - 68221 [22:06:09]1012 (4) - 02.06.2024 15:46 [22:06:09]1206 (1) - 0 [22:06:09]OFD Sender: Remove packet 68221 [22:06:09]ProducePacketName [22:06:09]name=ofd_packets/00068221 [22:06:09]NVStorageDeleteData [22:06:09]Read from MH i2c: 01 [22:06:09]MH_I2C_Read... [22:06:09]*** Stop cut motor [22:06:09]Read from MH i2c: *** Cut end [22:06:09]01 07 00 [22:06:10]MH_I2C_Read... [22:06:10]Read from MH i2c: 01 07 00 32 10 00 00 00 00 00 FF 0F 57 [22:06:10]process_action close_receipt done [22:06:10]requested_data is exist [22:06:10]produce_requested_data [22:06:10]requested_item fm.sn is exist - process it [22:06:10]wFMCommunicate request_size=4 [22:06:10]MH_SAM_APDU [22:06:10]CAPDU: 80 11 00 00 [22:06:10]Write to MH i2c: E2 08 00 33 10 80 11 00 00 00 00 00 00 BD [22:06:10]Write i2c OK [22:06:10]MH_I2C_Read... [22:06:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:06:10]Read from MH i2c: E2 [22:06:10]MH_I2C_Read... [22:06:10]Read from MH i2c: E2 17 00 [22:06:10]MH_I2C_Read... [22:06:10]Read from MH i2c: E2 17 00 33 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 08 [22:06:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [22:06:10]wFMCommunicate OK [22:06:10]requested_item fd.num is exist - process it [22:06:10]SAM_PROTO_GetFieldsCounters [22:06:10]wFMCommunicate request_size=4 [22:06:10]MH_SAM_APDU [22:06:10]CAPDU: 80 13 00 00 [22:06:10]Write to MH i2c: E2 08 00 34 10 80 13 00 00 00 00 00 00 C0 [22:06:10]Write i2c OK [22:06:10]MH_I2C_Read... [22:06:10]OFD Sender: No OFD packet to send [22:06:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:06:10]Read from MH i2c: E2 [22:06:10]MH_I2C_Read... [22:06:10]Read from MH i2c: E2 62 00 [22:06:10]MH_I2C_Read... [22:06:10]Read from MH i2c: E2 62 00 34 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 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 7D 0A 01 00 0E 04 04 00 42 01 00 00 12 04 04 00 EC 00 00 00 5E 04 04 00 EC 00 00 00 57 04 04 00 ED 00 00 00 19 04 04 00 00 00 00 00 90 00 6F [22:06: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 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 7D 0A 01 00 0E 04 04 00 42 01 00 00 12 04 04 00 EC 00 00 00 5E 04 04 00 EC 00 00 00 57 04 04 00 ED 00 00 00 19 04 04 00 00 00 00 00 90 00 [22:06:11]wFMCommunicate OK [22:06:11]SAM_PROTO_GetFieldsCounters done [22:06:11]requested_item shift.num is exist - process it [22:06:11]requested_item shift.opened is exist - process it [22:06:11]req_shift_opened [22:06:11]FM_GetShiftState [22:06:11]SAM_PROTO_GetShiftState [22:06:11]wFMCommunicate request_size=4 [22:06:11]MH_SAM_APDU [22:06:11]CAPDU: 80 13 01 00 [22:06:11]Write to MH i2c: E2 08 00 35 10 80 13 01 00 00 00 00 00 C2 [22:06:11]Write i2c OK [22:06:11]MH_I2C_Read... [22:06:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:06:11]Read from MH i2c: E2 [22:06:11]MH_I2C_Read... [22:06:11]Read from MH i2c: E2 0E 00 [22:06:11]MH_I2C_Read... [22:06:11]Read from MH i2c: E2 0E 00 35 10 00 09 00 01 A4 BB 5B 66 00 00 00 00 90 00 EE [22:06:11]RAPDU: 09 00 01 A4 BB 5B 66 00 00 00 00 90 00 [22:06:11]wFMCommunicate OK [22:06:11]SAM_PROTO_GetShiftState done [22:06:11]FM_GetShiftState done [22:06:11]req_shift_opened done [22:06:11]requested_item shift.open_date is exist - process it [22:06:11]req_shift_open_date [22:06:11]req_shift_open_date done [22:06:11]produce_requested_data done [22:06:11]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68221,"shift.num":322,"shift.opened":1,"shift.open_date":1717287844} [22:06:11]process_action_free close_receipt [22:06:11]json_value_free [22:06:11]json_value_free done [22:06:11]process_json_proto returns [22:06:11]Send response to host [22:06:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68221,"shift.num":322,"shift.opened":1,"shift.open_date":1717287844}}} [22:06:11]free response buf [22:06:11]execute_script done [22:06:11]execute_script returns [22:06:11]free content buf [22:06:11]Sock 10.Close socket [22:06:11]Sock 10.Thread stoped [22:06:15]OFD Sender: No OFD packet to send [22:06:19]ConnectInit Can't connect to host [22:06:20]OFD Sender: No OFD packet to send [22:06:25]OFD Sender: No OFD packet to send [22:06:30]OFD Sender: No OFD packet to send [22:06:35]OFD Sender: No OFD packet to send [22:06:40]OFD Sender: No OFD packet to send [22:06:45]OFD Sender: No OFD packet to send [22:06:50]OFD Sender: No OFD packet to send [22:06:55]OFD Sender: No OFD packet to send [22:06:57]accept exits with 9 [22:06:57]New connection [22:06:57]New thread 3066686820 created [22:06:57]Thread 3066543460 joined [22:06:57]Waiting for new connection... [22:06:57] Sock 9.Parse request [22:06:57]Sock 9.Check first char [22:06:57]Sock 9.First char is OK [22:06:57]request: POST /json_proto HTTP/1.0 [22:06:57]Method: POST [22:06:57]URL: /json_proto [22:06:57]Method is POST - this is cgi request [22:06:57]url: /json_proto [22:06:57]query_string will be loaded in cgi processing [22:06:57]execute_cgi json_proto POST (null) [22:06:57]execute_cgi path=json_proto method=POST [22:06:57]POST find Content-Length [22:06:57]Host: 172.17.36.132:8080 [22:06:57]Content-Length: 677 [22:06:57]Content-Type: application/json [22:06:57] [22:06:57]POST finish read [22:06:57]Found Content-Length = 677 [22:06:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706293", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:06:57]execute_script... [22:06: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)706293", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:06:57]POST & json_proto [22:06:57]process_json_proto [22:06:57]json parsed OK: [22:06:57]protocol is kg_v1.0 [22:06:57]action value=close_receipt [22:06:57]process_action close_receipt [22:06:57]cmd_close_receipt [22:06:57]MH_GetDate [22:06:57]Write to MH i2c: F0 00 00 36 10 35 [22:06:57]Write i2c OK [22:06:57]MH_I2C_Read... [22:06:57]Read from MH i2c: F0 [22:06:57]MH_I2C_Read... [22:06:57]Read from MH i2c: F0 09 00 [22:06:57]MH_I2C_Read... [22:06:57]Read from MH i2c: F0 09 00 36 10 00 03 ED 5C 66 B2 22 B0 64 D8 [22:06:57]GetLastDocTimeStamp 1717365962 [22:06:57]current date 1717366019 [22:06:57]FM_GetShiftState [22:06:57]SAM_PROTO_GetShiftState [22:06:57]wFMCommunicate request_size=4 [22:06:57]MH_SAM_APDU [22:06:57]CAPDU: 80 13 01 00 [22:06:57]Write to MH i2c: E2 08 00 37 10 80 13 01 00 00 00 00 00 C4 [22:06:57]Write i2c OK [22:06:57]MH_I2C_Read... [22:06:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:06:57]Read from MH i2c: E2 [22:06:57]MH_I2C_Read... [22:06:57]Read from MH i2c: E2 0E 00 [22:06:57]MH_I2C_Read... [22:06:57]Read from MH i2c: E2 0E 00 37 10 00 09 00 01 A4 BB 5B 66 00 00 00 00 90 00 F0 [22:06:57]RAPDU: 09 00 01 A4 BB 5B 66 00 00 00 00 90 00 [22:06:57]wFMCommunicate OK [22:06:57]SAM_PROTO_GetShiftState done [22:06:57]FM_GetShiftState done [22:06:57]opened in 1717287844 [22:06:57]opened+sec_in_day 1717374244 [22:06:57]quantity*price = 50065 [22:06:57]sum+1 = 50067 [22:06:57]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.66 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.17 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 237 02.06.2024 22:06 Смена: 322 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 ФМ: 0000000000965400 ФД: 68222 ФПД: 191188518725904 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240602T220659&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68222&fm=191188518725904&tin=02508201610067®Number=0000000000098096&sum=50000 [22:07:01]StoreToDocumentArchive [22:07:01]shift 322 fd 68222 [22:07:01]save to /storage/0322/doc_00068222 [22:07:01]save last doc name /storage/0322/doc_00068222 to /storage/kkm_last_doc_name [22:07:01]save OK [22:07:01]Clear old archive folders... [22:07:01]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:07:01]tlvbuf is 002D41E0 [22:07:01]SAM_PROTO_ClearQueue [22:07:01]wFMCommunicate request_size=4 [22:07:01]MH_SAM_APDU [22:07:01]CAPDU: 80 09 00 00 [22:07:01]Write to MH i2c: E2 08 00 44 10 80 09 00 00 00 00 00 00 C6 [22:07:02]Write i2c OK [22:07:02]MH_I2C_Read... [22:07:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:07:02]Read from MH i2c: E2 [22:07:02]MH_I2C_Read... [22:07:02]Read from MH i2c: E2 03 00 [22:07:02]MH_I2C_Read... [22:07:02]Read from MH i2c: E2 03 00 44 10 00 90 00 C8 [22:07:02]RAPDU: 90 00 [22:07:02]wFMCommunicate OK [22:07:02]SAM_PROTO_ClearQueue done [22:07:02]KKMCreateOFDPacket [22:07:02]OFDProtocolAddRootSTLVToBuf [22:07:02]FM_MakeSignedData [22:07:02]FM_MakeSignedData [22:07:02]SAM_PROTO_SignData [22:07:02]wFMCommunicate request_size=4 [22:07:02]MH_SAM_APDU [22:07:02]CAPDU: 80 0D 01 02 [22:07:02]Write to MH i2c: E2 08 00 45 10 80 0D 01 02 00 00 00 00 CE [22:07:02]Write i2c OK [22:07:02]MH_I2C_Read... [22:07:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:07:02]Read from MH i2c: E2 [22:07:02]MH_I2C_Read... [22:07:02]Read from MH i2c: E2 03 00 [22:07:02]MH_I2C_Read... [22:07:02]Read from MH i2c: E2 03 00 45 10 00 90 00 C9 [22:07:02]RAPDU: 90 00 [22:07:02]wFMCommunicate OK [22:07:02]wFMCommunicate request_size=255 [22:07:02]MH_SAM_APDU [22:07: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 34 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 ED 00 00 00 F4 03 04 00 03 ED 5C 66 0E 04 04 00 42 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 7E 0A 01 00 35 04 06 00 AD [22:07:03]Write to MH i2c: E2 02 01 46 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 34 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 ED 00 00 00 F4 03 04 00 03 ED 5C 66 0E 04 04 00 42 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 7E 0A 01 00 35 04 06 00 AD 00 00 98 [22:07:03]Write i2c OK [22:07:03]MH_I2C_Read... [22:07:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:07:04]Read from MH i2c: E2 [22:07:04]MH_I2C_Read... [22:07:04]Read from MH i2c: E2 03 00 [22:07:04]MH_I2C_Read... [22:07:04]Read from MH i2c: E2 03 00 46 10 00 90 00 CA [22:07:04]RAPDU: 90 00 [22:07:04]wFMCommunicate OK [22:07:04]wFMCommunicate request_size=10 [22:07:04]MH_SAM_APDU [22:07:04]CAPDU: 80 0D 02 02 05 E2 8B BE 69 10 [22:07:04]Write to MH i2c: E2 0D 00 47 10 80 0D 02 02 05 00 E2 8B BE 69 10 00 00 7F [22:07:04]Write i2c OK [22:07:04]MH_I2C_Read... [22:07:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:07:04]Read from MH i2c: E2 [22:07:04]MH_I2C_Read... [22:07:04]Read from MH i2c: E2 03 00 [22:07:04]MH_I2C_Read... [22:07:04]Read from MH i2c: E2 03 00 47 10 00 90 00 CB [22:07:04]RAPDU: 90 00 [22:07:04]wFMCommunicate OK [22:07:04]wFMCommunicate request_size=4 [22:07:04]MH_SAM_APDU [22:07:04]CAPDU: 80 0D 03 02 [22:07:04]Write to MH i2c: E2 08 00 48 10 80 0D 03 02 00 00 00 00 D3 [22:07:04]Write i2c OK [22:07:04]MH_I2C_Read... [22:07:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:07:04]Read from MH i2c: E2 [22:07:04]MH_I2C_Read... [22:07:04]Read from MH i2c: E2 0B 00 [22:07:04]MH_I2C_Read... [22:07:04]Read from MH i2c: E2 0B 00 48 10 00 9B 27 66 A3 7A 32 01 E3 90 00 2F [22:07:04]RAPDU: 9B 27 66 A3 7A 32 01 E3 90 00 [22:07:04]wFMCommunicate OK [22:07:04]SAM_PROTO_SignData done [22:07:04]FM_MakeSignedData done [22:07:04]CreateOFDProtocolMessage [22:07:04]wFMCommunicate request_size=4 [22:07:04]MH_SAM_APDU [22:07:04]CAPDU: 80 11 00 00 [22:07:04]Write to MH i2c: E2 08 00 49 10 80 11 00 00 00 00 00 00 D3 [22:07:04]Write i2c OK [22:07:04]MH_I2C_Read... [22:07:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:07:04]Read from MH i2c: E2 [22:07:04]MH_I2C_Read... [22:07:04]Read from MH i2c: E2 17 00 [22:07:04]MH_I2C_Read... [22:07:04]Read from MH i2c: E2 17 00 49 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 1E [22:07:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [22:07:05]wFMCommunicate OK [22:07:05]CreateOFDProtocolMessage done [22:07:05]OFDSenderStorePacket 68222 [22:07:05]StoreOFDPacket docnum=68222 [22:07:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 EE AB 07 01 15 E4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 ED 00 00 00 F4 03 04 00 03 ED 5C 66 0E 04 04 00 42 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 7E 0A 01 00 35 04 06 00 AD E2 8B BE 69 10 9B 27 66 A3 7A 32 01 E3 [22:07:05]CheckFolder [22:07:05]dirname=/storage/ofd_packets [22:07:05]CheckFolder done [22:07:05]ProducePacketName [22:07:05]name=ofd_packets/00068222 [22:07:05]NVStorageSaveData ofd_packets/00068222 [22:07:05]File name is /storage/ofd_packets/00068222 [22:07:05]Write 301 bytes [22:07:05]NVStorageSaveData done [22:07:05]OFDSenderStorePacket done [22:07:05]KKMCreateOFDPacket done [22:07:05]NVStorageSaveData kkm_last_timestamp [22:07:05]File name is /storage/kkm_last_timestamp [22:07:05]Write 4 bytes [22:07:05]NVStorageSaveData done [22:07:05]ExternCall_PrintAddStr [22:07:05]wPrintStart [22:07:05]Write to MH i2c: 01 00 00 4A 10 5A [22:07:05]OFD Sender: Processing packet 68222 [packets to send 26, broken 25] [22:07:05]ProducePacketName [22:07:05]name=ofd_packets/00068222 [22:07:05]OFD Sender: To server: pG, [22:07:05]CommunicateWithHost lk.salyk.kg:30040 [22:07:05]ConnectInit lk.salyk.kg [22:07:05]Write i2c OK [22:07:05]MH_I2C_Read... [22:07:05]Read from MH i2c: 01 [22:07:05]MH_I2C_Read... [22:07:05]Read from MH i2c: 01 07 00 [22:07:05]MH_I2C_Read... [22:07:05]Read from MH i2c: 01 07 00 4A 10 00 00 00 00 00 FF 0F 6F [22:07:05]RasterBufferAndPrint [22:07:05]line Счет N : (1)706293 [22:07:05]line ИНН: 02508201610067 [22:07:05]line Контрольно-Кассовый Чек [22:07:05]line ПРОДАЖА [22:07:05]line ТРК (МРК, ГНК) : 53 [22:07:05]line Товар: 2710124130 [22:07:05]line Аи-92-К-4 [22:07:05]line 7.540 * 66.40 [22:07:05]line = 500.66 [22:07:05]Connected sock=11 [22:07:05]line НДС 12% НСП 1% [22:07:05]Data to sent: line > о реализуемом товаре [22:07:05]line ОКРУГЛЕНИЕ: -0.66 [22:07:05]line ИТОГО: 500.00 [22:07:05]line Внесено: 500.00 [22:07:05]line СДАЧА: 0.00 [22:07:05]line НСП 1% : 4.43 [22:07:05]line НДС 12% : 53.17 [22:07:05]line Наличными: 500.00 [22:07:05]line Безнал.: 0.00 [22:07:05]line Место: АЗС № 62 "Партнер Нефть" [22:07:05]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [22:07:05]line СНО: Общий режим [22:07:05]line Чек 237 02.06.2024 22:06 [22:07:05]line Смена: 322 ФФД: 1.0 [22:07:05]line ЗНМ: 0300000181 [22:07:05]line РНМ: 0000000000098096 [22:07:05]line Версия ККМ: 001 [22:07:05]line ФМ: 0000000000965400 [22:07:05]line ФД: 68222 [22:07:05]line ФПД: 191188518725904 [22:07:05]87 line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240602T220659&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68222&fm=191188518725904&tin=02508201610067®Number=0000000000098096&sum=50000 [22:07:05]95 F6 70 47 2C written 0, free lines is 4095 [22:07:05]01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 EE AB 07 01 15 E4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 Write to MH i2c: 06 01 00 50 C3 00 00 00 00 00 75 00 10 39 85 04 06 00 00 00 [22:07:06]00 Write i2c OK [22:07:06]00 MH_I2C_Read... [22:07:06]00 00 1F 04 02 Read from MH i2c: 00 01 01 [22:07:06]00 12 04 04 00 ED 00 00 MH_I2C_Read... [22:07:06]00 F4 03 04 00 03 Read from MH i2c: ED 01 5C 07 66 00 0E [22:07:06]04 04 00 42 MH_I2C_Read... [22:07:06]01 Read from MH i2c: 00 01 00 07 B9 00 04 75 01 10 00 01 0D 04 00 10 00 00 30 30 30 00 30 00 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 00 30 0B 30 0F A6 [22:07:06]RasterBufferAndPrint [22:07:06]line [22:07:06]10 line [22:07:06]04 line [22:07:06]04 line [22:07:06]line [22:07:06]00 7E 0A 01 00 35 04 06 00 AD E2 8B BE 69 10 9B 27 66 A3 7A 32 01 E3 [22:07:06]written 0, free lines is 4095 [22:07:06]MH_Cut [22:07:06]Write to MH i2c: D1 01 00 7C 10 01 5E [22:07:07]Write i2c OK [22:07:07]MH_I2C_Read... [22:07:07]Read from MH i2c: D1 [22:07:07]MH_I2C_Read... [22:07:07]Read from MH i2c: D1 01 00 [22:07:07]MH_I2C_Read... [22:07:07]Read from MH i2c: D1 01 00 7C 10 00 5D [22:07:07]Write to MH i2c: 01 00 00 7D 10 8D [22:07:07]Write i2c OK [22:07:07]MH_I2C_Read... [22:07:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 AC 5E 47 00 96 83 A5 07 01 *** Cut start [22:07:07]00 *** Partial cut [22:07:07]07 00 3B *** CUTSNS_PIN = 1 [22:07:07]00 F9 03 0E 00 37 37 *** CUTSNS_PIN = 0 [22:07:07]30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 7E 0A 01 00 F4 03 04 00 08 94 5C 66 B6 04 01 00 00 4B *** Brake cut motor [22:07:07]46 86 83 D9 A6 49 BB [22:07:07]CommunicateWithHost err = 0 [22:07:07]CheckOFDResponse [22:07:07]1017 (14) - 77093643461234 [22:07:07]1041 (16) - 0000000000965400 [22:07:07]1040 (4) - 68222 [22:07:07]1012 (4) - 02.06.2024 15:47 [22:07:07]1206 (1) - 0 [22:07:07]OFD Sender: Remove packet 68222 [22:07:07]ProducePacketName [22:07:07]name=ofd_packets/00068222 [22:07:07]NVStorageDeleteData [22:07:07]Read from MH i2c: 01 [22:07:07]MH_I2C_Read... [22:07:07]*** Stop cut motor [22:07:07]*** Cut end [22:07:07]Read from MH i2c: 01 07 00 [22:07:07]MH_I2C_Read... [22:07:07]Read from MH i2c: 01 07 00 7D 10 00 00 00 00 00 FF 0F A2 [22:07:07]process_action close_receipt done [22:07:07]requested_data is exist [22:07:07]produce_requested_data [22:07:08]requested_item fm.sn is exist - process it [22:07:08]wFMCommunicate request_size=4 [22:07:08]MH_SAM_APDU [22:07:08]CAPDU: 80 11 00 00 [22:07:08]Write to MH i2c: E2 08 00 7E 10 80 11 00 00 00 00 00 00 08 [22:07:08]Write i2c OK [22:07:08]MH_I2C_Read... [22:07:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:07:08]Read from MH i2c: E2 [22:07:08]MH_I2C_Read... [22:07:08]Read from MH i2c: E2 17 00 [22:07:08]MH_I2C_Read... [22:07:08]Read from MH i2c: E2 17 00 7E 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 53 [22:07:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [22:07:08]wFMCommunicate OK [22:07:08]requested_item fd.num is exist - process it [22:07:08]OFD Sender: No OFD packet to send [22:07:08]SAM_PROTO_GetFieldsCounters [22:07:08]wFMCommunicate request_size=4 [22:07:08]MH_SAM_APDU [22:07:08]CAPDU: 80 13 00 00 [22:07:08]Write to MH i2c: E2 08 00 7F 10 80 13 00 00 00 00 00 00 0B [22:07:08]Write i2c OK [22:07:08]MH_I2C_Read... [22:07:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:07:08]Read from MH i2c: E2 [22:07:08]MH_I2C_Read... [22:07:08]Read from MH i2c: E2 62 00 [22:07:08]MH_I2C_Read... [22:07:08]Read from MH i2c: E2 62 00 7F 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 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 7E 0A 01 00 0E 04 04 00 42 01 00 00 12 04 04 00 ED 00 00 00 5E 04 04 00 ED 00 00 00 57 04 04 00 EE 00 00 00 19 04 04 00 00 00 00 00 90 00 BE [22:07: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 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 7E 0A 01 00 0E 04 04 00 42 01 00 00 12 04 04 00 ED 00 00 00 5E 04 04 00 ED 00 00 00 57 04 04 00 EE 00 00 00 19 04 04 00 00 00 00 00 90 00 [22:07:09]wFMCommunicate OK [22:07:09]SAM_PROTO_GetFieldsCounters done [22:07:09]requested_item shift.num is exist - process it [22:07:09]requested_item shift.opened is exist - process it [22:07:09]req_shift_opened [22:07:09]FM_GetShiftState [22:07:09]SAM_PROTO_GetShiftState [22:07:09]wFMCommunicate request_size=4 [22:07:09]MH_SAM_APDU [22:07:09]CAPDU: 80 13 01 00 [22:07:09]Write to MH i2c: E2 08 00 80 10 80 13 01 00 00 00 00 00 0D [22:07:09]Write i2c OK [22:07:09]MH_I2C_Read... [22:07:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:07:09]Read from MH i2c: E2 [22:07:09]MH_I2C_Read... [22:07:09]Read from MH i2c: E2 0E 00 [22:07:09]MH_I2C_Read... [22:07:09]Read from MH i2c: E2 0E 00 80 10 00 09 00 01 A4 BB 5B 66 00 00 00 00 90 00 39 [22:07:09]RAPDU: 09 00 01 A4 BB 5B 66 00 00 00 00 90 00 [22:07:09]wFMCommunicate OK [22:07:09]SAM_PROTO_GetShiftState done [22:07:09]FM_GetShiftState done [22:07:09]req_shift_opened done [22:07:09]requested_item shift.open_date is exist - process it [22:07:09]req_shift_open_date [22:07:09]req_shift_open_date done [22:07:09]produce_requested_data done [22:07:09]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68222,"shift.num":322,"shift.opened":1,"shift.open_date":1717287844} [22:07:09]process_action_free close_receipt [22:07:09]json_value_free [22:07:09]json_value_free done [22:07:09]process_json_proto returns [22:07:09]Send response to host [22:07:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68222,"shift.num":322,"shift.opened":1,"shift.open_date":1717287844}}} [22:07:09]free response buf [22:07:09]execute_script done [22:07:09]execute_script returns [22:07:09]free content buf [22:07:09]Sock 9.Close socket [22:07:09]Sock 9.Thread stoped [22:07:13]OFD Sender: No OFD packet to send [22:07:18]OFD Sender: No OFD packet to send [22:07:23]OFD Sender: No OFD packet to send [22:07:28]OFD Sender: No OFD packet to send [22:07:33]OFD Sender: No OFD packet to send [22:07:38]OFD Sender: No OFD packet to send [22:07:43]OFD Sender: No OFD packet to send [22:07:48]OFD Sender: No OFD packet to send [22:07:53]OFD Sender: No OFD packet to send [22:07:58]OFD Sender: No OFD packet to send [22:08:03]OFD Sender: No OFD packet to send [22:08:08]OFD Sender: No OFD packet to send [22:08:13]OFD Sender: No OFD packet to send [22:08:18]OFD Sender: No OFD packet to send [22:08:23]OFD Sender: No OFD packet to send [22:08:28]OFD Sender: No OFD packet to send [22:08:33]OFD Sender: No OFD packet to send [22:08:38]ConnectInit Can't connect to host [22:08:38]OFD Sender: No OFD packet to send [22:08:43]OFD Sender: No OFD packet to send [22:08:48]OFD Sender: No OFD packet to send [22:08:53]OFD Sender: No OFD packet to send [22:08:58]OFD Sender: No OFD packet to send [22:09:03]OFD Sender: No OFD packet to send [22:09:08]OFD Sender: No OFD packet to send [22:09:13]OFD Sender: No OFD packet to send [22:09:18]OFD Sender: No OFD packet to send [22:09:23]OFD Sender: No OFD packet to send [22:09:28]OFD Sender: No OFD packet to send [22:09:33]OFD Sender: No OFD packet to send [22:09:38]OFD Sender: No OFD packet to send [22:09:43]OFD Sender: No OFD packet to send [22:09:48]OFD Sender: No OFD packet to send [22:09:53]OFD Sender: No OFD packet to send [22:09:58]OFD Sender: No OFD packet to send [22:10:03]OFD Sender: No OFD packet to send [22:10:08]OFD Sender: No OFD packet to send [22:10:13]OFD Sender: No OFD packet to send [22:10:18]OFD Sender: No OFD packet to send [22:10:23]OFD Sender: No OFD packet to send [22:10:28]OFD Sender: No OFD packet to send [22:10:33]OFD Sender: No OFD packet to send [22:10:38]OFD Sender: No OFD packet to send [22:10:43]OFD Sender: No OFD packet to send [22:10:48]OFD Sender: No OFD packet to send [22:10:53]OFD Sender: No OFD packet to send [22:10:56]ConnectInit Can't connect to host [22:10:58]OFD Sender: No OFD packet to send [22:11:03]OFD Sender: No OFD packet to send [22:11:08]OFD Sender: No OFD packet to send [22:11:13]OFD Sender: No OFD packet to send [22:11:18]OFD Sender: No OFD packet to send [22:11:23]OFD Sender: No OFD packet to send [22:11:28]OFD Sender: No OFD packet to send [22:11:33]OFD Sender: No OFD packet to send [22:11:38]OFD Sender: No OFD packet to send [22:11:43]OFD Sender: No OFD packet to send [22:11:48]OFD Sender: No OFD packet to send [22:11:53]OFD Sender: No OFD packet to send [22:11:58]OFD Sender: No OFD packet to send [22:12:03]OFD Sender: No OFD packet to send [22:12:08]OFD Sender: No OFD packet to send [22:12:13]OFD Sender: No OFD packet to send [22:12:18]OFD Sender: No OFD packet to send [22:12:23]OFD Sender: No OFD packet to send [22:12:28]OFD Sender: No OFD packet to send [22:12:33]OFD Sender: No OFD packet to send [22:12:38]OFD Sender: No OFD packet to send [22:12:43]OFD Sender: No OFD packet to send [22:12:48]OFD Sender: No OFD packet to send [22:12:53]OFD Sender: No OFD packet to send [22:12:58]OFD Sender: No OFD packet to send [22:13:03]OFD Sender: No OFD packet to send [22:13:08]OFD Sender: No OFD packet to send [22:13:14]OFD Sender: No OFD packet to send [22:13:14]ConnectInit Can't connect to host [22:13:19]OFD Sender: No OFD packet to send [22:13:24]OFD Sender: No OFD packet to send [22:13:29]OFD Sender: No OFD packet to send [22:13:34]OFD Sender: No OFD packet to send [22:13:39]OFD Sender: No OFD packet to send [22:13:44]OFD Sender: No OFD packet to send [22:13:49]OFD Sender: No OFD packet to send [22:13:54]OFD Sender: No OFD packet to send [22:13:59]OFD Sender: No OFD packet to send [22:14:04]OFD Sender: No OFD packet to send [22:14:09]OFD Sender: No OFD packet to send [22:14:14]OFD Sender: No OFD packet to send [22:14:19]OFD Sender: No OFD packet to send [22:14:24]OFD Sender: No OFD packet to send [22:14:29]OFD Sender: No OFD packet to send [22:14:34]OFD Sender: No OFD packet to send [22:14:39]OFD Sender: No OFD packet to send [22:14:44]OFD Sender: No OFD packet to send [22:14:49]OFD Sender: No OFD packet to send [22:14:54]OFD Sender: No OFD packet to send [22:14:59]OFD Sender: No OFD packet to send [22:15:04]OFD Sender: No OFD packet to send [22:15:09]OFD Sender: No OFD packet to send [22:15:14]OFD Sender: No OFD packet to send [22:15:19]OFD Sender: No OFD packet to send [22:15:24]OFD Sender: No OFD packet to send [22:15:29]OFD Sender: No OFD packet to send [22:15:32]ConnectInit Can't connect to host [22:15:34]OFD Sender: No OFD packet to send [22:15:39]OFD Sender: No OFD packet to send [22:15:44]OFD Sender: No OFD packet to send [22:15:49]OFD Sender: No OFD packet to send [22:15:54]OFD Sender: No OFD packet to send [22:15:59]OFD Sender: No OFD packet to send [22:16:04]OFD Sender: No OFD packet to send [22:16:09]OFD Sender: No OFD packet to send [22:16:14]OFD Sender: No OFD packet to send [22:16:19]OFD Sender: No OFD packet to send [22:16:24]OFD Sender: No OFD packet to send [22:16:29]OFD Sender: No OFD packet to send [22:16:34]OFD Sender: No OFD packet to send [22:16:39]OFD Sender: No OFD packet to send [22:16:44]OFD Sender: No OFD packet to send [22:16:49]OFD Sender: No OFD packet to send [22:16:54]OFD Sender: No OFD packet to send [22:16:59]OFD Sender: No OFD packet to send [22:17:04]OFD Sender: No OFD packet to send [22:17:09]OFD Sender: No OFD packet to send [22:17:14]OFD Sender: No OFD packet to send [22:17:19]OFD Sender: No OFD packet to send [22:17:24]OFD Sender: No OFD packet to send [22:17:29]OFD Sender: No OFD packet to send [22:17:34]OFD Sender: No OFD packet to send [22:17:39]OFD Sender: No OFD packet to send [22:17:44]OFD Sender: No OFD packet to send [22:17:49]OFD Sender: No OFD packet to send [22:17:51]ConnectInit Can't connect to host [22:17:54]OFD Sender: No OFD packet to send [22:17:59]OFD Sender: No OFD packet to send [22:18:04]OFD Sender: No OFD packet to send [22:18:09]OFD Sender: No OFD packet to send [22:18:14]OFD Sender: No OFD packet to send [22:18:19]OFD Sender: No OFD packet to send [22:18:24]OFD Sender: No OFD packet to send [22:18:29]OFD Sender: No OFD packet to send [22:18:34]OFD Sender: No OFD packet to send [22:18:39]OFD Sender: No OFD packet to send [22:18:44]OFD Sender: No OFD packet to send [22:18:49]OFD Sender: No OFD packet to send [22:18:54]OFD Sender: No OFD packet to send [22:18:59]OFD Sender: No OFD packet to send [22:19:04]OFD Sender: No OFD packet to send [22:19:09]OFD Sender: No OFD packet to send [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]ConnectInit Can't connect to host [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:27]ConnectInit Can't connect to host [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:45]ConnectInit Can't connect to host [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:20]OFD Sender: No OFD packet to send [22:25:25]OFD Sender: No OFD packet to send [22:25:30]OFD Sender: No OFD packet to send [22:25:35]OFD Sender: No OFD packet to send [22:25:40]OFD Sender: No OFD packet to send [22:25:45]OFD Sender: No OFD packet to send [22:25:50]OFD Sender: No OFD packet to send [22:25:55]OFD Sender: No OFD packet to send [22:26:00]OFD Sender: No OFD packet to send [22:26:05]OFD Sender: No OFD packet to send [22:26:10]OFD Sender: No OFD packet to send [22:26:15]OFD Sender: No OFD packet to send [22:26:20]OFD Sender: No OFD packet to send [22:26:25]OFD Sender: No OFD packet to send [22:26:30]OFD Sender: No OFD packet to send [22:26:35]OFD Sender: No OFD packet to send [22:26:40]OFD Sender: No OFD packet to send [22:26:45]OFD Sender: No OFD packet to send [22:26:50]OFD Sender: No OFD packet to send [22:26:55]OFD Sender: No OFD packet to send [22:27:00]OFD Sender: No OFD packet to send [22:27:04]ConnectInit Can't connect to host [22:27:05]OFD Sender: No OFD packet to send [22:27:10]OFD Sender: No OFD packet to send [22:27:15]OFD Sender: No OFD packet to send [22:27:20]OFD Sender: No OFD packet to send [22:27:25]OFD Sender: No OFD packet to send [22:27:30]OFD Sender: No OFD packet to send [22:27:35]OFD Sender: No OFD packet to send [22:27:40]OFD Sender: No OFD packet to send [22:27:45]OFD Sender: No OFD packet to send [22:27:50]OFD Sender: No OFD packet to send [22:27:55]OFD Sender: No OFD packet to send [22:28:00]OFD Sender: No OFD packet to send [22:28:05]OFD Sender: No OFD packet to send [22:28:10]OFD Sender: No OFD packet to send [22:28:15]OFD Sender: No OFD packet to send [22:28:20]OFD Sender: No OFD packet to send [22:28:25]OFD Sender: No OFD packet to send [22:28:30]OFD Sender: No OFD packet to send [22:28:35]OFD Sender: No OFD packet to send [22:28:40]OFD Sender: No OFD packet to send [22:28:45]OFD Sender: No OFD packet to send [22:28:50]OFD Sender: No OFD packet to send [22:28:55]OFD Sender: No OFD packet to send [22:29:00]OFD Sender: No OFD packet to send [22:29:05]OFD Sender: No OFD packet to send [22:29:10]OFD Sender: No OFD packet to send [22:29:15]OFD Sender: No OFD packet to send [22:29:20]OFD Sender: No OFD packet to send [22:29:22]ConnectInit Can't connect to host [22:29:25]OFD Sender: No OFD packet to send [22:29:30]OFD Sender: No OFD packet to send [22:29:35]OFD Sender: No OFD packet to send [22:29:40]OFD Sender: No OFD packet to send [22:29:45]OFD Sender: No OFD packet to send [22:29:50]OFD Sender: No OFD packet to send [22:29:55]OFD Sender: No OFD packet to send [22:30:00]OFD Sender: No OFD packet to send [22:30:05]OFD Sender: No OFD packet to send [22:30:10]OFD Sender: No OFD packet to send [22:30:15]OFD Sender: No OFD packet to send [22:30:20]OFD Sender: No OFD packet to send [22:30:25]OFD Sender: No OFD packet to send [22:30:30]OFD Sender: No OFD packet to send [22:30:35]OFD Sender: No OFD packet to send [22:30:40]OFD Sender: No OFD packet to send [22:30:45]OFD Sender: No OFD packet to send [22:30:50]OFD Sender: No OFD packet to send [22:30:55]OFD Sender: No OFD packet to send [22:31:00]OFD Sender: No OFD packet to send [22:31:05]OFD Sender: No OFD packet to send [22:31:10]OFD Sender: No OFD packet to send [22:31:15]OFD Sender: No OFD packet to send [22:31:20]OFD Sender: No OFD packet to send [22:31:25]OFD Sender: No OFD packet to send [22:31:30]OFD Sender: No OFD packet to send [22:31:35]OFD Sender: No OFD packet to send [22:31:40]OFD Sender: No OFD packet to send [22:31:40]ConnectInit Can't connect to host [22:31:45]OFD Sender: No OFD packet to send [22:31:50]OFD Sender: No OFD packet to send [22:31:55]OFD Sender: No OFD packet to send [22:32:00]OFD Sender: No OFD packet to send [22:32:05]OFD Sender: No OFD packet to send [22:32:10]OFD Sender: No OFD packet to send [22:32:15]OFD Sender: No OFD packet to send [22:32:20]OFD Sender: No OFD packet to send [22:32:25]OFD Sender: No OFD packet to send [22:32:30]OFD Sender: No OFD packet to send [22:32:35]OFD Sender: No OFD packet to send [22:32:40]OFD Sender: No OFD packet to send [22:32:42]accept exits with 10 [22:32:42]New connection [22:32:42]New thread 3066543460 created [22:32:42]Thread 3066686820 joined [22:32:42]Waiting for new connection... [22:32:42] Sock 10.Parse request [22:32:42]Sock 10.Check first char [22:32:42]Sock 10.First char is OK [22:32:42]request: POST /json_proto HTTP/1.0 [22:32:42]Method: POST [22:32:42]URL: /json_proto [22:32:42]Method is POST - this is cgi request [22:32:42]url: /json_proto [22:32:42]query_string will be loaded in cgi processing [22:32:42]execute_cgi json_proto POST (null) [22:32:42]execute_cgi path=json_proto method=POST [22:32:42]POST find Content-Length [22:32:42]Host: 172.17.36.132:8080 [22:32:42]Content-Length: 840 [22:32:42]Content-Type: application/json [22:32:42] [22:32:42]POST finish read [22:32:42]Found Content-Length = 840 [22:32:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706294", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.40, "quantity" : 3.770, "sum" : 250.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: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 250.33 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:32:42]execute_script... [22:32: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)706294", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.40, "quantity" : 3.770, "sum" : 250.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: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 250.33 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:32:42]POST & json_proto [22:32:42]process_json_proto [22:32:42]json parsed OK: [22:32:42]protocol is kg_v1.0 [22:32:42]action value=close_receipt [22:32:42]process_action close_receipt [22:32:42]cmd_close_receipt [22:32:42]MH_GetDate [22:32:42]Write to MH i2c: F0 00 00 81 10 80 [22:32:42]Write i2c OK [22:32:42]MH_I2C_Read... [22:32:42]Read from MH i2c: F0 [22:32:42]MH_I2C_Read... [22:32:42]Read from MH i2c: F0 09 00 [22:32:42]MH_I2C_Read... [22:32:42]Read from MH i2c: F0 09 00 81 10 00 0B F3 5C 66 B2 22 B0 64 31 [22:32:42]GetLastDocTimeStamp 1717366019 [22:32:42]current date 1717367563 [22:32:42]FM_GetShiftState [22:32:42]SAM_PROTO_GetShiftState [22:32:42]wFMCommunicate request_size=4 [22:32:42]MH_SAM_APDU [22:32:42]CAPDU: 80 13 01 00 [22:32:42]Write to MH i2c: E2 08 00 82 10 80 13 01 00 00 00 00 00 0F [22:32:42]Write i2c OK [22:32:42]MH_I2C_Read... [22:32:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:32:42]Read from MH i2c: E2 [22:32:42]MH_I2C_Read... [22:32:42]Read from MH i2c: E2 0E 00 [22:32:42]MH_I2C_Read... [22:32:42]Read from MH i2c: E2 0E 00 82 10 00 09 00 01 A4 BB 5B 66 00 00 00 00 90 00 3B [22:32:42]RAPDU: 09 00 01 A4 BB 5B 66 00 00 00 00 90 00 [22:32:42]wFMCommunicate OK [22:32:42]SAM_PROTO_GetShiftState done [22:32:42]FM_GetShiftState done [22:32:42]opened in 1717287844 [22:32:42]opened+sec_in_day 1717374244 [22:32:42]quantity*price = 25032 [22:32:42]sum+1 = 25034 [22:32:42]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 250.33 НСП 1% : 2.21 НДС 12% : 26.58 Наличными: 0.00 Безнал.: 250.33 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 238 02.06.2024 22:32 Смена: 322 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000965400 ФД: 68223 ФПД: 133832927465647 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240602T223244&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68223&fm=133832927465647&tin=02508201610067®Number=0000000000098096&sum=25033 [22:32:46]StoreToDocumentArchive [22:32:46]shift 322 fd 68223 [22:32:46]save to /storage/0322/doc_00068223 [22:32:46]save last doc name /storage/0322/doc_00068223 to /storage/kkm_last_doc_name [22:32:46]save OK [22:32:46]Clear old archive folders... [22:32:46]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:32:46]tlvbuf is 0037ECE0 [22:32:46]SAM_PROTO_ClearQueue [22:32:46]wFMCommunicate request_size=4 [22:32:46]MH_SAM_APDU [22:32:46]CAPDU: 80 09 00 00 [22:32:46]Write to MH i2c: E2 08 00 8F 10 80 09 00 00 00 00 00 00 11 [22:32:46]Write i2c OK [22:32:46]MH_I2C_Read... [22:32:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:32:46]Read from MH i2c: E2 [22:32:46]MH_I2C_Read... [22:32:46]Read from MH i2c: E2 03 00 [22:32:46]MH_I2C_Read... [22:32:46]Read from MH i2c: E2 03 00 8F 10 00 90 00 13 [22:32:46]RAPDU: 90 00 [22:32:46]wFMCommunicate OK [22:32:46]SAM_PROTO_ClearQueue done [22:32:46]KKMCreateOFDPacket [22:32:46]OFDProtocolAddRootSTLVToBuf [22:32:46]FM_MakeSignedData [22:32:46]FM_MakeSignedData [22:32:46]SAM_PROTO_SignData [22:32:46]wFMCommunicate request_size=4 [22:32:46]MH_SAM_APDU [22:32:46]CAPDU: 80 0D 01 02 [22:32:46]Write to MH i2c: E2 08 00 90 10 80 0D 01 02 00 00 00 00 19 [22:32:46]Write i2c OK [22:32:46]MH_I2C_Read... [22:32:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:32:46]Read from MH i2c: E2 [22:32:46]MH_I2C_Read... [22:32:46]Read from MH i2c: E2 03 00 [22:32:46]MH_I2C_Read... [22:32:46]Read from MH i2c: E2 03 00 90 10 00 90 00 14 [22:32:46]RAPDU: 90 00 [22:32:46]wFMCommunicate OK [22:32:46]wFMCommunicate request_size=255 [22:32:46]MH_SAM_APDU [22:32:46]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 BA 0E 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 C9 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C9 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 62 0A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C9 61 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EE 00 00 00 F4 03 04 00 0C F3 5C 66 0E 04 04 00 42 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 7F 0A 01 00 35 04 06 00 79 [22:32:47]Write to MH i2c: E2 02 01 91 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 34 FF 03 08 00 03 BA 0E 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 C9 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C9 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 62 0A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C9 61 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EE 00 00 00 F4 03 04 00 0C F3 5C 66 0E 04 04 00 42 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 7F 0A 01 00 35 04 06 00 79 00 00 AE [22:32:47]Write i2c OK [22:32:47]MH_I2C_Read... [22:32:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:32:48]Read from MH i2c: E2 [22:32:48]MH_I2C_Read... [22:32:48]Read from MH i2c: E2 03 00 [22:32:48]MH_I2C_Read... [22:32:48]Read from MH i2c: E2 03 00 91 10 00 90 00 15 [22:32:48]RAPDU: 90 00 [22:32:48]wFMCommunicate OK [22:32:48]wFMCommunicate request_size=10 [22:32:48]MH_SAM_APDU [22:32:48]CAPDU: 80 0D 02 02 05 B8 68 19 D0 AF [22:32:48]Write to MH i2c: E2 0D 00 92 10 80 0D 02 02 05 00 B8 68 19 D0 AF 00 00 DE [22:32:48]Write i2c OK [22:32:48]MH_I2C_Read... [22:32:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:32:48]Read from MH i2c: E2 [22:32:48]MH_I2C_Read... [22:32:48]Read from MH i2c: E2 03 00 [22:32:48]MH_I2C_Read... [22:32:48]Read from MH i2c: E2 03 00 92 10 00 90 00 16 [22:32:48]RAPDU: 90 00 [22:32:48]wFMCommunicate OK [22:32:48]wFMCommunicate request_size=4 [22:32:48]MH_SAM_APDU [22:32:48]CAPDU: 80 0D 03 02 [22:32:48]Write to MH i2c: E2 08 00 93 10 80 0D 03 02 00 00 00 00 1E [22:32:48]Write i2c OK [22:32:48]MH_I2C_Read... [22:32:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:32:48]Read from MH i2c: E2 [22:32:48]MH_I2C_Read... [22:32:48]Read from MH i2c: E2 0B 00 [22:32:48]MH_I2C_Read... [22:32:48]Read from MH i2c: E2 0B 00 93 10 00 BA BC 9F A5 7F B0 B7 C9 90 00 88 [22:32:48]RAPDU: BA BC 9F A5 7F B0 B7 C9 90 00 [22:32:48]wFMCommunicate OK [22:32:48]SAM_PROTO_SignData done [22:32:48]FM_MakeSignedData done [22:32:48]CreateOFDProtocolMessage [22:32:48]wFMCommunicate request_size=4 [22:32:48]MH_SAM_APDU [22:32:48]CAPDU: 80 11 00 00 [22:32:48]Write to MH i2c: E2 08 00 94 10 80 11 00 00 00 00 00 00 1E [22:32:48]Write i2c OK [22:32:48]MH_I2C_Read... [22:32:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:32:48]Read from MH i2c: E2 [22:32:48]MH_I2C_Read... [22:32:48]Read from MH i2c: E2 17 00 [22:32:48]MH_I2C_Read... [22:32:48]Read from MH i2c: E2 17 00 94 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 69 [22:32:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [22:32:48]wFMCommunicate OK [22:32:48]CreateOFDProtocolMessage done [22:32:48]OFDSenderStorePacket 68223 [22:32:48]StoreOFDPacket docnum=68223 [22:32:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 D7 EF 07 01 EF CF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 BA 0E 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 C9 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C9 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 62 0A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C9 61 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EE 00 00 00 F4 03 04 00 0C F3 5C 66 0E 04 04 00 42 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 7F 0A 01 00 35 04 06 00 79 B8 68 19 D0 AF BA BC 9F A5 7F B0 B7 C9 [22:32:48]CheckFolder [22:32:48]dirname=/storage/ofd_packets [22:32:48]CheckFolder done [22:32:48]ProducePacketName [22:32:48]name=ofd_packets/00068223 [22:32:48]NVStorageSaveData ofd_packets/00068223 [22:32:48]File name is /storage/ofd_packets/00068223 [22:32:48]Write 301 bytes [22:32:48]NVStorageSaveData done [22:32:48]OFDSenderStorePacket done [22:32:48]KKMCreateOFDPacket done [22:32:48]NVStorageSaveData kkm_last_timestamp [22:32:48]File name is /storage/kkm_last_timestamp [22:32:49]Write 4 bytes [22:32:49]NVStorageSaveData done [22:32:49]ExternCall_PrintAddStr [22:32:49]wPrintStart [22:32:49]Write to MH i2c: 01 00 00 95 10 A5 [22:32:49]Write i2c OK [22:32:49]MH_I2C_Read... [22:32:49]Read from MH i2c: 01 [22:32:49]MH_I2C_Read... [22:32:49]Read from MH i2c: 01 07 00 [22:32:49]MH_I2C_Read... [22:32:49]Read from MH i2c: 01 07 00 95 10 00 00 00 00 00 FF 0F BA [22:32:49]RasterBufferAndPrint [22:32:49]line Счет N : (1)706294 [22:32:49]line ИНН: 02508201610067 [22:32:49]line Контрольно-Кассовый Чек [22:32:49]line ПРОДАЖА [22:32:49]line ТРК (МРК, ГНК) : 53 [22:32:49]line Товар: 2710124130 [22:32:49]line Аи-92-К-4 [22:32:49]line 3.770 * 66.40 [22:32:49]line = 250.33 [22:32:49]line НДС 12% НСП 1% [22:32:49]line > о реализуемом товаре [22:32:49]line ИТОГО: 250.33 [22:32:49]line НСП 1% : 2.21 [22:32:49]line НДС 12% : 26.58 [22:32:49]line Наличными: 0.00 [22:32:49]line Безнал.: 250.33 [22:32:49]line Место: АЗС № 62 "Партнер Нефть" [22:32:49]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [22:32:49]line СНО: Общий режим [22:32:49]OFD Sender: Processing packet 68223 [packets to send 26, broken 25] [22:32:49]line Чек 238 02.06.2024 22:32 [22:32:49]ProducePacketName [22:32:49]line Смена: 322 ФФД: 1.0 [22:32:49]name=ofd_packets/00068223 [22:32:49]line ЗНМ: 0300000181 [22:32:49]OFD Sender: To server: pG, [22:32:49]line РНМ: 0000000000098096 [22:32:49]CommunicateWithHost lk.salyk.kg:30040 [22:32:49]line Версия ККМ: 001 [22:32:49]ConnectInit lk.salyk.kg [22:32:49]line Платежная система: АКБ Кыргызстан [22:32:49]line ФМ: 0000000000965400 [22:32:49]line ФД: 68223 [22:32:49]line ФПД: 133832927465647 [22:32:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240602T223244&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68223&fm=133832927465647&tin=02508201610067®Number=0000000000098096&sum=25033 [22:32:49]written 0, free lines is 4095 [22:32:49]Connected sock=11 [22:32:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 D7 EF 07 01 EF CF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 BA 0E 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 C9 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C9 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 Write to MH i2c: 01 01 00 00 01 F7 03 06 00 00 BF DD 00 00 00 00 10 00 CF EE 03 0F 00 F2 [22:32:49]03 01 00 01 F3 03 Write i2c OK [22:32:49]06 MH_I2C_Read... [22:32:49]00 62 0A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C9 61 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EE 00 00 00 F4 03 04 00 0C F3 5C Read from MH i2c: 66 01 0E [22:32:50]04 MH_I2C_Read... [22:32:50]Read from MH i2c: 01 07 00 04 [22:32:50]00 MH_I2C_Read... [22:32:50]Read from MH i2c: 01 07 42 00 01 BF 10 00 00 00 00 00 00 00 B9 5E 04 01 00 01 0D 0D 04 41 10 00 30 30 30 [22:32:50]30 RasterBufferAndPrint [22:32:50]30 30 30 30 line [22:32:50]30 line [22:32:50]30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 7F 0A 01 00 35 04 line [22:32:50]06 line [22:32:50]00 line [22:32:50]79 B8 68 written 0, free lines is 4095 [22:32:50]19 D0 AF BA BC 9F A5 MH_Cut [22:32:50]7F Write to MH i2c: B0 D1 B7 01 C9 00 [22:32:50]C6 10 01 A8 [22:32:50]Write i2c OK [22:32:50]MH_I2C_Read... [22:32:50]Read from MH i2c: D1 [22:32:50]MH_I2C_Read... [22:32:50]Read from MH i2c: D1 01 00 [22:32:50]MH_I2C_Read... [22:32:50]Read from MH i2c: D1 01 00 C6 10 00 A7 [22:32:50]Write to MH i2c: 01 00 00 C7 10 D7 [22:32:50]Write i2c OK [22:32:50]MH_I2C_Read... [22:32:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 *** Cut start [22:32:50]30 *** Partial cut [22:32:50]30 39 *** CUTSNS_PIN = 1 [22:32:50]36 35 34 30 *** CUTSNS_PIN = 0 [22:32:50]30 4F 00 00 00 E0 42 47 00 49 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 *** Brake cut motor [22:32:51]34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 7F 0A 01 00 F4 03 04 00 10 9A 5C 66 B6 04 01 00 00 06 F4 D6 D5 79 4C 77 E6 [22:32:51]CommunicateWithHost err = 0 [22:32:51]CheckOFDResponse [22:32:51]1017 (14) - 77093643461234 [22:32:51]1041 (16) - 0000000000965400 [22:32:51]1040 (4) - 68223 [22:32:51]1012 (4) - 02.06.2024 16:13 [22:32:51]1206 (1) - 0 [22:32:51]*** Stop cut motor [22:32:51]OFD Sender: Remove packet 68223 [22:32:51]*** Cut end [22:32:51]ProducePacketName [22:32:51]name=ofd_packets/00068223 [22:32:51]NVStorageDeleteData [22:32:51]Read from MH i2c: 01 [22:32:51]MH_I2C_Read... [22:32:51]Read from MH i2c: 01 07 00 [22:32:51]MH_I2C_Read... [22:32:51]Read from MH i2c: 01 07 00 C7 10 00 00 00 00 00 FF 0F EC [22:32:51]process_action close_receipt done [22:32:51]requested_data is exist [22:32:51]produce_requested_data [22:32:51]requested_item fm.sn is exist - process it [22:32:51]wFMCommunicate request_size=4 [22:32:51]MH_SAM_APDU [22:32:51]CAPDU: 80 11 00 00 [22:32:51]Write to MH i2c: E2 08 00 C8 10 80 11 00 00 00 00 00 00 52 [22:32:51]Write i2c OK [22:32:51]MH_I2C_Read... [22:32:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:32:51]Read from MH i2c: E2 [22:32:51]MH_I2C_Read... [22:32:51]Read from MH i2c: E2 17 00 [22:32:51]MH_I2C_Read... [22:32:51]Read from MH i2c: E2 17 00 C8 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 9D [22:32:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [22:32:51]wFMCommunicate OK [22:32:51]requested_item fd.num is exist - process it [22:32:51]SAM_PROTO_GetFieldsCounters [22:32:51]wFMCommunicate request_size=4 [22:32:51]MH_SAM_APDU [22:32:51]CAPDU: 80 13 00 00 [22:32:51]Write to MH i2c: E2 08 00 C9 10 80 13 00 00 00 00 00 00 55 [22:32:51]Write i2c OK [22:32:51]MH_I2C_Read... [22:32:52]OFD Sender: No OFD packet to send [22:32:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:32:52]Read from MH i2c: E2 [22:32:52]MH_I2C_Read... [22:32:52]Read from MH i2c: E2 62 00 [22:32:52]MH_I2C_Read... [22:32:52]Read from MH i2c: E2 62 00 C9 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 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 7F 0A 01 00 0E 04 04 00 42 01 00 00 12 04 04 00 EE 00 00 00 5E 04 04 00 EE 00 00 00 57 04 04 00 EF 00 00 00 19 04 04 00 00 00 00 00 90 00 0C [22:32: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 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 7F 0A 01 00 0E 04 04 00 42 01 00 00 12 04 04 00 EE 00 00 00 5E 04 04 00 EE 00 00 00 57 04 04 00 EF 00 00 00 19 04 04 00 00 00 00 00 90 00 [22:32:52]wFMCommunicate OK [22:32:52]SAM_PROTO_GetFieldsCounters done [22:32:52]requested_item shift.num is exist - process it [22:32:52]requested_item shift.opened is exist - process it [22:32:52]req_shift_opened [22:32:52]FM_GetShiftState [22:32:52]SAM_PROTO_GetShiftState [22:32:52]wFMCommunicate request_size=4 [22:32:52]MH_SAM_APDU [22:32:52]CAPDU: 80 13 01 00 [22:32:52]Write to MH i2c: E2 08 00 CA 10 80 13 01 00 00 00 00 00 57 [22:32:52]Write i2c OK [22:32:52]MH_I2C_Read... [22:32:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:32:52]Read from MH i2c: E2 [22:32:52]MH_I2C_Read... [22:32:52]Read from MH i2c: E2 0E 00 [22:32:52]MH_I2C_Read... [22:32:52]Read from MH i2c: E2 0E 00 CA 10 00 09 00 01 A4 BB 5B 66 00 00 00 00 90 00 83 [22:32:52]RAPDU: 09 00 01 A4 BB 5B 66 00 00 00 00 90 00 [22:32:52]wFMCommunicate OK [22:32:52]SAM_PROTO_GetShiftState done [22:32:52]FM_GetShiftState done [22:32:52]req_shift_opened done [22:32:52]requested_item shift.open_date is exist - process it [22:32:52]req_shift_open_date [22:32:52]req_shift_open_date done [22:32:52]produce_requested_data done [22:32:52]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68223,"shift.num":322,"shift.opened":1,"shift.open_date":1717287844} [22:32:52]process_action_free close_receipt [22:32:52]json_value_free [22:32:52]json_value_free done [22:32:52]process_json_proto returns [22:32:52]Send response to host [22:32:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68223,"shift.num":322,"shift.opened":1,"shift.open_date":1717287844}}} [22:32:52]free response buf [22:32:52]execute_script done [22:32:52]execute_script returns [22:32:52]free content buf [22:32:52]Sock 10.Close socket [22:32:52]Sock 10.Thread stoped [22:32:57]OFD Sender: No OFD packet to send [22:33:02]OFD Sender: No OFD packet to send [22:33:07]OFD Sender: No OFD packet to send [22:33:12]OFD Sender: No OFD packet to send [22:33:14]accept exits with 9 [22:33:14]New connection [22:33:14]New thread 3066686820 created [22:33:14]Thread 3066543460 joined [22:33:14]Waiting for new connection... [22:33:14] Sock 9.Parse request [22:33:14]Sock 9.Check first char [22:33:14]Sock 9.First char is OK [22:33:14]request: POST /json_proto HTTP/1.0 [22:33:14]Method: POST [22:33:14]URL: /json_proto [22:33:14]Method is POST - this is cgi request [22:33:14]url: /json_proto [22:33:14]query_string will be loaded in cgi processing [22:33:14]execute_cgi json_proto POST (null) [22:33:14]execute_cgi path=json_proto method=POST [22:33:14]POST find Content-Length [22:33:14]Host: 172.17.36.132:8080 [22:33:14]Content-Length: 841 [22:33:14]Content-Type: application/json [22:33:14] [22:33:14]POST finish read [22:33:14]Found Content-Length = 841 [22:33:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706295", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.40, "quantity" : 10.550, "sum" : 700.52, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 700.52 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:33:14]execute_script... [22:33: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)706295", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.40, "quantity" : 10.550, "sum" : 700.52, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 700.52 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:33:14]POST & json_proto [22:33:14]process_json_proto [22:33:14]json parsed OK: [22:33:14]protocol is kg_v1.0 [22:33:14]action value=close_receipt [22:33:14]process_action close_receipt [22:33:14]cmd_close_receipt [22:33:14]MH_GetDate [22:33:14]Write to MH i2c: F0 00 00 CB 10 CA [22:33:14]Write i2c OK [22:33:14]MH_I2C_Read... [22:33:14]Read from MH i2c: F0 [22:33:14]MH_I2C_Read... [22:33:14]Read from MH i2c: F0 09 00 [22:33:14]MH_I2C_Read... [22:33:14]Read from MH i2c: F0 09 00 CB 10 00 2C F3 5C 66 B2 22 B0 64 9C [22:33:14]GetLastDocTimeStamp 1717367564 [22:33:14]current date 1717367596 [22:33:14]FM_GetShiftState [22:33:14]SAM_PROTO_GetShiftState [22:33:14]wFMCommunicate request_size=4 [22:33:14]MH_SAM_APDU [22:33:14]CAPDU: 80 13 01 00 [22:33:14]Write to MH i2c: E2 08 00 CC 10 80 13 01 00 00 00 00 00 59 [22:33:14]Write i2c OK [22:33:14]MH_I2C_Read... [22:33:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:33:14]Read from MH i2c: E2 [22:33:14]MH_I2C_Read... [22:33:14]Read from MH i2c: E2 0E 00 [22:33:14]MH_I2C_Read... [22:33:14]Read from MH i2c: E2 0E 00 CC 10 00 09 00 01 A4 BB 5B 66 00 00 00 00 90 00 85 [22:33:15]RAPDU: 09 00 01 A4 BB 5B 66 00 00 00 00 90 00 [22:33:15]wFMCommunicate OK [22:33:15]SAM_PROTO_GetShiftState done [22:33:15]FM_GetShiftState done [22:33:15]opened in 1717287844 [22:33:15]opened+sec_in_day 1717374244 [22:33:15]quantity*price = 70052 [22:33:15]sum+1 = 70053 [22:33:15]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 700.52 НСП 1% : 6.20 НДС 12% : 74.39 Наличными: 0.00 Безнал.: 700.52 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 239 02.06.2024 22:33 Смена: 322 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000965400 ФД: 68224 ФПД: 33017286280741 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240602T223316&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68224&fm=33017286280741&tin=02508201610067®Number=0000000000098096&sum=70052 [22:33:18]StoreToDocumentArchive [22:33:18]shift 322 fd 68224 [22:33:18]save to /storage/0322/doc_00068224 [22:33:18]save last doc name /storage/0322/doc_00068224 to /storage/kkm_last_doc_name [22:33:18]save OK [22:33:18]Clear old archive folders... [22:33:18]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:33:18]tlvbuf is 004CF740 [22:33:18]SAM_PROTO_ClearQueue [22:33:18]wFMCommunicate request_size=4 [22:33:18]MH_SAM_APDU [22:33:18]CAPDU: 80 09 00 00 [22:33:18]Write to MH i2c: E2 08 00 D9 10 80 09 00 00 00 00 00 00 5B [22:33:18]Write i2c OK [22:33:18]MH_I2C_Read... [22:33:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:33:18]Read from MH i2c: E2 [22:33:18]MH_I2C_Read... [22:33:18]Read from MH i2c: E2 03 00 [22:33:18]MH_I2C_Read... [22:33:18]Read from MH i2c: E2 03 00 D9 10 00 90 00 5D [22:33:18]RAPDU: 90 00 [22:33:19]wFMCommunicate OK [22:33:19]SAM_PROTO_ClearQueue done [22:33:19]KKMCreateOFDPacket [22:33:19]OFDProtocolAddRootSTLVToBuf [22:33:19]FM_MakeSignedData [22:33:19]FM_MakeSignedData [22:33:19]SAM_PROTO_SignData [22:33:19]wFMCommunicate request_size=4 [22:33:19]MH_SAM_APDU [22:33:19]CAPDU: 80 0D 01 02 [22:33:19]Write to MH i2c: E2 08 00 DA 10 80 0D 01 02 00 00 00 00 63 [22:33:19]Write i2c OK [22:33:19]MH_I2C_Read... [22:33:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:33:19]Read from MH i2c: E2 [22:33:19]MH_I2C_Read... [22:33:19]Read from MH i2c: E2 03 00 [22:33:19]MH_I2C_Read... [22:33:19]Read from MH i2c: E2 03 00 DA 10 00 90 00 5E [22:33:19]RAPDU: 90 00 [22:33:19]wFMCommunicate OK [22:33:19]wFMCommunicate request_size=255 [22:33:19]MH_SAM_APDU [22:33:19]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 36 29 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A4 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A4 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 A4 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 EF 00 00 00 F4 03 04 00 2C F3 5C 66 0E 04 04 00 42 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 80 0A 01 00 35 04 06 00 1E [22:33:19]Write to MH i2c: E2 02 01 DB 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 34 FF 03 08 00 03 36 29 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A4 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A4 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 A4 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 EF 00 00 00 F4 03 04 00 2C F3 5C 66 0E 04 04 00 42 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 80 0A 01 00 35 04 06 00 1E 00 00 4B [22:33:20]Write i2c OK [22:33:20]MH_I2C_Read... [22:33:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:33:20]Read from MH i2c: E2 [22:33:20]MH_I2C_Read... [22:33:20]Read from MH i2c: E2 03 00 [22:33:20]MH_I2C_Read... [22:33:20]Read from MH i2c: E2 03 00 DB 10 00 90 00 5F [22:33:20]RAPDU: 90 00 [22:33:20]wFMCommunicate OK [22:33:20]wFMCommunicate request_size=10 [22:33:20]MH_SAM_APDU [22:33:20]CAPDU: 80 0D 02 02 05 07 6F 9E C6 25 [22:33:21]Write to MH i2c: E2 0D 00 DC 10 80 0D 02 02 05 00 07 6F 9E C6 25 00 00 6F [22:33:21]Write i2c OK [22:33:21]MH_I2C_Read... [22:33:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:33:21]Read from MH i2c: E2 [22:33:21]MH_I2C_Read... [22:33:21]Read from MH i2c: E2 03 00 [22:33:21]MH_I2C_Read... [22:33:21]Read from MH i2c: E2 03 00 DC 10 00 90 00 60 [22:33:21]RAPDU: 90 00 [22:33:21]wFMCommunicate OK [22:33:21]wFMCommunicate request_size=4 [22:33:21]MH_SAM_APDU [22:33:21]CAPDU: 80 0D 03 02 [22:33:21]Write to MH i2c: E2 08 00 DD 10 80 0D 03 02 00 00 00 00 68 [22:33:21]Write i2c OK [22:33:21]MH_I2C_Read... [22:33:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:33:21]Read from MH i2c: E2 [22:33:21]MH_I2C_Read... [22:33:21]Read from MH i2c: E2 0B 00 [22:33:21]MH_I2C_Read... [22:33:21]Read from MH i2c: E2 0B 00 DD 10 00 2C 29 68 0D 21 85 F6 47 90 00 16 [22:33:21]RAPDU: 2C 29 68 0D 21 85 F6 47 90 00 [22:33:21]wFMCommunicate OK [22:33:21]SAM_PROTO_SignData done [22:33:21]FM_MakeSignedData done [22:33:21]CreateOFDProtocolMessage [22:33:21]wFMCommunicate request_size=4 [22:33:21]MH_SAM_APDU [22:33:21]CAPDU: 80 11 00 00 [22:33:21]Write to MH i2c: E2 08 00 DE 10 80 11 00 00 00 00 00 00 68 [22:33:21]Write i2c OK [22:33:21]MH_I2C_Read... [22:33:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:33:21]Read from MH i2c: E2 [22:33:21]MH_I2C_Read... [22:33:21]Read from MH i2c: E2 17 00 [22:33:21]MH_I2C_Read... [22:33:21]Read from MH i2c: E2 17 00 DE 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 B3 [22:33:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [22:33:21]wFMCommunicate OK [22:33:21]CreateOFDProtocolMessage done [22:33:21]OFDSenderStorePacket 68224 [22:33:21]StoreOFDPacket docnum=68224 [22:33:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 B2 49 07 01 04 2B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 36 29 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A4 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A4 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 A4 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 EF 00 00 00 F4 03 04 00 2C F3 5C 66 0E 04 04 00 42 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 80 0A 01 00 35 04 06 00 1E 07 6F 9E C6 25 2C 29 68 0D 21 85 F6 47 [22:33:21]CheckFolder [22:33:21]dirname=/storage/ofd_packets [22:33:21]CheckFolder done [22:33:21]ProducePacketName [22:33:21]name=ofd_packets/00068224 [22:33:21]NVStorageSaveData ofd_packets/00068224 [22:33:21]File name is /storage/ofd_packets/00068224 [22:33:21]Write 301 bytes [22:33:21]NVStorageSaveData done [22:33:21]OFDSenderStorePacket done [22:33:21]KKMCreateOFDPacket done [22:33:21]NVStorageSaveData kkm_last_timestamp [22:33:21]File name is /storage/kkm_last_timestamp [22:33:21]Write 4 bytes [22:33:21]NVStorageSaveData done [22:33:21]ExternCall_PrintAddStr [22:33:21]wPrintStart [22:33:21]Write to MH i2c: 01 00 00 DF 10 EF [22:33:21]OFD Sender: Processing packet 68224 [packets to send 26, broken 25] [22:33:21]ProducePacketName [22:33:21]name=ofd_packets/00068224 [22:33:21]OFD Sender: To server: pG, [22:33:21]CommunicateWithHost lk.salyk.kg:30040 [22:33:21]ConnectInit lk.salyk.kg [22:33:21]Write i2c OK [22:33:21]MH_I2C_Read... [22:33:21]Read from MH i2c: 01 [22:33:21]MH_I2C_Read... [22:33:21]Read from MH i2c: 01 07 00 [22:33:21]MH_I2C_Read... [22:33:21]Read from MH i2c: 01 07 00 DF 10 00 00 00 00 00 FF 0F 04 [22:33:21]RasterBufferAndPrint [22:33:21]line Счет N : (1)706295 [22:33:21]line ИНН: 02508201610067 [22:33:21]line Контрольно-Кассовый Чек [22:33:21]line ПРОДАЖА [22:33:21]line ТРК (МРК, ГНК) : 32 [22:33:21]line Товар: 2710124130 [22:33:21]line Аи-92-К-4 [22:33:21]line 10.550 * 66.40 [22:33:22]line = 700.52 [22:33:22]line НДС 12% НСП 1% [22:33:22]line > о реализуемом товаре [22:33:22]line ИТОГО: 700.52 [22:33:22]line НСП 1% : 6.20 [22:33:22]line НДС 12% : 74.39 [22:33:22]line Наличными: 0.00 [22:33:22]Connected sock=11 [22:33:22]line Безнал.: 700.52 [22:33:22]Data to sent: line Место: АЗС № 62 "Партнер Нефть" [22:33:22]87 line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [22:33:22]95 line СНО: Общий режим [22:33:22]F6 line Чек 239 02.06.2024 22:33 [22:33:22]line Смена: 322 ФФД: 1.0 [22:33:22]line ЗНМ: 0300000181 [22:33:22]line РНМ: 0000000000098096 [22:33:22]line Версия ККМ: 001 [22:33:22]70 line Платежная система: АКБ Кыргызстан [22:33:22]47 line ФМ: 0000000000965400 [22:33:22]2C line ФД: 68224 [22:33:22]01 line ФПД: 33017286280741 [22:33:22]00 line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240602T223316&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68224&fm=33017286280741&tin=02508201610067®Number=0000000000098096&sum=70052 [22:33:22]30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 B2 49 07 01 04 written 0, free lines is 4095 [22:33:22]2B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 36 29 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A4 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A4 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 A4 11 Write to MH i2c: 01 01 00 00 00 00 00 1F 04 02 00 09 11 01 1A 00 [22:33:22]12 04 04 00 EF 00 00 00 F4 03 04 00 2C F3 5C 66 0E 04 04 00 42 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 Write i2c OK [22:33:22]30 MH_I2C_Read... [22:33:22]30 Read from MH i2c: 30 01 30 [22:33:23]30 MH_I2C_Read... [22:33:23]30 Read from MH i2c: 30 30 39 38 30 01 39 07 36 00 11 [22:33:23]04 MH_I2C_Read... [22:33:23]10 00 30 30 30 Read from MH i2c: 30 01 30 07 30 00 30 09 30 11 30 00 30 00 39 00 36 35 34 30 30 00 00 62 0D 10 90 04 [22:33:23]04 RasterBufferAndPrint [22:33:23]00 line [22:33:23]80 0A 01 00 35 line [22:33:23]04 line [22:33:23]06 line [22:33:23]00 line [22:33:23]1E written 0, free lines is 4076 [22:33:23]07 6F 9E C6 25 MH_Cut [22:33:23]2C Write to MH i2c: 29 68 0D 21 D1 85 01 F6 47 [22:33:23]00 10 11 01 F3 [22:33:23]Write i2c OK [22:33:23]MH_I2C_Read... [22:33:23]Read from MH i2c: D1 [22:33:23]MH_I2C_Read... [22:33:23]Read from MH i2c: D1 01 00 [22:33:23]MH_I2C_Read... [22:33:23]Read from MH i2c: D1 01 00 10 11 00 F2 [22:33:23]Write to MH i2c: 01 00 00 11 11 22 [22:33:23]Write i2c OK [22:33:23]MH_I2C_Read... [22:33:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 4E CD 47 00 50 20 A5 07 01 00 07 00 3B *** Cut start [22:33:23]00 F9 03 *** Partial cut [22:33:23]0E 00 37 *** CUTSNS_PIN = 1 [22:33:23]37 *** CUTSNS_PIN = 0 [22:33:23]30 *** Brake cut motor [22:33:23]39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 80 0A 01 00 F4 03 04 00 31 9A 5C 66 B6 04 01 00 00 50 A0 CF 43 41 24 BA 7A Read from MH i2c: [22:33:24]*** Stop cut motor [22:33:24]CommunicateWithHost err = 0 [22:33:24]*** Cut end [22:33:24]CheckOFDResponse [22:33:24]1017 (14) - 77093643461234 [22:33:24]1041 (16) - 0000000000965400 [22:33:24]1040 (4) - 68224 [22:33:24]1012 (4) - 02.06.2024 16:13 [22:33:24]1206 (1) - 0 [22:33:24]OFD Sender: Remove packet 68224 [22:33:24]ProducePacketName [22:33:24]name=ofd_packets/00068224 [22:33:24]NVStorageDeleteData [22:33:24]01 [22:33:24]MH_I2C_Read... [22:33:24]Read from MH i2c: 01 07 00 [22:33:24]MH_I2C_Read... [22:33:24]Read from MH i2c: 01 07 00 11 11 00 00 00 00 00 FF 0F 37 [22:33:24]process_action close_receipt done [22:33:24]requested_data is exist [22:33:24]produce_requested_data [22:33:24]requested_item fm.sn is exist - process it [22:33:24]wFMCommunicate request_size=4 [22:33:24]MH_SAM_APDU [22:33:24]CAPDU: 80 11 00 00 [22:33:24]Write to MH i2c: E2 08 00 12 11 80 11 00 00 00 00 00 00 9D [22:33:24]Write i2c OK [22:33:24]MH_I2C_Read... [22:33:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:33:24]Read from MH i2c: E2 [22:33:24]MH_I2C_Read... [22:33:24]Read from MH i2c: E2 17 00 [22:33:24]MH_I2C_Read... [22:33:24]Read from MH i2c: E2 17 00 12 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 E8 [22:33:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [22:33:24]wFMCommunicate OK [22:33:24]requested_item fd.num is exist - process it [22:33:24]SAM_PROTO_GetFieldsCounters [22:33:24]wFMCommunicate request_size=4 [22:33:24]MH_SAM_APDU [22:33:24]CAPDU: 80 13 00 00 [22:33:24]Write to MH i2c: E2 08 00 13 11 80 13 00 00 00 00 00 00 A0 [22:33:24]Write i2c OK [22:33:24]MH_I2C_Read... [22:33:24]OFD Sender: No OFD packet to send [22:33:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:33:24]Read from MH i2c: E2 [22:33:24]MH_I2C_Read... [22:33:24]Read from MH i2c: E2 62 00 [22:33:24]MH_I2C_Read... [22:33:24]Read from MH i2c: E2 62 00 13 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 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 80 0A 01 00 0E 04 04 00 42 01 00 00 12 04 04 00 EF 00 00 00 5E 04 04 00 EF 00 00 00 57 04 04 00 F0 00 00 00 19 04 04 00 00 00 00 00 90 00 5B [22:33: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 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 80 0A 01 00 0E 04 04 00 42 01 00 00 12 04 04 00 EF 00 00 00 5E 04 04 00 EF 00 00 00 57 04 04 00 F0 00 00 00 19 04 04 00 00 00 00 00 90 00 [22:33:25]wFMCommunicate OK [22:33:25]SAM_PROTO_GetFieldsCounters done [22:33:25]requested_item shift.num is exist - process it [22:33:25]requested_item shift.opened is exist - process it [22:33:25]req_shift_opened [22:33:25]FM_GetShiftState [22:33:25]SAM_PROTO_GetShiftState [22:33:25]wFMCommunicate request_size=4 [22:33:25]MH_SAM_APDU [22:33:25]CAPDU: 80 13 01 00 [22:33:25]Write to MH i2c: E2 08 00 14 11 80 13 01 00 00 00 00 00 A2 [22:33:25]Write i2c OK [22:33:25]MH_I2C_Read... [22:33:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:33:25]Read from MH i2c: E2 [22:33:25]MH_I2C_Read... [22:33:25]Read from MH i2c: E2 0E 00 [22:33:25]MH_I2C_Read... [22:33:25]Read from MH i2c: E2 0E 00 14 11 00 09 00 01 A4 BB 5B 66 00 00 00 00 90 00 CE [22:33:25]RAPDU: 09 00 01 A4 BB 5B 66 00 00 00 00 90 00 [22:33:25]wFMCommunicate OK [22:33:25]SAM_PROTO_GetShiftState done [22:33:25]FM_GetShiftState done [22:33:25]req_shift_opened done [22:33:25]requested_item shift.open_date is exist - process it [22:33:25]req_shift_open_date [22:33:25]req_shift_open_date done [22:33:25]produce_requested_data done [22:33:25]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68224,"shift.num":322,"shift.opened":1,"shift.open_date":1717287844} [22:33:25]process_action_free close_receipt [22:33:25]json_value_free [22:33:25]json_value_free done [22:33:25]process_json_proto returns [22:33:25]Send response to host [22:33:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68224,"shift.num":322,"shift.opened":1,"shift.open_date":1717287844}}} [22:33:25]free response buf [22:33:25]execute_script done [22:33:25]execute_script returns [22:33:25]free content buf [22:33:25]Sock 9.Close socket [22:33:25]Sock 9.Thread stoped [22:33:26]accept exits with 10 [22:33:26]New connection [22:33:26]New thread 3066543460 created [22:33:26]Thread 3066686820 joined [22:33:26]Waiting for new connection... [22:33:26] Sock 10.Parse request [22:33:26]Sock 10.Check first char [22:33:26]Sock 10.First char is OK [22:33:26]request: POST /json_proto HTTP/1.0 [22:33:26]Method: POST [22:33:26]URL: /json_proto [22:33:26]Method is POST - this is cgi request [22:33:26]url: /json_proto [22:33:26]query_string will be loaded in cgi processing [22:33:26]execute_cgi json_proto POST (null) [22:33:26]execute_cgi path=json_proto method=POST [22:33:26]POST find Content-Length [22:33:26]Host: 172.17.36.132:8080 [22:33:26]Content-Length: 678 [22:33:26]Content-Type: application/json [22:33:26] [22:33:26]POST finish read [22:33:26]Found Content-Length = 678 [22:33:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706296", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.40, "quantity" : 13.560, "sum" : 900.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 900.00, "total" : 900.00, "payments": [ { "type": 0, "sum" : 900.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:33:26]execute_script... [22:33:26]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706296", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.40, "quantity" : 13.560, "sum" : 900.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 900.00, "total" : 900.00, "payments": [ { "type": 0, "sum" : 900.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:33:26]POST & json_proto [22:33:26]process_json_proto [22:33:26]json parsed OK: [22:33:26]protocol is kg_v1.0 [22:33:26]action value=close_receipt [22:33:26]process_action close_receipt [22:33:26]cmd_close_receipt [22:33:26]MH_GetDate [22:33:26]Write to MH i2c: F0 00 00 15 11 15 [22:33:26]Write i2c OK [22:33:26]MH_I2C_Read... [22:33:26]Read from MH i2c: F0 [22:33:26]MH_I2C_Read... [22:33:26]Read from MH i2c: F0 09 00 [22:33:26]MH_I2C_Read... [22:33:26]Read from MH i2c: F0 09 00 15 11 00 38 F3 5C 66 B2 22 B0 64 F3 [22:33:26]GetLastDocTimeStamp 1717367596 [22:33:26]current date 1717367608 [22:33:26]FM_GetShiftState [22:33:26]SAM_PROTO_GetShiftState [22:33:26]wFMCommunicate request_size=4 [22:33:26]MH_SAM_APDU [22:33:26]CAPDU: 80 13 01 00 [22:33:26]Write to MH i2c: E2 08 00 16 11 80 13 01 00 00 00 00 00 A4 [22:33:26]Write i2c OK [22:33:26]MH_I2C_Read... [22:33:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:33:26]Read from MH i2c: E2 [22:33:26]MH_I2C_Read... [22:33:26]Read from MH i2c: E2 0E 00 [22:33:26]MH_I2C_Read... [22:33:26]Read from MH i2c: E2 0E 00 16 11 00 09 00 01 A4 BB 5B 66 00 00 00 00 90 00 D0 [22:33:26]RAPDU: 09 00 01 A4 BB 5B 66 00 00 00 00 90 00 [22:33:26]wFMCommunicate OK [22:33:26]SAM_PROTO_GetShiftState done [22:33:26]FM_GetShiftState done [22:33:26]opened in 1717287844 [22:33:26]opened+sec_in_day 1717374244 [22:33:26]quantity*price = 90038 [22:33:26]sum+1 = 90039 [22:33:26]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 900.00 Внесено: 900.00 СДАЧА: 0.00 НСП 1% : 7.97 НДС 12% : 95.62 Наличными: 900.00 Безнал.: 0.00 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 240 02.06.2024 22:33 Смена: 322 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 ФМ: 0000000000965400 ФД: 68225 ФПД: 169083948267458 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240602T223328&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68225&fm=169083948267458&tin=02508201610067®Number=0000000000098096&sum=90000 [22:33:30]StoreToDocumentArchive [22:33:30]shift 322 fd 68225 [22:33:30]save to /storage/0322/doc_00068225 [22:33:30]save last doc name /storage/0322/doc_00068225 to /storage/kkm_last_doc_name [22:33:30]save OK [22:33:30]Clear old archive folders... [22:33:30]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:33:30]tlvbuf is 0055BD40 [22:33:30]SAM_PROTO_ClearQueue [22:33:30]wFMCommunicate request_size=4 [22:33:30]MH_SAM_APDU [22:33:30]CAPDU: 80 09 00 00 [22:33:30]Write to MH i2c: E2 08 00 23 11 80 09 00 00 00 00 00 00 A6 [22:33:31]Write i2c OK [22:33:31]MH_I2C_Read... [22:33:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:33:31]Read from MH i2c: E2 [22:33:31]MH_I2C_Read... [22:33:31]Read from MH i2c: E2 03 00 [22:33:31]MH_I2C_Read... [22:33:31]Read from MH i2c: E2 03 00 23 11 00 90 00 A8 [22:33:31]RAPDU: 90 00 [22:33:31]wFMCommunicate OK [22:33:31]SAM_PROTO_ClearQueue done [22:33:31]KKMCreateOFDPacket [22:33:31]OFDProtocolAddRootSTLVToBuf [22:33:31]FM_MakeSignedData [22:33:31]FM_MakeSignedData [22:33:31]SAM_PROTO_SignData [22:33:31]wFMCommunicate request_size=4 [22:33:31]MH_SAM_APDU [22:33:31]CAPDU: 80 0D 01 02 [22:33:31]Write to MH i2c: E2 08 00 24 11 80 0D 01 02 00 00 00 00 AE [22:33:31]Write i2c OK [22:33:31]MH_I2C_Read... [22:33:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:33:31]Read from MH i2c: E2 [22:33:31]MH_I2C_Read... [22:33:31]Read from MH i2c: E2 03 00 [22:33:31]MH_I2C_Read... [22:33:31]Read from MH i2c: E2 03 00 24 11 00 90 00 A9 [22:33:31]RAPDU: 90 00 [22:33:31]wFMCommunicate OK [22:33:31]wFMCommunicate request_size=255 [22:33:31]MH_SAM_APDU [22:33: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 34 FF 03 08 00 03 F8 34 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 B6 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5A 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F0 00 00 00 F4 03 04 00 38 F3 5C 66 0E 04 04 00 42 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 81 0A 01 00 35 04 06 00 99 [22:33:32]Write to MH i2c: E2 02 01 25 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 34 FF 03 08 00 03 F8 34 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 B6 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5A 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F0 00 00 00 F4 03 04 00 38 F3 5C 66 0E 04 04 00 42 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 81 0A 01 00 35 04 06 00 99 00 00 C5 [22:33:32]Write i2c OK [22:33:32]MH_I2C_Read... [22:33:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:33:33]Read from MH i2c: E2 [22:33:33]MH_I2C_Read... [22:33:33]Read from MH i2c: E2 03 00 [22:33:33]MH_I2C_Read... [22:33:33]Read from MH i2c: E2 03 00 25 11 00 90 00 AA [22:33:33]RAPDU: 90 00 [22:33:33]wFMCommunicate OK [22:33:33]wFMCommunicate request_size=10 [22:33:33]MH_SAM_APDU [22:33:33]CAPDU: 80 0D 02 02 05 C7 EC AC 77 C2 [22:33:33]Write to MH i2c: E2 0D 00 26 11 80 0D 02 02 05 00 C7 EC AC 77 C2 00 00 53 [22:33:33]Write i2c OK [22:33:33]MH_I2C_Read... [22:33:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:33:33]Read from MH i2c: E2 [22:33:33]MH_I2C_Read... [22:33:33]Read from MH i2c: E2 03 00 [22:33:33]MH_I2C_Read... [22:33:33]Read from MH i2c: E2 03 00 26 11 00 90 00 AB [22:33:33]RAPDU: 90 00 [22:33:33]wFMCommunicate OK [22:33:33]wFMCommunicate request_size=4 [22:33:33]MH_SAM_APDU [22:33:33]CAPDU: 80 0D 03 02 [22:33:33]Write to MH i2c: E2 08 00 27 11 80 0D 03 02 00 00 00 00 B3 [22:33:33]Write i2c OK [22:33:33]MH_I2C_Read... [22:33:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:33:33]Read from MH i2c: E2 [22:33:33]MH_I2C_Read... [22:33:33]Read from MH i2c: E2 0B 00 [22:33:33]MH_I2C_Read... [22:33:33]Read from MH i2c: E2 0B 00 27 11 00 AB 6E EA E1 58 A3 F4 5C 90 00 E3 [22:33:33]RAPDU: AB 6E EA E1 58 A3 F4 5C 90 00 [22:33:33]wFMCommunicate OK [22:33:33]SAM_PROTO_SignData done [22:33:33]FM_MakeSignedData done [22:33:33]CreateOFDProtocolMessage [22:33:33]wFMCommunicate request_size=4 [22:33:33]MH_SAM_APDU [22:33:33]CAPDU: 80 11 00 00 [22:33:33]Write to MH i2c: E2 08 00 28 11 80 11 00 00 00 00 00 00 B3 [22:33:33]Write i2c OK [22:33:33]MH_I2C_Read... [22:33:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:33:33]Read from MH i2c: E2 [22:33:33]MH_I2C_Read... [22:33:33]Read from MH i2c: E2 17 00 [22:33:33]MH_I2C_Read... [22:33:33]Read from MH i2c: E2 17 00 28 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 FE [22:33:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [22:33:33]wFMCommunicate OK [22:33:33]CreateOFDProtocolMessage done [22:33:33]OFDSenderStorePacket 68225 [22:33:34]StoreOFDPacket docnum=68225 [22:33:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 1E 13 07 01 D4 09 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 F8 34 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 B6 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5A 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F0 00 00 00 F4 03 04 00 38 F3 5C 66 0E 04 04 00 42 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 81 0A 01 00 35 04 06 00 99 C7 EC AC 77 C2 AB 6E EA E1 58 A3 F4 5C [22:33:34]CheckFolder [22:33:34]dirname=/storage/ofd_packets [22:33:34]CheckFolder done [22:33:34]ProducePacketName [22:33:34]name=ofd_packets/00068225 [22:33:34]NVStorageSaveData ofd_packets/00068225 [22:33:34]File name is /storage/ofd_packets/00068225 [22:33:34]Write 301 bytes [22:33:34]NVStorageSaveData done [22:33:34]OFDSenderStorePacket done [22:33:34]KKMCreateOFDPacket done [22:33:34]NVStorageSaveData kkm_last_timestamp [22:33:34]File name is /storage/kkm_last_timestamp [22:33:34]Write 4 bytes [22:33:34]NVStorageSaveData done [22:33:34]ExternCall_PrintAddStr [22:33:34]wPrintStart [22:33:34]Write to MH i2c: 01 00 00 29 11 3A [22:33:34]OFD Sender: Processing packet 68225 [packets to send 26, broken 25] [22:33:34]ProducePacketName [22:33:34]name=ofd_packets/00068225 [22:33:34]OFD Sender: To server: pG, [22:33:34]CommunicateWithHost lk.salyk.kg:30040 [22:33:34]ConnectInit lk.salyk.kg [22:33:34]Write i2c OK [22:33:34]MH_I2C_Read... [22:33:34]Read from MH i2c: 01 [22:33:34]MH_I2C_Read... [22:33:34]Read from MH i2c: 01 07 00 [22:33:34]MH_I2C_Read... [22:33:34]Read from MH i2c: 01 07 00 29 11 00 00 00 00 00 Connected sock=11 [22:33:34]FF Data to sent: 0F 87 4F [22:33:34]RasterBufferAndPrint [22:33:34]line Счет N : (1)706296 [22:33:34]95 line ИНН: 02508201610067 [22:33:34]F6 line Контрольно-Кассовый Чек [22:33:34]70 line ПРОДАЖА [22:33:34]47 line ТРК (МРК, ГНК) : 42 [22:33:34]2C line Товар: 2710124130 [22:33:34]line Аи-92-К-4 [22:33:34]line 13.560 * 66.40 [22:33:34]line = 900.38 [22:33:34]line НДС 12% НСП 1% [22:33:34]line > о реализуемом товаре [22:33:34]line ОКРУГЛЕНИЕ: -0.38 [22:33:34]line ИТОГО: 900.00 [22:33:34]01 line Внесено: 900.00 [22:33:34]00 line СДАЧА: 0.00 [22:33:34]30 line НСП 1% : 7.97 [22:33:34]line НДС 12% : 95.62 [22:33:34]line Наличными: 900.00 [22:33:34]line Безнал.: 0.00 [22:33:34]line Место: АЗС № 62 "Партнер Нефть" [22:33:34]30 line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [22:33:34]30 line СНО: Общий режим [22:33:34]30 line Чек 240 02.06.2024 22:33 [22:33:34]30 line Смена: 322 ФФД: 1.0 [22:33:34]30 30 30 30 line ЗНМ: 0300000181 [22:33:34]30 line РНМ: 0000000000098096 [22:33:34]39 36 35 34 line Версия ККМ: 001 [22:33:34]30 line ФМ: 0000000000965400 [22:33:34]30 0F 01 00 line ФД: 68225 [22:33:34]00 line ФПД: 169083948267458 [22:33:34]1E 13 07 01 line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240602T223328&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68225&fm=169083948267458&tin=02508201610067®Number=0000000000098096&sum=90000 [22:33:34]D4 09 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 written 0, free lines is 4095 [22:33:34]32 2D D0 9A 2D 34 FF 03 08 00 03 F8 34 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 B6 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5A 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F0 00 00 00 F4 03 04 00 38 F3 5C 66 0E 04 04 00 42 01 00 00 B9 04 01 00 01 0D Write to MH i2c: 04 01 10 00 00 00 30 54 30 30 30 11 30 65 30 30 30 30 [22:33:35]30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 81 Write i2c OK [22:33:35]0A MH_I2C_Read... [22:33:35]01 Read from MH i2c: 00 01 35 [22:33:35]04 06 00 99 C7 MH_I2C_Read... [22:33:35]EC AC Read from MH i2c: 77 01 C2 AB 6E EA 07 E1 00 58 A3 F4 5C [22:33:35] [22:33:35]MH_I2C_Read... [22:33:35]Read from MH i2c: 01 07 00 54 11 00 00 00 00 00 6F 0D E8 [22:33:35]RasterBufferAndPrint [22:33:35]line [22:33:35]line [22:33:35]line [22:33:35]line [22:33:35]line [22:33:35]written 0, free lines is 3926 [22:33:35]MH_Cut [22:33:35]Write to MH i2c: D1 01 00 5B 11 01 3E [22:33:35]Write i2c OK [22:33:35]MH_I2C_Read... [22:33:35]Read from MH i2c: D1 [22:33:35]MH_I2C_Read... [22:33:35]Read from MH i2c: D1 01 00 [22:33:35]MH_I2C_Read... [22:33:35]Read from MH i2c: D1 Received data: 01 87 00 95 5B 11 00 3D [22:33:35]F6 Write to MH i2c: 70 01 47 00 00 5C 11 6D 2C [22:33:35]01 Write i2c OK [22:33:35]00 MH_I2C_Read... [22:33:35]30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 1A 50 47 00 *** Cut start [22:33:36]70 8E *** Partial cut [22:33:36]A5 07 01 *** CUTSNS_PIN = 1 [22:33:36]*** CUTSNS_PIN = 0 [22:33:36]00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 *** Brake cut motor [22:33:36]30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 81 0A 01 00 F4 03 04 Read from MH i2c: 00 01 3D [22:33:36]9A MH_I2C_Read... [22:33:36]*** Stop cut motor [22:33:36]Read from MH i2c: *** Cut end [22:33:36]01 5C 07 66 B6 04 01 00 00 [22:33:36]00 A8 48 DB MH_I2C_Read... [22:33:36]4D Read from MH i2c: 04 01 BF 07 00 5C 11 00 00 00 00 00 FF 0F 82 [22:33:36]28 process_action close_receipt done [22:33:36]7A requested_data is exist [22:33:36] [22:33:36]produce_requested_data [22:33:36]requested_item fm.sn is exist - process it [22:33:36]wFMCommunicate request_size=4 [22:33:36]MH_SAM_APDU [22:33:36]CAPDU: CommunicateWithHost err = 0 [22:33:36]80 CheckOFDResponse [22:33:36]11 1017 (14) - 77093643461234 [22:33:36]00 00 [22:33:36]Write to MH i2c: E2 1041 (16) - 0000000000965400 [22:33:36]08 1040 (4) - 68225 [22:33:36]1012 (4) - 02.06.2024 16:13 [22:33:36]1206 (1) - 0 [22:33:36]OFD Sender: Remove packet 68225 [22:33:36]00 ProducePacketName [22:33:36]5D name=ofd_packets/00068225 [22:33:36]11 NVStorageDeleteData [22:33:36]80 11 00 00 00 00 00 00 E8 [22:33:36]Write i2c OK [22:33:36]MH_I2C_Read... [22:33:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:33:36]Read from MH i2c: E2 [22:33:36]MH_I2C_Read... [22:33:37]Read from MH i2c: E2 17 00 [22:33:37]MH_I2C_Read... [22:33:37]Read from MH i2c: E2 17 00 5D 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 33 [22:33:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [22:33:37]wFMCommunicate OK [22:33:37]requested_item fd.num is exist - process it [22:33:37]SAM_PROTO_GetFieldsCounters [22:33:37]wFMCommunicate request_size=4 [22:33:37]MH_SAM_APDU [22:33:37]CAPDU: 80 13 00 00 [22:33:37]Write to MH i2c: E2 08 00 5E 11 80 13 00 00 00 00 00 00 EB [22:33:37]Write i2c OK [22:33:37]MH_I2C_Read... [22:33:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:33:37]Read from MH i2c: E2 [22:33:37]MH_I2C_Read... [22:33:37]OFD Sender: No OFD packet to send [22:33:37]Read from MH i2c: E2 62 00 [22:33:37]MH_I2C_Read... [22:33:37]Read from MH i2c: E2 62 00 5E 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 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 81 0A 01 00 0E 04 04 00 42 01 00 00 12 04 04 00 F0 00 00 00 5E 04 04 00 F0 00 00 00 57 04 04 00 F1 00 00 00 19 04 04 00 00 00 00 00 90 00 AA [22:33: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 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 81 0A 01 00 0E 04 04 00 42 01 00 00 12 04 04 00 F0 00 00 00 5E 04 04 00 F0 00 00 00 57 04 04 00 F1 00 00 00 19 04 04 00 00 00 00 00 90 00 [22:33:38]wFMCommunicate OK [22:33:38]SAM_PROTO_GetFieldsCounters done [22:33:38]requested_item shift.num is exist - process it [22:33:38]requested_item shift.opened is exist - process it [22:33:38]req_shift_opened [22:33:38]FM_GetShiftState [22:33:38]SAM_PROTO_GetShiftState [22:33:38]wFMCommunicate request_size=4 [22:33:38]MH_SAM_APDU [22:33:38]CAPDU: 80 13 01 00 [22:33:38]Write to MH i2c: E2 08 00 5F 11 80 13 01 00 00 00 00 00 ED [22:33:38]Write i2c OK [22:33:38]MH_I2C_Read... [22:33:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:33:38]Read from MH i2c: E2 [22:33:38]MH_I2C_Read... [22:33:38]Read from MH i2c: E2 0E 00 [22:33:38]MH_I2C_Read... [22:33:38]Read from MH i2c: E2 0E 00 5F 11 00 09 00 01 A4 BB 5B 66 00 00 00 00 90 00 19 [22:33:38]RAPDU: 09 00 01 A4 BB 5B 66 00 00 00 00 90 00 [22:33:38]wFMCommunicate OK [22:33:38]SAM_PROTO_GetShiftState done [22:33:38]FM_GetShiftState done [22:33:38]req_shift_opened done [22:33:38]requested_item shift.open_date is exist - process it [22:33:38]req_shift_open_date [22:33:38]req_shift_open_date done [22:33:38]produce_requested_data done [22:33:38]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68225,"shift.num":322,"shift.opened":1,"shift.open_date":1717287844} [22:33:38]process_action_free close_receipt [22:33:38]json_value_free [22:33:38]json_value_free done [22:33:38]process_json_proto returns [22:33:38]Send response to host [22:33:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68225,"shift.num":322,"shift.opened":1,"shift.open_date":1717287844}}} [22:33:38]free response buf [22:33:38]execute_script done [22:33:38]execute_script returns [22:33:38]free content buf [22:33:38]Sock 10.Close socket [22:33:38]Sock 10.Thread stoped [22:33:42]OFD Sender: No OFD packet to send [22:33:47]OFD Sender: No OFD packet to send [22:33:49]accept exits with 9 [22:33:49]New connection [22:33:49]New thread 3066686820 created [22:33:49]Thread 3066543460 joined [22:33:49]Waiting for new connection... [22:33:49] Sock 9.Parse request [22:33:49]Sock 9.Check first char [22:33:49]Sock 9.First char is OK [22:33:49]request: POST /json_proto HTTP/1.0 [22:33:49]Method: POST [22:33:49]URL: /json_proto [22:33:49]Method is POST - this is cgi request [22:33:49]url: /json_proto [22:33:49]query_string will be loaded in cgi processing [22:33:49]execute_cgi json_proto POST (null) [22:33:49]execute_cgi path=json_proto method=POST [22:33:49]POST find Content-Length [22:33:49]Host: 172.17.36.132:8080 [22:33:49]Content-Length: 840 [22:33:50]Content-Type: application/json [22:33:50] [22:33:50]POST finish read [22:33:50]Found Content-Length = 840 [22:33:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706297", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.40, "quantity" : 3.770, "sum" : 250.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: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 250.33 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:33:50]execute_script... [22:33:50]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706297", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.40, "quantity" : 3.770, "sum" : 250.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: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 250.33 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:33:50]POST & json_proto [22:33:50]process_json_proto [22:33:50]json parsed OK: [22:33:50]protocol is kg_v1.0 [22:33:50]action value=close_receipt [22:33:50]process_action close_receipt [22:33:50]cmd_close_receipt [22:33:50]MH_GetDate [22:33:50]Write to MH i2c: F0 00 00 60 11 60 [22:33:50]Write i2c OK [22:33:50]MH_I2C_Read... [22:33:50]Read from MH i2c: F0 [22:33:50]MH_I2C_Read... [22:33:50]Read from MH i2c: F0 09 00 [22:33:50]MH_I2C_Read... [22:33:50]Read from MH i2c: F0 09 00 60 11 00 4F F3 5C 66 B2 22 B0 64 55 [22:33:50]GetLastDocTimeStamp 1717367608 [22:33:50]current date 1717367631 [22:33:50]FM_GetShiftState [22:33:50]SAM_PROTO_GetShiftState [22:33:50]wFMCommunicate request_size=4 [22:33:50]MH_SAM_APDU [22:33:50]CAPDU: 80 13 01 00 [22:33:50]Write to MH i2c: E2 08 00 61 11 80 13 01 00 00 00 00 00 EF [22:33:50]Write i2c OK [22:33:50]MH_I2C_Read... [22:33:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:33:50]Read from MH i2c: E2 [22:33:50]MH_I2C_Read... [22:33:50]Read from MH i2c: E2 0E 00 [22:33:50]MH_I2C_Read... [22:33:50]Read from MH i2c: E2 0E 00 61 11 00 09 00 01 A4 BB 5B 66 00 00 00 00 90 00 1B [22:33:50]RAPDU: 09 00 01 A4 BB 5B 66 00 00 00 00 90 00 [22:33:50]wFMCommunicate OK [22:33:50]SAM_PROTO_GetShiftState done [22:33:50]FM_GetShiftState done [22:33:50]opened in 1717287844 [22:33:50]opened+sec_in_day 1717374244 [22:33:50]quantity*price = 25032 [22:33:50]sum+1 = 25034 [22:33:50]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 250.33 НСП 1% : 2.21 НДС 12% : 26.58 Наличными: 0.00 Безнал.: 250.33 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 241 02.06.2024 22:33 Смена: 322 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000965400 ФД: 68226 ФПД: 53509755306282 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240602T223352&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68226&fm=53509755306282&tin=02508201610067®Number=0000000000098096&sum=25033 [22:33:54]StoreToDocumentArchive [22:33:54]shift 322 fd 68226 [22:33:54]save to /storage/0322/doc_00068226 [22:33:54]save last doc name /storage/0322/doc_00068226 to /storage/kkm_last_doc_name [22:33:54]save OK [22:33:54]Clear old archive folders... [22:33:54]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:33:54]tlvbuf is 0052EDD0 [22:33:54]SAM_PROTO_ClearQueue [22:33:54]wFMCommunicate request_size=4 [22:33:54]MH_SAM_APDU [22:33:54]CAPDU: 80 09 00 00 [22:33:54]Write to MH i2c: E2 08 00 6E 11 80 09 00 00 00 00 00 00 F1 [22:33:54]Write i2c OK [22:33:54]MH_I2C_Read... [22:33:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:33:54]Read from MH i2c: E2 [22:33:54]MH_I2C_Read... [22:33:54]Read from MH i2c: E2 03 00 [22:33:54]MH_I2C_Read... [22:33:54]Read from MH i2c: E2 03 00 6E 11 00 90 00 F3 [22:33:54]RAPDU: 90 00 [22:33:54]wFMCommunicate OK [22:33:54]SAM_PROTO_ClearQueue done [22:33:54]KKMCreateOFDPacket [22:33:54]OFDProtocolAddRootSTLVToBuf [22:33:54]FM_MakeSignedData [22:33:54]FM_MakeSignedData [22:33:54]SAM_PROTO_SignData [22:33:54]wFMCommunicate request_size=4 [22:33:54]MH_SAM_APDU [22:33:54]CAPDU: 80 0D 01 02 [22:33:54]Write to MH i2c: E2 08 00 6F 11 80 0D 01 02 00 00 00 00 F9 [22:33:54]Write i2c OK [22:33:54]MH_I2C_Read... [22:33:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:33:54]Read from MH i2c: E2 [22:33:54]MH_I2C_Read... [22:33:54]Read from MH i2c: E2 03 00 [22:33:54]MH_I2C_Read... [22:33:54]Read from MH i2c: E2 03 00 6F 11 00 90 00 F4 [22:33:54]RAPDU: 90 00 [22:33:54]wFMCommunicate OK [22:33:54]wFMCommunicate request_size=255 [22:33:54]MH_SAM_APDU [22:33: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 34 FF 03 08 00 03 BA 0E 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 C9 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C9 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 62 0A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C9 61 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F1 00 00 00 F4 03 04 00 50 F3 5C 66 0E 04 04 00 42 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 82 0A 01 00 35 04 06 00 30 [22:33:55]Write to MH i2c: E2 02 01 70 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 34 FF 03 08 00 03 BA 0E 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 C9 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C9 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 62 0A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C9 61 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F1 00 00 00 F4 03 04 00 50 F3 5C 66 0E 04 04 00 42 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 82 0A 01 00 35 04 06 00 30 00 00 8F [22:33:56]Write i2c OK [22:33:56]MH_I2C_Read... [22:33:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:33:56]Read from MH i2c: E2 [22:33:56]MH_I2C_Read... [22:33:56]Read from MH i2c: E2 03 00 [22:33:56]MH_I2C_Read... [22:33:56]Read from MH i2c: E2 03 00 70 11 00 90 00 F5 [22:33:56]RAPDU: 90 00 [22:33:56]wFMCommunicate OK [22:33:56]wFMCommunicate request_size=10 [22:33:56]MH_SAM_APDU [22:33:56]CAPDU: 80 0D 02 02 05 AA B5 F5 01 2A [22:33:56]Write to MH i2c: E2 0D 00 71 11 80 0D 02 02 05 00 AA B5 F5 01 2A 00 00 85 [22:33:56]Write i2c OK [22:33:56]MH_I2C_Read... [22:33:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:33:56]Read from MH i2c: E2 [22:33:56]MH_I2C_Read... [22:33:56]Read from MH i2c: E2 03 00 [22:33:57]MH_I2C_Read... [22:33:57]Read from MH i2c: E2 03 00 71 11 00 90 00 F6 [22:33:57]RAPDU: 90 00 [22:33:57]wFMCommunicate OK [22:33:57]wFMCommunicate request_size=4 [22:33:57]MH_SAM_APDU [22:33:57]CAPDU: 80 0D 03 02 [22:33:57]Write to MH i2c: E2 08 00 72 11 80 0D 03 02 00 00 00 00 FE [22:33:57]Write i2c OK [22:33:57]MH_I2C_Read... [22:33:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:33:57]Read from MH i2c: E2 [22:33:57]MH_I2C_Read... [22:33:57]Read from MH i2c: E2 0B 00 [22:33:57]MH_I2C_Read... [22:33:57]Read from MH i2c: E2 0B 00 72 11 00 7E E2 18 D6 80 22 14 6E 90 00 71 [22:33:57]RAPDU: 7E E2 18 D6 80 22 14 6E 90 00 [22:33:57]wFMCommunicate OK [22:33:57]SAM_PROTO_SignData done [22:33:57]FM_MakeSignedData done [22:33:57]CreateOFDProtocolMessage [22:33:57]wFMCommunicate request_size=4 [22:33:57]MH_SAM_APDU [22:33:57]CAPDU: 80 11 00 00 [22:33:57]Write to MH i2c: E2 08 00 73 11 80 11 00 00 00 00 00 00 FE [22:33:57]Write i2c OK [22:33:57]MH_I2C_Read... [22:33:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:33:57]Read from MH i2c: E2 [22:33:57]MH_I2C_Read... [22:33:57]Read from MH i2c: E2 17 00 [22:33:57]MH_I2C_Read... [22:33:57]Read from MH i2c: E2 17 00 73 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 49 [22:33:57]RAPDU: 11 04 10 00 30 30 30 OFD Sender: No OFD packet to send [22:33:57]30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [22:33:57]wFMCommunicate OK [22:33:57]CreateOFDProtocolMessage done [22:33:57]OFDSenderStorePacket 68226 [22:33:57]StoreOFDPacket docnum=68226 [22:33:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 E5 A0 07 01 C6 FD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 BA 0E 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 C9 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C9 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 62 0A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C9 61 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F1 00 00 00 F4 03 04 00 50 F3 5C 66 0E 04 04 00 42 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 82 0A 01 00 35 04 06 00 30 AA B5 F5 01 2A 7E E2 18 D6 80 22 14 6E [22:33:57]CheckFolder [22:33:57]dirname=/storage/ofd_packets [22:33:57]CheckFolder done [22:33:57]ProducePacketName [22:33:57]name=ofd_packets/00068226 [22:33:57]NVStorageSaveData ofd_packets/00068226 [22:33:57]File name is /storage/ofd_packets/00068226 [22:33:57]Write 301 bytes [22:33:57]NVStorageSaveData done [22:33:57]OFDSenderStorePacket done [22:33:57]KKMCreateOFDPacket done [22:33:57]OFD Sender: Processing packet 68226 [packets to send 26, broken 25] [22:33:57]NVStorageSaveData kkm_last_timestamp [22:33:57]ProducePacketName [22:33:57]File name is /storage/kkm_last_timestamp [22:33:57]Write 4 bytes [22:33:57]NVStorageSaveData done [22:33:57]ExternCall_PrintAddStr [22:33:57]name=ofd_packets/00068226 [22:33:57]wPrintStart [22:33:57]OFD Sender: To server: pG, [22:33:57]Write to MH i2c: CommunicateWithHost lk.salyk.kg:30040 [22:33:57]01 00 00 74 11 85 [22:33:57]ConnectInit lk.salyk.kg [22:33:57]Write i2c OK [22:33:57]MH_I2C_Read... [22:33:57]Read from MH i2c: 01 [22:33:57]MH_I2C_Read... [22:33:57]Read from MH i2c: 01 07 00 [22:33:57]MH_I2C_Read... [22:33:57]Read from MH i2c: 01 07 00 74 11 00 00 00 00 00 FF 0F 9A [22:33:57]RasterBufferAndPrint [22:33:57]line Счет N : (1)706297 [22:33:57]line ИНН: 02508201610067 [22:33:58]line Контрольно-Кассовый Чек [22:33:58]line ПРОДАЖА [22:33:58]line ТРК (МРК, ГНК) : 63 [22:33:58]Connected sock=11 [22:33:58]line Товар: 2710124130 [22:33:58]Data to sent: line Аи-92-К-4 [22:33:58]87 line 3.770 * 66.40 [22:33:58]line = 250.33 [22:33:58]line НДС 12% НСП 1% [22:33:58]line > о реализуемом товаре [22:33:58]95 line ИТОГО: 250.33 [22:33:58]F6 line НСП 1% : 2.21 [22:33:58]70 line НДС 12% : 26.58 [22:33:58]47 line Наличными: 0.00 [22:33:58]2C line Безнал.: 250.33 [22:33:58]line Место: АЗС № 62 "Партнер Нефть" [22:33:58]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [22:33:58]line СНО: Общий режим [22:33:58]01 line Чек 241 02.06.2024 22:33 [22:33:58]00 line Смена: 322 ФФД: 1.0 [22:33:58]30 line ЗНМ: 0300000181 [22:33:58]30 line РНМ: 0000000000098096 [22:33:58]line Версия ККМ: 001 [22:33:58]line Платежная система: АКБ Кыргызстан [22:33:58]line ФМ: 0000000000965400 [22:33:58]line ФД: 68226 [22:33:58]line ФПД: 53509755306282 [22:33:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240602T223352&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68226&fm=53509755306282&tin=02508201610067®Number=0000000000098096&sum=25033 [22:33:58]30 30 written 0, free lines is 4095 [22:33:58]30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 E5 A0 07 01 C6 FD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 BA 0E 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 C9 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C9 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 Write to MH i2c: 03 01 0F 00 00 9E 11 AF [22:33:58]00 F2 03 01 00 01 F3 03 06 00 62 0A 00 00 00 00 07 04 06 00 00 00 00 00 Write i2c OK [22:33:58]00 MH_I2C_Read... [22:33:58]00 Read from MH i2c: 39 04 06 00 C9 01 61 [22:33:58]ConnectInit Can't connect to host [22:33:58]MH_I2C_Read... [22:33:58]00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F1 00 00 00 F4 03 04 00 50 F3 5C 66 0E 04 04 00 42 01 00 00 B9 04 01 00 01 0D 04 10 00 Read from MH i2c: 30 01 30 07 00 [22:33:59]MH_I2C_Read... [22:33:59]30 Read from MH i2c: 30 01 30 30 30 30 07 30 00 30 30 39 38 9E 30 11 00 00 00 00 00 54 0D 17 [22:33:59]RasterBufferAndPrint [22:33:59]line [22:33:59]line [22:33:59]line [22:33:59]39 line [22:33:59]36 line [22:33:59]11 04 10 written 0, free lines is 4095 [22:33:59]00 30 30 30 30 MH_Cut [22:33:59]30 30 30 30 Write to MH i2c: 30 D1 30 39 36 35 01 34 00 30 A5 30 10 04 04 00 11 82 01 0A 88 01 00 35 04 [22:33:59]06 Write i2c OK [22:33:59]00 MH_I2C_Read... [22:33:59]30 AA B5 F5 01 Read from MH i2c: 2A D1 7E [22:33:59]E2 18 D6 80 22 MH_I2C_Read... [22:33:59]14 6E [22:33:59]Read from MH i2c: D1 01 00 [22:33:59]MH_I2C_Read... [22:33:59]Read from MH i2c: D1 01 00 A5 11 00 87 [22:33:59]Write to MH i2c: 01 00 00 A6 11 B7 [22:33:59]Write i2c OK [22:33:59]MH_I2C_Read... [22:33:59]*** Cut start [22:33:59]*** Partial cut [22:33:59]*** CUTSNS_PIN = 1 [22:33:59]*** CUTSNS_PIN = 0 [22:33:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 BF DE 47 00 80 97 A5 07 01 00 07 00 3B 00 F9 03 0E 00 *** Brake cut motor [22:34:00]37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 *** Stop cut motor [22:34:00]Read from MH i2c: *** Cut end [22:34:00]10 00 30 30 30 30 30 30 30 30 30 01 30 [22:34:00]39 MH_I2C_Read... [22:34:00]36 35 34 30 30 Read from MH i2c: 10 01 04 07 04 00 82 0A 01 00 F4 03 04 00 55 9A 5C 66 B6 04 01 00 00 53 A9 57 56 35 94 BF DA [22:34:00]CommunicateWithHost err = 0 [22:34:00]CheckOFDResponse [22:34:00]1017 (14) - 77093643461234 [22:34:00]1041 (16) - 0000000000965400 [22:34:00]1040 (4) - 68226 [22:34:00]1012 (4) - 02.06.2024 16:14 [22:34:00]00 1206 (1) - 0 [22:34:00] [22:34:00]MH_I2C_Read... [22:34:00]OFD Sender: Remove packet 68226 [22:34:00]ProducePacketName [22:34:00]name=ofd_packets/00068226 [22:34:00]NVStorageDeleteData [22:34:00]Read from MH i2c: 01 07 00 A6 11 00 00 00 00 00 FF 0F CC [22:34:00]process_action close_receipt done [22:34:00]requested_data is exist [22:34:00]produce_requested_data [22:34:00]requested_item fm.sn is exist - process it [22:34:00]wFMCommunicate request_size=4 [22:34:00]MH_SAM_APDU [22:34:00]CAPDU: 80 11 00 00 [22:34:00]Write to MH i2c: E2 08 00 A7 11 80 11 00 00 00 00 00 00 32 [22:34:00]Write i2c OK [22:34:00]MH_I2C_Read... [22:34:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:34:00]Read from MH i2c: E2 [22:34:00]MH_I2C_Read... [22:34:00]Read from MH i2c: E2 17 00 [22:34:00]MH_I2C_Read... [22:34:00]Read from MH i2c: E2 17 00 A7 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 7D [22:34:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [22:34:01]wFMCommunicate OK [22:34:01]requested_item fd.num is exist - process it [22:34:01]SAM_PROTO_GetFieldsCounters [22:34:01]wFMCommunicate request_size=4 [22:34:01]MH_SAM_APDU [22:34:01]CAPDU: 80 13 00 00 [22:34:01]Write to MH i2c: E2 08 00 A8 11 80 13 00 00 00 00 00 00 35 [22:34:01]Write i2c OK [22:34:01]MH_I2C_Read... [22:34:01]OFD Sender: No OFD packet to send [22:34:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:34:01]Read from MH i2c: E2 [22:34:01]MH_I2C_Read... [22:34:01]Read from MH i2c: E2 62 00 [22:34:01]MH_I2C_Read... [22:34:01]Read from MH i2c: E2 62 00 A8 11 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 82 0A 01 00 0E 04 04 00 42 01 00 00 12 04 04 00 F1 00 00 00 5E 04 04 00 F1 00 00 00 57 04 04 00 F2 00 00 00 19 04 04 00 00 00 00 00 90 00 F8 [22:34: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 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 82 0A 01 00 0E 04 04 00 42 01 00 00 12 04 04 00 F1 00 00 00 5E 04 04 00 F1 00 00 00 57 04 04 00 F2 00 00 00 19 04 04 00 00 00 00 00 90 00 [22:34:01]wFMCommunicate OK [22:34:01]SAM_PROTO_GetFieldsCounters done [22:34:01]requested_item shift.num is exist - process it [22:34:01]requested_item shift.opened is exist - process it [22:34:01]req_shift_opened [22:34:01]FM_GetShiftState [22:34:01]SAM_PROTO_GetShiftState [22:34:01]wFMCommunicate request_size=4 [22:34:01]MH_SAM_APDU [22:34:01]CAPDU: 80 13 01 00 [22:34:01]Write to MH i2c: E2 08 00 A9 11 80 13 01 00 00 00 00 00 37 [22:34:01]Write i2c OK [22:34:01]MH_I2C_Read... [22:34:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:34:02]Read from MH i2c: E2 [22:34:02]MH_I2C_Read... [22:34:02]Read from MH i2c: E2 0E 00 [22:34:02]MH_I2C_Read... [22:34:02]Read from MH i2c: E2 0E 00 A9 11 00 09 00 01 A4 BB 5B 66 00 00 00 00 90 00 63 [22:34:02]RAPDU: 09 00 01 A4 BB 5B 66 00 00 00 00 90 00 [22:34:02]wFMCommunicate OK [22:34:02]SAM_PROTO_GetShiftState done [22:34:02]FM_GetShiftState done [22:34:02]req_shift_opened done [22:34:02]requested_item shift.open_date is exist - process it [22:34:02]req_shift_open_date [22:34:02]req_shift_open_date done [22:34:02]produce_requested_data done [22:34:02]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68226,"shift.num":322,"shift.opened":1,"shift.open_date":1717287844} [22:34:02]process_action_free close_receipt [22:34:02]json_value_free [22:34:02]json_value_free done [22:34:02]process_json_proto returns [22:34:02]Send response to host [22:34:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68226,"shift.num":322,"shift.opened":1,"shift.open_date":1717287844}}} [22:34:02]free response buf [22:34:02]execute_script done [22:34:02]execute_script returns [22:34:02]free content buf [22:34:02]Sock 9.Close socket [22:34:02]Sock 9.Thread stoped [22:34:06]OFD Sender: No OFD packet to send [22:34:11]OFD Sender: No OFD packet to send [22:34:16]OFD Sender: No OFD packet to send [22:34:21]OFD Sender: No OFD packet to send [22:34:26]OFD Sender: No OFD packet to send [22:34:31]OFD Sender: No OFD packet to send [22:34:36]OFD Sender: No OFD packet to send [22:34:41]OFD Sender: No OFD packet to send [22:34:46]OFD Sender: No OFD packet to send [22:34:51]OFD Sender: No OFD packet to send [22:34:56]OFD Sender: No OFD packet to send [22:35:01]OFD Sender: No OFD packet to send [22:35:06]OFD Sender: No OFD packet to send [22:35:11]OFD Sender: No OFD packet to send [22:35:16]OFD Sender: No OFD packet to send [22:35:21]OFD Sender: No OFD packet to send [22:35:26]OFD Sender: No OFD packet to send [22:35:31]OFD Sender: No OFD packet to send [22:35:36]OFD Sender: No OFD packet to send [22:35:38]accept exits with 10 [22:35:38]New connection [22:35:38]New thread 3066543460 created [22:35:38]Thread 3066686820 joined [22:35:38]Waiting for new connection... [22:35:38] Sock 10.Parse request [22:35:38]Sock 10.Check first char [22:35:38]Sock 10.First char is OK [22:35:38]request: POST /json_proto HTTP/1.0 [22:35:38]Method: POST [22:35:38]URL: /json_proto [22:35:38]Method is POST - this is cgi request [22:35:38]url: /json_proto [22:35:38]query_string will be loaded in cgi processing [22:35:38]execute_cgi json_proto POST (null) [22:35:38]execute_cgi path=json_proto method=POST [22:35:38]POST find Content-Length [22:35:38]Host: 172.17.36.132:8080 [22:35:38]Content-Length: 678 [22:35:38]Content-Type: application/json [22:35:38] [22:35:38]POST finish read [22:35:38]Found Content-Length = 678 [22:35:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706298", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.40, "quantity" : 10.550, "sum" : 700.52, "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:35:38]execute_script... [22: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)706298", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.40, "quantity" : 10.550, "sum" : 700.52, "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:35:38]POST & json_proto [22:35:38]process_json_proto [22:35:38]json parsed OK: [22:35:38]protocol is kg_v1.0 [22:35:38]action value=close_receipt [22:35:38]process_action close_receipt [22:35:38]cmd_close_receipt [22:35:38]MH_GetDate [22:35:38]Write to MH i2c: F0 00 00 AA 11 AA [22:35:38]Write i2c OK [22:35:38]MH_I2C_Read... [22:35:38]Read from MH i2c: F0 [22:35:38]MH_I2C_Read... [22:35:38]Read from MH i2c: F0 09 00 [22:35:38]MH_I2C_Read... [22:35:38]Read from MH i2c: F0 09 00 AA 11 00 BC F3 5C 66 B2 22 B0 64 0C [22:35:38]GetLastDocTimeStamp 1717367632 [22:35:38]current date 1717367740 [22:35:38]FM_GetShiftState [22:35:38]SAM_PROTO_GetShiftState [22:35:38]wFMCommunicate request_size=4 [22:35:38]MH_SAM_APDU [22:35:38]CAPDU: 80 13 01 00 [22:35:38]Write to MH i2c: E2 08 00 AB 11 80 13 01 00 00 00 00 00 39 [22:35:38]Write i2c OK [22:35:38]MH_I2C_Read... [22:35:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:35:38]Read from MH i2c: E2 [22:35:38]MH_I2C_Read... [22:35:38]Read from MH i2c: E2 0E 00 [22:35:38]MH_I2C_Read... [22:35:38]Read from MH i2c: E2 0E 00 AB 11 00 09 00 01 A4 BB 5B 66 00 00 00 00 90 00 65 [22:35:38]RAPDU: 09 00 01 A4 BB 5B 66 00 00 00 00 90 00 [22:35:38]wFMCommunicate OK [22:35:38]SAM_PROTO_GetShiftState done [22:35:38]FM_GetShiftState done [22:35:38]opened in 1717287844 [22:35:38]opened+sec_in_day 1717374244 [22:35:38]quantity*price = 70052 [22:35:38]sum+1 = 70053 [22:35:38]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.52 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.39 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 242 02.06.2024 22:35 Смена: 322 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 ФМ: 0000000000965400 ФД: 68227 ФПД: 151989705741342 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240602T223540&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68227&fm=151989705741342&tin=02508201610067®Number=0000000000098096&sum=70000 [22:35:42]StoreToDocumentArchive [22:35:42]shift 322 fd 68227 [22:35:42]save to /storage/0322/doc_00068227 [22:35:42]save last doc name /storage/0322/doc_00068227 to /storage/kkm_last_doc_name [22:35:42]save OK [22:35:42]Clear old archive folders... [22:35:42]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:35:42]tlvbuf is 00587FD0 [22:35:42]SAM_PROTO_ClearQueue [22:35:42]wFMCommunicate request_size=4 [22:35:42]MH_SAM_APDU [22:35:42]CAPDU: 80 09 00 00 [22:35:42]Write to MH i2c: E2 08 00 B8 11 80 09 00 00 00 00 00 00 3B [22:35:43]Write i2c OK [22:35:43]MH_I2C_Read... [22:35:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:35:43]Read from MH i2c: E2 [22:35:43]MH_I2C_Read... [22:35:43]Read from MH i2c: E2 03 00 [22:35:43]MH_I2C_Read... [22:35:43]Read from MH i2c: E2 03 00 B8 11 00 90 00 3D [22:35:43]RAPDU: 90 00 [22:35:43]wFMCommunicate OK [22:35:43]SAM_PROTO_ClearQueue done [22:35:43]KKMCreateOFDPacket [22:35:43]OFDProtocolAddRootSTLVToBuf [22:35:43]FM_MakeSignedData [22:35:43]FM_MakeSignedData [22:35:43]SAM_PROTO_SignData [22:35:43]wFMCommunicate request_size=4 [22:35:43]MH_SAM_APDU [22:35:43]CAPDU: 80 0D 01 02 [22:35:43]Write to MH i2c: E2 08 00 B9 11 80 0D 01 02 00 00 00 00 43 [22:35:43]Write i2c OK [22:35:43]MH_I2C_Read... [22:35:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:35:43]Read from MH i2c: E2 [22:35:43]MH_I2C_Read... [22:35:43]Read from MH i2c: E2 03 00 [22:35:43]MH_I2C_Read... [22:35:43]Read from MH i2c: E2 03 00 B9 11 00 90 00 3E [22:35:43]RAPDU: 90 00 [22:35:43]wFMCommunicate OK [22:35:43]wFMCommunicate request_size=255 [22:35:43]MH_SAM_APDU [22:35: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 34 FF 03 08 00 03 36 29 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A4 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 F2 00 00 00 F4 03 04 00 BC F3 5C 66 0E 04 04 00 42 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 83 0A 01 00 35 04 06 00 8A [22:35:44]Write to MH i2c: E2 02 01 BA 11 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 36 29 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A4 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 F2 00 00 00 F4 03 04 00 BC F3 5C 66 0E 04 04 00 42 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 83 0A 01 00 35 04 06 00 8A 00 00 C5 [22:35:45]Write i2c OK [22:35:45]MH_I2C_Read... [22:35:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:35:45]Read from MH i2c: E2 [22:35:45]MH_I2C_Read... [22:35:45]Read from MH i2c: E2 03 00 [22:35:45]MH_I2C_Read... [22:35:45]Read from MH i2c: E2 03 00 BA 11 00 90 00 3F [22:35:45]RAPDU: 90 00 [22:35:45]wFMCommunicate OK [22:35:45]wFMCommunicate request_size=10 [22:35:45]MH_SAM_APDU [22:35:45]CAPDU: 80 0D 02 02 05 3B DC 6B 94 1E [22:35:45]Write to MH i2c: E2 0D 00 BB 11 80 0D 02 02 05 00 3B DC 6B 94 1E 00 00 84 [22:35:45]Write i2c OK [22:35:45]MH_I2C_Read... [22:35:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:35:45]Read from MH i2c: E2 [22:35:45]MH_I2C_Read... [22:35:45]Read from MH i2c: E2 03 00 [22:35:45]MH_I2C_Read... [22:35:45]Read from MH i2c: E2 03 00 BB 11 00 90 00 40 [22:35:45]RAPDU: 90 00 [22:35:45]wFMCommunicate OK [22:35:45]wFMCommunicate request_size=4 [22:35:45]MH_SAM_APDU [22:35:45]CAPDU: 80 0D 03 02 [22:35:45]Write to MH i2c: E2 08 00 BC 11 80 0D 03 02 00 00 00 00 48 [22:35:45]Write i2c OK [22:35:45]MH_I2C_Read... [22:35:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:35:45]Read from MH i2c: E2 [22:35:45]MH_I2C_Read... [22:35:45]Read from MH i2c: E2 0B 00 [22:35:45]MH_I2C_Read... [22:35:45]Read from MH i2c: E2 0B 00 BC 11 00 68 99 A1 DC 99 86 6D ED 90 00 40 [22:35:45]RAPDU: 68 99 A1 DC 99 86 6D ED 90 00 [22:35:45]wFMCommunicate OK [22:35:45]SAM_PROTO_SignData done [22:35:45]FM_MakeSignedData done [22:35:45]CreateOFDProtocolMessage [22:35:45]wFMCommunicate request_size=4 [22:35:45]MH_SAM_APDU [22:35:45]CAPDU: 80 11 00 00 [22:35:45]Write to MH i2c: E2 08 00 BD 11 80 11 00 00 00 00 00 00 48 [22:35:45]Write i2c OK [22:35:45]MH_I2C_Read... [22:35:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:35:45]Read from MH i2c: E2 [22:35:45]MH_I2C_Read... [22:35:46]Read from MH i2c: E2 17 00 [22:35:46]MH_I2C_Read... [22:35:46]Read from MH i2c: E2 17 00 BD 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 93 [22:35:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [22:35:46]wFMCommunicate OK [22:35:46]CreateOFDProtocolMessage done [22:35:46]OFDSenderStorePacket 68227 [22:35:46]StoreOFDPacket docnum=68227 [22:35:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 A2 1E 07 01 30 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 34 FF 03 08 00 03 36 29 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A4 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 F2 00 00 00 F4 03 04 00 BC F3 5C 66 0E 04 04 00 42 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 83 0A 01 00 35 04 06 00 8A 3B DC 6B 94 1E 68 99 A1 DC 99 86 6D ED [22:35:46]CheckFolder [22:35:46]dirname=/storage/ofd_packets [22:35:46]CheckFolder done [22:35:46]ProducePacketName [22:35:46]name=ofd_packets/00068227 [22:35:46]NVStorageSaveData ofd_packets/00068227 [22:35:46]File name is /storage/ofd_packets/00068227 [22:35:46]Write 301 bytes [22:35:46]NVStorageSaveData done [22:35:46]OFDSenderStorePacket done [22:35:46]KKMCreateOFDPacket done [22:35:46]OFD Sender: Processing packet 68227 [packets to send 26, broken 25] [22:35:46]NVStorageSaveData kkm_last_timestamp [22:35:46]ProducePacketName [22:35:46]File name is /storage/kkm_last_timestamp [22:35:46]name=ofd_packets/00068227 [22:35:46]Write 4 bytes [22:35:46]NVStorageSaveData done [22:35:46]ExternCall_PrintAddStr [22:35:46]wPrintStart [22:35:46]OFD Sender: To server: pG, [22:35:46]Write to MH i2c: CommunicateWithHost lk.salyk.kg:30040 [22:35:46]01 ConnectInit lk.salyk.kg [22:35:46]00 00 BE 11 CF [22:35:46]Write i2c OK [22:35:46]MH_I2C_Read... [22:35:46]Read from MH i2c: 01 [22:35:46]MH_I2C_Read... [22:35:46]Read from MH i2c: 01 07 00 [22:35:46]MH_I2C_Read... [22:35:46]Read from MH i2c: 01 07 00 BE Connected sock=12 [22:35:46]11 Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 00 0F 00 01 00 00 00 00 FF 0F 00 E4 A2 [22:35:46]1E RasterBufferAndPrint [22:35:46]line Счет N : (1)706298 [22:35:46]line ИНН: 02508201610067 [22:35:46]line Контрольно-Кассовый Чек [22:35:46]07 line ПРОДАЖА [22:35:46]01 line ТРК (МРК, ГНК) : 32 [22:35:46]30 line Товар: 2710124130 [22:35:46]80 line Аи-92-К-4 [22:35:46]5A line 10.550 * 66.40 [22:35:46]line = 700.52 [22:35:46]line НДС 12% НСП 1% [22:35:46]line > о реализуемом товаре [22:35:46]03 line ОКРУГЛЕНИЕ: -0.52 [22:35:46]01 00 03 00 FB line ИТОГО: 700.00 [22:35:46]00 line Внесено: 700.00 [22:35:46]1E line СДАЧА: 0.00 [22:35:46]04 01 00 01 line НСП 1% : 6.20 [22:35:46]23 line НДС 12% : 74.39 [22:35:46]04 line Наличными: 700.00 [22:35:46]4D 00 8A 04 0A line Безнал.: 0.00 [22:35:46]00 line Место: АЗС № 62 "Партнер Нефть" [22:35:46]32 line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [22:35:46]37 31 30 31 line СНО: Общий режим [22:35:46]32 line Чек 242 02.06.2024 22:35 [22:35:46]34 line Смена: 322 ФФД: 1.0 [22:35:46]31 33 30 06 line ЗНМ: 0300000181 [22:35:46]04 line РНМ: 0000000000098096 [22:35:46]0C line Версия ККМ: 001 [22:35:46]00 D0 90 D0 B8 line ФМ: 0000000000965400 [22:35:46]2D line ФД: 68227 [22:35:46]39 line ФПД: 151989705741342 [22:35:46]32 2D D0 9A line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240602T223540&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68227&fm=151989705741342&tin=02508201610067®Number=0000000000098096&sum=70000 [22:35:46]2D 34 FF 03 08 00 03 36 29 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A4 11 01 00 00 00 written 0, free lines is 4095 [22:35:47]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 F2 00 00 00 F4 03 04 00 BC F3 5C 66 0E 04 04 00 42 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 Write to MH i2c: 10 01 00 00 30 30 30 30 00 30 E9 30 30 30 30 11 30 FA 39 [22:35:47]36 35 34 30 30 10 04 04 00 83 0A 01 00 35 04 06 00 8A 3B DC 6B 94 1E Write i2c OK [22:35:47]68 MH_I2C_Read... [22:35:47]99 Read from MH i2c: A1 DC 99 86 01 6D [22:35:47]ED [22:35:47]MH_I2C_Read... [22:35:47]Read from MH i2c: 01 07 00 [22:35:47]MH_I2C_Read... [22:35:47]Read from MH i2c: 01 07 00 E9 11 00 00 00 00 00 73 0D 81 [22:35:47]RasterBufferAndPrint [22:35:47]line [22:35:47]line [22:35:47]line [22:35:47]line [22:35:48]line [22:35:48]written 0, free lines is 3812 [22:35:48]MH_Cut [22:35:48]Write to MH i2c: D1 01 00 F0 11 01 D3 [22:35:48]Write i2c OK [22:35:48]MH_I2C_Read... [22:35:48]Read from MH i2c: D1 [22:35:48]MH_I2C_Read... [22:35:48]Received data: 87 95 F6 70 Read from MH i2c: 47 D1 01 00 [22:35:48]2C MH_I2C_Read... [22:35:48]01 Read from MH i2c: D1 01 00 00 F0 30 11 30 00 D2 [22:35:48]Write to MH i2c: 30 01 30 00 30 00 F1 11 02 30 [22:35:48]30 Write i2c OK [22:35:48]MH_I2C_Read... [22:35:48]30 30 30 39 36 35 34 30 30 4F 00 00 00 B1 7F 47 00 ED D7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 *** Cut start [22:35:48]37 *** Partial cut [22:35:48]30 *** CUTSNS_PIN = 1 [22:35:48]39 *** CUTSNS_PIN = 0 [22:35:48]33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 83 0A 01 00 F4 03 04 00 C1 9A 5C 66 *** Brake cut motor [22:35:48]B6 04 01 00 00 28 A3 B1 00 69 15 BD 49 [22:35:48]CommunicateWithHost err = 0 [22:35:48]CheckOFDResponse [22:35:48]1017 (14) - 77093643461234 [22:35:48]1041 (16) - 0000000000965400 [22:35:48]1040 (4) - 68227 [22:35:48]1012 (4) - 02.06.2024 16:16 [22:35:48]1206 (1) - 0 [22:35:48]OFD Sender: Remove packet 68227 [22:35:48]ProducePacketName [22:35:48]name=ofd_packets/00068227 [22:35:48]NVStorageDeleteData [22:35:49]Read from MH i2c: *** Stop cut motor [22:35:49]01 [22:35:49]MH_I2C_Read... [22:35:49]Read from MH i2c: *** Cut end [22:35:49]01 07 00 [22:35:49]MH_I2C_Read... [22:35:49]Read from MH i2c: 01 07 00 F1 11 00 00 00 00 00 FF 0F 17 [22:35:49]process_action close_receipt done [22:35:49]requested_data is exist [22:35:49]produce_requested_data [22:35:49]requested_item fm.sn is exist - process it [22:35:49]wFMCommunicate request_size=4 [22:35:49]MH_SAM_APDU [22:35:49]CAPDU: 80 11 00 00 [22:35:49]Write to MH i2c: E2 08 00 F2 11 80 11 00 00 00 00 00 00 7D [22:35:49]Write i2c OK [22:35:49]MH_I2C_Read... [22:35:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:35:49]Read from MH i2c: E2 [22:35:49]MH_I2C_Read... [22:35:49]Read from MH i2c: E2 17 00 [22:35:49]MH_I2C_Read... [22:35:49]Read from MH i2c: E2 17 00 F2 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 C8 [22:35:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [22:35:49]wFMCommunicate OK [22:35:49]requested_item fd.num is exist - process it [22:35:49]SAM_PROTO_GetFieldsCounters [22:35:49]wFMCommunicate request_size=4 [22:35:49]MH_SAM_APDU [22:35:49]CAPDU: 80 13 00 00 [22:35:49]Write to MH i2c: OFD Sender: No OFD packet to send [22:35:49]E2 08 00 F3 11 80 13 00 00 00 00 00 00 80 [22:35:49]Write i2c OK [22:35:49]MH_I2C_Read... [22:35:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:35:49]Read from MH i2c: E2 [22:35:49]MH_I2C_Read... [22:35:49]Read from MH i2c: E2 62 00 [22:35:49]MH_I2C_Read... [22:35:49]Read from MH i2c: E2 62 00 F3 11 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 83 0A 01 00 0E 04 04 00 42 01 00 00 12 04 04 00 F2 00 00 00 5E 04 04 00 F2 00 00 00 57 04 04 00 F3 00 00 00 19 04 04 00 00 00 00 00 90 00 47 [22:35: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 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 83 0A 01 00 0E 04 04 00 42 01 00 00 12 04 04 00 F2 00 00 00 5E 04 04 00 F2 00 00 00 57 04 04 00 F3 00 00 00 19 04 04 00 00 00 00 00 90 00 [22:35:50]wFMCommunicate OK [22:35:50]SAM_PROTO_GetFieldsCounters done [22:35:50]requested_item shift.num is exist - process it [22:35:50]requested_item shift.opened is exist - process it [22:35:50]req_shift_opened [22:35:50]FM_GetShiftState [22:35:50]SAM_PROTO_GetShiftState [22:35:50]wFMCommunicate request_size=4 [22:35:50]MH_SAM_APDU [22:35:50]CAPDU: 80 13 01 00 [22:35:50]Write to MH i2c: E2 08 00 F4 11 80 13 01 00 00 00 00 00 82 [22:35:50]Write i2c OK [22:35:50]MH_I2C_Read... [22:35:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:35:50]Read from MH i2c: E2 [22:35:50]MH_I2C_Read... [22:35:50]Read from MH i2c: E2 0E 00 [22:35:50]MH_I2C_Read... [22:35:50]Read from MH i2c: E2 0E 00 F4 11 00 09 00 01 A4 BB 5B 66 00 00 00 00 90 00 AE [22:35:50]RAPDU: 09 00 01 A4 BB 5B 66 00 00 00 00 90 00 [22:35:50]wFMCommunicate OK [22:35:50]SAM_PROTO_GetShiftState done [22:35:50]FM_GetShiftState done [22:35:50]req_shift_opened done [22:35:50]requested_item shift.open_date is exist - process it [22:35:50]req_shift_open_date [22:35:50]req_shift_open_date done [22:35:50]produce_requested_data done [22:35:50]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68227,"shift.num":322,"shift.opened":1,"shift.open_date":1717287844} [22:35:50]process_action_free close_receipt [22:35:50]json_value_free [22:35:50]json_value_free done [22:35:50]process_json_proto returns [22:35:50]Send response to host [22:35:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68227,"shift.num":322,"shift.opened":1,"shift.open_date":1717287844}}} [22:35:50]free response buf [22:35:50]execute_script done [22:35:50]execute_script returns [22:35:50]free content buf [22:35:50]Sock 10.Close socket [22:35:50]Sock 10.Thread stoped [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:17]ConnectInit Can't connect to host [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:56]accept exits with 9 [22:36:56]New connection [22:36:56]New thread 3066686820 created [22:36:56]Thread 3066543460 joined [22:36:56]Waiting for new connection... [22:36:56] Sock 9.Parse request [22:36:56]Sock 9.Check first char [22:36:56]Sock 9.First char is OK [22:36:56]request: POST /json_proto HTTP/1.0 [22:36:56]Method: POST [22:36:56]URL: /json_proto [22:36:56]Method is POST - this is cgi request [22:36:56]url: /json_proto [22:36:56]query_string will be loaded in cgi processing [22:36:56]execute_cgi json_proto POST (null) [22:36:56]execute_cgi path=json_proto method=POST [22:36:56]POST find Content-Length [22:36:56]Host: 172.17.36.132:8080 [22:36:56]Content-Length: 682 [22:36:56]Content-Type: application/json [22:36:56] [22:36:56]POST finish read [22:36:56]Found Content-Length = 682 [22:36:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706299", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.40, "quantity" : 44.580, "sum" : 2960.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2960.00, "total" : 2960.00, "payments": [ { "type": 0, "sum" : 2960.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:36:56]execute_script... [22:36:56]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706299", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.40, "quantity" : 44.580, "sum" : 2960.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2960.00, "total" : 2960.00, "payments": [ { "type": 0, "sum" : 2960.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:36:56]POST & json_proto [22:36:56]process_json_proto [22:36:56]json parsed OK: [22:36:56]protocol is kg_v1.0 [22:36:56]action value=close_receipt [22:36:56]process_action close_receipt [22:36:56]cmd_close_receipt [22:36:56]MH_GetDate [22:36:56]Write to MH i2c: F0 00 00 F5 11 F5 [22:36:56]Write i2c OK [22:36:56]MH_I2C_Read... [22:36:56]Read from MH i2c: F0 [22:36:56]MH_I2C_Read... [22:36:56]Read from MH i2c: F0 09 00 [22:36:57]MH_I2C_Read... [22:36:57]Read from MH i2c: F0 09 00 F5 11 00 0A F4 5C 66 B2 22 B0 64 A6 [22:36:57]GetLastDocTimeStamp 1717367740 [22:36:57]current date 1717367818 [22:36:57]FM_GetShiftState [22:36:57]SAM_PROTO_GetShiftState [22:36:57]wFMCommunicate request_size=4 [22:36:57]MH_SAM_APDU [22:36:57]CAPDU: 80 13 01 00 [22:36:57]Write to MH i2c: E2 08 00 F6 11 80 13 01 00 00 00 00 00 84 [22:36:57]Write i2c OK [22:36:57]MH_I2C_Read... [22:36:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:36:57]Read from MH i2c: E2 [22:36:57]MH_I2C_Read... [22:36:57]Read from MH i2c: E2 0E 00 [22:36:57]MH_I2C_Read... [22:36:57]Read from MH i2c: E2 0E 00 F6 11 00 09 00 01 A4 BB 5B 66 00 00 00 00 90 00 B0 [22:36:57]RAPDU: 09 00 01 A4 BB 5B 66 00 00 00 00 90 00 [22:36:57]wFMCommunicate OK [22:36:57]SAM_PROTO_GetShiftState done [22:36:57]FM_GetShiftState done [22:36:57]opened in 1717287844 [22:36:57]opened+sec_in_day 1717374244 [22:36:57]quantity*price = 296011 [22:36:57]sum+1 = 296012 [22:36:57]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 2960.00 Внесено: 2960.00 СДАЧА: 0.00 НСП 1% : 26.20 НДС 12% : 314.35 Наличными: 2960.00 Безнал.: 0.00 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 243 02.06.2024 22:36 Смена: 322 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 ФМ: 0000000000965400 ФД: 68228 ФПД: 74156705058969 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240602T223659&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68228&fm=74156705058969&tin=02508201610067®Number=0000000000098096&sum=296000 [22:37:01]StoreToDocumentArchive [22:37:01]shift 322 fd 68228 [22:37:01]save to /storage/0322/doc_00068228 [22:37:01]save last doc name /storage/0322/doc_00068228 to /storage/kkm_last_doc_name [22:37:01]save OK [22:37:01]Clear old archive folders... [22:37:01]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:37:01]tlvbuf is 005796D0 [22:37:01]SAM_PROTO_ClearQueue [22:37:01]wFMCommunicate request_size=4 [22:37:01]MH_SAM_APDU [22:37:01]CAPDU: 80 09 00 00 [22:37:01]Write to MH i2c: E2 08 00 03 12 80 09 00 00 00 00 00 00 87 [22:37:01]Write i2c OK [22:37:01]MH_I2C_Read... [22:37:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:37:01]Read from MH i2c: E2 [22:37:01]MH_I2C_Read... [22:37:01]Read from MH i2c: E2 03 00 [22:37:01]MH_I2C_Read... [22:37:01]Read from MH i2c: E2 03 00 03 12 00 90 00 89 [22:37:01]RAPDU: 90 00 [22:37:01]wFMCommunicate OK [22:37:01]SAM_PROTO_ClearQueue done [22:37:01]KKMCreateOFDPacket [22:37:01]OFDProtocolAddRootSTLVToBuf [22:37:01]FM_MakeSignedData [22:37:01]FM_MakeSignedData [22:37:01]SAM_PROTO_SignData [22:37:01]wFMCommunicate request_size=4 [22:37:01]MH_SAM_APDU [22:37:01]CAPDU: 80 0D 01 02 [22:37:01]Write to MH i2c: E2 08 00 04 12 80 0D 01 02 00 00 00 00 8F [22:37:01]Write i2c OK [22:37:01]MH_I2C_Read... [22:37:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:37:01]Read from MH i2c: E2 [22:37:02]MH_I2C_Read... [22:37:02]Read from MH i2c: E2 03 00 [22:37:02]MH_I2C_Read... [22:37:02]Read from MH i2c: E2 03 00 04 12 00 90 00 8A [22:37:02]RAPDU: 90 00 [22:37:02]wFMCommunicate OK [22:37:02]wFMCommunicate request_size=255 [22:37:02]MH_SAM_APDU [22:37:02]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 24 AE 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 4B 84 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 84 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3C 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CB 7A 00 00 00 00 07 04 06 00 40 84 04 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 0B F4 5C 66 0E 04 04 00 42 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 84 0A 01 00 35 04 06 00 43 [22:37:02]Write to MH i2c: E2 02 01 05 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 34 FF 03 08 00 03 24 AE 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 4B 84 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 84 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3C 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CB 7A 00 00 00 00 07 04 06 00 40 84 04 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 0B F4 5C 66 0E 04 04 00 42 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 84 0A 01 00 35 04 06 00 43 00 00 29 [22:37:03]Write i2c OK [22:37:03]MH_I2C_Read... [22:37:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:37:04]Read from MH i2c: E2 [22:37:04]MH_I2C_Read... [22:37:04]Read from MH i2c: E2 03 00 [22:37:04]MH_I2C_Read... [22:37:04]Read from MH i2c: E2 03 00 05 12 00 90 00 8B [22:37:04]RAPDU: 90 00 [22:37:04]wFMCommunicate OK [22:37:04]wFMCommunicate request_size=10 [22:37:04]MH_SAM_APDU [22:37:04]CAPDU: 80 0D 02 02 05 71 F4 10 10 99 [22:37:04]Write to MH i2c: E2 0D 00 06 12 80 0D 02 02 05 00 71 F4 10 10 99 00 00 BA [22:37:04]Write i2c OK [22:37:04]MH_I2C_Read... [22:37:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:37:04]Read from MH i2c: E2 [22:37:04]MH_I2C_Read... [22:37:04]Read from MH i2c: E2 03 00 [22:37:04]MH_I2C_Read... [22:37:04]Read from MH i2c: E2 03 00 06 12 00 90 00 8C [22:37:04]RAPDU: 90 00 [22:37:04]wFMCommunicate OK [22:37:04]wFMCommunicate request_size=4 [22:37:04]MH_SAM_APDU [22:37:04]CAPDU: 80 0D 03 02 [22:37:04]Write to MH i2c: E2 08 00 07 12 80 0D 03 02 00 00 00 00 94 [22:37:04]Write i2c OK [22:37:04]MH_I2C_Read... [22:37:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:37:04]Read from MH i2c: E2 [22:37:04]MH_I2C_Read... [22:37:04]Read from MH i2c: E2 0B 00 [22:37:04]MH_I2C_Read... [22:37:04]Read from MH i2c: E2 0B 00 07 12 00 B0 3F 0E 82 CA DE C7 EB 90 00 6E [22:37:04]RAPDU: B0 3F 0E 82 CA DE C7 EB 90 00 [22:37:04]wFMCommunicate OK [22:37:04]SAM_PROTO_SignData done [22:37:04]FM_MakeSignedData done [22:37:04]CreateOFDProtocolMessage [22:37:04]wFMCommunicate request_size=4 [22:37:04]MH_SAM_APDU [22:37:04]CAPDU: 80 11 00 00 [22:37:04]Write to MH i2c: E2 08 00 08 12 80 11 00 00 00 00 00 00 94 [22:37:04]OFD Sender: No OFD packet to send [22:37:04]Write i2c OK [22:37:04]MH_I2C_Read... [22:37:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:37:04]Read from MH i2c: E2 [22:37:04]MH_I2C_Read... [22:37:04]Read from MH i2c: E2 17 00 [22:37:04]MH_I2C_Read... [22:37:04]Read from MH i2c: E2 17 00 08 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 DF [22:37:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [22:37:05]wFMCommunicate OK [22:37:05]CreateOFDProtocolMessage done [22:37:05]OFDSenderStorePacket 68228 [22:37:05]StoreOFDPacket docnum=68228 [22:37:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 C7 72 07 01 86 72 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 24 AE 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 4B 84 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 84 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3C 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CB 7A 00 00 00 00 07 04 06 00 40 84 04 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 0B F4 5C 66 0E 04 04 00 42 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 84 0A 01 00 35 04 06 00 43 71 F4 10 10 99 B0 3F 0E 82 CA DE C7 EB [22:37:05]CheckFolder [22:37:05]dirname=/storage/ofd_packets [22:37:05]CheckFolder done [22:37:05]ProducePacketName [22:37:05]name=ofd_packets/00068228 [22:37:05]NVStorageSaveData ofd_packets/00068228 [22:37:05]File name is /storage/ofd_packets/00068228 [22:37:05]Write 301 bytes [22:37:05]NVStorageSaveData done [22:37:05]OFDSenderStorePacket done [22:37:05]KKMCreateOFDPacket done [22:37:05]NVStorageSaveData kkm_last_timestamp [22:37:05]File name is /storage/kkm_last_timestamp [22:37:05]Write 4 bytes [22:37:05]NVStorageSaveData done [22:37:05]ExternCall_PrintAddStr [22:37:05]wPrintStart [22:37:05]Write to MH i2c: 01 00 00 09 12 1B [22:37:05]Write i2c OK [22:37:05]MH_I2C_Read... [22:37:05]Read from MH i2c: 01 [22:37:05]MH_I2C_Read... [22:37:05]Read from MH i2c: 01 07 00 [22:37:05]MH_I2C_Read... [22:37:05]OFD Sender: Processing packet 68228 [packets to send 26, broken 25] [22:37:05]ProducePacketName [22:37:05]name=ofd_packets/00068228 [22:37:05]OFD Sender: To server: pG, [22:37:05]CommunicateWithHost lk.salyk.kg:30040 [22:37:05]ConnectInit lk.salyk.kg [22:37:05]Read from MH i2c: 01 07 00 09 12 00 00 00 00 00 FF 0F 30 [22:37:05]RasterBufferAndPrint [22:37:05]line Счет N : (1)706299 [22:37:05]line ИНН: 02508201610067 [22:37:05]line Контрольно-Кассовый Чек [22:37:05]line ПРОДАЖА [22:37:05]line ТРК (МРК, ГНК) : 13 [22:37:05]line Товар: 2710124130 [22:37:05]line Аи-92-К-4 [22:37:05]line 44.580 * 66.40 [22:37:05]line = 2960.11 [22:37:05]line НДС 12% НСП 1% [22:37:05]line > о реализуемом товаре [22:37:05]line ОКРУГЛЕНИЕ: -0.11 [22:37:05]line ИТОГО: 2960.00 [22:37:05]line Внесено: 2960.00 [22:37:05]Connected sock=11 [22:37:05]line СДАЧА: 0.00 [22:37:05]Data to sent: line НСП 1% : 26.20 [22:37:05]87 line НДС 12% : 314.35 [22:37:05]line Наличными: 2960.00 [22:37:05]line Безнал.: 0.00 [22:37:05]line Место: АЗС № 62 "Партнер Нефть" [22:37:05]95 line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [22:37:05]F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 line СНО: Общий режим [22:37:05]36 line Чек 243 02.06.2024 22:36 [22:37:05]line Смена: 322 ФФД: 1.0 [22:37:05]line ЗНМ: 0300000181 [22:37:05]line РНМ: 0000000000098096 [22:37:05]35 line Версия ККМ: 001 [22:37:05]34 line ФМ: 0000000000965400 [22:37:05]30 line ФД: 68228 [22:37:05]line ФПД: 74156705058969 [22:37:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240602T223659&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68228&fm=74156705058969&tin=02508201610067®Number=0000000000098096&sum=296000 [22:37:05]30 0F written 0, free lines is 4095 [22:37:05]01 00 00 C7 72 07 01 86 72 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 24 AE 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 4B 84 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 84 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3C 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 Write to MH i2c: 03 01 06 00 CB 7A 00 00 00 00 34 00 00 07 04 12 06 46 00 [22:37:06]40 84 04 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 0B F4 5C 66 0E 04 Write i2c OK [22:37:06]04 00 42 MH_I2C_Read... [22:37:06]01 Read from MH i2c: 00 01 [22:37:06]MH_I2C_Read... [22:37:06]00 B9 04 01 00 01 0D 04 10 00 30 Read from MH i2c: 30 01 30 07 30 30 30 30 00 30 [22:37:06]MH_I2C_Read... [22:37:06]30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 Read from MH i2c: 30 01 30 07 30 39 36 35 00 34 34 30 12 30 00 10 00 04 04 00 84 00 0A 00 00 01 85 00 0D 35 04 06 00 DF 43 [22:37:06]71 RasterBufferAndPrint [22:37:06]F4 10 10 99 B0 3F 0E 82 CA DE C7 EB line [22:37:06] [22:37:06]line [22:37:06]line [22:37:06]line [22:37:06]line [22:37:06]written 0, free lines is 4095 [22:37:06]MH_Cut [22:37:06]Write to MH i2c: D1 01 00 3B 12 01 1F [22:37:07]Write i2c OK [22:37:07]MH_I2C_Read... [22:37:07]Read from MH i2c: D1 [22:37:07]MH_I2C_Read... [22:37:07]Read from MH i2c: D1 01 00 [22:37:07]MH_I2C_Read... [22:37:07]Read from MH i2c: D1 01 00 3B 12 00 1E [22:37:07]Received data: Write to MH i2c: 87 01 95 00 00 3C 12 F6 4E 70 [22:37:07]47 Write i2c OK [22:37:07]MH_I2C_Read... [22:37:07]2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 *** Cut start [22:37:07]47 7F 47 00 *** Partial cut [22:37:07]80 6F A5 07 01 00 07 00 3B 00 F9 03 0E *** CUTSNS_PIN = 1 [22:37:07]00 37 37 30 39 33 36 *** CUTSNS_PIN = 0 [22:37:07]34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 84 0A 01 00 F4 03 04 00 10 9B 5C 66 B6 04 01 00 00 *** Brake cut motor [22:37:07]FB F2 89 92 6D 86 32 D4 [22:37:07]CommunicateWithHost err = 0 [22:37:07]CheckOFDResponse [22:37:07]1017 (14) - 77093643461234 [22:37:07]1041 (16) - 0000000000965400 [22:37:07]1040 (4) - 68228 [22:37:07]1012 (4) - 02.06.2024 16:17 [22:37:07]1206 (1) - 0 [22:37:07]OFD Sender: Remove packet 68228 [22:37:07]ProducePacketName [22:37:07]name=ofd_packets/00068228 [22:37:07]NVStorageDeleteData [22:37:07]Read from MH i2c: *** Stop cut motor [22:37:07]01 [22:37:07]MH_I2C_Read... [22:37:07]Read from MH i2c: *** Cut end [22:37:07]01 07 00 [22:37:07]MH_I2C_Read... [22:37:07]Read from MH i2c: 01 07 00 3C 12 00 00 00 00 00 FF 0F 63 [22:37:07]process_action close_receipt done [22:37:07]requested_data is exist [22:37:07]produce_requested_data [22:37:07]requested_item fm.sn is exist - process it [22:37:07]wFMCommunicate request_size=4 [22:37:07]MH_SAM_APDU [22:37:07]CAPDU: 80 11 00 00 [22:37:08]Write to MH i2c: E2 08 00 3D 12 80 11 00 00 00 00 00 00 C9 [22:37:08]Write i2c OK [22:37:08]MH_I2C_Read... [22:37:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:37:08]Read from MH i2c: E2 [22:37:08]MH_I2C_Read... [22:37:08]Read from MH i2c: E2 17 OFD Sender: No OFD packet to send [22:37:08]00 [22:37:08]MH_I2C_Read... [22:37:08]Read from MH i2c: E2 17 00 3D 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 14 [22:37:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [22:37:08]wFMCommunicate OK [22:37:08]requested_item fd.num is exist - process it [22:37:08]SAM_PROTO_GetFieldsCounters [22:37:08]wFMCommunicate request_size=4 [22:37:08]MH_SAM_APDU [22:37:08]CAPDU: 80 13 00 00 [22:37:08]Write to MH i2c: E2 08 00 3E 12 80 13 00 00 00 00 00 00 CC [22:37:08]Write i2c OK [22:37:08]MH_I2C_Read... [22:37:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:37:08]Read from MH i2c: E2 [22:37:08]MH_I2C_Read... [22:37:08]Read from MH i2c: E2 62 00 [22:37:08]MH_I2C_Read... [22:37:08]Read from MH i2c: E2 62 00 3E 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 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 84 0A 01 00 0E 04 04 00 42 01 00 00 12 04 04 00 F3 00 00 00 5E 04 04 00 F3 00 00 00 57 04 04 00 F4 00 00 00 19 04 04 00 00 00 00 00 90 00 97 [22: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 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 84 0A 01 00 0E 04 04 00 42 01 00 00 12 04 04 00 F3 00 00 00 5E 04 04 00 F3 00 00 00 57 04 04 00 F4 00 00 00 19 04 04 00 00 00 00 00 90 00 [22:37:09]wFMCommunicate OK [22:37:09]SAM_PROTO_GetFieldsCounters done [22:37:09]requested_item shift.num is exist - process it [22:37:09]requested_item shift.opened is exist - process it [22:37:09]req_shift_opened [22:37:09]FM_GetShiftState [22:37:09]SAM_PROTO_GetShiftState [22:37:09]wFMCommunicate request_size=4 [22:37:09]MH_SAM_APDU [22:37:09]CAPDU: 80 13 01 00 [22:37:09]Write to MH i2c: E2 08 00 3F 12 80 13 01 00 00 00 00 00 CE [22:37:09]Write i2c OK [22:37:09]MH_I2C_Read... [22:37:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:37:09]Read from MH i2c: E2 [22:37:09]MH_I2C_Read... [22:37:09]Read from MH i2c: E2 0E 00 [22:37:09]MH_I2C_Read... [22:37:09]Read from MH i2c: E2 0E 00 3F 12 00 09 00 01 A4 BB 5B 66 00 00 00 00 90 00 FA [22:37:09]RAPDU: 09 00 01 A4 BB 5B 66 00 00 00 00 90 00 [22:37:09]wFMCommunicate OK [22:37:09]SAM_PROTO_GetShiftState done [22:37:09]FM_GetShiftState done [22:37:09]req_shift_opened done [22:37:09]requested_item shift.open_date is exist - process it [22:37:09]req_shift_open_date [22:37:09]req_shift_open_date done [22:37:09]produce_requested_data done [22:37:09]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68228,"shift.num":322,"shift.opened":1,"shift.open_date":1717287844} [22:37:09]process_action_free close_receipt [22:37:09]json_value_free [22:37:09]json_value_free done [22:37:09]process_json_proto returns [22:37:09]Send response to host [22:37:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68228,"shift.num":322,"shift.opened":1,"shift.open_date":1717287844}}} [22:37:09]free response buf [22:37:09]execute_script done [22:37:09]execute_script returns [22:37:09]free content buf [22:37:09]Sock 9.Close socket [22:37:09]Sock 9.Thread stoped [22:37:11]accept exits with 10 [22:37:11]New connection [22:37:11]New thread 3066543460 created [22:37:11]Thread 3066686820 joined [22:37:11]Waiting for new connection... [22:37:11] Sock 10.Parse request [22:37:11]Sock 10.Check first char [22:37:11]Sock 10.First char is OK [22:37:11]request: POST /json_proto HTTP/1.0 [22:37:11]Method: POST [22:37:11]URL: /json_proto [22:37:11]Method is POST - this is cgi request [22:37:11]url: /json_proto [22:37:11]query_string will be loaded in cgi processing [22:37:12]execute_cgi json_proto POST (null) [22:37:12]execute_cgi path=json_proto method=POST [22:37:12]POST find Content-Length [22:37:12]Host: 172.17.36.132:8080 [22:37:12]Content-Length: 738 [22:37:12]Content-Type: application/json [22:37:12] [22:37:12]POST finish read [22:37:12]Found Content-Length = 738 [22:37:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 68228, "base_FM": "0000000000965400", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706299", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.40, "quantity" : 44.580, "sum" : 2960.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2960.00, "total" : 2960.00, "payments": [ { "type": 0, "sum" : 2960.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:37:12]execute_script... [22:37:12]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 68228, "base_FM": "0000000000965400", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706299", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.40, "quantity" : 44.580, "sum" : 2960.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2960.00, "total" : 2960.00, "payments": [ { "type": 0, "sum" : 2960.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:37:12]POST & json_proto [22:37:12]process_json_proto [22:37:12]json parsed OK: [22:37:12]protocol is kg_v1.0 [22:37:12]action value=close_receipt [22:37:12]process_action close_receipt [22:37:12]cmd_close_receipt [22:37:12]MH_GetDate [22:37:12]Write to MH i2c: F0 00 00 40 12 41 [22:37:12]Write i2c OK [22:37:12]MH_I2C_Read... [22:37:12]Read from MH i2c: F0 [22:37:12]MH_I2C_Read... [22:37:12]Read from MH i2c: F0 09 00 [22:37:12]MH_I2C_Read... [22:37:12]Read from MH i2c: F0 09 00 40 12 00 19 F4 5C 66 B2 22 B0 64 01 [22:37:12]GetLastDocTimeStamp 1717367819 [22:37:12]current date 1717367833 [22:37:12]FM_GetShiftState [22:37:12]SAM_PROTO_GetShiftState [22:37:12]wFMCommunicate request_size=4 [22:37:12]MH_SAM_APDU [22:37:12]CAPDU: 80 13 01 00 [22:37:12]Write to MH i2c: E2 08 00 41 12 80 13 01 00 00 00 00 00 D0 [22:37:12]Write i2c OK [22:37:12]MH_I2C_Read... [22:37:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:37:12]Read from MH i2c: E2 [22:37:12]MH_I2C_Read... [22:37:12]Read from MH i2c: E2 0E 00 [22:37:12]MH_I2C_Read... [22:37:12]Read from MH i2c: E2 0E 00 41 12 00 09 00 01 A4 BB 5B 66 00 00 00 00 90 00 FC [22:37:12]RAPDU: 09 00 01 A4 BB 5B 66 00 00 00 00 90 00 [22:37:12]wFMCommunicate OK [22:37:12]SAM_PROTO_GetShiftState done [22:37:12]FM_GetShiftState done [22:37:12]opened in 1717287844 [22:37:12]opened+sec_in_day 1717374244 [22:37:12]quantity*price = 296011 [22:37:12]sum+1 = 296012 [22:37:12]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 2960.00 НСП 1% : 26.20 НДС 12% : 314.35 Наличными: 2960.00 Безнал.: 0.00 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 244 02.06.2024 22:37 Смена: 322 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 ФД осн.: 68228 ФМ осн.: 0000000000965400 ФМ: 0000000000965400 ФД: 68229 ФПД: 256235883300980 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240602T223714&type=2&operation_type=1&fn_number=0000000000965400&fd_number=68229&fm=256235883300980&tin=02508201610067®Number=0000000000098096&sum=296000 [22:37:17]StoreToDocumentArchive [22:37:17]shift 322 fd 68229 [22:37:17]save to /storage/0322/doc_00068229 [22:37:17]save last doc name /storage/0322/doc_00068229 to /storage/kkm_last_doc_name [22:37:17]save OK [22:37:17]Clear old archive folders... [22:37:17]ProcessDocumentItem done err = 0, tmpTLVsize=279 [22:37:17]tlvbuf is 005FDCF0 [22:37:17]SAM_PROTO_ClearQueue [22:37:17]wFMCommunicate request_size=4 [22:37:17]MH_SAM_APDU [22:37:17]CAPDU: 80 09 00 00 [22:37:17]Write to MH i2c: E2 08 00 50 12 80 09 00 00 00 00 00 00 D4 [22:37:17]Write i2c OK [22:37:17]MH_I2C_Read... [22:37:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:37:17]Read from MH i2c: E2 [22:37:17]MH_I2C_Read... [22:37:17]Read from MH i2c: E2 03 00 [22:37:17]MH_I2C_Read... [22:37:17]Read from MH i2c: E2 03 00 50 12 00 90 00 D6 [22:37:17]RAPDU: 90 00 [22:37:17]wFMCommunicate OK [22:37:17]SAM_PROTO_ClearQueue done [22:37:17]KKMCreateOFDPacket [22:37:17]OFDProtocolAddRootSTLVToBuf [22:37:17]FM_MakeSignedData [22:37:17]FM_MakeSignedData [22:37:17]SAM_PROTO_SignData [22:37:17]wFMCommunicate request_size=4 [22:37:17]MH_SAM_APDU [22:37:17]CAPDU: 80 0D 01 02 [22:37:17]Write to MH i2c: E2 08 00 51 12 80 0D 01 02 00 00 00 00 DC [22:37:17]Write i2c OK [22:37:18]MH_I2C_Read... [22:37:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:37:18]Read from MH i2c: E2 [22:37:18]MH_I2C_Read... [22:37:18]Read from MH i2c: E2 03 00 [22:37:18]MH_I2C_Read... [22:37:18]Read from MH i2c: E2 03 00 51 12 00 90 00 D7 [22:37:18]RAPDU: 90 00 [22:37:18]wFMCommunicate OK [22:37:18]wFMCommunicate request_size=255 [22:37:18]MH_SAM_APDU [22:37:18]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 34 FF 03 08 00 03 24 AE 00 00 00 00 00 37 04 06 00 F0 19 00 00 OFD Sender: No OFD packet to send [22:37:18]00 00 13 04 06 00 4B 84 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 84 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3C 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CB 7A 00 00 00 00 07 04 06 00 40 84 04 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 1A F4 5C 66 0E 04 04 00 42 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 27 04 04 00 84 0A 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 11 04 10 00 30 [22:37:19]Write to MH i2c: E2 02 01 52 12 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 34 FF 03 08 00 03 24 AE 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 4B 84 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 84 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3C 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CB 7A 00 00 00 00 07 04 06 00 40 84 04 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 1A F4 5C 66 0E 04 04 00 42 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 27 04 04 00 84 0A 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 11 04 10 00 30 00 00 A5 [22:37:19]Write i2c OK [22:37:19]MH_I2C_Read... [22:37:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:37:20]Read from MH i2c: E2 [22:37:20]MH_I2C_Read... [22:37:20]Read from MH i2c: E2 03 00 [22:37:20]MH_I2C_Read... [22:37:20]Read from MH i2c: E2 03 00 52 12 00 90 00 D8 [22:37:20]RAPDU: 90 00 [22:37:20]wFMCommunicate OK [22:37:20]wFMCommunicate request_size=38 [22:37:20]MH_SAM_APDU [22:37:20]CAPDU: 80 0D 02 02 21 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 85 0A 01 00 35 04 06 00 E9 0B 90 CD 88 74 [22:37:20]Write to MH i2c: E2 29 00 53 12 80 0D 02 02 21 00 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 85 0A 01 00 35 04 06 00 E9 0B 90 CD 88 74 00 00 3D [22:37:20]Write i2c OK [22:37:20]MH_I2C_Read... [22:37:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:37:20]Read from MH i2c: E2 [22:37:20]MH_I2C_Read... [22:37:20]Read from MH i2c: E2 03 00 [22:37:20]MH_I2C_Read... [22:37:20]Read from MH i2c: E2 03 00 53 12 00 90 00 D9 [22:37:20]RAPDU: 90 00 [22:37:20]wFMCommunicate OK [22:37:20]wFMCommunicate request_size=4 [22:37:20]MH_SAM_APDU [22:37:20]CAPDU: 80 0D 03 02 [22:37:20]Write to MH i2c: E2 08 00 54 12 80 0D 03 02 00 00 00 00 E1 [22:37:20]Write i2c OK [22:37:20]MH_I2C_Read... [22:37:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:37:20]Read from MH i2c: E2 [22:37:20]MH_I2C_Read... [22:37:20]Read from MH i2c: E2 0B 00 [22:37:20]MH_I2C_Read... [22:37:20]Read from MH i2c: E2 0B 00 54 12 00 E9 65 28 65 8E 32 84 D9 90 00 DA [22:37:21]RAPDU: E9 65 28 65 8E 32 84 D9 90 00 [22:37:21]wFMCommunicate OK [22:37:21]SAM_PROTO_SignData done [22:37:21]FM_MakeSignedData done [22:37:21]CreateOFDProtocolMessage [22:37:21]wFMCommunicate request_size=4 [22:37:21]MH_SAM_APDU [22:37:21]CAPDU: 80 11 00 00 [22:37:21]Write to MH i2c: E2 08 00 55 12 80 11 00 00 00 00 00 00 E1 [22:37:21]Write i2c OK [22:37:21]MH_I2C_Read... [22:37:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:37:21]Read from MH i2c: E2 [22:37:21]MH_I2C_Read... [22:37:21]Read from MH i2c: E2 17 00 [22:37:21]MH_I2C_Read... [22:37:21]Read from MH i2c: E2 17 00 55 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 2C [22:37:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [22:37:21]wFMCommunicate OK [22:37:21]CreateOFDProtocolMessage done [22:37:21]OFDSenderStorePacket 68229 [22:37:21]StoreOFDPacket docnum=68229 [22:37:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 2B 01 00 00 62 66 23 01 5F 90 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 34 FF 03 08 00 03 24 AE 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 4B 84 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 84 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3C 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CB 7A 00 00 00 00 07 04 06 00 40 84 04 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 1A F4 5C 66 0E 04 04 00 42 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 27 04 04 00 84 0A 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 85 0A 01 00 35 04 06 00 E9 0B 90 CD 88 74 E9 65 28 65 8E 32 84 D9 [22:37:21]CheckFolder [22:37:21]dirname=/storage/ofd_packets [22:37:21]CheckFolder done [22:37:21]ProducePacketName [22:37:21]name=ofd_packets/00068229 [22:37:21]NVStorageSaveData ofd_packets/00068229 [22:37:21]File name is /storage/ofd_packets/00068229 [22:37:21]Write 329 bytes [22:37:21]NVStorageSaveData done [22:37:21]OFDSenderStorePacket done [22:37:21]KKMCreateOFDPacket done [22:37:21]NVStorageSaveData kkm_last_timestamp [22:37:21]File name is /storage/kkm_last_timestamp [22:37:21]Write 4 bytes [22:37:21]NVStorageSaveData done [22:37:21]ExternCall_PrintAddStr [22:37:21]wPrintStart [22:37:21]Write to MH i2c: 01 00 00 56 12 68 [22:37:21]OFD Sender: Processing packet 68229 [packets to send 26, broken 25] [22:37:21]ProducePacketName [22:37:21]name=ofd_packets/00068229 [22:37:21]Write i2c OK [22:37:21]MH_I2C_Read... [22:37:21]OFD Sender: To server: pG, [22:37:21]CommunicateWithHost lk.salyk.kg:30040 [22:37:21]ConnectInit lk.salyk.kg [22:37:21]Read from MH i2c: 01 [22:37:21]MH_I2C_Read... [22:37:21]Read from MH i2c: 01 07 00 [22:37:21]MH_I2C_Read... [22:37:21]Read from MH i2c: 01 07 00 56 12 00 00 00 00 00 FF 0F 7D [22:37:21]RasterBufferAndPrint [22:37:21]line Счет N : (1)706299 [22:37:21]line ИНН: 02508201610067 [22:37:21]line Контрольно-Кассовый Чек [22:37:21]line ВОЗВРАТ ПРОДАЖИ [22:37:21]line ТРК (МРК, ГНК) : 13 [22:37:21]line Товар: 2710124130 [22:37:21]line Аи-92-К-4 [22:37:21]line 44.580 * 66.40 [22:37:21]line = 2960.11 [22:37:21]line НДС 12% НСП 1% [22:37:21]line > о реализуемом товаре [22:37:21]line ОКРУГЛЕНИЕ: -0.11 [22:37:21]line ИТОГО: 2960.00 [22:37:21]line НСП 1% : 26.20 [22:37:21]line НДС 12% : 314.35 [22:37:21]line Наличными: 2960.00 [22:37:21]line Безнал.: 0.00 [22:37:21]line Место: АЗС № 62 "Партнер Нефть" [22:37:21]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [22:37:21]line СНО: Общий режим [22:37:21]line Чек 244 02.06.2024 22:37 [22:37:21]line Смена: 322 ФФД: 1.0 [22:37:21]line ЗНМ: 0300000181 [22:37:21]line РНМ: 0000000000098096 [22:37:21]line Версия ККМ: 001 [22:37:21]line ФД осн.: 68228 [22:37:21]line ФМ осн.: 0000000000965400 [22:37:21]line ФМ: 0000000000965400 [22:37:21]line ФД: 68229 [22:37:21]line ФПД: 256235883300980 [22:37:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240602T223714&type=2&operation_type=1&fn_number=0000000000965400&fd_number=68229&fm=256235883300980&tin=02508201610067®Number=0000000000098096&sum=296000 [22:37:21]Connected sock=11 [22:37:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 2B written 0, free lines is 4095 [22:37:22]01 00 00 62 66 23 01 5F 90 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 34 FF 03 08 00 03 24 AE 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 4B 84 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 84 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3C 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 Write to MH i2c: 01 F3 03 01 06 00 00 CB 7A 00 00 00 81 00 12 00 93 07 04 06 00 [22:37:22]40 84 04 00 00 Write i2c OK [22:37:22]MH_I2C_Read... [22:37:22]00 39 04 06 00 00 00 00 00 00 00 1F Read from MH i2c: 04 01 02 [22:37:22]00 01 00 12 MH_I2C_Read... [22:37:22]04 04 00 F4 00 Read from MH i2c: 00 01 00 07 F4 03 04 00 00 [22:37:22]1A MH_I2C_Read... [22:37:22]F4 5C 66 0E Read from MH i2c: 04 01 04 07 00 42 01 00 00 00 81 12 00 00 00 00 00 91 0D 38 [22:37:23]RasterBufferAndPrint [22:37:23]B9 line [22:37:23]04 01 00 01 0D 04 10 line [22:37:23]00 line [22:37:23]30 line [22:37:23]30 30 30 30 line [22:37:23]30 written 0, free lines is 4055 [22:37:23]30 30 30 30 30 39 MH_Cut [22:37:23]38 Write to MH i2c: 30 D1 39 36 27 04 01 04 00 00 88 84 0A 01 00 12 28 01 04 6C 10 00 30 30 [22:37:23]30 30 30 30 Write i2c OK [22:37:23]30 MH_I2C_Read... [22:37:23]30 Read from MH i2c: 30 30 39 36 D1 35 [22:37:23]*** Cut start [22:37:23]MH_I2C_Read... [22:37:23]34 30 30 Read from MH i2c: 11 D1 04 01 10 00 30 30 30 30 30 *** Partial cut [22:37:23]30 *** CUTSNS_PIN = 1 [22:37:23]*** CUTSNS_PIN = 0 [22:37:23]00 [22:37:23]30 MH_I2C_Read... [22:37:23]30 30 30 39 36 35 34 30 30 10 04 04 00 85 0A 01 00 35 Read from MH i2c: *** Brake cut motor [22:37:23]D1 04 01 06 00 E9 0B 00 90 88 CD 12 88 74 E9 65 00 28 6B 65 [22:37:23]8E 32 84 Write to MH i2c: D9 01 [22:37:23]00 00 89 12 9B [22:37:23]Write i2c OK [22:37:23]MH_I2C_Read... [22:37:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 42 26 47 00 99 68 A5 07 *** Stop cut motor [22:37:24]01 *** Cut end [22:37:24]Read from MH i2c: 01 [22:37:24]MH_I2C_Read... [22:37:24]00 07 00 3B 00 Read from MH i2c: F9 01 07 00 [22:37:24]03 0E MH_I2C_Read... [22:37:24]00 Read from MH i2c: 01 37 37 30 39 07 00 89 12 33 00 36 00 34 33 00 34 00 00 FF 0F 36 B0 31 [22:37:24]32 33 process_action close_receipt done [22:37:24]34 requested_data is exist [22:37:24]produce_requested_data [22:37:24]requested_item fm.sn is exist - process it [22:37:24]wFMCommunicate request_size=4 [22:37:24]11 MH_SAM_APDU [22:37:24]CAPDU: 80 11 04 00 10 00 00 [22:37:24]Write to MH i2c: E2 08 00 8A 12 80 11 00 00 00 00 00 00 16 [22:37:24]30 30 30 30 30 30 *** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:37:24]30 30 30 30 39 36 35 34 30 30 10 04 Write i2c OK [22:37:24]04 MH_I2C_Read... [22:37:24]00 Read from MH i2c: 85 0A 01 00 E2 F4 [22:37:24]03 MH_I2C_Read... [22:37:24]04 00 21 Read from MH i2c: 9B E2 5C 17 66 B6 04 01 00 00 [22:37:24]00 MH_I2C_Read... [22:37:24]04 10 14 62 Read from MH i2c: D2 E2 05 17 00 8A 12 2B 00 36 11 [22:37:25]04 10 00 30 CommunicateWithHost err = 0 [22:37:25]30 CheckOFDResponse [22:37:25]30 1017 (14) - 77093643461234 [22:37:25]30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 61 [22:37:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 1041 (16) - 0000000000965400 [22:37:25]30 1040 (4) - 68229 [22:37:25]30 1012 (4) - 02.06.2024 16:17 [22:37:25]90 00 [22:37:25]wFMCommunicate OK [22:37:25]1206 (1) - 0 [22:37:25]requested_item fd.num is exist - process it [22:37:25]OFD Sender: Remove packet 68229 [22:37:25]SAM_PROTO_GetFieldsCounters [22:37:25]wFMCommunicate request_size=4 [22:37:25]MH_SAM_APDU [22:37:25]CAPDU: ProducePacketName [22:37:25]80 name=ofd_packets/00068229 [22:37:25]13 NVStorageDeleteData [22:37:25]00 00 [22:37:25]Write to MH i2c: E2 08 00 8B 12 80 13 00 00 00 00 00 00 19 [22:37:25]Write i2c OK [22:37:25]MH_I2C_Read... [22:37:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:37:25]Read from MH i2c: E2 [22:37:25]MH_I2C_Read... [22:37:25]Read from MH i2c: E2 62 00 [22:37:25]MH_I2C_Read... [22:37:25]Read from MH i2c: E2 62 00 8B 12 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 85 0A 01 00 0E 04 04 00 42 01 00 00 12 04 04 00 F4 00 OFD Sender: No OFD packet to send [22:37:25]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 E8 [22:37: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 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 85 0A 01 00 0E 04 04 00 42 01 00 00 12 04 04 00 F4 00 00 00 5E 04 04 00 F4 00 00 00 57 04 04 00 F5 00 00 00 19 04 04 00 00 00 00 00 90 00 [22:37:26]wFMCommunicate OK [22:37:26]SAM_PROTO_GetFieldsCounters done [22:37:26]requested_item shift.num is exist - process it [22:37:26]requested_item shift.opened is exist - process it [22:37:26]req_shift_opened [22:37:26]FM_GetShiftState [22:37:26]SAM_PROTO_GetShiftState [22:37:26]wFMCommunicate request_size=4 [22:37:26]MH_SAM_APDU [22:37:26]CAPDU: 80 13 01 00 [22:37:26]Write to MH i2c: E2 08 00 8C 12 80 13 01 00 00 00 00 00 1B [22:37:26]Write i2c OK [22:37:26]MH_I2C_Read... [22:37:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:37:26]Read from MH i2c: E2 [22:37:26]MH_I2C_Read... [22:37:26]Read from MH i2c: E2 0E 00 [22:37:26]MH_I2C_Read... [22:37:26]Read from MH i2c: E2 0E 00 8C 12 00 09 00 01 A4 BB 5B 66 00 00 00 00 90 00 47 [22:37:26]RAPDU: 09 00 01 A4 BB 5B 66 00 00 00 00 90 00 [22:37:26]wFMCommunicate OK [22:37:26]SAM_PROTO_GetShiftState done [22:37:26]FM_GetShiftState done [22:37:26]req_shift_opened done [22:37:26]requested_item shift.open_date is exist - process it [22:37:26]req_shift_open_date [22:37:26]req_shift_open_date done [22:37:26]produce_requested_data done [22:37:26]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68229,"shift.num":322,"shift.opened":1,"shift.open_date":1717287844} [22:37:26]process_action_free close_receipt [22:37:26]json_value_free [22:37:26]json_value_free done [22:37:26]process_json_proto returns [22:37:26]Send response to host [22:37:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68229,"shift.num":322,"shift.opened":1,"shift.open_date":1717287844}}} [22:37:26]free response buf [22:37:26]execute_script done [22:37:26]execute_script returns [22:37:26]free content buf [22:37:26]Sock 10.Close socket [22:37:26]Sock 10.Thread stoped [22:37:30]OFD Sender: No OFD packet to send [22:37:35]OFD Sender: No OFD packet to send [22:37:40]OFD Sender: No OFD packet to send [22:37:45]OFD Sender: No OFD packet to send [22:37:50]OFD Sender: No OFD packet to send [22:37:55]OFD Sender: No OFD packet to send [22:38:00]OFD Sender: No OFD packet to send [22:38:05]OFD Sender: No OFD packet to send [22:38:10]OFD Sender: No OFD packet to send [22:38:15]OFD Sender: No OFD packet to send [22:38:21]OFD Sender: No OFD packet to send [22:38:26]OFD Sender: No OFD packet to send [22:38:31]OFD Sender: No OFD packet to send [22:38:35]ConnectInit Can't connect to host [22:38:36]OFD Sender: No OFD packet to send [22:38:41]OFD Sender: No OFD packet to send [22:38:46]OFD Sender: No OFD packet to send [22:38:51]OFD Sender: No OFD packet to send [22:38:56]OFD Sender: No OFD packet to send [22:39:01]OFD Sender: No OFD packet to send [22:39:06]OFD Sender: No OFD packet to send [22:39:11]OFD Sender: No OFD packet to send [22:39:16]OFD Sender: No OFD packet to send [22:39:21]OFD Sender: No OFD packet to send [22:39:26]OFD Sender: No OFD packet to send [22:39:31]OFD Sender: No OFD packet to send [22:39:36]OFD Sender: No OFD packet to send [22:39:41]OFD Sender: No OFD packet to send [22:39:46]OFD Sender: No OFD packet to send [22:39:51]OFD Sender: No OFD packet to send [22:39:56]OFD Sender: No OFD packet to send [22:40:01]OFD Sender: No OFD packet to send [22:40:06]OFD Sender: No OFD packet to send [22:40:11]OFD Sender: No OFD packet to send [22:40:15]accept exits with 9 [22:40:15]New connection [22:40:15]New thread 3066686820 created [22:40:15]Thread 3066543460 joined [22:40:15]Waiting for new connection... [22:40:15] Sock 9.Parse request [22:40:15]Sock 9.Check first char [22:40:15]Sock 9.First char is OK [22:40:15]request: POST /json_proto HTTP/1.0 [22:40:15]Method: POST [22:40:15]URL: /json_proto [22:40:15]Method is POST - this is cgi request [22:40:15]url: /json_proto [22:40:15]query_string will be loaded in cgi processing [22:40:15]execute_cgi json_proto POST (null) [22:40:15]execute_cgi path=json_proto method=POST [22:40:15]POST find Content-Length [22:40:15]Host: 172.17.36.132:8080 [22:40:15]Content-Length: 836 [22:40:15]Content-Type: application/json [22:40:15] [22:40:15]POST finish read [22:40:15]Found Content-Length = 836 [22:40:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706300", "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" : 67.40, "quantity" : 66.770, "sum" : 4500.30, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 4500.30 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:40:15]execute_script... [22:40: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)706300", "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" : 67.40, "quantity" : 66.770, "sum" : 4500.30, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 4500.30 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:40:15]POST & json_proto [22:40:15]process_json_proto [22:40:15]json parsed OK: [22:40:15]protocol is kg_v1.0 [22:40:15]action value=close_receipt [22:40:15]process_action close_receipt [22:40:15]cmd_close_receipt [22:40:15]MH_GetDate [22:40:15]Write to MH i2c: F0 00 00 8D 12 8E [22:40:15]Write i2c OK [22:40:15]MH_I2C_Read... [22:40:15]Read from MH i2c: F0 [22:40:15]MH_I2C_Read... [22:40:15]Read from MH i2c: F0 09 00 [22:40:15]MH_I2C_Read... [22:40:15]Read from MH i2c: F0 09 00 8D 12 00 D1 F4 5C 66 B2 22 B0 64 06 [22:40:15]GetLastDocTimeStamp 1717367834 [22:40:15]current date 1717368017 [22:40:15]FM_GetShiftState [22:40:15]SAM_PROTO_GetShiftState [22:40:15]wFMCommunicate request_size=4 [22:40:15]MH_SAM_APDU [22:40:15]CAPDU: 80 13 01 00 [22:40:15]Write to MH i2c: E2 08 00 8E 12 80 13 01 00 00 00 00 00 1D [22:40:15]Write i2c OK [22:40:15]MH_I2C_Read... [22:40:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:40:15]Read from MH i2c: E2 [22:40:15]MH_I2C_Read... [22:40:15]Read from MH i2c: E2 0E 00 [22:40:15]MH_I2C_Read... [22:40:15]Read from MH i2c: E2 0E 00 8E 12 00 09 00 01 A4 BB 5B 66 00 00 00 00 90 00 49 [22:40:15]RAPDU: 09 00 01 A4 BB 5B 66 00 00 00 00 90 00 [22:40:15]wFMCommunicate OK [22:40:15]SAM_PROTO_GetShiftState done [22:40:15]FM_GetShiftState done [22:40:15]opened in 1717287844 [22:40:15]opened+sec_in_day 1717374244 [22:40:15]quantity*price = 450029 [22:40:15]sum+1 = 450031 [22:40:15]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 4500.30 НСП 1% : 39.83 НДС 12% : 477.91 Наличными: 0.00 Безнал.: 4500.30 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 245 02.06.2024 22:40 Смена: 322 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000965400 ФД: 68230 ФПД: 213781162845755 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240602T224017&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68230&fm=213781162845755&tin=02508201610067®Number=0000000000098096&sum=450030 [22:40:20]StoreToDocumentArchive [22:40:20]shift 322 fd 68230 [22:40:20]save to /storage/0322/doc_00068230 [22:40:20]save last doc name /storage/0322/doc_00068230 to /storage/kkm_last_doc_name [22:40:20]save OK [22:40:20]Clear old archive folders... [22:40:20]ProcessDocumentItem done err = 0, tmpTLVsize=252 [22:40:20]tlvbuf is 005B6340 [22:40:20]SAM_PROTO_ClearQueue [22:40:20]wFMCommunicate request_size=4 [22:40:20]MH_SAM_APDU [22:40:20]CAPDU: 80 09 00 00 [22:40:20]Write to MH i2c: E2 08 00 9B 12 80 09 00 00 00 00 00 00 1F [22:40:20]Write i2c OK [22:40:20]MH_I2C_Read... [22:40:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:40:20]Read from MH i2c: E2 [22:40:20]MH_I2C_Read... [22:40:20]Read from MH i2c: E2 03 00 [22:40:20]MH_I2C_Read... [22:40:20]Read from MH i2c: E2 03 00 9B 12 00 90 00 21 [22:40:20]RAPDU: 90 00 [22:40:20]wFMCommunicate OK [22:40:20]SAM_PROTO_ClearQueue done [22:40:20]KKMCreateOFDPacket [22:40:20]OFDProtocolAddRootSTLVToBuf [22:40:20]FM_MakeSignedData [22:40:20]FM_MakeSignedData [22:40:20]SAM_PROTO_SignData [22:40:20]wFMCommunicate request_size=4 [22:40:20]MH_SAM_APDU [22:40:20]CAPDU: 80 0D 01 02 [22:40:20]Write to MH i2c: E2 08 00 9C 12 80 0D 01 02 00 00 00 00 27 [22:40:20]Write i2c OK [22:40:20]MH_I2C_Read... [22:40:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:40:20]Read from MH i2c: E2 [22:40:20]MH_I2C_Read... [22:40:20]Read from MH i2c: E2 03 00 [22:40:20]MH_I2C_Read... [22:40:20]Read from MH i2c: E2 03 00 9C 12 00 90 00 22 [22:40:20]RAPDU: 90 00 [22:40:20]wFMCommunicate OK [22:40:20]wFMCommunicate request_size=255 [22:40:20]MH_SAM_APDU [22:40: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 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D2 04 01 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 EE DD 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EE DD 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8F 0F 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AF BA 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 EE DD 06 00 00 00 OFD Sender: No OFD packet to send [22:40:21]1F 04 02 00 01 00 12 04 04 00 F5 00 00 00 F4 03 04 00 D1 F4 5C 66 0E 04 04 00 42 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 86 0A 01 00 35 04 06 00 [22:40:21]Write to MH i2c: E2 02 01 9D 12 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D2 04 01 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 EE DD 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EE DD 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8F 0F 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AF BA 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 EE DD 06 00 00 00 1F 04 02 00 01 00 12 04 04 00 F5 00 00 00 F4 03 04 00 D1 F4 5C 66 0E 04 04 00 42 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 86 0A 01 00 35 04 06 00 00 00 69 [22:40:22]Write i2c OK [22:40:22]MH_I2C_Read... [22:40:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:40:23]Read from MH i2c: E2 [22:40:23]MH_I2C_Read... [22:40:23]Read from MH i2c: E2 03 00 [22:40:23]MH_I2C_Read... [22:40:23]Read from MH i2c: E2 03 00 9D 12 00 90 00 23 [22:40:23]RAPDU: 90 00 [22:40:23]wFMCommunicate OK [22:40:23]wFMCommunicate request_size=11 [22:40:23]MH_SAM_APDU [22:40:23]CAPDU: 80 0D 02 02 06 C2 6E CE 45 66 3B [22:40:23]Write to MH i2c: E2 0E 00 9E 12 80 0D 02 02 06 00 C2 6E CE 45 66 3B 00 00 1A [22:40:23]Write i2c OK [22:40:23]MH_I2C_Read... [22:40:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:40:23]Read from MH i2c: E2 [22:40:23]MH_I2C_Read... [22:40:23]Read from MH i2c: E2 03 00 [22:40:23]MH_I2C_Read... [22:40:23]Read from MH i2c: E2 03 00 9E 12 00 90 00 24 [22:40:23]RAPDU: 90 00 [22:40:23]wFMCommunicate OK [22:40:23]wFMCommunicate request_size=4 [22:40:23]MH_SAM_APDU [22:40:23]CAPDU: 80 0D 03 02 [22:40:23]Write to MH i2c: E2 08 00 9F 12 80 0D 03 02 00 00 00 00 2C [22:40:23]Write i2c OK [22:40:23]MH_I2C_Read... [22:40:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:40:23]Read from MH i2c: E2 [22:40:23]MH_I2C_Read... [22:40:23]Read from MH i2c: E2 0B 00 [22:40:23]MH_I2C_Read... [22:40:23]Read from MH i2c: E2 0B 00 9F 12 00 0B 85 F6 EB C5 0B 78 61 90 00 47 [22:40:23]RAPDU: 0B 85 F6 EB C5 0B 78 61 90 00 [22:40:23]wFMCommunicate OK [22:40:23]SAM_PROTO_SignData done [22:40:23]FM_MakeSignedData done [22:40:23]CreateOFDProtocolMessage [22:40:23]wFMCommunicate request_size=4 [22:40:23]MH_SAM_APDU [22:40:23]CAPDU: 80 11 00 00 [22:40:23]Write to MH i2c: E2 08 00 A0 12 80 11 00 00 00 00 00 00 2C [22:40:23]Write i2c OK [22:40:23]MH_I2C_Read... [22:40:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:40:23]Read from MH i2c: E2 [22:40:23]MH_I2C_Read... [22:40:23]Read from MH i2c: E2 17 00 [22:40:23]MH_I2C_Read... [22:40:23]Read from MH i2c: E2 17 00 A0 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 77 [22:40:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [22:40:24]wFMCommunicate OK [22:40:24]CreateOFDProtocolMessage done [22:40:24]OFDSenderStorePacket 68230 [22:40:24]StoreOFDPacket docnum=68230 [22:40:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 01 00 00 BB E2 08 01 F0 37 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D2 04 01 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 EE DD 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EE DD 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8F 0F 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AF BA 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 EE DD 06 00 00 00 1F 04 02 00 01 00 12 04 04 00 F5 00 00 00 F4 03 04 00 D1 F4 5C 66 0E 04 04 00 42 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 86 0A 01 00 35 04 06 00 C2 6E CE 45 66 3B 0B 85 F6 EB C5 0B 78 61 [22:40:24]CheckFolder [22:40:24]dirname=/storage/ofd_packets [22:40:24]CheckFolder done [22:40:24]ProducePacketName [22:40:24]name=ofd_packets/00068230 [22:40:24]NVStorageSaveData ofd_packets/00068230 [22:40:24]File name is /storage/ofd_packets/00068230 [22:40:24]Write 302 bytes [22:40:24]NVStorageSaveData done [22:40:24]OFDSenderStorePacket done [22:40:24]KKMCreateOFDPacket done [22:40:24]NVStorageSaveData kkm_last_timestamp [22:40:24]File name is /storage/kkm_last_timestamp [22:40:24]Write 4 bytes [22:40:24]NVStorageSaveData done [22:40:24]ExternCall_PrintAddStr [22:40:24]wPrintStart [22:40:24]Write to MH i2c: 01 00 00 A1 12 B3 [22:40:24]OFD Sender: Processing packet 68230 [packets to send 26, broken 25] [22:40:24]ProducePacketName [22:40:24]name=ofd_packets/00068230 [22:40:24]OFD Sender: To server: pG, [22:40:24]CommunicateWithHost lk.salyk.kg:30040 [22:40:24]ConnectInit lk.salyk.kg [22:40:24]Write i2c OK [22:40:24]MH_I2C_Read... [22:40:24]Read from MH i2c: 01 [22:40:24]MH_I2C_Read... [22:40:24]Read from MH i2c: 01 07 00 [22:40:24]MH_I2C_Read... [22:40:24]Read from MH i2c: 01 07 00 A1 12 00 00 00 00 Connected sock=11 [22:40:24]00 Data to sent: FF 0F C8 [22:40:24]87 RasterBufferAndPrint [22:40:24]line Счет N : (1)706300 [22:40:24]line ИНН: 02508201610067 [22:40:24]line Контрольно-Кассовый Чек [22:40:24]95 line ПРОДАЖА [22:40:24]F6 70 line ТРК (МРК, ГНК) : 41 [22:40:24]47 line Товар: 2710124130 [22:40:24]2C line Super-92-К-5 [22:40:24]line 66.770 * 67.40 [22:40:24]line = 4500.30 [22:40:24]01 line НДС 12% НСП 1% [22:40:24]00 line > о реализуемом товаре [22:40:24]30 line ИТОГО: 4500.30 [22:40:24]line НСП 1% : 39.83 [22:40:24]line НДС 12% : 477.91 [22:40:24]line Наличными: 0.00 [22:40:24]30 line Безнал.: 4500.30 [22:40:24]line Место: АЗС № 62 "Партнер Нефть" [22:40:24]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [22:40:24]line СНО: Общий режим [22:40:24]30 line Чек 245 02.06.2024 22:40 [22:40:24]30 line Смена: 322 ФФД: 1.0 [22:40:24]30 line ЗНМ: 0300000181 [22:40:24]line РНМ: 0000000000098096 [22:40:24]line Версия ККМ: 001 [22:40:24]30 line Платежная система: АКБ Кыргызстан [22:40:24]30 line ФМ: 0000000000965400 [22:40:24]30 line ФД: 68230 [22:40:24]line ФПД: 213781162845755 [22:40:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240602T224017&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68230&fm=213781162845755&tin=02508201610067®Number=0000000000098096&sum=450030 [22:40:24]30 30 39 36 35 34 30 30 10 01 00 00 BB E2 08 01 F0 37 5A 03 01 00 written 0, free lines is 4095 [22:40:24]03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D2 04 01 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 EE DD 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EE DD 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 Write to MH i2c: 8F 01 0F 00 00 CB 12 DD [22:40:25]00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AF BA 00 00 00 Write i2c OK [22:40:25]MH_I2C_Read... [22:40:25]00 Read from MH i2c: 07 01 04 [22:40:25]06 00 00 00 MH_I2C_Read... [22:40:25]00 00 00 00 39 04 06 00 EE DD 06 00 00 00 1F 04 02 Read from MH i2c: 00 01 07 00 [22:40:25]01 MH_I2C_Read... [22:40:25]00 12 04 Read from MH i2c: 04 01 00 07 F5 00 00 CB 12 00 00 00 00 00 00 F4 00 F8 0D E9 [22:40:25]RasterBufferAndPrint [22:40:25]line [22:40:25]line [22:40:25]line [22:40:25]line [22:40:25]line [22:40:25]03 04 00 D1 F4 5C 66 0E 04 04 00 42 01 00 00 B9 written 0, free lines is 4095 [22:40:26]04 01 00 01 0D 04 10 00 30 30 30 MH_Cut [22:40:26]30 Write to MH i2c: 30 D1 30 30 30 30 01 30 00 30 D2 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 12 30 01 39 B6 36 35 34 30 [22:40:26]30 10 04 04 00 Write i2c OK [22:40:26]86 0A 01 00 35 04 06 00 C2 6E CE 45 66 3B 0B 85 F6 EB C5 0B 78 61 MH_I2C_Read... [22:40:26] [22:40:26]*** Cut start [22:40:26]*** Partial cut [22:40:26]*** CUTSNS_PIN = 1 [22:40:26]Read from MH i2c: *** CUTSNS_PIN = 0 [22:40:26]D1 [22:40:26]MH_I2C_Read... [22:40:26]Read from MH i2c: D1 01 00 [22:40:26]MH_I2C_Read... [22:40:26]Read from MH i2c: D1 01 00 D2 12 00 B5 [22:40:26]Write to MH i2c: 01 00 00 D3 12 E5 [22:40:26]Write i2c OK [22:40:26]MH_I2C_Read... [22:40:26]*** Brake cut motor [22:40:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 C9 EC 47 00 6A 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 35 34 30 30 Read from MH i2c: 10 01 04 [22:40:27]04 MH_I2C_Read... [22:40:27]00 Read from MH i2c: 86 0A 01 01 00 07 *** Stop cut motor [22:40:27]00 F4 03 04 [22:40:27]*** Cut end [22:40:27]00 D8 MH_I2C_Read... [22:40:27]9B 5C Read from MH i2c: 66 01 B6 07 04 01 00 00 00 5B D3 2B 12 5A 00 0F 19 33 6F 00 EE 00 [22:40:27]00 CommunicateWithHost err = 0 [22:40:27]CheckOFDResponse [22:40:27]1017 (14) - 77093643461234 [22:40:27]1041 (16) - 0000000000965400 [22:40:27]1040 (4) - 68230 [22:40:27]1012 (4) - 02.06.2024 16:20 [22:40:27]1206 (1) - 0 [22:40:27]OFD Sender: Remove packet 68230 [22:40:27]ProducePacketName [22:40:27]name=ofd_packets/00068230 [22:40:27]NVStorageDeleteData [22:40:27]00 FF 0F FA [22:40:27]process_action close_receipt done [22:40:27]requested_data is exist [22:40:27]produce_requested_data [22:40:27]requested_item fm.sn is exist - process it [22:40:27]wFMCommunicate request_size=4 [22:40:27]MH_SAM_APDU [22:40:27]CAPDU: 80 11 00 00 [22:40:27]Write to MH i2c: E2 08 00 D4 12 80 11 00 00 00 00 00 00 60 [22:40:27]Write i2c OK [22:40:27]MH_I2C_Read... [22:40:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:40:27]Read from MH i2c: E2 [22:40:27]MH_I2C_Read... [22:40:27]Read from MH i2c: E2 17 00 [22:40:27]MH_I2C_Read... [22:40:27]Read from MH i2c: E2 17 00 D4 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 AB [22:40:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [22:40:27]wFMCommunicate OK [22:40:28]requested_item fd.num is exist - process it [22:40:28]SAM_PROTO_GetFieldsCounters [22:40:28]wFMCommunicate request_size=4 [22:40:28]MH_SAM_APDU [22:40:28]CAPDU: 80 13 00 00 [22:40:28]Write to MH i2c: E2 08 00 D5 12 80 13 00 00 00 00 00 00 63 [22:40:28]Write i2c OK [22:40:28]MH_I2C_Read... [22:40:28]OFD Sender: No OFD packet to send [22:40:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:40:28]Read from MH i2c: E2 [22:40:28]MH_I2C_Read... [22:40:28]Read from MH i2c: E2 62 00 [22:40:28]MH_I2C_Read... [22:40:28]Read from MH i2c: E2 62 00 D5 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 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 86 0A 01 00 0E 04 04 00 42 01 00 00 12 04 04 00 F5 00 00 00 5E 04 04 00 F5 00 00 00 57 04 04 00 F6 00 00 00 19 04 04 00 00 00 00 00 90 00 36 [22:40: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 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 86 0A 01 00 0E 04 04 00 42 01 00 00 12 04 04 00 F5 00 00 00 5E 04 04 00 F5 00 00 00 57 04 04 00 F6 00 00 00 19 04 04 00 00 00 00 00 90 00 [22:40:28]wFMCommunicate OK [22:40:28]SAM_PROTO_GetFieldsCounters done [22:40:28]requested_item shift.num is exist - process it [22:40:29]requested_item shift.opened is exist - process it [22:40:29]req_shift_opened [22:40:29]FM_GetShiftState [22:40:29]SAM_PROTO_GetShiftState [22:40:29]wFMCommunicate request_size=4 [22:40:29]MH_SAM_APDU [22:40:29]CAPDU: 80 13 01 00 [22:40:29]Write to MH i2c: E2 08 00 D6 12 80 13 01 00 00 00 00 00 65 [22:40:29]Write i2c OK [22:40:29]MH_I2C_Read... [22:40:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:40:29]Read from MH i2c: E2 [22:40:29]MH_I2C_Read... [22:40:29]Read from MH i2c: E2 0E 00 [22:40:29]MH_I2C_Read... [22:40:29]Read from MH i2c: E2 0E 00 D6 12 00 09 00 01 A4 BB 5B 66 00 00 00 00 90 00 91 [22:40:29]RAPDU: 09 00 01 A4 BB 5B 66 00 00 00 00 90 00 [22:40:29]wFMCommunicate OK [22:40:29]SAM_PROTO_GetShiftState done [22:40:29]FM_GetShiftState done [22:40:29]req_shift_opened done [22:40:29]requested_item shift.open_date is exist - process it [22:40:29]req_shift_open_date [22:40:29]req_shift_open_date done [22:40:29]produce_requested_data done [22:40:29]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68230,"shift.num":322,"shift.opened":1,"shift.open_date":1717287844} [22:40:29]process_action_free close_receipt [22:40:29]json_value_free [22:40:29]json_value_free done [22:40:29]process_json_proto returns [22:40:29]Send response to host [22:40:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68230,"shift.num":322,"shift.opened":1,"shift.open_date":1717287844}}} [22:40:29]free response buf [22:40:29]execute_script done [22:40:29]execute_script returns [22:40:29]free content buf [22:40:29]Sock 9.Close socket [22:40:29]Sock 9.Thread stoped [22:40:33]OFD Sender: No OFD packet to send [22:40:38]OFD Sender: No OFD packet to send [22:40:43]OFD Sender: No OFD packet to send [22:40:48]OFD Sender: No OFD packet to send [22:40:53]OFD Sender: No OFD packet to send [22:40:53]ConnectInit Can't connect to host [22:40:58]OFD Sender: No OFD packet to send [22:41:03]OFD Sender: No OFD packet to send [22:41:08]OFD Sender: No OFD packet to send [22:41:13]OFD Sender: No OFD packet to send [22:41:18]OFD Sender: No OFD packet to send [22:41:23]OFD Sender: No OFD packet to send [22:41:28]OFD Sender: No OFD packet to send [22:41:33]OFD Sender: No OFD packet to send [22:41:38]OFD Sender: No OFD packet to send [22:41:43]OFD Sender: No OFD packet to send [22:41:48]OFD Sender: No OFD packet to send [22:41:53]OFD Sender: No OFD packet to send [22:41:58]OFD Sender: No OFD packet to send [22:42:00]accept exits with 10 [22:42:00]New connection [22:42:00]New thread 3066543460 created [22:42:00]Thread 3066686820 joined [22:42:00]Waiting for new connection... [22:42:00] Sock 10.Parse request [22:42:00]Sock 10.Check first char [22:42:00]Sock 10.First char is OK [22:42:00]request: POST /json_proto HTTP/1.0 [22:42:00]Method: POST [22:42:00]URL: /json_proto [22:42:00]Method is POST - this is cgi request [22:42:00]url: /json_proto [22:42:00]query_string will be loaded in cgi processing [22:42:00]execute_cgi json_proto POST (null) [22:42:00]execute_cgi path=json_proto method=POST [22:42:00]POST find Content-Length [22:42:00]Host: 172.17.36.132:8080 [22:42:00]Content-Length: 677 [22:42:00]Content-Type: application/json [22:42:00] [22:42:00]POST finish read [22:42:00]Found Content-Length = 677 [22:42:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706301", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:42:00]execute_script... [22:42:00]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706301", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:42:00]POST & json_proto [22:42:00]process_json_proto [22:42:00]json parsed OK: [22:42:00]protocol is kg_v1.0 [22:42:00]action value=close_receipt [22:42:00]process_action close_receipt [22:42:01]cmd_close_receipt [22:42:01]MH_GetDate [22:42:01]Write to MH i2c: F0 00 00 D7 12 D8 [22:42:01]Write i2c OK [22:42:01]MH_I2C_Read... [22:42:01]Read from MH i2c: F0 [22:42:01]MH_I2C_Read... [22:42:01]Read from MH i2c: F0 09 00 [22:42:01]MH_I2C_Read... [22:42:01]Read from MH i2c: F0 09 00 D7 12 00 3A F5 5C 66 B2 22 B0 64 BA [22:42:01]GetLastDocTimeStamp 1717368017 [22:42:01]current date 1717368122 [22:42:01]FM_GetShiftState [22:42:01]SAM_PROTO_GetShiftState [22:42:01]wFMCommunicate request_size=4 [22:42:01]MH_SAM_APDU [22:42:01]CAPDU: 80 13 01 00 [22:42:01]Write to MH i2c: E2 08 00 D8 12 80 13 01 00 00 00 00 00 67 [22:42:01]Write i2c OK [22:42:01]MH_I2C_Read... [22:42:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:42:01]Read from MH i2c: E2 [22:42:01]MH_I2C_Read... [22:42:01]Read from MH i2c: E2 0E 00 [22:42:01]MH_I2C_Read... [22:42:01]Read from MH i2c: E2 0E 00 D8 12 00 09 00 01 A4 BB 5B 66 00 00 00 00 90 00 93 [22:42:01]RAPDU: 09 00 01 A4 BB 5B 66 00 00 00 00 90 00 [22:42:01]wFMCommunicate OK [22:42:01]SAM_PROTO_GetShiftState done [22:42:01]FM_GetShiftState done [22:42:01]opened in 1717287844 [22:42:01]opened+sec_in_day 1717374244 [22:42:01]quantity*price = 50065 [22:42:01]sum+1 = 50067 [22:42:01]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.66 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.17 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 246 02.06.2024 22:42 Смена: 322 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 ФМ: 0000000000965400 ФД: 68231 ФПД: 78972441463427 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240602T224203&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68231&fm=78972441463427&tin=02508201610067®Number=0000000000098096&sum=50000 [22:42:06]StoreToDocumentArchive [22:42:06]shift 322 fd 68231 [22:42:06]save to /storage/0322/doc_00068231 [22:42:06]save last doc name /storage/0322/doc_00068231 to /storage/kkm_last_doc_name [22:42:06]save OK [22:42:06]Clear old archive folders... [22:42:06]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:42:06]tlvbuf is 005B7E50 [22:42:06]SAM_PROTO_ClearQueue [22:42:06]wFMCommunicate request_size=4 [22:42:06]MH_SAM_APDU [22:42:06]CAPDU: 80 09 00 00 [22:42:06]Write to MH i2c: E2 08 00 E5 12 80 09 00 00 00 00 00 00 69 [22:42:06]Write i2c OK [22:42:06]MH_I2C_Read... [22:42:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:42:06]Read from MH i2c: E2 [22:42:06]MH_I2C_Read... [22:42:06]Read from MH i2c: E2 03 00 [22:42:06]MH_I2C_Read... [22:42:06]Read from MH i2c: E2 03 00 E5 12 00 90 00 6B [22:42:06]RAPDU: 90 00 [22:42:06]wFMCommunicate OK [22:42:06]SAM_PROTO_ClearQueue done [22:42:06]KKMCreateOFDPacket [22:42:06]OFDProtocolAddRootSTLVToBuf [22:42:06]FM_MakeSignedData [22:42:06]FM_MakeSignedData [22:42:06]SAM_PROTO_SignData [22:42:06]wFMCommunicate request_size=4 [22:42:06]MH_SAM_APDU [22:42:06]CAPDU: 80 0D 01 02 [22:42:06]Write to MH i2c: E2 08 00 E6 12 80 0D 01 02 00 00 00 00 71 [22:42:06]Write i2c OK [22:42:06]MH_I2C_Read... [22:42:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:42:06]Read from MH i2c: E2 [22:42:06]MH_I2C_Read... [22:42:06]Read from MH i2c: E2 03 00 [22:42:06]MH_I2C_Read... [22:42:06]Read from MH i2c: E2 03 00 E6 12 00 90 00 6C [22:42:06]RAPDU: 90 00 [22:42:06]wFMCommunicate OK [22:42:06]wFMCommunicate request_size=255 [22:42:06]MH_SAM_APDU [22:42: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 34 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F6 00 00 00 F4 03 04 00 3B F5 5C 66 0E 04 04 00 42 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 87 0A 01 00 35 04 06 00 47 [22:42:07]Write to MH i2c: E2 02 01 E7 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 34 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F6 00 00 00 F4 03 04 00 3B F5 5C 66 0E 04 04 00 42 01 00 00 B9 OFD Sender: No OFD packet to send [22:42:08]04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 87 0A 01 00 35 04 06 00 47 00 00 27 [22:42:08]Write i2c OK [22:42:08]MH_I2C_Read... [22:42:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:42:08]Read from MH i2c: E2 [22:42:08]MH_I2C_Read... [22:42:08]Read from MH i2c: E2 03 00 [22:42:08]MH_I2C_Read... [22:42:08]Read from MH i2c: E2 03 00 E7 12 00 90 00 6D [22:42:08]RAPDU: 90 00 [22:42:08]wFMCommunicate OK [22:42:08]wFMCommunicate request_size=10 [22:42:08]MH_SAM_APDU [22:42:08]CAPDU: 80 0D 02 02 05 D3 34 52 0A 83 [22:42:09]Write to MH i2c: E2 0D 00 E8 12 80 0D 02 02 05 00 D3 34 52 0A 83 00 00 64 [22:42:09]Write i2c OK [22:42:09]MH_I2C_Read... [22:42:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:42:09]Read from MH i2c: E2 [22:42:09]MH_I2C_Read... [22:42:09]Read from MH i2c: E2 03 00 [22:42:09]MH_I2C_Read... [22:42:09]Read from MH i2c: E2 03 00 E8 12 00 90 00 6E [22:42:09]RAPDU: 90 00 [22:42:09]wFMCommunicate OK [22:42:09]wFMCommunicate request_size=4 [22:42:09]MH_SAM_APDU [22:42:09]CAPDU: 80 0D 03 02 [22:42:09]Write to MH i2c: E2 08 00 E9 12 80 0D 03 02 00 00 00 00 76 [22:42:09]Write i2c OK [22:42:09]MH_I2C_Read... [22:42:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:42:09]Read from MH i2c: E2 [22:42:09]MH_I2C_Read... [22:42:09]Read from MH i2c: E2 0B 00 [22:42:09]MH_I2C_Read... [22:42:09]Read from MH i2c: E2 0B 00 E9 12 00 57 66 69 BE DB 97 9A 21 90 00 88 [22:42:09]RAPDU: 57 66 69 BE DB 97 9A 21 90 00 [22:42:09]wFMCommunicate OK [22:42:09]SAM_PROTO_SignData done [22:42:09]FM_MakeSignedData done [22:42:09]CreateOFDProtocolMessage [22:42:09]wFMCommunicate request_size=4 [22:42:09]MH_SAM_APDU [22:42:09]CAPDU: 80 11 00 00 [22:42:09]Write to MH i2c: E2 08 00 EA 12 80 11 00 00 00 00 00 00 76 [22:42:09]Write i2c OK [22:42:09]MH_I2C_Read... [22:42:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:42:09]Read from MH i2c: E2 [22:42:09]MH_I2C_Read... [22:42:09]Read from MH i2c: E2 17 00 [22:42:09]MH_I2C_Read... [22:42:09]Read from MH i2c: E2 17 00 EA 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 C1 [22:42:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [22:42:09]wFMCommunicate OK [22:42:09]CreateOFDProtocolMessage done [22:42:09]OFDSenderStorePacket 68231 [22:42:09]StoreOFDPacket docnum=68231 [22:42:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 12 E3 07 01 EA 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 34 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F6 00 00 00 F4 03 04 00 3B F5 5C 66 0E 04 04 00 42 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 87 0A 01 00 35 04 06 00 47 D3 34 52 0A 83 57 66 69 BE DB 97 9A 21 [22:42:09]CheckFolder [22:42:09]dirname=/storage/ofd_packets [22:42:09]CheckFolder done [22:42:09]ProducePacketName [22:42:09]name=ofd_packets/00068231 [22:42:09]NVStorageSaveData ofd_packets/00068231 [22:42:09]File name is /storage/ofd_packets/00068231 [22:42:09]Write 301 bytes [22:42:09]NVStorageSaveData done [22:42:09]OFDSenderStorePacket done [22:42:09]KKMCreateOFDPacket done [22:42:09]NVStorageSaveData kkm_last_timestamp [22:42:09]File name is /storage/kkm_last_timestamp [22:42:09]Write 4 bytes [22:42:09]NVStorageSaveData done [22:42:10]ExternCall_PrintAddStr [22:42:10]wPrintStart [22:42:10]Write to MH i2c: 01 00 00 EB 12 FD OFD Sender: Processing packet 68231 [packets to send 26, broken 25] [22:42:10] [22:42:10]ProducePacketName [22:42:10]name=ofd_packets/00068231 [22:42:10]OFD Sender: To server: pG, [22:42:10]CommunicateWithHost lk.salyk.kg:30040 [22:42:10]ConnectInit lk.salyk.kg [22:42:10]Write i2c OK [22:42:10]MH_I2C_Read... [22:42:10]Read from MH i2c: 01 [22:42:10]MH_I2C_Read... [22:42:10]Read from MH i2c: 01 07 00 [22:42:10]MH_I2C_Read... [22:42:10]Read from MH i2c: 01 07 00 EB 12 00 00 00 00 00 FF 0F Connected sock=7 [22:42:10]12 [22:42:10]RasterBufferAndPrint [22:42:10]line Счет N : (1)706301 [22:42:10]Data to sent: line ИНН: 02508201610067 [22:42:10]87 line Контрольно-Кассовый Чек [22:42:10]95 line ПРОДАЖА [22:42:10]line ТРК (МРК, ГНК) : 53 [22:42:10]line Товар: 2710124130 [22:42:10]F6 line Аи-92-К-4 [22:42:10]70 line 7.540 * 66.40 [22:42:10]47 line = 500.66 [22:42:10]2C line НДС 12% НСП 1% [22:42:10]01 00 30 30 line > о реализуемом товаре [22:42:10]30 line ОКРУГЛЕНИЕ: -0.66 [22:42:10]30 line ИТОГО: 500.00 [22:42:10]line Внесено: 500.00 [22:42:10]line СДАЧА: 0.00 [22:42:10]line НСП 1% : 4.43 [22:42:10]line НДС 12% : 53.17 [22:42:10]line Наличными: 500.00 [22:42:10]line Безнал.: 0.00 [22:42:10]line Место: АЗС № 62 "Партнер Нефть" [22:42:10]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [22:42:10]line СНО: Общий режим [22:42:10]line Чек 246 02.06.2024 22:42 [22:42:10]line Смена: 322 ФФД: 1.0 [22:42:10]line ЗНМ: 0300000181 [22:42:10]line РНМ: 0000000000098096 [22:42:10]line Версия ККМ: 001 [22:42:10]line ФМ: 0000000000965400 [22:42:10]line ФД: 68231 [22:42:10]30 30 30 30 30 30 39 36 35 line ФПД: 78972441463427 [22:42:10]34 30 30 0F line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240602T224203&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68231&fm=78972441463427&tin=02508201610067®Number=0000000000098096&sum=50000 [22:42:10]01 00 00 12 E3 written 0, free lines is 4095 [22:42:10]07 01 EA 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 34 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 Write to MH i2c: 00 00 EE 03 01 0F 00 00 00 F2 03 01 00 16 01 13 F3 29 03 [22:42:11]06 Write i2c OK [22:42:11]00 MH_I2C_Read... [22:42:11]C5 14 00 Read from MH i2c: 00 01 00 [22:42:11]00 MH_I2C_Read... [22:42:11]07 04 06 00 Read from MH i2c: 50 C3 00 00 01 00 07 00 00 39 04 06 00 [22:42:11]00 00 00 00 MH_I2C_Read... [22:42:11]00 Read from MH i2c: 00 1F 01 04 07 02 00 00 01 00 12 16 04 04 00 F6 13 00 00 00 00 00 00 00 00 8C F4 0D 03 C9 04 [22:42:11]RasterBufferAndPrint [22:42:11]line [22:42:11]00 line [22:42:11]3B line [22:42:11]F5 line [22:42:11]line [22:42:11]5C 66 0E 04 04 00 42 01 00 00 B9 04 written 0, free lines is 3984 [22:42:11]01 00 01 MH_Cut [22:42:11]0D Write to MH i2c: 04 10 00 30 D1 30 01 30 00 30 1D 30 30 30 30 30 30 30 13 39 01 38 02 30 39 36 [22:42:11]11 Write i2c OK [22:42:11]04 MH_I2C_Read... [22:42:11]10 00 30 30 Read from MH i2c: 30 30 30 30 D1 30 [22:42:11]30 MH_I2C_Read... [22:42:11]30 30 39 Read from MH i2c: 36 D1 35 01 34 00 30 [22:42:11]MH_I2C_Read... [22:42:11]*** Cut start [22:42:11]Read from MH i2c: 30 D1 10 01 00 1D 13 04 *** Partial cut [22:42:11]04 00 01 [22:42:12]00 *** CUTSNS_PIN = 1 [22:42:12]*** CUTSNS_PIN = 0 [22:42:12]87 Write to MH i2c: 01 00 00 0A 1E 01 13 00 31 [22:42:12]Write i2c OK [22:42:12]MH_I2C_Read... [22:42:12]35 04 06 00 47 D3 34 52 0A *** Brake cut motor [22:42:12]83 57 66 69 BE DB 97 9A 21 [22:42:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 Read from MH i2c: 36 35 01 34 30 30 [22:42:12]4F MH_I2C_Read... [22:42:12]*** Stop cut motor [22:42:12]Read from MH i2c: 00 01 *** Cut end [22:42:12]00 00 E7 07 E0 47 00 EB 00 91 [22:42:12]MH_I2C_Read... [22:42:12]A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 Read from MH i2c: 36 01 07 00 1E 31 13 32 00 33 00 34 00 00 00 FF 11 0F 04 46 10 [22:42:12]process_action close_receipt done [22:42:12]requested_data is exist [22:42:12]00 produce_requested_data [22:42:12]30 requested_item fm.sn is exist - process it [22:42:13]30 wFMCommunicate request_size=4 [22:42:13]MH_SAM_APDU [22:42:13]CAPDU: 80 11 00 00 [22:42:13]Write to MH i2c: E2 08 00 1F 13 80 11 00 30 00 30 00 30 30 30 30 00 00 30 30 39 36 35 34 30 30 10 04 04 00 87 0A 01 00 F4 03 04 00 00 41 AC 9C [22:42:13]5C Write i2c OK [22:42:13]66 MH_I2C_Read... [22:42:13]B6 04 01 00 00 *** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:42:13]96 5E 08 5A 57 1E FE 7F [22:42:13]CommunicateWithHost err = 0 [22:42:13]CheckOFDResponse [22:42:13]1017 (14) - 77093643461234 [22:42:13]1041 (16) - 0000000000965400 [22:42:13]1040 (4) - 68231 [22:42:13]1012 (4) - 02.06.2024 16:22 [22:42:13]1206 (1) - 0 [22:42:13]OFD Sender: Remove packet 68231 [22:42:13]ProducePacketName [22:42:13]name=ofd_packets/00068231 [22:42:13]NVStorageDeleteData [22:42:13]Read from MH i2c: E2 [22:42:13]MH_I2C_Read... [22:42:13]Read from MH i2c: E2 17 00 [22:42:13]MH_I2C_Read... [22:42:13]Read from MH i2c: E2 17 00 1F 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 F7 [22:42:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [22:42:13]wFMCommunicate OK [22:42:13]requested_item fd.num is exist - process it [22:42:13]SAM_PROTO_GetFieldsCounters [22:42:13]wFMCommunicate request_size=4 [22:42:13]MH_SAM_APDU [22:42:13]CAPDU: 80 13 00 00 [22:42:13]Write to MH i2c: E2 08 00 20 13 80 13 00 00 00 00 00 00 AF [22:42:13]Write i2c OK [22:42:13]MH_I2C_Read... [22:42:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:42:14]Read from MH i2c: E2 [22:42:14]MH_I2C_Read... [22:42:14]Read from MH i2c: E2 62 00 OFD Sender: No OFD packet to send [22:42:14] [22:42:14]MH_I2C_Read... [22:42:14]Read from MH i2c: E2 62 00 20 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 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 87 0A 01 00 0E 04 04 00 42 01 00 00 12 04 04 00 F6 00 00 00 5E 04 04 00 F6 00 00 00 57 04 04 00 F7 00 00 00 19 04 04 00 00 00 00 00 90 00 86 [22:42: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 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 87 0A 01 00 0E 04 04 00 42 01 00 00 12 04 04 00 F6 00 00 00 5E 04 04 00 F6 00 00 00 57 04 04 00 F7 00 00 00 19 04 04 00 00 00 00 00 90 00 [22:42:14]wFMCommunicate OK [22:42:14]SAM_PROTO_GetFieldsCounters done [22:42:14]requested_item shift.num is exist - process it [22:42:14]requested_item shift.opened is exist - process it [22:42:14]req_shift_opened [22:42:14]FM_GetShiftState [22:42:14]SAM_PROTO_GetShiftState [22:42:14]wFMCommunicate request_size=4 [22:42:14]MH_SAM_APDU [22:42:14]CAPDU: 80 13 01 00 [22:42:14]Write to MH i2c: E2 08 00 21 13 80 13 01 00 00 00 00 00 B1 [22:42:14]Write i2c OK [22:42:14]MH_I2C_Read... [22:42:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:42:14]Read from MH i2c: E2 [22:42:14]MH_I2C_Read... [22:42:14]Read from MH i2c: E2 0E 00 [22:42:14]MH_I2C_Read... [22:42:14]Read from MH i2c: E2 0E 00 21 13 00 09 00 01 A4 BB 5B 66 00 00 00 00 90 00 DD [22:42:15]RAPDU: 09 00 01 A4 BB 5B 66 00 00 00 00 90 00 [22:42:15]wFMCommunicate OK [22:42:15]SAM_PROTO_GetShiftState done [22:42:15]FM_GetShiftState done [22:42:15]req_shift_opened done [22:42:15]requested_item shift.open_date is exist - process it [22:42:15]req_shift_open_date [22:42:15]req_shift_open_date done [22:42:15]produce_requested_data done [22:42:15]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68231,"shift.num":322,"shift.opened":1,"shift.open_date":1717287844} [22:42:15]process_action_free close_receipt [22:42:15]json_value_free [22:42:15]json_value_free done [22:42:15]process_json_proto returns [22:42:15]Send response to host [22:42:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68231,"shift.num":322,"shift.opened":1,"shift.open_date":1717287844}}} [22:42:15]free response buf [22:42:15]execute_script done [22:42:15]execute_script returns [22:42:15]free content buf [22:42:15]Sock 10.Close socket [22:42:15]Sock 10.Thread stoped [22:42:19]OFD Sender: No OFD packet to send [22:42:24]OFD Sender: No OFD packet to send [22:42:29]OFD Sender: No OFD packet to send [22:42:34]OFD Sender: No OFD packet to send [22:42:39]OFD Sender: No OFD packet to send [22:42:44]OFD Sender: No OFD packet to send [22:42:49]OFD Sender: No OFD packet to send [22:42:54]OFD Sender: No OFD packet to send [22:42:59]OFD Sender: No OFD packet to send [22:43:04]OFD Sender: No OFD packet to send [22:43:09]OFD Sender: No OFD packet to send [22:43:14]OFD Sender: No OFD packet to send [22:43:19]OFD Sender: No OFD packet to send [22:43:24]OFD Sender: No OFD packet to send [22:43:29]OFD Sender: No OFD packet to send [22:43:34]OFD Sender: No OFD packet to send [22:43:39]OFD Sender: No OFD packet to send [22:43:44]OFD Sender: No OFD packet to send [22:43:49]OFD Sender: No OFD packet to send [22:43:54]OFD Sender: No OFD packet to send [22:43:59]OFD Sender: No OFD packet to send [22:44:04]OFD Sender: No OFD packet to send [22:44:09]OFD Sender: No OFD packet to send [22:44:14]OFD Sender: No OFD packet to send [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:05]accept exits with 9 [22:46:05]New connection [22:46:05]New thread 3066686820 created [22:46:05]Thread 3066543460 joined [22:46:05]Waiting for new connection... [22:46:05] Sock 9.Parse request [22:46:05]Sock 9.Check first char [22:46:05]Sock 9.First char is OK [22:46:05]request: POST /json_proto HTTP/1.0 [22:46:05]Method: POST [22:46:05]URL: /json_proto [22:46:05]Method is POST - this is cgi request [22:46:05]url: /json_proto [22:46:05]query_string will be loaded in cgi processing [22:46:05]execute_cgi json_proto POST (null) [22:46:05]execute_cgi path=json_proto method=POST [22:46:05]POST find Content-Length [22:46:05]Host: 172.17.36.132:8080 [22:46:05]Content-Length: 670 [22:46:05]Content-Type: application/json [22:46:05] [22:46:05]POST finish read [22:46:05]Found Content-Length = 670 [22:46:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706303", "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" : 67.40, "quantity" : 8.910, "sum" : 600.53, "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:46:05]execute_script... [22:46: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)706303", "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" : 67.40, "quantity" : 8.910, "sum" : 600.53, "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:46:05]POST & json_proto [22:46:05]process_json_proto [22:46:05]json parsed OK: [22:46:05]protocol is kg_v1.0 [22:46:05]action value=close_receipt [22:46:05]process_action close_receipt [22:46:05]cmd_close_receipt [22:46:05]MH_GetDate [22:46:05]Write to MH i2c: F0 00 00 22 13 24 [22:46:05]Write i2c OK [22:46:05]MH_I2C_Read... [22:46:05]Read from MH i2c: F0 [22:46:05]MH_I2C_Read... [22:46:05]Read from MH i2c: F0 09 00 [22:46:05]MH_I2C_Read... [22:46:05]Read from MH i2c: F0 09 00 22 13 00 2F F6 5C 66 B2 22 B0 64 FC [22:46:05]GetLastDocTimeStamp 1717368123 [22:46:05]current date 1717368367 [22:46:05]FM_GetShiftState [22:46:05]SAM_PROTO_GetShiftState [22:46:05]wFMCommunicate request_size=4 [22:46:05]MH_SAM_APDU [22:46:05]CAPDU: 80 13 01 00 [22:46:05]Write to MH i2c: E2 08 00 23 13 80 13 01 00 00 00 00 00 B3 [22:46:05]Write i2c OK [22:46:05]MH_I2C_Read... [22:46:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:46:05]Read from MH i2c: E2 [22:46:05]MH_I2C_Read... [22:46:05]Read from MH i2c: E2 0E 00 [22:46:05]MH_I2C_Read... [22:46:05]Read from MH i2c: E2 0E 00 23 13 00 09 00 01 A4 BB 5B 66 00 00 00 00 90 00 DF [22:46:05]RAPDU: 09 00 01 A4 BB 5B 66 00 00 00 00 90 00 [22:46:05]wFMCommunicate OK [22:46:05]SAM_PROTO_GetShiftState done [22:46:05]FM_GetShiftState done [22:46:05]opened in 1717287844 [22:46:05]opened+sec_in_day 1717374244 [22:46:05]quantity*price = 60053 [22:46:05]sum+1 = 60054 [22:46:05]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.53 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.77 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 247 02.06.2024 22:46 Смена: 322 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 ФМ: 0000000000965400 ФД: 68232 ФПД: 43003036845748 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240602T224607&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68232&fm=43003036845748&tin=02508201610067®Number=0000000000098096&sum=60000 [22:46:07]StoreToDocumentArchive [22:46:07]shift 322 fd 68232 [22:46:07]save to /storage/0322/doc_00068232 [22:46:07]save last doc name /storage/0322/doc_00068232 to /storage/kkm_last_doc_name [22:46:07]save OK [22:46:07]Clear old archive folders... [22:46:07]ProcessDocumentItem done err = 0, tmpTLVsize=252 [22:46:07]tlvbuf is 002290F0 [22:46:07]SAM_PROTO_ClearQueue [22:46:07]wFMCommunicate request_size=4 [22:46:07]MH_SAM_APDU [22:46:07]CAPDU: 80 09 00 00 [22:46:07]Write to MH i2c: E2 08 00 30 13 80 09 00 00 00 00 00 00 B5 [22:46:08]Write i2c OK [22:46:08]MH_I2C_Read... [22:46:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:46:08]Read from MH i2c: E2 [22:46:08]MH_I2C_Read... [22:46:08]Read from MH i2c: E2 03 00 [22:46:08]MH_I2C_Read... [22:46:08]Read from MH i2c: E2 03 00 30 13 00 90 00 B7 [22:46:08]RAPDU: 90 00 [22:46:08]wFMCommunicate OK [22:46:08]SAM_PROTO_ClearQueue done [22:46:08]KKMCreateOFDPacket [22:46:08]OFDProtocolAddRootSTLVToBuf [22:46:08]FM_MakeSignedData [22:46:08]FM_MakeSignedData [22:46:08]SAM_PROTO_SignData [22:46:08]wFMCommunicate request_size=4 [22:46:08]MH_SAM_APDU [22:46:08]CAPDU: 80 0D 01 02 [22:46:08]Write to MH i2c: E2 08 00 31 13 80 0D 01 02 00 00 00 00 BD [22:46:08]Write i2c OK [22:46:08]MH_I2C_Read... [22:46:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:46:08]Read from MH i2c: E2 [22:46:08]MH_I2C_Read... [22:46:08]Read from MH i2c: E2 03 00 [22:46:08]MH_I2C_Read... [22:46:08]Read from MH i2c: E2 03 00 31 13 00 90 00 B8 [22:46:08]RAPDU: 90 00 [22:46:08]wFMCommunicate OK [22:46:08]wFMCommunicate request_size=255 [22:46:08]MH_SAM_APDU [22:46: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 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CE 22 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 95 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E9 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F7 00 00 00 F4 03 04 00 2F F6 5C 66 0E 04 04 00 42 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 88 0A 01 00 35 04 06 00 [22:46:08]Write to MH i2c: E2 02 01 32 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 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CE 22 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 95 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E9 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F7 00 00 00 F4 03 04 00 2F F6 5C 66 0E 04 04 00 42 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 88 0A 01 00 35 04 06 00 00 00 2B [22:46:09]Write i2c OK [22:46:09]MH_I2C_Read... [22:46:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:46:09]Read from MH i2c: E2 [22:46:09]MH_I2C_Read... [22:46:09]Read from MH i2c: E2 03 00 [22:46:09]MH_I2C_Read... [22:46:09]Read from MH i2c: E2 03 00 32 13 00 90 00 B9 [22:46:09]RAPDU: 90 00 [22:46:09]wFMCommunicate OK [22:46:09]wFMCommunicate request_size=11 [22:46:09]MH_SAM_APDU [22:46:09]CAPDU: 80 0D 02 02 06 27 1C 6C BC 46 B4 [22:46:09]Write to MH i2c: E2 0E 00 33 13 80 0D 02 02 06 00 27 1C 6C BC 46 B4 00 00 31 [22:46:09]OFD Sender: No OFD packet to send [22:46:09]Write i2c OK [22:46:09]MH_I2C_Read... [22:46:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:46:09]Read from MH i2c: E2 [22:46:09]MH_I2C_Read... [22:46:09]Read from MH i2c: E2 03 00 [22:46:09]MH_I2C_Read... [22:46:09]Read from MH i2c: E2 03 00 33 13 00 90 00 BA [22:46:09]RAPDU: 90 00 [22:46:09]wFMCommunicate OK [22:46:09]wFMCommunicate request_size=4 [22:46:09]MH_SAM_APDU [22:46:09]CAPDU: 80 0D 03 02 [22:46:09]Write to MH i2c: E2 08 00 34 13 80 0D 03 02 00 00 00 00 C2 [22:46:09]Write i2c OK [22:46:09]MH_I2C_Read... [22:46:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:46:09]Read from MH i2c: E2 [22:46:09]MH_I2C_Read... [22:46:09]Read from MH i2c: E2 0B 00 [22:46:09]MH_I2C_Read... [22:46:09]Read from MH i2c: E2 0B 00 34 13 00 85 63 6C 3C B8 81 BB C0 90 00 07 [22:46:09]RAPDU: 85 63 6C 3C B8 81 BB C0 90 00 [22:46:09]wFMCommunicate OK [22:46:09]SAM_PROTO_SignData done [22:46:09]FM_MakeSignedData done [22:46:09]CreateOFDProtocolMessage [22:46:09]wFMCommunicate request_size=4 [22:46:09]MH_SAM_APDU [22:46:09]CAPDU: 80 11 00 00 [22:46:09]Write to MH i2c: E2 08 00 35 13 80 11 00 00 00 00 00 00 C2 [22:46:09]Write i2c OK [22:46:09]MH_I2C_Read... [22:46:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:46:09]Read from MH i2c: E2 [22:46:09]MH_I2C_Read... [22:46:09]Read from MH i2c: E2 17 00 [22:46:09]MH_I2C_Read... [22:46:09]Read from MH i2c: E2 17 00 35 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 0D [22:46:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [22:46:09]wFMCommunicate OK [22:46:09]CreateOFDProtocolMessage done [22:46:09]OFDSenderStorePacket 68232 [22:46:09]StoreOFDPacket docnum=68232 [22:46:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 01 00 00 33 05 08 01 18 D5 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CE 22 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 95 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E9 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F7 00 00 00 F4 03 04 00 2F F6 5C 66 0E 04 04 00 42 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 88 0A 01 00 35 04 06 00 27 1C 6C BC 46 B4 85 63 6C 3C B8 81 BB C0 [22:46:09]CheckFolder [22:46:09]dirname=/storage/ofd_packets [22:46:09]CheckFolder done [22:46:09]ProducePacketName [22:46:09]name=ofd_packets/00068232 [22:46:09]NVStorageSaveData ofd_packets/00068232 [22:46:09]File name is /storage/ofd_packets/00068232 [22:46:09]Write 302 bytes [22:46:09]NVStorageSaveData done [22:46:09]OFDSenderStorePacket done [22:46:09]KKMCreateOFDPacket done [22:46:09]NVStorageSaveData kkm_last_timestamp [22:46:09]File name is /storage/kkm_last_timestamp [22:46:09]Write 4 bytes [22:46:09]NVStorageSaveData done [22:46:09]ExternCall_PrintAddStr [22:46:09]wPrintStart [22:46:09]Write to MH i2c: 01 00 00 36 13 49 [22:46:09]Write i2c OK [22:46:09]MH_I2C_Read... [22:46:09]Read from MH i2c: 01 [22:46:09]MH_I2C_Read... [22:46:09]Read from MH i2c: 01 07 00 [22:46:09]MH_I2C_Read... [22:46:09]OFD Sender: Processing packet 68232 [packets to send 26, broken 25] [22:46:09]ProducePacketName [22:46:09]name=ofd_packets/00068232 [22:46:09]OFD Sender: To server: pG, [22:46:10]CommunicateWithHost lk.salyk.kg:30040 [22:46:10]ConnectInit lk.salyk.kg [22:46:10]Read from MH i2c: 01 07 00 36 13 00 00 00 00 00 FF 0F 5E [22:46:10]RasterBufferAndPrint [22:46:10]line Счет N : (1)706303 [22:46:10]line ИНН: 02508201610067 [22:46:10]line Контрольно-Кассовый Чек [22:46:10]line ПРОДАЖА [22:46:10]line ТРК (МРК, ГНК) : 31 [22:46:10]line Товар: 2710124130 [22:46:10]line Super-92-К-5 [22:46:10]line 8.910 * 67.40 [22:46:10]line = 600.53 [22:46:10]line НДС 12% НСП 1% [22:46:10]line > о реализуемом товаре [22:46:10]line ОКРУГЛЕНИЕ: -0.53 [22:46:10]line ИТОГО: 600.00 [22:46:10]line Внесено: 600.00 [22:46:10]line СДАЧА: 0.00 [22:46:10]line НСП 1% : 5.31 [22:46:10]line НДС 12% : 63.77 [22:46:10]line Наличными: 600.00 [22:46:10]line Безнал.: 0.00 [22:46:10]line Место: АЗС № 62 "Партнер Нефть" [22:46:10]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [22:46:10]line СНО: Общий режим [22:46:10]line Чек 247 02.06.2024 22:46 [22:46:10]Connected sock=10 [22:46:10]line Смена: 322 ФФД: 1.0 [22:46:10]Data to sent: line ЗНМ: 0300000181 [22:46:10]87 line РНМ: 0000000000098096 [22:46:10]line Версия ККМ: 001 [22:46:10]line ФМ: 0000000000965400 [22:46:10]line ФД: 68232 [22:46:10]line ФПД: 43003036845748 [22:46:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240602T224607&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68232&fm=43003036845748&tin=02508201610067®Number=0000000000098096&sum=60000 [22:46:10]95 F6 70 written 0, free lines is 4095 [22:46:10]47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 01 00 00 33 05 08 01 18 D5 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CE 22 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 95 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E9 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F7 00 00 00 F4 03 04 00 2F F6 5C 66 0E 04 04 00 42 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 88 0A 01 00 35 04 06 00 Write to MH i2c: 27 01 1C 00 6C 00 BC 61 13 46 74 B4 85 63 6C 3C B8 81 [22:46:10]BB Write i2c OK [22:46:10]C0 MH_I2C_Read... [22:46:10] [22:46:10]Read from MH i2c: 01 [22:46:10]MH_I2C_Read... [22:46:10]Read from MH i2c: 01 07 00 [22:46:10]MH_I2C_Read... [22:46:10]Read from MH i2c: 01 07 00 61 13 00 00 00 00 00 45 0E CE [22:46:10]RasterBufferAndPrint [22:46:10]line [22:46:10]line [22:46:10]line [22:46:10]line [22:46:10]line [22:46:10]written 0, free lines is 3738 [22:46:10]MH_Cut [22:46:10]Write to MH i2c: D1 01 00 68 13 01 4D [22:46:10]Write i2c OK [22:46:10]MH_I2C_Read... [22:46:10]Read from MH i2c: D1 [22:46:10]MH_I2C_Read... [22:46:10]Read from MH i2c: D1 01 00 [22:46:10]MH_I2C_Read... [22:46:10]Read from MH i2c: D1 01 00 68 13 00 4C [22:46:10]Write to MH i2c: 01 00 00 69 13 7C [22:46:11]Write i2c OK [22:46:11]MH_I2C_Read... [22:46:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 5E 2D 47 00 3A 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 35 34 30 30 10 04 04 00 88 0A 01 00 F4 03 04 00 30 9D 5C 66 B6 04 01 00 00 12 8C 18 02 62 19 BF 1D [22:46:11]CommunicateWithHost err = 0 [22:46:11]CheckOFDResponse [22:46:11]1017 (14) - 77093643461234 [22:46:11]1041 (16) - 0000000000965400 [22:46:11]1040 (4) - 68232 [22:46:11]1012 (4) - 02.06.2024 16:26 [22:46:11]1206 (1) - 0 [22:46:11]OFD Sender: Remove packet 68232 [22:46:11]ProducePacketName [22:46:11]name=ofd_packets/00068232 [22:46:11]NVStorageDeleteData [22:46:11]*** Cut start [22:46:11]*** Partial cut [22:46:11]*** CUTSNS_PIN = 1 [22:46:11]*** CUTSNS_PIN = 0 [22:46:11]*** Brake cut motor [22:46:11]OFD Sender: No OFD packet to send [22:46:11]Read from MH i2c: 01 [22:46:11]MH_I2C_Read... [22:46:11]*** Stop cut motor [22:46:11]*** Cut end [22:46:11]Read from MH i2c: 01 07 00 [22:46:12]MH_I2C_Read... [22:46:12]Read from MH i2c: 01 07 00 69 13 00 00 00 00 00 FF 0F 91 [22:46:12]process_action close_receipt done [22:46:12]requested_data is exist [22:46:12]produce_requested_data [22:46:12]requested_item fm.sn is exist - process it [22:46:12]wFMCommunicate request_size=4 [22:46:12]MH_SAM_APDU [22:46:12]CAPDU: 80 11 00 00 [22:46:12]Write to MH i2c: E2 08 00 6A 13 80 11 00 00 00 00 00 00 F7 [22:46:12]Write i2c OK [22:46:12]MH_I2C_Read... [22:46:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:46:12]Read from MH i2c: E2 [22:46:12]MH_I2C_Read... [22:46:12]Read from MH i2c: E2 17 00 [22:46:12]MH_I2C_Read... [22:46:12]Read from MH i2c: E2 17 00 6A 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 42 [22:46:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [22:46:12]wFMCommunicate OK [22:46:12]requested_item fd.num is exist - process it [22:46:12]SAM_PROTO_GetFieldsCounters [22:46:12]wFMCommunicate request_size=4 [22:46:12]MH_SAM_APDU [22:46:12]CAPDU: 80 13 00 00 [22:46:12]Write to MH i2c: E2 08 00 6B 13 80 13 00 00 00 00 00 00 FA [22:46:12]Write i2c OK [22:46:12]MH_I2C_Read... [22:46:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:46:12]Read from MH i2c: E2 [22:46:12]MH_I2C_Read... [22:46:12]Read from MH i2c: E2 62 00 [22:46:12]MH_I2C_Read... [22:46:12]Read from MH i2c: E2 62 00 6B 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 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 88 0A 01 00 0E 04 04 00 42 01 00 00 12 04 04 00 F7 00 00 00 5E 04 04 00 F7 00 00 00 57 04 04 00 F8 00 00 00 19 04 04 00 00 00 00 00 90 00 D5 [22:46: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 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 88 0A 01 00 0E 04 04 00 42 01 00 00 12 04 04 00 F7 00 00 00 5E 04 04 00 F7 00 00 00 57 04 04 00 F8 00 00 00 19 04 04 00 00 00 00 00 90 00 [22:46:12]wFMCommunicate OK [22:46:12]SAM_PROTO_GetFieldsCounters done [22:46:12]requested_item shift.num is exist - process it [22:46:12]requested_item shift.opened is exist - process it [22:46:12]req_shift_opened [22:46:12]FM_GetShiftState [22:46:12]SAM_PROTO_GetShiftState [22:46:12]wFMCommunicate request_size=4 [22:46:12]MH_SAM_APDU [22:46:12]CAPDU: 80 13 01 00 [22:46:12]Write to MH i2c: E2 08 00 6C 13 80 13 01 00 00 00 00 00 FC [22:46:12]Write i2c OK [22:46:12]MH_I2C_Read... [22:46:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:46:12]Read from MH i2c: E2 [22:46:12]MH_I2C_Read... [22:46:12]Read from MH i2c: E2 0E 00 [22:46:12]MH_I2C_Read... [22:46:12]Read from MH i2c: E2 0E 00 6C 13 00 09 00 01 A4 BB 5B 66 00 00 00 00 90 00 28 [22:46:12]RAPDU: 09 00 01 A4 BB 5B 66 00 00 00 00 90 00 [22:46:12]wFMCommunicate OK [22:46:12]SAM_PROTO_GetShiftState done [22:46:12]FM_GetShiftState done [22:46:12]req_shift_opened done [22:46:12]requested_item shift.open_date is exist - process it [22:46:12]req_shift_open_date [22:46:12]req_shift_open_date done [22:46:12]produce_requested_data done [22:46:12]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68232,"shift.num":322,"shift.opened":1,"shift.open_date":1717287844} [22:46:12]process_action_free close_receipt [22:46:12]json_value_free [22:46:12]json_value_free done [22:46:12]process_json_proto returns [22:46:12]Send response to host [22:46:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68232,"shift.num":322,"shift.opened":1,"shift.open_date":1717287844}}} [22:46:12]free response buf [22:46:12]execute_script done [22:46:12]execute_script returns [22:46:12]free content buf [22:46:12]Sock 9.Close socket [22:46:12]Sock 9.Thread stoped [22:46:16]OFD Sender: No OFD packet to send [22:46:21]OFD Sender: No OFD packet to send [22:46:26]OFD Sender: No OFD packet to send [22:46:31]OFD Sender: No OFD packet to send [22:46:36]OFD Sender: No OFD packet to send [22:46:41]OFD Sender: No OFD packet to send [22:46:46]OFD Sender: No OFD packet to send [22:46:51]OFD Sender: No OFD packet to send [22:46:56]OFD Sender: No OFD packet to send [22:47:01]OFD Sender: No OFD packet to send [22:47:06]OFD Sender: No OFD packet to send [22:47:11]OFD Sender: No OFD packet to send [22:47:16]OFD Sender: No OFD packet to send [22:47:22]OFD Sender: No OFD packet to send [22:47:27]OFD Sender: No OFD packet to send [22:47:32]OFD Sender: No OFD packet to send [22:47:37]OFD Sender: No OFD packet to send [22:47:42]OFD Sender: No OFD packet to send [22:47:47]OFD Sender: No OFD packet to send [22:47:52]OFD Sender: No OFD packet to send [22:47:57]OFD Sender: No OFD packet to send [22:48:02]OFD Sender: No OFD packet to send [22:48:07]OFD Sender: No OFD packet to send [22:48:12]OFD Sender: No OFD packet to send [22:48:17]OFD Sender: No OFD packet to send [22:48:22]OFD Sender: No OFD packet to send [22:48:27]OFD Sender: No OFD packet to send [22:48:32]OFD Sender: No OFD packet to send [22:48:37]OFD Sender: No OFD packet to send [22:48:42]OFD Sender: No OFD packet to send [22:48:47]OFD Sender: No OFD packet to send [22:48:52]OFD Sender: No OFD packet to send [22:48:57]OFD Sender: No OFD packet to send [22:49:02]OFD Sender: No OFD packet to send [22:49:07]OFD Sender: No OFD packet to send [22:49:12]OFD Sender: No OFD packet to send [22:49:17]OFD Sender: No OFD packet to send [22:49:22]OFD Sender: No OFD packet to send [22:49:27]OFD Sender: No OFD packet to send [22:49:32]OFD Sender: No OFD packet to send [22:49:37]OFD Sender: No OFD packet to send [22:49:42]OFD Sender: No OFD packet to send [22:49:47]OFD Sender: No OFD packet to send [22:49:52]OFD Sender: No OFD packet to send [22:49:57]OFD Sender: No OFD packet to send [22:50:02]OFD Sender: No OFD packet to send [22:50:07]OFD Sender: No OFD packet to send [22:50:12]OFD Sender: No OFD packet to send [22:50:17]OFD Sender: No OFD packet to send [22:50:22]OFD Sender: No OFD packet to send [22:50:27]OFD Sender: No OFD packet to send [22:50:32]OFD Sender: No OFD packet to send [22:50:37]OFD Sender: No OFD packet to send [22:50:42]OFD Sender: No OFD packet to send [22:50:47]OFD Sender: No OFD packet to send [22:50:52]OFD Sender: No OFD packet to send [22:50:57]OFD Sender: No OFD packet to send [22:51:02]OFD Sender: No OFD packet to send [22:51:07]OFD Sender: No OFD packet to send [22:51:12]OFD Sender: No OFD packet to send [22:51:17]OFD Sender: No OFD packet to send [22:51:22]OFD Sender: No OFD packet to send [22:51:27]OFD Sender: No OFD packet to send [22:51:32]OFD Sender: No OFD packet to send [22:51:37]OFD Sender: No OFD packet to send [22:51:42]OFD Sender: No OFD packet to send [22:51:47]OFD Sender: No OFD packet to send [22:51:52]OFD Sender: No OFD packet to send [22:51:57]OFD Sender: No OFD packet to send [22:52:02]OFD Sender: No OFD packet to send [22:52:07]OFD Sender: No OFD packet to send [22:52:12]OFD Sender: No OFD packet to send [22:52:17]OFD Sender: No OFD packet to send [22:52:22]OFD Sender: No OFD packet to send [22:52:27]OFD Sender: No OFD packet to send [22:52:32]OFD Sender: No OFD packet to send [22:52:37]OFD Sender: No OFD packet to send [22:52:42]OFD Sender: No OFD packet to send [22:52:47]OFD Sender: No OFD packet to send [22:52:52]OFD Sender: No OFD packet to send [22:52:57]OFD Sender: No OFD packet to send [22:53:02]OFD Sender: No OFD packet to send [22:53:07]OFD Sender: No OFD packet to send [22:53:12]OFD Sender: No OFD packet to send [22:53:17]OFD Sender: No OFD packet to send [22:53:22]OFD Sender: No OFD packet to send [22:53:27]OFD Sender: No OFD packet to send [22:53:32]OFD Sender: No OFD packet to send [22:53:37]OFD Sender: No OFD packet to send [22:53:42]OFD Sender: No OFD packet to send [22:53:47]OFD Sender: No OFD packet to send [22:53:52]OFD Sender: No OFD packet to send [22:53:57]OFD Sender: No OFD packet to send [22:54:02]OFD Sender: No OFD packet to send [22:54:07]OFD Sender: No OFD packet to send [22:54:12]OFD Sender: No OFD packet to send [22:54:17]OFD Sender: No OFD packet to send [22:54:22]OFD Sender: No OFD packet to send [22:54:27]OFD Sender: No OFD packet to send [22:54:32]OFD Sender: No OFD packet to send [22:54:37]OFD Sender: No OFD packet to send [22:54:42]OFD Sender: No OFD packet to send [22:54:47]OFD Sender: No OFD packet to send [22:54:52]OFD Sender: No OFD packet to send [22:54:57]OFD Sender: No OFD packet to send [22:55:02]OFD Sender: No OFD packet to send [22:55:07]OFD Sender: No OFD packet to send [22:55:12]OFD Sender: No OFD packet to send [22:55:17]OFD Sender: No OFD packet to send [22:55:22]OFD Sender: No OFD packet to send [22:55:27]OFD Sender: No OFD packet to send [22:55:32]OFD Sender: No OFD packet to send [22:55:37]OFD Sender: No OFD packet to send [22:55:42]OFD Sender: No OFD packet to send [22:55:47]OFD Sender: No OFD packet to send [22:55:52]OFD Sender: No OFD packet to send [22:55:57]OFD Sender: No OFD packet to send [22:56:02]OFD Sender: No OFD packet to send [22:56:07]OFD Sender: No OFD packet to send [22:56:12]OFD Sender: No OFD packet to send [22:56:17]OFD Sender: No OFD packet to send [22:56:22]OFD Sender: No OFD packet to send [22:56:27]OFD Sender: No OFD packet to send [22:56:32]OFD Sender: No OFD packet to send [22:56:37]OFD Sender: No OFD packet to send [22:56:42]OFD Sender: No OFD packet to send [22:56:47]OFD Sender: No OFD packet to send [22:56:52]OFD Sender: No OFD packet to send [22:56:57]OFD Sender: No OFD packet to send [22:57:02]OFD Sender: No OFD packet to send [22:57:07]OFD Sender: No OFD packet to send [22:57:12]OFD Sender: No OFD packet to send [22:57:17]OFD Sender: No OFD packet to send [22:57:22]OFD Sender: No OFD packet to send [22:57:27]OFD Sender: No OFD packet to send [22:57:32]OFD Sender: No OFD packet to send [22:57:37]OFD Sender: No OFD packet to send [22:57:42]OFD Sender: No OFD packet to send [22:57:47]OFD Sender: No OFD packet to send [22:57:52]OFD Sender: No OFD packet to send [22:57:57]OFD Sender: No OFD packet to send [22:58:02]OFD Sender: No OFD packet to send [22:58:07]OFD Sender: No OFD packet to send [22:58:12]OFD Sender: No OFD packet to send [22:58:17]OFD Sender: No OFD packet to send [22:58:22]OFD Sender: No OFD packet to send [22:58:27]OFD Sender: No OFD packet to send [22:58:32]OFD Sender: No OFD packet to send [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: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:31]accept exits with 7 [23:00:31]New connection [23:00:31]New thread 3066543460 created [23:00:31]Thread 3066686820 joined [23:00:31]Waiting for new connection... [23:00:31] Sock 7.Parse request [23:00:31]Sock 7.Check first char [23:00:31]Sock 7.First char is OK [23:00:31]request: POST /json_proto HTTP/1.0 [23:00:31]Method: POST [23:00:31]URL: /json_proto [23:00:31]Method is POST - this is cgi request [23:00:31]url: /json_proto [23:00:31]query_string will be loaded in cgi processing [23:00:31]execute_cgi json_proto POST (null) [23:00:31]execute_cgi path=json_proto method=POST [23:00:31]POST find Content-Length [23:00:31]Host: 172.17.36.132:8080 [23:00:31]Content-Length: 678 [23:00:31]Content-Type: application/json [23:00:31] [23:00:31]POST finish read [23:00:31]Found Content-Length = 678 [23:00:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706304", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.40, "quantity" : 13.180, "sum" : 875.15, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 875.00, "total" : 875.00, "payments": [ { "type": 0, "sum" : 875.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:00:31]execute_script... [23:00: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)706304", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.40, "quantity" : 13.180, "sum" : 875.15, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 875.00, "total" : 875.00, "payments": [ { "type": 0, "sum" : 875.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:00:31]POST & json_proto [23:00:31]process_json_proto [23:00:31]json parsed OK: [23:00:31]protocol is kg_v1.0 [23:00:31]action value=close_receipt [23:00:31]process_action close_receipt [23:00:31]cmd_close_receipt [23:00:31]MH_GetDate [23:00:31]Write to MH i2c: F0 00 00 6D 13 6F [23:00:31]Write i2c OK [23:00:31]MH_I2C_Read... [23:00:31]Read from MH i2c: F0 [23:00:31]MH_I2C_Read... [23:00:31]Read from MH i2c: F0 09 00 [23:00:31]MH_I2C_Read... [23:00:31]Read from MH i2c: F0 09 00 6D 13 00 91 F9 5C 66 B2 22 B0 64 AC [23:00:31]GetLastDocTimeStamp 1717368367 [23:00:31]current date 1717369233 [23:00:31]FM_GetShiftState [23:00:31]SAM_PROTO_GetShiftState [23:00:31]wFMCommunicate request_size=4 [23:00:31]MH_SAM_APDU [23:00:31]CAPDU: 80 13 01 00 [23:00:31]Write to MH i2c: E2 08 00 6E 13 80 13 01 00 00 00 00 00 FE [23:00:31]Write i2c OK [23:00:31]MH_I2C_Read... [23:00:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:00:31]Read from MH i2c: E2 [23:00:31]MH_I2C_Read... [23:00:31]Read from MH i2c: E2 0E 00 [23:00:31]MH_I2C_Read... [23:00:31]Read from MH i2c: E2 0E 00 6E 13 00 09 00 01 A4 BB 5B 66 00 00 00 00 90 00 2A [23:00:31]RAPDU: 09 00 01 A4 BB 5B 66 00 00 00 00 90 00 [23:00:31]wFMCommunicate OK [23:00:31]SAM_PROTO_GetShiftState done [23:00:31]FM_GetShiftState done [23:00:31]opened in 1717287844 [23:00:31]opened+sec_in_day 1717374244 [23:00:31]quantity*price = 87515 [23:00:31]sum+1 = 87516 [23:00:31]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.15 ИТОГО: 875.00 Внесено: 875.00 СДАЧА: 0.00 НСП 1% : 7.74 НДС 12% : 92.94 Наличными: 875.00 Безнал.: 0.00 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 248 02.06.2024 23:00 Смена: 322 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 ФМ: 0000000000965400 ФД: 68233 ФПД: 69120132119595 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240602T230033&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68233&fm=69120132119595&tin=02508201610067®Number=0000000000098096&sum=87500 [23:00:32]StoreToDocumentArchive [23:00:32]shift 322 fd 68233 [23:00:32]save to /storage/0322/doc_00068233 [23:00:32]save last doc name /storage/0322/doc_00068233 to /storage/kkm_last_doc_name [23:00:32]save OK [23:00:32]Clear old archive folders... [23:00:32]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:00:32]tlvbuf is 003763C0 [23:00:32]SAM_PROTO_ClearQueue [23:00:32]wFMCommunicate request_size=4 [23:00:32]MH_SAM_APDU [23:00:32]CAPDU: 80 09 00 00 [23:00:32]Write to MH i2c: E2 08 00 7B 13 80 09 00 00 00 00 00 00 00 [23:00:32]Write i2c OK [23:00:32]MH_I2C_Read... [23:00:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:00:32]Read from MH i2c: E2 [23:00:32]MH_I2C_Read... [23:00:32]Read from MH i2c: E2 03 00 [23:00:32]MH_I2C_Read... [23:00:32]Read from MH i2c: E2 03 00 7B 13 00 90 00 02 [23:00:32]RAPDU: 90 00 [23:00:32]wFMCommunicate OK [23:00:32]SAM_PROTO_ClearQueue done [23:00:32]KKMCreateOFDPacket [23:00:32]OFDProtocolAddRootSTLVToBuf [23:00:32]FM_MakeSignedData [23:00:32]FM_MakeSignedData [23:00:32]SAM_PROTO_SignData [23:00:32]wFMCommunicate request_size=4 [23:00:32]MH_SAM_APDU [23:00:32]CAPDU: 80 0D 01 02 [23:00:32]Write to MH i2c: E2 08 00 7C 13 80 0D 01 02 00 00 00 00 08 [23:00:32]Write i2c OK [23:00:32]MH_I2C_Read... [23:00:32]OFD Sender: No OFD packet to send [23:00:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:00:32]Read from MH i2c: E2 [23:00:32]MH_I2C_Read... [23:00:32]Read from MH i2c: E2 03 00 [23:00:32]MH_I2C_Read... [23:00:32]Read from MH i2c: E2 03 00 7C 13 00 90 00 03 [23:00:32]RAPDU: 90 00 [23:00:32]wFMCommunicate OK [23:00:32]wFMCommunicate request_size=255 [23:00:32]MH_SAM_APDU [23:00: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 34 FF 03 08 00 03 7C 33 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 DB 55 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CC 55 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 06 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4E 24 00 00 00 00 07 04 06 00 CC 55 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F8 00 00 00 F4 03 04 00 91 F9 5C 66 0E 04 04 00 42 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 89 0A 01 00 35 04 06 00 3E [23:00:32]Write to MH i2c: E2 02 01 7D 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 34 FF 03 08 00 03 7C 33 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 DB 55 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CC 55 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 06 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4E 24 00 00 00 00 07 04 06 00 CC 55 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F8 00 00 00 F4 03 04 00 91 F9 5C 66 0E 04 04 00 42 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 89 0A 01 00 35 04 06 00 3E 00 00 11 [23:00:32]Write i2c OK [23:00:32]MH_I2C_Read... [23:00:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:00:32]Read from MH i2c: E2 [23:00:32]MH_I2C_Read... [23:00:32]Read from MH i2c: E2 03 00 [23:00:32]MH_I2C_Read... [23:00:32]Read from MH i2c: E2 03 00 7D 13 00 90 00 04 [23:00:32]RAPDU: 90 00 [23:00:32]wFMCommunicate OK [23:00:32]wFMCommunicate request_size=10 [23:00:32]MH_SAM_APDU [23:00:32]CAPDU: 80 0D 02 02 05 DD 48 EB FC 2B [23:00:32]Write to MH i2c: E2 0D 00 7E 13 80 0D 02 02 05 00 DD 48 EB FC 2B 00 00 4C [23:00:32]Write i2c OK [23:00:32]MH_I2C_Read... [23:00:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:00:33]Read from MH i2c: E2 [23:00:33]MH_I2C_Read... [23:00:33]Read from MH i2c: E2 03 00 [23:00:33]MH_I2C_Read... [23:00:33]Read from MH i2c: E2 03 00 7E 13 00 90 00 05 [23:00:33]RAPDU: 90 00 [23:00:33]wFMCommunicate OK [23:00:33]wFMCommunicate request_size=4 [23:00:33]MH_SAM_APDU [23:00:33]CAPDU: 80 0D 03 02 [23:00:33]Write to MH i2c: E2 08 00 7F 13 80 0D 03 02 00 00 00 00 0D [23:00:33]Write i2c OK [23:00:33]MH_I2C_Read... [23:00:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:00:33]Read from MH i2c: E2 [23:00:33]MH_I2C_Read... [23:00:33]Read from MH i2c: E2 0B 00 [23:00:33]MH_I2C_Read... [23:00:33]Read from MH i2c: E2 0B 00 7F 13 00 10 BC 96 37 BF AE DE 4F 90 00 41 [23:00:33]RAPDU: 10 BC 96 37 BF AE DE 4F 90 00 [23:00:33]wFMCommunicate OK [23:00:33]SAM_PROTO_SignData done [23:00:33]FM_MakeSignedData done [23:00:33]CreateOFDProtocolMessage [23:00:33]wFMCommunicate request_size=4 [23:00:33]MH_SAM_APDU [23:00:33]CAPDU: 80 11 00 00 [23:00:33]Write to MH i2c: E2 08 00 80 13 80 11 00 00 00 00 00 00 0D [23:00:33]Write i2c OK [23:00:33]MH_I2C_Read... [23:00:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:00:33]Read from MH i2c: E2 [23:00:33]MH_I2C_Read... [23:00:33]Read from MH i2c: E2 17 00 [23:00:33]MH_I2C_Read... [23:00:33]Read from MH i2c: E2 17 00 80 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 58 [23:00:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [23:00:33]wFMCommunicate OK [23:00:33]CreateOFDProtocolMessage done [23:00:33]OFDSenderStorePacket 68233 [23:00:33]StoreOFDPacket docnum=68233 [23:00:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 53 2A 07 01 49 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 34 FF 03 08 00 03 7C 33 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 DB 55 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CC 55 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 06 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4E 24 00 00 00 00 07 04 06 00 CC 55 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F8 00 00 00 F4 03 04 00 91 F9 5C 66 0E 04 04 00 42 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 89 0A 01 00 35 04 06 00 3E DD 48 EB FC 2B 10 BC 96 37 BF AE DE 4F [23:00:33]CheckFolder [23:00:33]dirname=/storage/ofd_packets [23:00:33]CheckFolder done [23:00:33]ProducePacketName [23:00:33]name=ofd_packets/00068233 [23:00:33]NVStorageSaveData ofd_packets/00068233 [23:00:33]File name is /storage/ofd_packets/00068233 [23:00:33]Write 301 bytes [23:00:33]NVStorageSaveData done [23:00:33]OFDSenderStorePacket done [23:00:33]KKMCreateOFDPacket done [23:00:33]NVStorageSaveData kkm_last_timestamp [23:00:33]File name is /storage/kkm_last_timestamp [23:00:33]Write 4 bytes [23:00:33]NVStorageSaveData done [23:00:33]ExternCall_PrintAddStr [23:00:33]wPrintStart [23:00:33]Write to MH i2c: 01 00 00 81 13 94 [23:00:33]Write i2c OK [23:00:33]MH_I2C_Read... [23:00:33]Read from MH i2c: 01 [23:00:33]MH_I2C_Read... [23:00:33]Read from MH i2c: 01 07 00 [23:00:33]MH_I2C_Read... [23:00:33]Read from MH i2c: 01 07 00 81 13 00 00 00 00 00 FF 0F A9 [23:00:33]RasterBufferAndPrint [23:00:33]line Счет N : (1)706304 [23:00:33]line ИНН: 02508201610067 [23:00:33]line Контрольно-Кассовый Чек [23:00:33]line ПРОДАЖА [23:00:33]line ТРК (МРК, ГНК) : 42 [23:00:33]line Товар: 2710124130 [23:00:33]line Аи-92-К-4 [23:00:33]line 13.180 * 66.40 [23:00:33]line = 875.15 [23:00:33]line НДС 12% НСП 1% [23:00:33]line > о реализуемом товаре [23:00:33]line ОКРУГЛЕНИЕ: -0.15 [23:00:33]line ИТОГО: 875.00 [23:00:33]line Внесено: 875.00 [23:00:33]line СДАЧА: 0.00 [23:00:33]line НСП 1% : 7.74 [23:00:33]line НДС 12% : 92.94 [23:00:33]line Наличными: 875.00 [23:00:33]line Безнал.: 0.00 [23:00:33]line Место: АЗС № 62 "Партнер Нефть" [23:00:33]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [23:00:33]line СНО: Общий режим [23:00:33]line Чек 248 02.06.2024 23:00 [23:00:33]line Смена: 322 ФФД: 1.0 [23:00:33]line ЗНМ: 0300000181 [23:00:33]line РНМ: 0000000000098096 [23:00:33]line Версия ККМ: 001 [23:00:33]line ФМ: 0000000000965400 [23:00:33]line ФД: 68233 [23:00:33]line ФПД: 69120132119595 [23:00:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240602T230033&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68233&fm=69120132119595&tin=02508201610067®Number=0000000000098096&sum=87500 [23:00:33]OFD Sender: Processing packet 68233 [packets to send 26, broken 25] [23:00:33]ProducePacketName [23:00:33]name=ofd_packets/00068233 [23:00:33]OFD Sender: To server: pG, [23:00:33]CommunicateWithHost lk.salyk.kg:30040 [23:00:33]ConnectInit lk.salyk.kg [23:00:33]written 0, free lines is 4095 [23:00:33]Connected sock=11 [23:00:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 53 2A 07 01 49 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 34 FF 03 08 00 03 7C 33 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 DB 55 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CC 55 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 06 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4E 24 00 00 00 00 07 04 06 00 CC 55 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F8 00 00 00 F4 03 04 00 91 F9 5C 66 0E 04 04 00 42 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 89 0A 01 00 35 04 06 00 3E DD 48 EB FC 2B 10 BC 96 37 BF AE DE 4F [23:00:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 E6 63 47 00 1A 28 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 89 0A 01 00 F4 03 04 00 8F A0 5C 66 B6 04 01 00 00 7B 8B 69 77 29 EA 0A 98 [23:00:33]CommunicateWithHost err = 0 [23:00:33]CheckOFDResponse [23:00:33]1017 (14) - 77093643461234 [23:00:33]1041 (16) - 0000000000965400 [23:00:33]1040 (4) - 68233 [23:00:33]1012 (4) - 02.06.2024 16:40 [23:00:33]1206 (1) - 0 [23:00:33]OFD Sender: Remove packet 68233 [23:00:33]ProducePacketName [23:00:33]name=ofd_packets/00068233 [23:00:33]NVStorageDeleteData [23:00:33]Write to MH i2c: 01 00 00 AC 13 BF [23:00:33]Write i2c OK [23:00:33]MH_I2C_Read... [23:00:33]Read from MH i2c: 01 [23:00:33]MH_I2C_Read... [23:00:33]Read from MH i2c: 01 07 00 [23:00:33]MH_I2C_Read... [23:00:33]Read from MH i2c: 01 07 00 AC 13 00 00 00 00 00 E1 0C B3 [23:00:33]RasterBufferAndPrint [23:00:33]line [23:00:33]line [23:00:33]line [23:00:33]line [23:00:33]line [23:00:33]written 0, free lines is 3303 [23:00:33]MH_Cut [23:00:33]Write to MH i2c: D1 01 00 B3 13 01 98 [23:00:33]Write i2c OK [23:00:33]MH_I2C_Read... [23:00:33]Read from MH i2c: D1 [23:00:33]MH_I2C_Read... [23:00:33]Read from MH i2c: D1 01 00 [23:00:33]MH_I2C_Read... [23:00:33]Read from MH i2c: D1 01 00 B3 13 00 97 [23:00:33]Write to MH i2c: 01 00 00 B4 13 C7 [23:00:33]Write i2c OK [23:00:33]MH_I2C_Read... [23:00:34]OFD Sender: No OFD packet to send [23:00:34]*** Cut start [23:00:34]*** Partial cut [23:00:34]*** CUTSNS_PIN = 1 [23:00:34]*** CUTSNS_PIN = 0 [23:00:35]*** Brake cut motor [23:00:35]Read from MH i2c: 01 [23:00:35]MH_I2C_Read... [23:00:35]*** Stop cut motor [23:00:35]*** Cut end [23:00:35]Read from MH i2c: 01 07 00 [23:00:35]MH_I2C_Read... [23:00:35]Read from MH i2c: 01 07 00 B4 13 00 00 00 00 00 FF 0F DC [23:00:35]process_action close_receipt done [23:00:35]requested_data is exist [23:00:35]produce_requested_data [23:00:35]requested_item fm.sn is exist - process it [23:00:35]wFMCommunicate request_size=4 [23:00:35]MH_SAM_APDU [23:00:35]CAPDU: 80 11 00 00 [23:00:35]Write to MH i2c: E2 08 00 B5 13 80 11 00 00 00 00 00 00 42 [23:00:35]Write i2c OK [23:00:35]MH_I2C_Read... [23:00:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:00:35]Read from MH i2c: E2 [23:00:35]MH_I2C_Read... [23:00:35]Read from MH i2c: E2 17 00 [23:00:35]MH_I2C_Read... [23:00:35]Read from MH i2c: E2 17 00 B5 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 8D [23:00:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [23:00:35]wFMCommunicate OK [23:00:35]requested_item fd.num is exist - process it [23:00:35]SAM_PROTO_GetFieldsCounters [23:00:35]wFMCommunicate request_size=4 [23:00:35]MH_SAM_APDU [23:00:35]CAPDU: 80 13 00 00 [23:00:35]Write to MH i2c: E2 08 00 B6 13 80 13 00 00 00 00 00 00 45 [23:00:35]Write i2c OK [23:00:35]MH_I2C_Read... [23:00:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:00:35]Read from MH i2c: E2 [23:00:35]MH_I2C_Read... [23:00:35]Read from MH i2c: E2 62 00 [23:00:35]MH_I2C_Read... [23:00:35]Read from MH i2c: E2 62 00 B6 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 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 89 0A 01 00 0E 04 04 00 42 01 00 00 12 04 04 00 F8 00 00 00 5E 04 04 00 F8 00 00 00 57 04 04 00 F9 00 00 00 19 04 04 00 00 00 00 00 90 00 24 [23:00: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 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 89 0A 01 00 0E 04 04 00 42 01 00 00 12 04 04 00 F8 00 00 00 5E 04 04 00 F8 00 00 00 57 04 04 00 F9 00 00 00 19 04 04 00 00 00 00 00 90 00 [23:00:35]wFMCommunicate OK [23:00:35]SAM_PROTO_GetFieldsCounters done [23:00:35]requested_item shift.num is exist - process it [23:00:35]requested_item shift.opened is exist - process it [23:00:35]req_shift_opened [23:00:35]FM_GetShiftState [23:00:35]SAM_PROTO_GetShiftState [23:00:35]wFMCommunicate request_size=4 [23:00:35]MH_SAM_APDU [23:00:35]CAPDU: 80 13 01 00 [23:00:35]Write to MH i2c: E2 08 00 B7 13 80 13 01 00 00 00 00 00 47 [23:00:35]Write i2c OK [23:00:35]MH_I2C_Read... [23:00:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:00:35]Read from MH i2c: E2 [23:00:35]MH_I2C_Read... [23:00:35]Read from MH i2c: E2 0E 00 [23:00:35]MH_I2C_Read... [23:00:35]Read from MH i2c: E2 0E 00 B7 13 00 09 00 01 A4 BB 5B 66 00 00 00 00 90 00 73 [23:00:35]RAPDU: 09 00 01 A4 BB 5B 66 00 00 00 00 90 00 [23:00:35]wFMCommunicate OK [23:00:35]SAM_PROTO_GetShiftState done [23:00:35]FM_GetShiftState done [23:00:35]req_shift_opened done [23:00:35]requested_item shift.open_date is exist - process it [23:00:35]req_shift_open_date [23:00:35]req_shift_open_date done [23:00:35]produce_requested_data done [23:00:35]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68233,"shift.num":322,"shift.opened":1,"shift.open_date":1717287844} [23:00:35]process_action_free close_receipt [23:00:35]json_value_free [23:00:35]json_value_free done [23:00:35]process_json_proto returns [23:00:35]Send response to host [23:00:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68233,"shift.num":322,"shift.opened":1,"shift.open_date":1717287844}}} [23:00:35]free response buf [23:00:35]execute_script done [23:00:35]execute_script returns [23:00:35]free content buf [23:00:35]Sock 7.Close socket [23:00:35]Sock 7.Thread stoped [23:00:39]OFD Sender: No OFD packet to send [23:00:44]OFD Sender: No OFD packet to send [23:00:49]OFD Sender: No OFD packet to send [23:00:54]OFD Sender: No OFD packet to send [23:00:59]OFD Sender: No OFD packet to send [23:01:02]accept exits with 9 [23:01:02]New connection [23:01:02]New thread 3066686820 created [23:01:02]Thread 3066543460 joined [23:01:02]Waiting for new connection... [23:01:02] Sock 9.Parse request [23:01:02]Sock 9.Check first char [23:01:02]Sock 9.First char is OK [23:01:02]request: POST /json_proto HTTP/1.0 [23:01:02]Method: POST [23:01:02]URL: /json_proto [23:01:02]Method is POST - this is cgi request [23:01:02]url: /json_proto [23:01:02]query_string will be loaded in cgi processing [23:01:02]execute_cgi json_proto POST (null) [23:01:02]execute_cgi path=json_proto method=POST [23:01:02]POST find Content-Length [23:01:02]Host: 172.17.36.132:8080 [23:01:02]Content-Length: 682 [23:01:02]Content-Type: application/json [23:01:02] [23:01:02]POST finish read [23:01:02]Found Content-Length = 682 [23:01:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706305", "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" : 73.40, "quantity" : 13.630, "sum" : 1000.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:01:02]execute_script... [23:01: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)706305", "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" : 73.40, "quantity" : 13.630, "sum" : 1000.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:01:02]POST & json_proto [23:01:02]process_json_proto [23:01:02]json parsed OK: [23:01:02]protocol is kg_v1.0 [23:01:02]action value=close_receipt [23:01:02]process_action close_receipt [23:01:02]cmd_close_receipt [23:01:02]MH_GetDate [23:01:02]Write to MH i2c: F0 00 00 B8 13 BA [23:01:02]Write i2c OK [23:01:02]MH_I2C_Read... [23:01:02]Read from MH i2c: F0 [23:01:02]MH_I2C_Read... [23:01:02]Read from MH i2c: F0 09 00 [23:01:02]MH_I2C_Read... [23:01:02]Read from MH i2c: F0 09 00 B8 13 00 B0 F9 5C 66 B2 22 B0 64 16 [23:01:02]GetLastDocTimeStamp 1717369233 [23:01:02]current date 1717369264 [23:01:02]FM_GetShiftState [23:01:02]SAM_PROTO_GetShiftState [23:01:02]wFMCommunicate request_size=4 [23:01:02]MH_SAM_APDU [23:01:02]CAPDU: 80 13 01 00 [23:01:02]Write to MH i2c: E2 08 00 B9 13 80 13 01 00 00 00 00 00 49 [23:01:02]Write i2c OK [23:01:02]MH_I2C_Read... [23:01:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:01:02]Read from MH i2c: E2 [23:01:02]MH_I2C_Read... [23:01:02]Read from MH i2c: E2 0E 00 [23:01:02]MH_I2C_Read... [23:01:02]Read from MH i2c: E2 0E 00 B9 13 00 09 00 01 A4 BB 5B 66 00 00 00 00 90 00 75 [23:01:02]RAPDU: 09 00 01 A4 BB 5B 66 00 00 00 00 90 00 [23:01:02]wFMCommunicate OK [23:01:02]SAM_PROTO_GetShiftState done [23:01:02]FM_GetShiftState done [23:01:02]opened in 1717287844 [23:01:02]opened+sec_in_day 1717374244 [23:01:02]quantity*price = 100044 [23:01:02]sum+1 = 100045 [23:01:02]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.44 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.24 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 249 02.06.2024 23:01 Смена: 322 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 ФМ: 0000000000965400 ФД: 68234 ФПД: 254036769740493 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240602T230104&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68234&fm=254036769740493&tin=02508201610067®Number=0000000000098096&sum=100000 [23:01:03]StoreToDocumentArchive [23:01:03]shift 322 fd 68234 [23:01:03]save to /storage/0322/doc_00068234 [23:01:03]save last doc name /storage/0322/doc_00068234 to /storage/kkm_last_doc_name [23:01:03]save OK [23:01:03]Clear old archive folders... [23:01:03]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:01:03]tlvbuf is 0049FBB0 [23:01:03]SAM_PROTO_ClearQueue [23:01:03]wFMCommunicate request_size=4 [23:01:03]MH_SAM_APDU [23:01:03]CAPDU: 80 09 00 00 [23:01:03]Write to MH i2c: E2 08 00 C6 13 80 09 00 00 00 00 00 00 4B [23:01:03]Write i2c OK [23:01:03]MH_I2C_Read... [23:01:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:01:03]Read from MH i2c: E2 [23:01:03]MH_I2C_Read... [23:01:03]Read from MH i2c: E2 03 00 [23:01:03]MH_I2C_Read... [23:01:03]Read from MH i2c: E2 03 00 C6 13 00 90 00 4D [23:01:03]RAPDU: 90 00 [23:01:03]wFMCommunicate OK [23:01:03]SAM_PROTO_ClearQueue done [23:01:03]KKMCreateOFDPacket [23:01:03]OFDProtocolAddRootSTLVToBuf [23:01:03]FM_MakeSignedData [23:01:03]FM_MakeSignedData [23:01:03]SAM_PROTO_SignData [23:01:03]wFMCommunicate request_size=4 [23:01:03]MH_SAM_APDU [23:01:03]CAPDU: 80 0D 01 02 [23:01:03]Write to MH i2c: E2 08 00 C7 13 80 0D 01 02 00 00 00 00 53 [23:01:03]Write i2c OK [23:01:03]MH_I2C_Read... [23:01:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:01:03]Read from MH i2c: E2 [23:01:03]MH_I2C_Read... [23:01:03]Read from MH i2c: E2 03 00 [23:01:03]MH_I2C_Read... [23:01:03]Read from MH i2c: E2 03 00 C7 13 00 90 00 4E [23:01:03]RAPDU: 90 00 [23:01:03]wFMCommunicate OK [23:01:03]wFMCommunicate request_size=255 [23:01:03]MH_SAM_APDU [23:01: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 3E 35 00 00 00 00 00 37 04 06 00 AC 1C 00 00 00 00 13 04 06 00 CC 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F9 00 00 00 F4 03 04 00 B0 F9 5C 66 0E 04 04 00 42 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 8A 0A 01 00 35 04 06 00 E7 [23:01:03]Write to MH i2c: E2 02 01 C8 13 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 3E 35 00 00 00 00 00 37 04 06 00 AC 1C 00 00 00 00 13 04 06 00 CC 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F9 00 00 00 F4 03 04 00 B0 F9 5C 66 0E 04 04 00 42 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 8A 0A 01 00 35 04 06 00 E7 00 00 80 [23:01:03]Write i2c OK [23:01:03]MH_I2C_Read... [23:01:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:01:03]Read from MH i2c: E2 [23:01:03]MH_I2C_Read... [23:01:03]Read from MH i2c: E2 03 00 [23:01:03]MH_I2C_Read... [23:01:03]Read from MH i2c: E2 03 00 C8 13 00 90 00 4F [23:01:03]RAPDU: 90 00 [23:01:03]wFMCommunicate OK [23:01:03]wFMCommunicate request_size=10 [23:01:03]MH_SAM_APDU [23:01:03]CAPDU: 80 0D 02 02 05 0B 8B 6B 96 CD [23:01:03]Write to MH i2c: E2 0D 00 C9 13 80 0D 02 02 05 00 0B 8B 6B 96 CD 00 00 C4 [23:01:03]Write i2c OK [23:01:03]MH_I2C_Read... [23:01:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:01:03]Read from MH i2c: E2 [23:01:03]MH_I2C_Read... [23:01:03]Read from MH i2c: E2 03 00 [23:01:03]MH_I2C_Read... [23:01:03]Read from MH i2c: E2 03 00 C9 13 00 90 00 50 [23:01:03]RAPDU: 90 00 [23:01:03]wFMCommunicate OK [23:01:03]wFMCommunicate request_size=4 [23:01:03]MH_SAM_APDU [23:01:03]CAPDU: 80 0D 03 02 [23:01:03]Write to MH i2c: E2 08 00 CA 13 80 0D 03 02 00 00 00 00 58 [23:01:03]Write i2c OK [23:01:03]MH_I2C_Read... [23:01:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:01:03]Read from MH i2c: E2 [23:01:03]MH_I2C_Read... [23:01:03]Read from MH i2c: E2 0B 00 [23:01:03]MH_I2C_Read... [23:01:03]Read from MH i2c: E2 0B 00 CA 13 00 6E 2F EC 14 ED C2 5F C5 90 00 C9 [23:01:03]RAPDU: 6E 2F EC 14 ED C2 5F C5 90 00 [23:01:03]wFMCommunicate OK [23:01:03]SAM_PROTO_SignData done [23:01:03]FM_MakeSignedData done [23:01:03]CreateOFDProtocolMessage [23:01:03]wFMCommunicate request_size=4 [23:01:03]MH_SAM_APDU [23:01:03]CAPDU: 80 11 00 00 [23:01:03]Write to MH i2c: E2 08 00 CB 13 80 11 00 00 00 00 00 00 58 [23:01:03]Write i2c OK [23:01:03]MH_I2C_Read... [23:01:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:01:04]Read from MH i2c: E2 [23:01:04]MH_I2C_Read... [23:01:04]Read from MH i2c: E2 17 00 [23:01:04]MH_I2C_Read... [23:01:04]Read from MH i2c: E2 17 00 CB 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 A3 [23:01:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [23:01:04]wFMCommunicate OK [23:01:04]CreateOFDProtocolMessage done [23:01:04]OFDSenderStorePacket 68234 [23:01:04]StoreOFDPacket docnum=68234 [23:01:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 62 50 07 01 CB 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 3E 35 00 00 00 00 00 37 04 06 00 AC 1C 00 00 00 00 13 04 06 00 CC 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F9 00 00 00 F4 03 04 00 B0 F9 5C 66 0E 04 04 00 42 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 8A 0A 01 00 35 04 06 00 E7 0B 8B 6B 96 CD 6E 2F EC 14 ED C2 5F C5 [23:01:04]CheckFolder [23:01:04]dirname=/storage/ofd_packets [23:01:04]CheckFolder done [23:01:04]ProducePacketName [23:01:04]name=ofd_packets/00068234 [23:01:04]NVStorageSaveData ofd_packets/00068234 [23:01:04]File name is /storage/ofd_packets/00068234 [23:01:04]Write 301 bytes [23:01:04]NVStorageSaveData done [23:01:04]OFDSenderStorePacket done [23:01:04]KKMCreateOFDPacket done [23:01:04]NVStorageSaveData kkm_last_timestamp [23:01:04]File name is /storage/kkm_last_timestamp [23:01:04]Write 4 bytes [23:01:04]NVStorageSaveData done [23:01:04]ExternCall_PrintAddStr [23:01:04]wPrintStart [23:01:04]Write to MH i2c: 01 00 00 CC 13 DF [23:01:04]Write i2c OK [23:01:04]MH_I2C_Read... [23:01:04]Read from MH i2c: 01 [23:01:04]MH_I2C_Read... [23:01:04]Read from MH i2c: 01 07 00 [23:01:04]MH_I2C_Read... [23:01:04]Read from MH i2c: 01 07 00 CC 13 00 00 00 00 00 FF 0F F4 [23:01:04]RasterBufferAndPrint [23:01:04]line Счет N : (1)706305 [23:01:04]line ИНН: 02508201610067 [23:01:04]line Контрольно-Кассовый Чек [23:01:04]line ПРОДАЖА [23:01:04]line ТРК (МРК, ГНК) : 33 [23:01:04]line Товар: 2710124500 [23:01:04]line Аи-95-К-5 [23:01:04]line 13.630 * 73.40 [23:01:04]line = 1000.44 [23:01:04]line НДС 12% НСП 1% [23:01:04]line > о реализуемом товаре [23:01:04]line ОКРУГЛЕНИЕ: -0.44 [23:01:04]line ИТОГО: 1000.00 [23:01:04]line Внесено: 1000.00 [23:01:04]line СДАЧА: 0.00 [23:01:04]line НСП 1% : 8.85 [23:01:04]line НДС 12% : 106.24 [23:01:04]line Наличными: 1000.00 [23:01:04]line Безнал.: 0.00 [23:01:04]line Место: АЗС № 62 "Партнер Нефть" [23:01:04]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [23:01:04]line СНО: Общий режим [23:01:04]line Чек 249 02.06.2024 23:01 [23:01:04]line Смена: 322 ФФД: 1.0 [23:01:04]line ЗНМ: 0300000181 [23:01:04]line РНМ: 0000000000098096 [23:01:04]line Версия ККМ: 001 [23:01:04]line ФМ: 0000000000965400 [23:01:04]line ФД: 68234 [23:01:04]line ФПД: 254036769740493 [23:01:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240602T230104&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68234&fm=254036769740493&tin=02508201610067®Number=0000000000098096&sum=100000 [23:01:04]OFD Sender: Processing packet 68234 [packets to send 26, broken 25] [23:01:04]ProducePacketName [23:01:04]name=ofd_packets/00068234 [23:01:04]OFD Sender: To server: pG, [23:01:04]CommunicateWithHost lk.salyk.kg:30040 [23:01:04]ConnectInit lk.salyk.kg [23:01:04]written 0, free lines is 4095 [23:01:04]Connected sock=10 [23:01:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 62 50 07 01 CB 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 3E 35 00 00 00 00 00 37 04 06 00 AC 1C 00 00 00 00 13 04 06 00 CC 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F9 00 00 00 F4 03 04 00 B0 F9 5C 66 0E 04 04 00 42 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 8A 0A 01 00 35 04 06 00 E7 0B 8B 6B 96 CD 6E 2F EC 14 ED C2 5F C5 [23:01:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 73 FF 47 00 71 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 35 34 30 30 10 04 04 00 8A 0A 01 00 F4 03 04 00 AE A0 5C 66 B6 04 01 00 00 E4 76 62 07 E7 C9 24 E8 [23:01:04]CommunicateWithHost err = 0 [23:01:04]CheckOFDResponse [23:01:04]1017 (14) - 77093643461234 [23:01:04]1041 (16) - 0000000000965400 [23:01:04]1040 (4) - 68234 [23:01:04]1012 (4) - 02.06.2024 16:41 [23:01:04]1206 (1) - 0 [23:01:04]OFD Sender: Remove packet 68234 [23:01:04]ProducePacketName [23:01:04]name=ofd_packets/00068234 [23:01:04]NVStorageDeleteData [23:01:04]Write to MH i2c: 01 00 00 F7 13 0A [23:01:04]Write i2c OK [23:01:04]MH_I2C_Read... [23:01:04]Read from MH i2c: 01 [23:01:04]MH_I2C_Read... [23:01:04]Read from MH i2c: 01 07 00 [23:01:04]MH_I2C_Read... [23:01:04]Read from MH i2c: 01 07 00 F7 13 00 00 00 00 00 E4 0C 01 [23:01:04]RasterBufferAndPrint [23:01:04]line [23:01:04]line [23:01:04]line [23:01:04]line [23:01:04]line [23:01:04]written 0, free lines is 3306 [23:01:04]MH_Cut [23:01:04]Write to MH i2c: D1 01 00 FE 13 01 E3 [23:01:04]Write i2c OK [23:01:04]MH_I2C_Read... [23:01:04]Read from MH i2c: D1 [23:01:04]MH_I2C_Read... [23:01:04]Read from MH i2c: D1 01 00 [23:01:04]MH_I2C_Read... [23:01:04]Read from MH i2c: D1 01 00 FE 13 00 E2 [23:01:04]Write to MH i2c: 01 00 00 FF 13 12 [23:01:04]Write i2c OK [23:01:04]MH_I2C_Read... [23:01:05]OFD Sender: No OFD packet to send [23:01:05]*** Cut start [23:01:05]*** Partial cut [23:01:05]*** CUTSNS_PIN = 1 [23:01:05]*** CUTSNS_PIN = 0 [23:01:05]*** Brake cut motor [23:01:06]Read from MH i2c: 01 [23:01:06]MH_I2C_Read... [23:01:06]*** Stop cut motor [23:01:06]*** Cut end [23:01:06]Read from MH i2c: 01 07 00 [23:01:06]MH_I2C_Read... [23:01:06]Read from MH i2c: 01 07 00 FF 13 00 00 00 00 00 FF 0F 27 [23:01:06]process_action close_receipt done [23:01:06]requested_data is exist [23:01:06]produce_requested_data [23:01:06]requested_item fm.sn is exist - process it [23:01:06]wFMCommunicate request_size=4 [23:01:06]MH_SAM_APDU [23:01:06]CAPDU: 80 11 00 00 [23:01:06]Write to MH i2c: E2 08 00 00 14 80 11 00 00 00 00 00 00 8E [23:01:06]Write i2c OK [23:01:06]MH_I2C_Read... [23:01:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:01:06]Read from MH i2c: E2 [23:01:06]MH_I2C_Read... [23:01:06]Read from MH i2c: E2 17 00 [23:01:06]MH_I2C_Read... [23:01:06]Read from MH i2c: E2 17 00 00 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 D9 [23:01:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [23:01:06]wFMCommunicate OK [23:01:06]requested_item fd.num is exist - process it [23:01:06]SAM_PROTO_GetFieldsCounters [23:01:06]wFMCommunicate request_size=4 [23:01:06]MH_SAM_APDU [23:01:06]CAPDU: 80 13 00 00 [23:01:06]Write to MH i2c: E2 08 00 01 14 80 13 00 00 00 00 00 00 91 [23:01:06]Write i2c OK [23:01:06]MH_I2C_Read... [23:01:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:01:06]Read from MH i2c: E2 [23:01:06]MH_I2C_Read... [23:01:06]Read from MH i2c: E2 62 00 [23:01:06]MH_I2C_Read... [23:01:06]Read from MH i2c: E2 62 00 01 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 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 8A 0A 01 00 0E 04 04 00 42 01 00 00 12 04 04 00 F9 00 00 00 5E 04 04 00 F9 00 00 00 57 04 04 00 FA 00 00 00 19 04 04 00 00 00 00 00 90 00 74 [23:01: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 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 8A 0A 01 00 0E 04 04 00 42 01 00 00 12 04 04 00 F9 00 00 00 5E 04 04 00 F9 00 00 00 57 04 04 00 FA 00 00 00 19 04 04 00 00 00 00 00 90 00 [23:01:06]wFMCommunicate OK [23:01:06]SAM_PROTO_GetFieldsCounters done [23:01:06]requested_item shift.num is exist - process it [23:01:06]requested_item shift.opened is exist - process it [23:01:06]req_shift_opened [23:01:06]FM_GetShiftState [23:01:06]SAM_PROTO_GetShiftState [23:01:06]wFMCommunicate request_size=4 [23:01:06]MH_SAM_APDU [23:01:06]CAPDU: 80 13 01 00 [23:01:06]Write to MH i2c: E2 08 00 02 14 80 13 01 00 00 00 00 00 93 [23:01:06]Write i2c OK [23:01:06]MH_I2C_Read... [23:01:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:01:06]Read from MH i2c: E2 [23:01:06]MH_I2C_Read... [23:01:06]Read from MH i2c: E2 0E 00 [23:01:06]MH_I2C_Read... [23:01:06]Read from MH i2c: E2 0E 00 02 14 00 09 00 01 A4 BB 5B 66 00 00 00 00 90 00 BF [23:01:06]RAPDU: 09 00 01 A4 BB 5B 66 00 00 00 00 90 00 [23:01:06]wFMCommunicate OK [23:01:06]SAM_PROTO_GetShiftState done [23:01:06]FM_GetShiftState done [23:01:06]req_shift_opened done [23:01:06]requested_item shift.open_date is exist - process it [23:01:06]req_shift_open_date [23:01:06]req_shift_open_date done [23:01:06]produce_requested_data done [23:01:06]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68234,"shift.num":322,"shift.opened":1,"shift.open_date":1717287844} [23:01:06]process_action_free close_receipt [23:01:06]json_value_free [23:01:06]json_value_free done [23:01:06]process_json_proto returns [23:01:06]Send response to host [23:01:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68234,"shift.num":322,"shift.opened":1,"shift.open_date":1717287844}}} [23:01:06]free response buf [23:01:06]execute_script done [23:01:06]execute_script returns [23:01:06]free content buf [23:01:06]Sock 9.Close socket [23:01:06]Sock 9.Thread stoped [23:01:10]OFD Sender: No OFD packet to send [23:01:15]OFD Sender: No OFD packet to send [23:01:20]OFD Sender: No OFD packet to send [23:01:25]OFD Sender: No OFD packet to send [23:01:30]OFD Sender: No OFD packet to send [23:01:35]OFD Sender: No OFD packet to send [23:01:40]OFD Sender: No OFD packet to send [23:01:45]OFD Sender: No OFD packet to send [23:01:50]OFD Sender: No OFD packet to send [23:01:55]OFD Sender: No OFD packet to send [23:02:00]OFD Sender: No OFD packet to send [23:02:05]OFD Sender: No OFD packet to send [23:02:10]OFD Sender: No OFD packet to send [23:02:15]OFD Sender: No OFD packet to send [23:02:20]OFD Sender: No OFD packet to send [23:02:25]OFD Sender: No OFD packet to send [23:02:30]OFD Sender: No OFD packet to send [23:02:35]OFD Sender: No OFD packet to send [23:02:40]OFD Sender: No OFD packet to send [23:02:45]OFD Sender: No OFD packet to send [23:02:50]OFD Sender: No OFD packet to send [23:02:55]OFD Sender: No OFD packet to send [23:03:00]OFD Sender: No OFD packet to send [23:03:05]OFD Sender: No OFD packet to send [23:03:10]OFD Sender: No OFD packet to send [23:03:15]OFD Sender: No OFD packet to send [23:03:20]OFD Sender: No OFD packet to send [23:03:25]OFD Sender: No OFD packet to send [23:03:30]OFD Sender: No OFD packet to send [23:03:35]OFD Sender: No OFD packet to send [23:03:40]OFD Sender: No OFD packet to send [23:03:45]OFD Sender: No OFD packet to send [23:03:50]OFD Sender: No OFD packet to send [23:03:55]OFD Sender: No OFD packet to send [23:04:00]OFD Sender: No OFD packet to send [23:04:05]OFD Sender: No OFD packet to send [23:04:10]OFD Sender: No OFD packet to send [23:04:15]OFD Sender: No OFD packet to send [23:04:20]OFD Sender: No OFD packet to send [23:04:25]OFD Sender: No OFD packet to send [23:04:30]OFD Sender: No OFD packet to send [23:04:35]OFD Sender: No OFD packet to send [23:04:40]OFD Sender: No OFD packet to send [23:04:45]OFD Sender: No OFD packet to send [23:04:50]OFD Sender: No OFD packet to send [23:04:55]OFD Sender: No OFD packet to send [23:05:00]OFD Sender: No OFD packet to send [23:05:05]OFD Sender: No OFD packet to send [23:05:10]OFD Sender: No OFD packet to send [23:05:15]OFD Sender: No OFD packet to send [23:05:20]OFD Sender: No OFD packet to send [23:05:23]accept exits with 7 [23:05:23]New connection [23:05:23]New thread 3066543460 created [23:05:23]Thread 3066686820 joined [23:05:23]Waiting for new connection... [23:05:23] Sock 7.Parse request [23:05:23]Sock 7.Check first char [23:05:23]Sock 7.First char is OK [23:05:23]request: POST /json_proto HTTP/1.0 [23:05:23]Method: POST [23:05:23]URL: /json_proto [23:05:23]Method is POST - this is cgi request [23:05:23]url: /json_proto [23:05:23]query_string will be loaded in cgi processing [23:05:23]execute_cgi json_proto POST (null) [23:05:23]execute_cgi path=json_proto method=POST [23:05:23]POST find Content-Length [23:05:23]Host: 172.17.36.132:8080 [23:05:23]Content-Length: 843 [23:05:23]Content-Type: application/json [23:05:23] [23:05:23]POST finish read [23:05:23]Found Content-Length = 843 [23:05:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706306", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.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" : 1000.65 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:05:23]execute_script... [23:05: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)706306", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.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" : 1000.65 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:05:23]POST & json_proto [23:05:23]process_json_proto [23:05:23]json parsed OK: [23:05:23]protocol is kg_v1.0 [23:05:23]action value=close_receipt [23:05:23]process_action close_receipt [23:05:23]cmd_close_receipt [23:05:23]MH_GetDate [23:05:23]Write to MH i2c: F0 00 00 03 14 06 [23:05:23]Write i2c OK [23:05:23]MH_I2C_Read... [23:05:23]Read from MH i2c: F0 [23:05:23]MH_I2C_Read... [23:05:23]Read from MH i2c: F0 09 00 [23:05:23]MH_I2C_Read... [23:05:23]Read from MH i2c: F0 09 00 03 14 00 B4 FA 5C 66 B2 22 B0 64 67 [23:05:23]GetLastDocTimeStamp 1717369264 [23:05:23]current date 1717369524 [23:05:23]FM_GetShiftState [23:05:23]SAM_PROTO_GetShiftState [23:05:23]wFMCommunicate request_size=4 [23:05:23]MH_SAM_APDU [23:05:23]CAPDU: 80 13 01 00 [23:05:23]Write to MH i2c: E2 08 00 04 14 80 13 01 00 00 00 00 00 95 [23:05:23]Write i2c OK [23:05:23]MH_I2C_Read... [23:05:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:05:23]Read from MH i2c: E2 [23:05:23]MH_I2C_Read... [23:05:23]Read from MH i2c: E2 0E 00 [23:05:23]MH_I2C_Read... [23:05:23]Read from MH i2c: E2 0E 00 04 14 00 09 00 01 A4 BB 5B 66 00 00 00 00 90 00 C1 [23:05:23]RAPDU: 09 00 01 A4 BB 5B 66 00 00 00 00 90 00 [23:05:23]wFMCommunicate OK [23:05:23]SAM_PROTO_GetShiftState done [23:05:23]FM_GetShiftState done [23:05:23]opened in 1717287844 [23:05:23]opened+sec_in_day 1717374244 [23:05:23]quantity*price = 100064 [23:05:23]sum+1 = 100066 [23:05:23]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.65 НСП 1% : 8.85 НДС 12% : 106.26 Наличными: 0.00 Безнал.: 1000.65 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 250 02.06.2024 23:05 Смена: 322 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000965400 ФД: 68235 ФПД: 252781071568390 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240602T230525&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68235&fm=252781071568390&tin=02508201610067®Number=0000000000098096&sum=100065 [23:05:24]StoreToDocumentArchive [23:05:24]shift 322 fd 68235 [23:05:24]save to /storage/0322/doc_00068235 [23:05:24]save last doc name /storage/0322/doc_00068235 to /storage/kkm_last_doc_name [23:05:24]save OK [23:05:24]Clear old archive folders... [23:05:24]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:05:24]tlvbuf is 0049FDF0 [23:05:24]SAM_PROTO_ClearQueue [23:05:24]wFMCommunicate request_size=4 [23:05:24]MH_SAM_APDU [23:05:24]CAPDU: 80 09 00 00 [23:05:24]Write to MH i2c: E2 08 00 11 14 80 09 00 00 00 00 00 00 97 [23:05:24]Write i2c OK [23:05:24]MH_I2C_Read... [23:05:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:05:24]Read from MH i2c: E2 [23:05:24]MH_I2C_Read... [23:05:24]Read from MH i2c: E2 03 00 [23:05:24]MH_I2C_Read... [23:05:24]Read from MH i2c: E2 03 00 11 14 00 90 00 99 [23:05:24]RAPDU: 90 00 [23:05:24]wFMCommunicate OK [23:05:24]SAM_PROTO_ClearQueue done [23:05:24]KKMCreateOFDPacket [23:05:24]OFDProtocolAddRootSTLVToBuf [23:05:24]FM_MakeSignedData [23:05:24]FM_MakeSignedData [23:05:24]SAM_PROTO_SignData [23:05:24]wFMCommunicate request_size=4 [23:05:24]MH_SAM_APDU [23:05:24]CAPDU: 80 0D 01 02 [23:05:24]Write to MH i2c: E2 08 00 12 14 80 0D 01 02 00 00 00 00 9F [23:05:24]Write i2c OK [23:05:24]MH_I2C_Read... [23:05:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:05:24]Read from MH i2c: E2 [23:05:24]MH_I2C_Read... [23:05:24]Read from MH i2c: E2 03 00 [23:05:24]MH_I2C_Read... [23:05:24]Read from MH i2c: E2 03 00 12 14 00 90 00 9A [23:05:24]RAPDU: 90 00 [23:05:24]wFMCommunicate OK [23:05:24]wFMCommunicate request_size=255 [23:05:24]MH_SAM_APDU [23:05: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 34 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E1 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E1 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 FA 00 00 00 F4 03 04 00 B5 FA 5C 66 0E 04 04 00 42 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 8B 0A 01 00 35 04 06 00 E5 [23:05:24]Write to MH i2c: E2 02 01 13 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 34 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E1 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E1 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 FA 00 00 00 F4 03 04 00 B5 FA 5C 66 0E 04 04 00 42 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 8B 0A 01 00 35 04 06 00 E5 00 00 4C [23:05:24]Write i2c OK [23:05:24]MH_I2C_Read... [23:05:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:05:24]Read from MH i2c: E2 [23:05:24]MH_I2C_Read... [23:05:24]Read from MH i2c: E2 03 00 [23:05:24]MH_I2C_Read... [23:05:24]Read from MH i2c: E2 03 00 13 14 00 90 00 9B [23:05:24]RAPDU: 90 00 [23:05:24]wFMCommunicate OK [23:05:24]wFMCommunicate request_size=10 [23:05:24]MH_SAM_APDU [23:05:24]CAPDU: 80 0D 02 02 05 E7 2D FA 0E 06 [23:05:24]Write to MH i2c: E2 0D 00 14 14 80 0D 02 02 05 00 E7 2D FA 0E 06 00 00 CE [23:05:24]Write i2c OK [23:05:24]MH_I2C_Read... [23:05:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:05:24]Read from MH i2c: E2 [23:05:24]MH_I2C_Read... [23:05:24]Read from MH i2c: E2 03 00 [23:05:24]MH_I2C_Read... [23:05:24]Read from MH i2c: E2 03 00 14 14 00 90 00 9C [23:05:24]RAPDU: 90 00 [23:05:24]wFMCommunicate OK [23:05:24]wFMCommunicate request_size=4 [23:05:24]MH_SAM_APDU [23:05:24]CAPDU: 80 0D 03 02 [23:05:24]Write to MH i2c: E2 08 00 15 14 80 0D 03 02 00 00 00 00 A4 [23:05:24]Write i2c OK [23:05:24]MH_I2C_Read... [23:05:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:05:24]Read from MH i2c: E2 [23:05:24]MH_I2C_Read... [23:05:24]Read from MH i2c: E2 0B 00 [23:05:24]MH_I2C_Read... [23:05:24]Read from MH i2c: E2 0B 00 15 14 00 D8 F0 A1 2D 55 C7 48 35 90 00 D4 [23:05:24]RAPDU: D8 F0 A1 2D 55 C7 48 35 90 00 [23:05:24]wFMCommunicate OK [23:05:24]SAM_PROTO_SignData done [23:05:24]FM_MakeSignedData done [23:05:24]CreateOFDProtocolMessage [23:05:24]wFMCommunicate request_size=4 [23:05:24]MH_SAM_APDU [23:05:24]CAPDU: 80 11 00 00 [23:05:24]Write to MH i2c: E2 08 00 16 14 80 11 00 00 00 00 00 00 A4 [23:05:24]Write i2c OK [23:05:24]MH_I2C_Read... [23:05:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:05:24]Read from MH i2c: E2 [23:05:24]MH_I2C_Read... [23:05:24]Read from MH i2c: E2 17 00 [23:05:24]MH_I2C_Read... [23:05:24]Read from MH i2c: E2 17 00 16 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 EF [23:05:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [23:05:24]wFMCommunicate OK [23:05:24]CreateOFDProtocolMessage done [23:05:24]OFDSenderStorePacket 68235 [23:05:24]StoreOFDPacket docnum=68235 [23:05:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 BF AA 07 01 C0 A4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E1 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E1 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 FA 00 00 00 F4 03 04 00 B5 FA 5C 66 0E 04 04 00 42 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 8B 0A 01 00 35 04 06 00 E5 E7 2D FA 0E 06 D8 F0 A1 2D 55 C7 48 35 [23:05:24]CheckFolder [23:05:24]dirname=/storage/ofd_packets [23:05:24]CheckFolder done [23:05:24]ProducePacketName [23:05:24]name=ofd_packets/00068235 [23:05:24]NVStorageSaveData ofd_packets/00068235 [23:05:24]File name is /storage/ofd_packets/00068235 [23:05:24]Write 301 bytes [23:05:24]NVStorageSaveData done [23:05:24]OFDSenderStorePacket done [23:05:24]KKMCreateOFDPacket done [23:05:24]NVStorageSaveData kkm_last_timestamp [23:05:24]File name is /storage/kkm_last_timestamp [23:05:24]Write 4 bytes [23:05:24]NVStorageSaveData done [23:05:24]ExternCall_PrintAddStr [23:05:24]wPrintStart [23:05:24]Write to MH i2c: 01 00 00 17 14 2B [23:05:24]Write i2c OK [23:05:24]MH_I2C_Read... [23:05:24]Read from MH i2c: 01 [23:05:24]MH_I2C_Read... [23:05:24]Read from MH i2c: 01 07 00 [23:05:24]MH_I2C_Read... [23:05:24]Read from MH i2c: 01 07 00 17 14 00 00 00 00 00 FF 0F 40 [23:05:24]RasterBufferAndPrint [23:05:24]line Счет N : (1)706306 [23:05:24]line ИНН: 02508201610067 [23:05:24]line Контрольно-Кассовый Чек [23:05:24]line ПРОДАЖА [23:05:24]line ТРК (МРК, ГНК) : 32 [23:05:24]line Товар: 2710124130 [23:05:24]line Аи-92-К-4 [23:05:24]line 15.070 * 66.40 [23:05:24]line = 1000.65 [23:05:24]line НДС 12% НСП 1% [23:05:24]line > о реализуемом товаре [23:05:24]line ИТОГО: 1000.65 [23:05:24]line НСП 1% : 8.85 [23:05:24]line НДС 12% : 106.26 [23:05:24]line Наличными: 0.00 [23:05:24]line Безнал.: 1000.65 [23:05:24]line Место: АЗС № 62 "Партнер Нефть" [23:05:24]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [23:05:24]line СНО: Общий режим [23:05:24]line Чек 250 02.06.2024 23:05 [23:05:24]line Смена: 322 ФФД: 1.0 [23:05:24]line ЗНМ: 0300000181 [23:05:24]line РНМ: 0000000000098096 [23:05:24]line Версия ККМ: 001 [23:05:24]line Платежная система: АКБ Кыргызстан [23:05:24]line ФМ: 0000000000965400 [23:05:24]line ФД: 68235 [23:05:24]line ФПД: 252781071568390 [23:05:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240602T230525&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68235&fm=252781071568390&tin=02508201610067®Number=0000000000098096&sum=100065 [23:05:25]OFD Sender: Processing packet 68235 [packets to send 26, broken 25] [23:05:25]ProducePacketName [23:05:25]name=ofd_packets/00068235 [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]written 0, free lines is 4095 [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 35 34 30 30 0F 01 00 00 BF AA 07 01 C0 A4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E1 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E1 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 FA 00 00 00 F4 03 04 00 B5 FA 5C 66 0E 04 04 00 42 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 8B 0A 01 00 35 04 06 00 E5 E7 2D FA 0E 06 D8 F0 A1 2D 55 C7 48 35 [23:05:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 12 D0 47 00 2B 55 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 8B 0A 01 00 F4 03 04 00 B3 A1 5C 66 B6 04 01 00 00 70 B2 5C 51 B5 8D D1 4A [23:05:25]CommunicateWithHost err = 0 [23:05:25]CheckOFDResponse [23:05:25]1017 (14) - 77093643461234 [23:05:25]1041 (16) - 0000000000965400 [23:05:25]1040 (4) - 68235 [23:05:25]1012 (4) - 02.06.2024 16:45 [23:05:25]1206 (1) - 0 [23:05:25]OFD Sender: Remove packet 68235 [23:05:25]ProducePacketName [23:05:25]name=ofd_packets/00068235 [23:05:25]NVStorageDeleteData [23:05:25]Write to MH i2c: 01 00 00 41 14 55 [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 41 14 00 00 00 00 00 10 0D 79 [23:05:25]RasterBufferAndPrint [23:05:25]line [23:05:25]line [23:05:25]line [23:05:25]line [23:05:25]line [23:05:25]written 0, free lines is 3353 [23:05:25]MH_Cut [23:05:25]Write to MH i2c: D1 01 00 48 14 01 2E [23:05:25]Write i2c OK [23:05:25]MH_I2C_Read... [23:05:25]Read from MH i2c: D1 [23:05:25]MH_I2C_Read... [23:05:25]Read from MH i2c: D1 01 00 [23:05:25]MH_I2C_Read... [23:05:25]Read from MH i2c: D1 01 00 48 14 00 2D [23:05:25]Write to MH i2c: 01 00 00 49 14 5D [23:05:25]Write i2c OK [23:05:25]MH_I2C_Read... [23:05:25]OFD Sender: No OFD packet to send [23:05:26]*** Cut start [23:05:26]*** Partial cut [23:05:26]*** CUTSNS_PIN = 1 [23:05:26]*** CUTSNS_PIN = 0 [23:05:26]*** Brake cut motor [23:05:26]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 49 14 00 00 00 00 00 FF 0F 72 [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 4A 14 80 11 00 00 00 00 00 00 D8 [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 4A 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 23 [23:05:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 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 4B 14 80 13 00 00 00 00 00 00 DB [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 4B 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 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 8B 0A 01 00 0E 04 04 00 42 01 00 00 12 04 04 00 FA 00 00 00 5E 04 04 00 FA 00 00 00 57 04 04 00 FB 00 00 00 19 04 04 00 00 00 00 00 90 00 C2 [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 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 8B 0A 01 00 0E 04 04 00 42 01 00 00 12 04 04 00 FA 00 00 00 5E 04 04 00 FA 00 00 00 57 04 04 00 FB 00 00 00 19 04 04 00 00 00 00 00 90 00 [23: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 4C 14 80 13 01 00 00 00 00 00 DD [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 4C 14 00 09 00 01 A4 BB 5B 66 00 00 00 00 90 00 09 [23:05:27]RAPDU: 09 00 01 A4 BB 5B 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":"0000000000965400","fd.num":68235,"shift.num":322,"shift.opened":1,"shift.open_date":1717287844} [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":"0000000000965400","fd.num":68235,"shift.num":322,"shift.opened":1,"shift.open_date":1717287844}}} [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:30]OFD Sender: No OFD packet to send [23:05:35]OFD Sender: No OFD packet to send [23:05:40]OFD Sender: No OFD packet to send [23:05:45]OFD Sender: No OFD packet to send [23:05:50]OFD Sender: No OFD packet to send [23:05:55]OFD Sender: No OFD packet to send [23:06:00]OFD Sender: No OFD packet to send [23:06:05]OFD Sender: No OFD packet to send [23:06:10]OFD Sender: No OFD packet to send [23:06:15]OFD Sender: No OFD packet to send [23:06:20]OFD Sender: No OFD packet to send [23:06:25]OFD Sender: No OFD packet to send [23:06:30]OFD Sender: No OFD packet to send [23:06:35]OFD Sender: No OFD packet to send [23:06:36]accept exits with 9 [23:06:36]New connection [23:06:36]New thread 3066686820 created [23:06:36]Thread 3066543460 joined [23:06:36]Waiting for new connection... [23:06:36] Sock 9.Parse request [23:06:36]Sock 9.Check first char [23:06:36]Sock 9.First char is OK [23:06:36]request: POST /json_proto HTTP/1.0 [23:06:36]Method: POST [23:06:36]URL: /json_proto [23:06:36]Method is POST - this is cgi request [23:06:36]url: /json_proto [23:06:36]query_string will be loaded in cgi processing [23:06:36]execute_cgi json_proto POST (null) [23:06:36]execute_cgi path=json_proto method=POST [23:06:36]POST find Content-Length [23:06:36]Host: 172.17.36.132:8080 [23:06:36]Content-Length: 670 [23:06:36]Content-Type: application/json [23:06:36] [23:06:36]POST finish read [23:06:36]Found Content-Length = 670 [23:06:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706308", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "Super-92-\u041A-5", "price" : 67.40, "quantity" : 9.650, "sum" : 650.41, "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:06:36]execute_script... [23:06:36]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706308", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "Super-92-\u041A-5", "price" : 67.40, "quantity" : 9.650, "sum" : 650.41, "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:06:36]POST & json_proto [23:06:36]process_json_proto [23:06:36]json parsed OK: [23:06:36]protocol is kg_v1.0 [23:06:36]action value=close_receipt [23:06:36]process_action close_receipt [23:06:36]cmd_close_receipt [23:06:36]MH_GetDate [23:06:36]Write to MH i2c: F0 00 00 4D 14 50 [23:06:36]Write i2c OK [23:06:36]MH_I2C_Read... [23:06:36]Read from MH i2c: F0 [23:06:36]MH_I2C_Read... [23:06:36]Read from MH i2c: F0 09 00 [23:06:36]MH_I2C_Read... [23:06:36]Read from MH i2c: F0 09 00 4D 14 00 FE FA 5C 66 B2 22 B0 64 FB [23:06:36]GetLastDocTimeStamp 1717369525 [23:06:36]current date 1717369598 [23:06:36]FM_GetShiftState [23:06:36]SAM_PROTO_GetShiftState [23:06:36]wFMCommunicate request_size=4 [23:06:36]MH_SAM_APDU [23:06:36]CAPDU: 80 13 01 00 [23:06:36]Write to MH i2c: E2 08 00 4E 14 80 13 01 00 00 00 00 00 DF [23:06:36]Write i2c OK [23:06:36]MH_I2C_Read... [23:06:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:06:36]Read from MH i2c: E2 [23:06:36]MH_I2C_Read... [23:06:36]Read from MH i2c: E2 0E 00 [23:06:36]MH_I2C_Read... [23:06:36]Read from MH i2c: E2 0E 00 4E 14 00 09 00 01 A4 BB 5B 66 00 00 00 00 90 00 0B [23:06:36]RAPDU: 09 00 01 A4 BB 5B 66 00 00 00 00 90 00 [23:06:36]wFMCommunicate OK [23:06:36]SAM_PROTO_GetShiftState done [23:06:36]FM_GetShiftState done [23:06:36]opened in 1717287844 [23:06:36]opened+sec_in_day 1717374244 [23:06:36]quantity*price = 65041 [23:06:36]sum+1 = 65042 [23:06:36]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 650.00 Внесено: 650.00 СДАЧА: 0.00 НСП 1% : 5.76 НДС 12% : 69.07 Наличными: 650.00 Безнал.: 0.00 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 251 02.06.2024 23:06 Смена: 322 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 ФМ: 0000000000965400 ФД: 68236 ФПД: 201022186437763 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240602T230638&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68236&fm=201022186437763&tin=02508201610067®Number=0000000000098096&sum=65000 [23:06:37]StoreToDocumentArchive [23:06:37]shift 322 fd 68236 [23:06:37]save to /storage/0322/doc_00068236 [23:06:37]save last doc name /storage/0322/doc_00068236 to /storage/kkm_last_doc_name [23:06:37]save OK [23:06:37]Clear old archive folders... [23:06:37]ProcessDocumentItem done err = 0, tmpTLVsize=252 [23:06:37]tlvbuf is 004A0260 [23:06:37]SAM_PROTO_ClearQueue [23:06:37]wFMCommunicate request_size=4 [23:06:37]MH_SAM_APDU [23:06:37]CAPDU: 80 09 00 00 [23:06:37]Write to MH i2c: E2 08 00 5B 14 80 09 00 00 00 00 00 00 E1 [23:06:37]Write i2c OK [23:06:37]MH_I2C_Read... [23:06:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:06:37]Read from MH i2c: E2 [23:06:37]MH_I2C_Read... [23:06:37]Read from MH i2c: E2 03 00 [23:06:37]MH_I2C_Read... [23:06:37]Read from MH i2c: E2 03 00 5B 14 00 90 00 E3 [23:06:37]RAPDU: 90 00 [23:06:37]wFMCommunicate OK [23:06:37]SAM_PROTO_ClearQueue done [23:06:37]KKMCreateOFDPacket [23:06:37]OFDProtocolAddRootSTLVToBuf [23:06:37]FM_MakeSignedData [23:06:37]FM_MakeSignedData [23:06:37]SAM_PROTO_SignData [23:06:37]wFMCommunicate request_size=4 [23:06:37]MH_SAM_APDU [23:06:37]CAPDU: 80 0D 01 02 [23:06:37]Write to MH i2c: E2 08 00 5C 14 80 0D 01 02 00 00 00 00 E9 [23:06:37]Write i2c OK [23:06:37]MH_I2C_Read... [23:06:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:06:37]Read from MH i2c: E2 [23:06:37]MH_I2C_Read... [23:06:37]Read from MH i2c: E2 03 00 [23:06:37]MH_I2C_Read... [23:06:37]Read from MH i2c: E2 03 00 5C 14 00 90 00 E4 [23:06:37]RAPDU: 90 00 [23:06:37]wFMCommunicate OK [23:06:37]wFMCommunicate request_size=255 [23:06:37]MH_SAM_APDU [23:06:37]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B2 25 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 11 FE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 40 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 1A 00 00 00 00 07 04 06 00 E8 FD 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FB 00 00 00 F4 03 04 00 FE FA 5C 66 0E 04 04 00 42 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 8C 0A 01 00 35 04 06 00 [23:06:37]Write to MH i2c: E2 02 01 5D 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 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B2 25 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 11 FE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 40 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 1A 00 00 00 00 07 04 06 00 E8 FD 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FB 00 00 00 F4 03 04 00 FE FA 5C 66 0E 04 04 00 42 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 8C 0A 01 00 35 04 06 00 00 00 20 [23:06:37]Write i2c OK [23:06:37]MH_I2C_Read... [23:06:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:06:38]Read from MH i2c: E2 [23:06:38]MH_I2C_Read... [23:06:38]Read from MH i2c: E2 03 00 [23:06:38]MH_I2C_Read... [23:06:38]Read from MH i2c: E2 03 00 5D 14 00 90 00 E5 [23:06:38]RAPDU: 90 00 [23:06:38]wFMCommunicate OK [23:06:38]wFMCommunicate request_size=11 [23:06:38]MH_SAM_APDU [23:06:38]CAPDU: 80 0D 02 02 06 B6 D4 20 03 BC 83 [23:06:38]Write to MH i2c: E2 0E 00 5E 14 80 0D 02 02 06 00 B6 D4 20 03 BC 83 00 00 E4 [23:06:38]Write i2c OK [23:06:38]MH_I2C_Read... [23:06:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:06:38]Read from MH i2c: E2 [23:06:38]MH_I2C_Read... [23:06:38]Read from MH i2c: E2 03 00 [23:06:38]MH_I2C_Read... [23:06:38]Read from MH i2c: E2 03 00 5E 14 00 90 00 E6 [23:06:38]RAPDU: 90 00 [23:06:38]wFMCommunicate OK [23:06:38]wFMCommunicate request_size=4 [23:06:38]MH_SAM_APDU [23:06:38]CAPDU: 80 0D 03 02 [23:06:38]Write to MH i2c: E2 08 00 5F 14 80 0D 03 02 00 00 00 00 EE [23:06:38]Write i2c OK [23:06:38]MH_I2C_Read... [23:06:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:06:38]Read from MH i2c: E2 [23:06:38]MH_I2C_Read... [23:06:38]Read from MH i2c: E2 0B 00 [23:06:38]MH_I2C_Read... [23:06:38]Read from MH i2c: E2 0B 00 5F 14 00 34 FA 84 6D 65 A7 A3 27 90 00 E4 [23:06:38]RAPDU: 34 FA 84 6D 65 A7 A3 27 90 00 [23:06:38]wFMCommunicate OK [23:06:38]SAM_PROTO_SignData done [23:06:38]FM_MakeSignedData done [23:06:38]CreateOFDProtocolMessage [23:06:38]wFMCommunicate request_size=4 [23:06:38]MH_SAM_APDU [23:06:38]CAPDU: 80 11 00 00 [23:06:38]Write to MH i2c: E2 08 00 60 14 80 11 00 00 00 00 00 00 EE [23:06:38]Write i2c OK [23:06:38]MH_I2C_Read... [23:06:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:06:38]Read from MH i2c: E2 [23:06:38]MH_I2C_Read... [23:06:38]Read from MH i2c: E2 17 00 [23:06:38]MH_I2C_Read... [23:06:38]Read from MH i2c: E2 17 00 60 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 39 [23:06:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [23:06:38]wFMCommunicate OK [23:06:38]CreateOFDProtocolMessage done [23:06:38]OFDSenderStorePacket 68236 [23:06:38]StoreOFDPacket docnum=68236 [23:06:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 01 00 00 4D 0F 08 01 7D 69 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B2 25 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 11 FE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 40 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 1A 00 00 00 00 07 04 06 00 E8 FD 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FB 00 00 00 F4 03 04 00 FE FA 5C 66 0E 04 04 00 42 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 8C 0A 01 00 35 04 06 00 B6 D4 20 03 BC 83 34 FA 84 6D 65 A7 A3 27 [23:06:38]CheckFolder [23:06:38]dirname=/storage/ofd_packets [23:06:38]CheckFolder done [23:06:38]ProducePacketName [23:06:38]name=ofd_packets/00068236 [23:06:38]NVStorageSaveData ofd_packets/00068236 [23:06:38]File name is /storage/ofd_packets/00068236 [23:06:38]Write 302 bytes [23:06:38]NVStorageSaveData done [23:06:38]OFDSenderStorePacket done [23:06:38]KKMCreateOFDPacket done [23:06:38]NVStorageSaveData kkm_last_timestamp [23:06:38]File name is /storage/kkm_last_timestamp [23:06:38]Write 4 bytes [23:06:38]NVStorageSaveData done [23:06:38]ExternCall_PrintAddStr [23:06:38]wPrintStart [23:06:38]Write to MH i2c: 01 00 00 61 14 75 [23:06:38]Write i2c OK [23:06:38]MH_I2C_Read... [23:06:38]Read from MH i2c: 01 [23:06:38]MH_I2C_Read... [23:06:38]Read from MH i2c: 01 07 00 [23:06:38]MH_I2C_Read... [23:06:38]Read from MH i2c: 01 07 00 61 14 00 00 00 00 00 FF 0F 8A [23:06:38]RasterBufferAndPrint [23:06:38]line Счет N : (1)706308 [23:06:38]line ИНН: 02508201610067 [23:06:38]line Контрольно-Кассовый Чек [23:06:38]line ПРОДАЖА [23:06:38]line ТРК (МРК, ГНК) : 52 [23:06:38]line Товар: 2710124130 [23:06:38]line Super-92-К-5 [23:06:38]line 9.650 * 67.40 [23:06:38]line = 650.41 [23:06:38]line НДС 12% НСП 1% [23:06:38]line > о реализуемом товаре [23:06:38]line ОКРУГЛЕНИЕ: -0.41 [23:06:38]line ИТОГО: 650.00 [23:06:38]line Внесено: 650.00 [23:06:38]line СДАЧА: 0.00 [23:06:38]line НСП 1% : 5.76 [23:06:38]line НДС 12% : 69.07 [23:06:38]line Наличными: 650.00 [23:06:38]line Безнал.: 0.00 [23:06:38]line Место: АЗС № 62 "Партнер Нефть" [23:06:38]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [23:06:38]line СНО: Общий режим [23:06:38]line Чек 251 02.06.2024 23:06 [23:06:38]line Смена: 322 ФФД: 1.0 [23:06:38]line ЗНМ: 0300000181 [23:06:38]line РНМ: 0000000000098096 [23:06:38]line Версия ККМ: 001 [23:06:38]line ФМ: 0000000000965400 [23:06:38]line ФД: 68236 [23:06:38]line ФПД: 201022186437763 [23:06:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240602T230638&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68236&fm=201022186437763&tin=02508201610067®Number=0000000000098096&sum=65000 [23:06:38]OFD Sender: Processing packet 68236 [packets to send 26, broken 25] [23:06:38]ProducePacketName [23:06:38]name=ofd_packets/00068236 [23:06:38]OFD Sender: To server: pG, [23:06:38]CommunicateWithHost lk.salyk.kg:30040 [23:06:38]ConnectInit lk.salyk.kg [23:06:38]written 0, free lines is 4095 [23:06:38]Connected sock=10 [23:06:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 01 00 00 4D 0F 08 01 7D 69 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B2 25 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 11 FE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 40 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 1A 00 00 00 00 07 04 06 00 E8 FD 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FB 00 00 00 F4 03 04 00 FE FA 5C 66 0E 04 04 00 42 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 8C 0A 01 00 35 04 06 00 B6 D4 20 03 BC 83 34 FA 84 6D 65 A7 A3 27 [23:06:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 26 3C 47 00 5F 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 35 34 30 30 10 04 04 00 8C 0A 01 00 F4 03 04 00 FC A1 5C 66 B6 04 01 00 00 C9 40 C3 9C 32 FA 77 31 [23:06:38]CommunicateWithHost err = 0 [23:06:38]CheckOFDResponse [23:06:38]1017 (14) - 77093643461234 [23:06:38]1041 (16) - 0000000000965400 [23:06:38]1040 (4) - 68236 [23:06:38]1012 (4) - 02.06.2024 16:46 [23:06:38]1206 (1) - 0 [23:06:38]OFD Sender: Remove packet 68236 [23:06:38]ProducePacketName [23:06:38]name=ofd_packets/00068236 [23:06:38]NVStorageDeleteData [23:06:39]Write to MH i2c: 01 00 00 8C 14 A0 [23:06:39]Write i2c OK [23:06:39]MH_I2C_Read... [23:06:39]Read from MH i2c: 01 [23:06:39]MH_I2C_Read... [23:06:39]Read from MH i2c: 01 07 00 [23:06:39]MH_I2C_Read... [23:06:39]Read from MH i2c: 01 07 00 8C 14 00 00 00 00 00 EA 0C 9D [23:06:39]RasterBufferAndPrint [23:06:39]line [23:06:39]line [23:06:39]line [23:06:39]line [23:06:39]line [23:06:39]written 0, free lines is 3312 [23:06:39]MH_Cut [23:06:39]Write to MH i2c: D1 01 00 93 14 01 79 [23:06:39]Write i2c OK [23:06:39]MH_I2C_Read... [23:06:39]Read from MH i2c: D1 [23:06:39]MH_I2C_Read... [23:06:39]Read from MH i2c: D1 01 00 [23:06:39]MH_I2C_Read... [23:06:39]Read from MH i2c: D1 01 00 93 14 00 78 [23:06:39]Write to MH i2c: 01 00 00 94 14 A8 [23:06:39]Write i2c OK [23:06:39]MH_I2C_Read... [23:06:39]OFD Sender: No OFD packet to send [23:06:39]*** Cut start [23:06:39]*** Partial cut [23:06:39]*** CUTSNS_PIN = 1 [23:06:39]*** CUTSNS_PIN = 0 [23:06:40]*** Brake cut motor [23:06:40]Read from MH i2c: 01 [23:06:40]MH_I2C_Read... [23:06:40]*** Stop cut motor [23:06:40]*** Cut end [23:06:40]Read from MH i2c: 01 07 00 [23:06:40]MH_I2C_Read... [23:06:40]Read from MH i2c: 01 07 00 94 14 00 00 00 00 00 FF 0F BD [23:06:40]process_action close_receipt done [23:06:40]requested_data is exist [23:06:40]produce_requested_data [23:06:40]requested_item fm.sn is exist - process it [23:06:40]wFMCommunicate request_size=4 [23:06:40]MH_SAM_APDU [23:06:40]CAPDU: 80 11 00 00 [23:06:40]Write to MH i2c: E2 08 00 95 14 80 11 00 00 00 00 00 00 23 [23:06:40]Write i2c OK [23:06:40]MH_I2C_Read... [23:06:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:06:40]Read from MH i2c: E2 [23:06:40]MH_I2C_Read... [23:06:40]Read from MH i2c: E2 17 00 [23:06:40]MH_I2C_Read... [23:06:40]Read from MH i2c: E2 17 00 95 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 6E [23:06:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [23:06:40]wFMCommunicate OK [23:06:40]requested_item fd.num is exist - process it [23:06:40]SAM_PROTO_GetFieldsCounters [23:06:40]wFMCommunicate request_size=4 [23:06:40]MH_SAM_APDU [23:06:40]CAPDU: 80 13 00 00 [23:06:40]Write to MH i2c: E2 08 00 96 14 80 13 00 00 00 00 00 00 26 [23:06:40]Write i2c OK [23:06:40]MH_I2C_Read... [23:06:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:06:40]Read from MH i2c: E2 [23:06:40]MH_I2C_Read... [23:06:40]Read from MH i2c: E2 62 00 [23:06:40]MH_I2C_Read... [23:06:40]Read from MH i2c: E2 62 00 96 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 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 8C 0A 01 00 0E 04 04 00 42 01 00 00 12 04 04 00 FB 00 00 00 5E 04 04 00 FB 00 00 00 57 04 04 00 FC 00 00 00 19 04 04 00 00 00 00 00 90 00 11 [23:06: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 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 8C 0A 01 00 0E 04 04 00 42 01 00 00 12 04 04 00 FB 00 00 00 5E 04 04 00 FB 00 00 00 57 04 04 00 FC 00 00 00 19 04 04 00 00 00 00 00 90 00 [23:06:40]wFMCommunicate OK [23:06:40]SAM_PROTO_GetFieldsCounters done [23:06:40]requested_item shift.num is exist - process it [23:06:40]requested_item shift.opened is exist - process it [23:06:40]req_shift_opened [23:06:40]FM_GetShiftState [23:06:40]SAM_PROTO_GetShiftState [23:06:40]wFMCommunicate request_size=4 [23:06:40]MH_SAM_APDU [23:06:40]CAPDU: 80 13 01 00 [23:06:40]Write to MH i2c: E2 08 00 97 14 80 13 01 00 00 00 00 00 28 [23:06:40]Write i2c OK [23:06:40]MH_I2C_Read... [23:06:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:06:40]Read from MH i2c: E2 [23:06:40]MH_I2C_Read... [23:06:40]Read from MH i2c: E2 0E 00 [23:06:40]MH_I2C_Read... [23:06:40]Read from MH i2c: E2 0E 00 97 14 00 09 00 01 A4 BB 5B 66 00 00 00 00 90 00 54 [23:06:40]RAPDU: 09 00 01 A4 BB 5B 66 00 00 00 00 90 00 [23:06:40]wFMCommunicate OK [23:06:40]SAM_PROTO_GetShiftState done [23:06:40]FM_GetShiftState done [23:06:40]req_shift_opened done [23:06:40]requested_item shift.open_date is exist - process it [23:06:40]req_shift_open_date [23:06:40]req_shift_open_date done [23:06:40]produce_requested_data done [23:06:40]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68236,"shift.num":322,"shift.opened":1,"shift.open_date":1717287844} [23:06:40]process_action_free close_receipt [23:06:40]json_value_free [23:06:40]json_value_free done [23:06:40]process_json_proto returns [23:06:40]Send response to host [23:06:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68236,"shift.num":322,"shift.opened":1,"shift.open_date":1717287844}}} [23:06:40]free response buf [23:06:40]execute_script done [23:06:40]execute_script returns [23:06:40]free content buf [23:06:40]Sock 9.Close socket [23:06:40]Sock 9.Thread stoped [23:06:44]OFD Sender: No OFD packet to send [23:06:49]OFD Sender: No OFD packet to send [23:06:54]OFD Sender: No OFD packet to send [23:06:59]OFD Sender: No OFD packet to send [23:07:04]OFD Sender: No OFD packet to send [23:07:09]OFD Sender: No OFD packet to send [23:07:14]OFD Sender: No OFD packet to send [23:07:19]OFD Sender: No OFD packet to send [23:07:24]OFD Sender: No OFD packet to send [23:07:29]OFD Sender: No OFD packet to send [23:07:34]OFD Sender: No OFD packet to send [23:07:39]OFD Sender: No OFD packet to send [23:07:44]OFD Sender: No OFD packet to send [23:07:49]OFD Sender: No OFD packet to send [23:07:54]OFD Sender: No OFD packet to send [23:07:59]OFD Sender: No OFD packet to send [23:08:04]OFD Sender: No OFD packet to send [23:08:09]OFD Sender: No OFD packet to send [23:08:14]OFD Sender: No OFD packet to send [23:08:19]OFD Sender: No OFD packet to send [23:08:24]OFD Sender: No OFD packet to send [23:08:29]OFD Sender: No OFD packet to send [23:08:34]OFD Sender: No OFD packet to send [23:08:39]OFD Sender: No OFD packet to send [23:08:44]OFD Sender: No OFD packet to send [23:08:49]OFD Sender: No OFD packet to send [23:08:54]OFD Sender: No OFD packet to send [23:08:59]OFD Sender: No OFD packet to send [23:09:04]OFD Sender: No OFD packet to send [23:09:09]OFD Sender: No OFD packet to send [23:09:14]OFD Sender: No OFD packet to send [23:09:19]OFD Sender: No OFD packet to send [23:09:24]OFD Sender: No OFD packet to send [23:09:29]OFD Sender: No OFD packet to send [23:09:34]OFD Sender: No OFD packet to send [23:09:39]OFD Sender: No OFD packet to send [23:09:44]OFD Sender: No OFD packet to send [23:09:49]OFD Sender: No OFD packet to send [23:09:54]OFD Sender: No OFD packet to send [23:09:59]OFD Sender: No OFD packet to send [23:10:04]OFD Sender: No OFD packet to send [23:10:09]OFD Sender: No OFD packet to send [23:10:14]OFD Sender: No OFD packet to send [23:10:19]OFD Sender: No OFD packet to send [23:10:24]OFD Sender: No OFD packet to send [23:10:29]OFD Sender: No OFD packet to send [23:10:34]OFD Sender: No OFD packet to send [23:10:39]OFD Sender: No OFD packet to send [23:10:44]OFD Sender: No OFD packet to send [23:10:49]OFD Sender: No OFD packet to send [23:10:54]OFD Sender: No OFD packet to send [23:10:59]OFD Sender: No OFD packet to send [23:11:04]OFD Sender: No OFD packet to send [23:11:09]OFD Sender: No OFD packet to send [23:11:14]OFD Sender: No OFD packet to send [23:11:19]OFD Sender: No OFD packet to send [23:11:24]OFD Sender: No OFD packet to send [23:11:29]OFD Sender: No OFD packet to send [23:11:34]OFD Sender: No OFD packet to send [23:11:39]OFD Sender: No OFD packet to send [23:11:44]OFD Sender: No OFD packet to send [23:11:49]OFD Sender: No OFD packet to send [23:11:54]OFD Sender: No OFD packet to send [23:11:59]accept exits with 7 [23:11:59]New connection [23:11:59]New thread 3066543460 created [23:11:59]Thread 3066686820 joined [23:11:59]Waiting for new connection... [23:11:59] Sock 7.Parse request [23:11:59]Sock 7.Check first char [23:11:59]Sock 7.First char is OK [23:11:59]request: POST /json_proto HTTP/1.0 [23:11:59]Method: POST [23:11:59]URL: /json_proto [23:11:59]Method is POST - this is cgi request [23:11:59]url: /json_proto [23:11:59]query_string will be loaded in cgi processing [23:11:59]execute_cgi json_proto POST (null) [23:11:59]execute_cgi path=json_proto method=POST [23:11:59]POST find Content-Length [23:11:59]Host: 172.17.36.132:8080 [23:11:59]Content-Length: 677 [23:11:59]Content-Type: application/json [23:11:59] [23:11:59]POST finish read [23:11:59]Found Content-Length = 677 [23:11:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706309", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:11:59]execute_script... [23:11: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)706309", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:11:59]POST & json_proto [23:11:59]process_json_proto [23:11:59]json parsed OK: [23:11:59]protocol is kg_v1.0 [23:11:59]action value=close_receipt [23:11:59]process_action close_receipt [23:11:59]cmd_close_receipt [23:11:59]MH_GetDate [23:11:59]Write to MH i2c: F0 00 00 98 14 9B [23:11:59]Write i2c OK [23:11:59]MH_I2C_Read... [23:11:59]Read from MH i2c: F0 [23:11:59]MH_I2C_Read... [23:11:59]Read from MH i2c: F0 09 00 [23:11:59]MH_I2C_Read... [23:11:59]Read from MH i2c: F0 09 00 98 14 00 41 FC 5C 66 B2 22 B0 64 8B [23:11:59]GetLastDocTimeStamp 1717369598 [23:11:59]current date 1717369921 [23:11:59]FM_GetShiftState [23:11:59]SAM_PROTO_GetShiftState [23:11:59]wFMCommunicate request_size=4 [23:11:59]MH_SAM_APDU [23:11:59]CAPDU: 80 13 01 00 [23:11:59]Write to MH i2c: E2 08 00 99 14 80 13 01 00 00 00 00 00 2A [23:11:59]Write i2c OK [23:11:59]MH_I2C_Read... [23:11:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:11:59]Read from MH i2c: E2 [23:11:59]MH_I2C_Read... [23:11:59]Read from MH i2c: E2 0E 00 [23:11:59]MH_I2C_Read... [23:11:59]Read from MH i2c: E2 0E 00 99 14 00 09 00 01 A4 BB 5B 66 00 00 00 00 90 00 56 [23:11:59]RAPDU: 09 00 01 A4 BB 5B 66 00 00 00 00 90 00 [23:11:59]wFMCommunicate OK [23:11:59]SAM_PROTO_GetShiftState done [23:11:59]FM_GetShiftState done [23:11:59]opened in 1717287844 [23:11:59]opened+sec_in_day 1717374244 [23:11:59]quantity*price = 50065 [23:11:59]sum+1 = 50067 [23:11:59]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.66 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.17 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 252 02.06.2024 23:12 Смена: 322 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 ФМ: 0000000000965400 ФД: 68237 ФПД: 42213599921101 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240602T231201&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68237&fm=42213599921101&tin=02508201610067®Number=0000000000098096&sum=50000 [23:12:00]StoreToDocumentArchive [23:12:00]shift 322 fd 68237 [23:12:00]save to /storage/0322/doc_00068237 [23:12:00]save last doc name /storage/0322/doc_00068237 to /storage/kkm_last_doc_name [23:12:00]save OK [23:12:00]Clear old archive folders... [23:12:00]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:12:00]tlvbuf is 001B9D10 [23:12:00]SAM_PROTO_ClearQueue [23:12:00]wFMCommunicate request_size=4 [23:12:00]MH_SAM_APDU [23:12:00]CAPDU: 80 09 00 00 [23:12:00]Write to MH i2c: E2 08 00 A6 14 80 09 00 00 00 00 00 00 2C [23:12:00]Write i2c OK [23:12:00]MH_I2C_Read... [23:12:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:12:00]Read from MH i2c: E2 [23:12:00]MH_I2C_Read... [23:12:00]Read from MH i2c: E2 03 00 [23:12:00]MH_I2C_Read... [23:12:00]Read from MH i2c: E2 03 00 A6 14 00 90 00 2E [23:12:00]RAPDU: 90 00 [23:12:00]wFMCommunicate OK [23:12:00]SAM_PROTO_ClearQueue done [23:12:00]KKMCreateOFDPacket [23:12:00]OFDProtocolAddRootSTLVToBuf [23:12:00]FM_MakeSignedData [23:12:00]FM_MakeSignedData [23:12:00]SAM_PROTO_SignData [23:12:00]wFMCommunicate request_size=4 [23:12:00]MH_SAM_APDU [23:12:00]CAPDU: 80 0D 01 02 [23:12:00]Write to MH i2c: E2 08 00 A7 14 80 0D 01 02 00 00 00 00 34 [23:12:00]Write i2c OK [23:12:00]MH_I2C_Read... [23:12:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:12:00]Read from MH i2c: E2 [23:12:00]MH_I2C_Read... [23:12:00]Read from MH i2c: E2 03 00 [23:12:00]MH_I2C_Read... [23:12:00]Read from MH i2c: E2 03 00 A7 14 00 90 00 2F [23:12:00]RAPDU: 90 00 [23:12:00]wFMCommunicate OK [23:12:00]wFMCommunicate request_size=255 [23:12:00]MH_SAM_APDU [23:12: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 34 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FC 00 00 00 F4 03 04 00 41 FC 5C 66 0E 04 04 00 42 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 8D 0A 01 00 35 04 06 00 26 [23:12:00]Write to MH i2c: E2 02 01 A8 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 34 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FC 00 00 00 F4 03 04 00 41 FC 5C 66 0E 04 04 00 42 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 8D 0A 01 00 35 04 06 00 26 00 00 E2 [23:12:00]Write i2c OK [23:12:00]MH_I2C_Read... [23:12:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:12:00]Read from MH i2c: E2 [23:12:00]MH_I2C_Read... [23:12:00]Read from MH i2c: E2 03 00 [23:12:00]MH_I2C_Read... [23:12:00]Read from MH i2c: E2 03 00 A8 14 00 90 00 30 [23:12:00]RAPDU: 90 00 [23:12:00]wFMCommunicate OK [23:12:00]wFMCommunicate request_size=10 [23:12:00]MH_SAM_APDU [23:12:00]CAPDU: 80 0D 02 02 05 64 9E A0 C3 CD [23:12:00]Write to MH i2c: E2 0D 00 A9 14 80 0D 02 02 05 00 64 9E A0 C3 CD 00 00 73 [23:12:00]Write i2c OK [23:12:00]MH_I2C_Read... [23:12:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:12:00]Read from MH i2c: E2 [23:12:00]MH_I2C_Read... [23:12:00]Read from MH i2c: E2 03 00 [23:12:00]MH_I2C_Read... [23:12:00]Read from MH i2c: E2 03 00 A9 14 00 90 00 31 [23:12:00]RAPDU: 90 00 [23:12:00]wFMCommunicate OK [23:12:00]wFMCommunicate request_size=4 [23:12:00]MH_SAM_APDU [23:12:00]CAPDU: 80 0D 03 02 [23:12:00]Write to MH i2c: E2 08 00 AA 14 80 0D 03 02 00 00 00 00 39 [23:12:00]Write i2c OK [23:12:00]MH_I2C_Read... [23:12:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:12:00]Read from MH i2c: E2 [23:12:00]MH_I2C_Read... [23:12:00]Read from MH i2c: E2 0B 00 [23:12:00]MH_I2C_Read... [23:12:00]Read from MH i2c: E2 0B 00 AA 14 00 02 F0 DA 53 64 89 D0 91 90 00 A7 [23:12:00]RAPDU: 02 F0 DA 53 64 89 D0 91 90 00 [23:12:01]wFMCommunicate OK [23:12:01]SAM_PROTO_SignData done [23:12:01]FM_MakeSignedData done [23:12:01]CreateOFDProtocolMessage [23:12:01]wFMCommunicate request_size=4 [23:12:01]MH_SAM_APDU [23:12:01]CAPDU: 80 11 00 00 [23:12:01]Write to MH i2c: E2 08 00 AB 14 80 11 00 00 00 00 00 00 39 [23:12:01]Write i2c OK [23:12:01]MH_I2C_Read... [23:12:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:12:01]Read from MH i2c: E2 [23:12:01]MH_I2C_Read... [23:12:01]Read from MH i2c: E2 17 00 [23:12:01]MH_I2C_Read... [23:12:01]Read from MH i2c: E2 17 00 AB 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 84 [23:12:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [23:12:01]wFMCommunicate OK [23:12:01]CreateOFDProtocolMessage done [23:12:01]OFDSenderStorePacket 68237 [23:12:01]StoreOFDPacket docnum=68237 [23:12:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 ED 97 07 01 C8 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 34 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FC 00 00 00 F4 03 04 00 41 FC 5C 66 0E 04 04 00 42 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 8D 0A 01 00 35 04 06 00 26 64 9E A0 C3 CD 02 F0 DA 53 64 89 D0 91 [23:12:01]CheckFolder [23:12:01]dirname=/storage/ofd_packets [23:12:01]CheckFolder done [23:12:01]ProducePacketName [23:12:01]name=ofd_packets/00068237 [23:12:01]NVStorageSaveData ofd_packets/00068237 [23:12:01]File name is /storage/ofd_packets/00068237 [23:12:01]Write 301 bytes [23:12:01]NVStorageSaveData done [23:12:01]OFDSenderStorePacket done [23:12:01]KKMCreateOFDPacket done [23:12:01]NVStorageSaveData kkm_last_timestamp [23:12:01]File name is /storage/kkm_last_timestamp [23:12:01]Write 4 bytes [23:12:01]NVStorageSaveData done [23:12:01]ExternCall_PrintAddStr [23:12:01]wPrintStart [23:12:01]Write to MH i2c: 01 00 00 AC 14 C0 [23:12:01]Write i2c OK [23:12:01]MH_I2C_Read... [23:12:01]Read from MH i2c: 01 [23:12:01]MH_I2C_Read... [23:12:01]Read from MH i2c: 01 07 00 [23:12:01]MH_I2C_Read... [23:12:01]Read from MH i2c: 01 07 00 AC 14 00 00 00 00 00 FF 0F D5 [23:12:01]RasterBufferAndPrint [23:12:01]line Счет N : (1)706309 [23:12:01]line ИНН: 02508201610067 [23:12:01]line Контрольно-Кассовый Чек [23:12:01]line ПРОДАЖА [23:12:01]line ТРК (МРК, ГНК) : 32 [23:12:01]line Товар: 2710124130 [23:12:01]line Аи-92-К-4 [23:12:01]line 7.540 * 66.40 [23:12:01]line = 500.66 [23:12:01]line НДС 12% НСП 1% [23:12:01]line > о реализуемом товаре [23:12:01]line ОКРУГЛЕНИЕ: -0.66 [23:12:01]line ИТОГО: 500.00 [23:12:01]line Внесено: 500.00 [23:12:01]line СДАЧА: 0.00 [23:12:01]line НСП 1% : 4.43 [23:12:01]line НДС 12% : 53.17 [23:12:01]line Наличными: 500.00 [23:12:01]line Безнал.: 0.00 [23:12:01]line Место: АЗС № 62 "Партнер Нефть" [23:12:01]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [23:12:01]line СНО: Общий режим [23:12:01]line Чек 252 02.06.2024 23:12 [23:12:01]line Смена: 322 ФФД: 1.0 [23:12:01]line ЗНМ: 0300000181 [23:12:01]line РНМ: 0000000000098096 [23:12:01]line Версия ККМ: 001 [23:12:01]line ФМ: 0000000000965400 [23:12:01]line ФД: 68237 [23:12:01]line ФПД: 42213599921101 [23:12:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240602T231201&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68237&fm=42213599921101&tin=02508201610067®Number=0000000000098096&sum=50000 [23:12:01]OFD Sender: Processing packet 68237 [packets to send 26, broken 25] [23:12:01]ProducePacketName [23:12:01]name=ofd_packets/00068237 [23:12:01]OFD Sender: To server: pG, [23:12:01]CommunicateWithHost lk.salyk.kg:30040 [23:12:01]ConnectInit lk.salyk.kg [23:12:01]written 0, free lines is 4095 [23:12:01]Write to MH i2c: 01 00 00 D7 14 EB [23:12:01]Write i2c OK [23:12:01]MH_I2C_Read... [23:12:01]Read from MH i2c: 01 [23:12:01]MH_I2C_Read... [23:12:01]Read from MH i2c: 01 07 00 [23:12:01]MH_I2C_Read... [23:12:01]Read from MH i2c: 01 07 00 D7 14 00 00 00 00 00 E1 0C DF [23:12:01]RasterBufferAndPrint [23:12:01]line [23:12:01]line [23:12:01]line [23:12:01]line [23:12:01]line [23:12:01]written 0, free lines is 3303 [23:12:01]MH_Cut [23:12:01]Write to MH i2c: D1 01 00 DE 14 01 C4 [23:12:01]Write i2c OK [23:12:01]MH_I2C_Read... [23:12:01]Read from MH i2c: D1 [23:12:01]MH_I2C_Read... [23:12:01]Read from MH i2c: D1 01 00 [23:12:01]MH_I2C_Read... [23:12:01]Read from MH i2c: D1 01 00 DE 14 00 C3 [23:12:01]Write to MH i2c: 01 00 00 DF 14 F3 [23:12:01]Write i2c OK [23:12:01]MH_I2C_Read... [23:12:02]*** Cut start [23:12:02]*** Partial cut [23:12:02]*** CUTSNS_PIN = 1 [23:12:02]*** CUTSNS_PIN = 0 [23:12:02]*** Brake cut motor [23:12:03]Read from MH i2c: 01 [23:12:03]MH_I2C_Read... [23:12:03]*** Stop cut motor [23:12:03]*** Cut end [23:12:03]Read from MH i2c: 01 07 00 [23:12:03]MH_I2C_Read... [23:12:03]Read from MH i2c: 01 07 00 DF 14 00 00 00 00 00 FF 0F 08 [23:12:03]process_action close_receipt done [23:12:03]requested_data is exist [23:12:03]produce_requested_data [23:12:03]requested_item fm.sn is exist - process it [23:12:03]wFMCommunicate request_size=4 [23:12:03]MH_SAM_APDU [23:12:03]CAPDU: 80 11 00 00 [23:12:03]Write to MH i2c: E2 08 00 E0 14 80 11 00 00 00 00 00 00 6E [23:12:03]Write i2c OK [23:12:03]MH_I2C_Read... [23:12:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:12:03]Read from MH i2c: E2 [23:12:03]MH_I2C_Read... [23:12:03]Read from MH i2c: E2 17 00 [23:12:03]MH_I2C_Read... [23:12:03]Read from MH i2c: E2 17 00 E0 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 B9 [23:12:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [23:12:03]wFMCommunicate OK [23:12:03]requested_item fd.num is exist - process it [23:12:03]SAM_PROTO_GetFieldsCounters [23:12:03]wFMCommunicate request_size=4 [23:12:03]MH_SAM_APDU [23:12:03]CAPDU: 80 13 00 00 [23:12:03]Write to MH i2c: E2 08 00 E1 14 80 13 00 00 00 00 00 00 71 [23:12:03]Write i2c OK [23:12:03]MH_I2C_Read... [23:12:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:12:03]Read from MH i2c: E2 [23:12:03]MH_I2C_Read... [23:12:03]Read from MH i2c: E2 62 00 [23:12:03]MH_I2C_Read... [23:12:03]Read from MH i2c: E2 62 00 E1 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 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 8D 0A 01 00 0E 04 04 00 42 01 00 00 12 04 04 00 FC 00 00 00 5E 04 04 00 FC 00 00 00 57 04 04 00 FD 00 00 00 19 04 04 00 00 00 00 00 90 00 60 [23:12: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 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 8D 0A 01 00 0E 04 04 00 42 01 00 00 12 04 04 00 FC 00 00 00 5E 04 04 00 FC 00 00 00 57 04 04 00 FD 00 00 00 19 04 04 00 00 00 00 00 90 00 [23:12:03]wFMCommunicate OK [23:12:03]SAM_PROTO_GetFieldsCounters done [23:12:03]requested_item shift.num is exist - process it [23:12:03]requested_item shift.opened is exist - process it [23:12:03]req_shift_opened [23:12:03]FM_GetShiftState [23:12:03]SAM_PROTO_GetShiftState [23:12:03]wFMCommunicate request_size=4 [23:12:03]MH_SAM_APDU [23:12:03]CAPDU: 80 13 01 00 [23:12:03]Write to MH i2c: E2 08 00 E2 14 80 13 01 00 00 00 00 00 73 [23:12:03]Write i2c OK [23:12:03]MH_I2C_Read... [23:12:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:12:03]Read from MH i2c: E2 [23:12:03]MH_I2C_Read... [23:12:03]Read from MH i2c: E2 0E 00 [23:12:03]MH_I2C_Read... [23:12:03]Read from MH i2c: E2 0E 00 E2 14 00 09 00 01 A4 BB 5B 66 00 00 00 00 90 00 9F [23:12:03]RAPDU: 09 00 01 A4 BB 5B 66 00 00 00 00 90 00 [23:12:03]wFMCommunicate OK [23:12:03]SAM_PROTO_GetShiftState done [23:12:03]FM_GetShiftState done [23:12:03]req_shift_opened done [23:12:03]requested_item shift.open_date is exist - process it [23:12:03]req_shift_open_date [23:12:03]req_shift_open_date done [23:12:03]produce_requested_data done [23:12:03]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68237,"shift.num":322,"shift.opened":1,"shift.open_date":1717287844} [23:12:03]process_action_free close_receipt [23:12:03]json_value_free [23:12:03]json_value_free done [23:12:03]process_json_proto returns [23:12:03]Send response to host [23:12:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68237,"shift.num":322,"shift.opened":1,"shift.open_date":1717287844}}} [23:12:03]free response buf [23:12:03]execute_script done [23:12:03]execute_script returns [23:12:03]free content buf [23:12:03]Sock 7.Close socket [23:12:03]Sock 7.Thread stoped [23:14:06]accept exits with 9 [23:14:06]New connection [23:14:06]New thread 3066686820 created [23:14:06]Thread 3066543460 joined [23:14:06]Waiting for new connection... [23:14:06] Sock 9.Parse request [23:14:06]Sock 9.Check first char [23:14:06]Sock 9.First char is OK [23:14:06]request: POST /json_proto HTTP/1.0 [23:14:06]Method: POST [23:14:06]URL: /json_proto [23:14:06]Method is POST - this is cgi request [23:14:06]url: /json_proto [23:14:06]query_string will be loaded in cgi processing [23:14:06]execute_cgi json_proto POST (null) [23:14:06]execute_cgi path=json_proto method=POST [23:14:06]POST find Content-Length [23:14:06]Host: 172.17.36.132:8080 [23:14:06]Content-Length: 677 [23:14:06]Content-Type: application/json [23:14:06] [23:14:06]POST finish read [23:14:06]Found Content-Length = 677 [23:14:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706310", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.40, "quantity" : 4.520, "sum" : 300.13, "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:14:06]execute_script... [23:14: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)706310", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.40, "quantity" : 4.520, "sum" : 300.13, "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:14:06]POST & json_proto [23:14:06]process_json_proto [23:14:06]json parsed OK: [23:14:06]protocol is kg_v1.0 [23:14:06]action value=close_receipt [23:14:06]process_action close_receipt [23:14:06]cmd_close_receipt [23:14:06]MH_GetDate [23:14:06]Write to MH i2c: F0 00 00 E3 14 E6 [23:14:06]Write i2c OK [23:14:06]MH_I2C_Read... [23:14:06]Read from MH i2c: F0 [23:14:06]MH_I2C_Read... [23:14:06]Read from MH i2c: F0 09 00 [23:14:06]MH_I2C_Read... [23:14:06]Read from MH i2c: F0 09 00 E3 14 00 C0 FC 5C 66 B2 22 B0 64 55 [23:14:06]GetLastDocTimeStamp 1717369921 [23:14:06]current date 1717370048 [23:14:06]FM_GetShiftState [23:14:06]SAM_PROTO_GetShiftState [23:14:06]wFMCommunicate request_size=4 [23:14:06]MH_SAM_APDU [23:14:06]CAPDU: 80 13 01 00 [23:14:06]Write to MH i2c: E2 08 00 E4 14 80 13 01 00 00 00 00 00 75 [23:14:06]Write i2c OK [23:14:06]MH_I2C_Read... [23:14:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:14:06]Read from MH i2c: E2 [23:14:06]MH_I2C_Read... [23:14:06]Read from MH i2c: E2 0E 00 [23:14:06]MH_I2C_Read... [23:14:06]Read from MH i2c: E2 0E 00 E4 14 00 09 00 01 A4 BB 5B 66 00 00 00 00 90 00 A1 [23:14:06]RAPDU: 09 00 01 A4 BB 5B 66 00 00 00 00 90 00 [23:14:06]wFMCommunicate OK [23:14:06]SAM_PROTO_GetShiftState done [23:14:06]FM_GetShiftState done [23:14:06]opened in 1717287844 [23:14:06]opened+sec_in_day 1717374244 [23:14:06]quantity*price = 30012 [23:14:06]sum+1 = 30014 [23:14:06]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.13 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.87 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 253 02.06.2024 23:14 Смена: 322 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 ФМ: 0000000000965400 ФД: 68238 ФПД: 196203814562728 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240602T231408&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68238&fm=196203814562728&tin=02508201610067®Number=0000000000098096&sum=30000 [23:14:07]StoreToDocumentArchive [23:14:07]shift 322 fd 68238 [23:14:07]save to /storage/0322/doc_00068238 [23:14:07]save last doc name /storage/0322/doc_00068238 to /storage/kkm_last_doc_name [23:14:07]save OK [23:14:07]Clear old archive folders... [23:14:07]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:14:07]tlvbuf is 00236980 [23:14:07]SAM_PROTO_ClearQueue [23:14:07]wFMCommunicate request_size=4 [23:14:07]MH_SAM_APDU [23:14:07]CAPDU: 80 09 00 00 [23:14:07]Write to MH i2c: E2 08 00 F1 14 80 09 00 00 00 00 00 00 77 [23:14:07]Write i2c OK [23:14:07]MH_I2C_Read... [23:14:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:14:07]Read from MH i2c: E2 [23:14:07]MH_I2C_Read... [23:14:07]Read from MH i2c: E2 03 00 [23:14:07]MH_I2C_Read... [23:14:07]Read from MH i2c: E2 03 00 F1 14 00 90 00 79 [23:14:07]RAPDU: 90 00 [23:14:07]wFMCommunicate OK [23:14:07]SAM_PROTO_ClearQueue done [23:14:07]KKMCreateOFDPacket [23:14:07]OFDProtocolAddRootSTLVToBuf [23:14:07]FM_MakeSignedData [23:14:07]FM_MakeSignedData [23:14:07]SAM_PROTO_SignData [23:14:07]wFMCommunicate request_size=4 [23:14:07]MH_SAM_APDU [23:14:07]CAPDU: 80 0D 01 02 [23:14:07]Write to MH i2c: E2 08 00 F2 14 80 0D 01 02 00 00 00 00 7F [23:14:07]Write i2c OK [23:14:07]MH_I2C_Read... [23:14:07]Read from MH i2c: E2 [23:14:07]MH_I2C_Read... [23:14:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:14:07]Read from MH i2c: E2 03 00 [23:14:07]MH_I2C_Read... [23:14:07]Read from MH i2c: E2 03 00 F2 14 00 90 00 7A [23:14:07]RAPDU: 90 00 [23:14:07]wFMCommunicate OK [23:14:07]wFMCommunicate request_size=255 [23:14:07]MH_SAM_APDU [23:14: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 34 FF 03 08 00 03 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 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 73 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 FD 00 00 00 F4 03 04 00 C0 FC 5C 66 0E 04 04 00 42 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 8E 0A 01 00 35 04 06 00 B2 [23:14:07]Write to MH i2c: E2 02 01 F3 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 34 FF 03 08 00 03 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 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 73 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 FD 00 00 00 F4 03 04 00 C0 FC 5C 66 0E 04 04 00 42 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 8E 0A 01 00 35 04 06 00 B2 00 00 D8 [23:14:07]Write i2c OK [23:14:07]MH_I2C_Read... [23:14:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:14:07]Read from MH i2c: E2 [23:14:07]MH_I2C_Read... [23:14:07]Read from MH i2c: E2 03 00 [23:14:07]MH_I2C_Read... [23:14:07]Read from MH i2c: E2 03 00 F3 14 00 90 00 7B [23:14:07]RAPDU: 90 00 [23:14:07]wFMCommunicate OK [23:14:07]wFMCommunicate request_size=10 [23:14:07]MH_SAM_APDU [23:14:07]CAPDU: 80 0D 02 02 05 72 42 AB AB A8 [23:14:07]Write to MH i2c: E2 0D 00 F4 14 80 0D 02 02 05 00 72 42 AB AB A8 00 00 3E [23:14:07]Write i2c OK [23:14:07]MH_I2C_Read... [23:14:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:14:07]Read from MH i2c: E2 [23:14:07]MH_I2C_Read... [23:14:07]Read from MH i2c: E2 03 00 [23:14:07]MH_I2C_Read... [23:14:07]Read from MH i2c: E2 03 00 F4 14 00 90 00 7C [23:14:07]RAPDU: 90 00 [23:14:07]wFMCommunicate OK [23:14:07]wFMCommunicate request_size=4 [23:14:07]MH_SAM_APDU [23:14:07]CAPDU: 80 0D 03 02 [23:14:07]Write to MH i2c: E2 08 00 F5 14 80 0D 03 02 00 00 00 00 84 [23:14:07]Write i2c OK [23:14:07]MH_I2C_Read... [23:14:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:14:07]Read from MH i2c: E2 [23:14:07]MH_I2C_Read... [23:14:07]Read from MH i2c: E2 0B 00 [23:14:07]MH_I2C_Read... [23:14:07]Read from MH i2c: E2 0B 00 F5 14 00 29 33 14 14 0C D4 98 18 90 00 99 [23:14:07]RAPDU: 29 33 14 14 0C D4 98 18 90 00 [23:14:07]wFMCommunicate OK [23:14:07]SAM_PROTO_SignData done [23:14:07]FM_MakeSignedData done [23:14:07]CreateOFDProtocolMessage [23:14:07]wFMCommunicate request_size=4 [23:14:07]MH_SAM_APDU [23:14:07]CAPDU: 80 11 00 00 [23:14:07]Write to MH i2c: E2 08 00 F6 14 80 11 00 00 00 00 00 00 84 [23:14:07]Write i2c OK [23:14:07]MH_I2C_Read... [23:14:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:14:07]Read from MH i2c: E2 [23:14:07]MH_I2C_Read... [23:14:07]Read from MH i2c: E2 17 00 [23:14:07]MH_I2C_Read... [23:14:07]Read from MH i2c: E2 17 00 F6 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 CF [23:14:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [23:14:07]wFMCommunicate OK [23:14:07]CreateOFDProtocolMessage done [23:14:07]OFDSenderStorePacket 68238 [23:14:07]StoreOFDPacket docnum=68238 [23:14:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 9F DF 07 01 07 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 34 FF 03 08 00 03 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 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 73 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 FD 00 00 00 F4 03 04 00 C0 FC 5C 66 0E 04 04 00 42 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 8E 0A 01 00 35 04 06 00 B2 72 42 AB AB A8 29 33 14 14 0C D4 98 18 [23:14:07]CheckFolder [23:14:07]dirname=/storage/ofd_packets [23:14:07]CheckFolder done [23:14:07]ProducePacketName [23:14:07]name=ofd_packets/00068238 [23:14:07]NVStorageSaveData ofd_packets/00068238 [23:14:07]File name is /storage/ofd_packets/00068238 [23:14:07]Write 301 bytes [23:14:07]NVStorageSaveData done [23:14:07]OFDSenderStorePacket done [23:14:07]KKMCreateOFDPacket done [23:14:07]NVStorageSaveData kkm_last_timestamp [23:14:07]File name is /storage/kkm_last_timestamp [23:14:07]Write 4 bytes [23:14:07]NVStorageSaveData done [23:14:07]ExternCall_PrintAddStr [23:14:07]wPrintStart [23:14:07]Write to MH i2c: 01 00 00 F7 14 0B [23:14:07]Write i2c OK [23:14:07]MH_I2C_Read... [23:14:07]Read from MH i2c: 01 [23:14:07]MH_I2C_Read... [23:14:07]Read from MH i2c: 01 07 00 [23:14:07]MH_I2C_Read... [23:14:07]Read from MH i2c: 01 07 00 F7 14 00 00 00 00 00 FF 0F 20 [23:14:07]RasterBufferAndPrint [23:14:07]line Счет N : (1)706310 [23:14:07]line ИНН: 02508201610067 [23:14:07]line Контрольно-Кассовый Чек [23:14:07]line ПРОДАЖА [23:14:07]line ТРК (МРК, ГНК) : 13 [23:14:07]line Товар: 2710124130 [23:14:07]line Аи-92-К-4 [23:14:07]line 4.520 * 66.40 [23:14:07]line = 300.13 [23:14:07]line НДС 12% НСП 1% [23:14:07]line > о реализуемом товаре [23:14:07]line ОКРУГЛЕНИЕ: -0.13 [23:14:07]line ИТОГО: 300.00 [23:14:07]line Внесено: 300.00 [23:14:07]line СДАЧА: 0.00 [23:14:07]line НСП 1% : 2.66 [23:14:07]line НДС 12% : 31.87 [23:14:07]line Наличными: 300.00 [23:14:07]line Безнал.: 0.00 [23:14:07]line Место: АЗС № 62 "Партнер Нефть" [23:14:07]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [23:14:07]line СНО: Общий режим [23:14:07]line Чек 253 02.06.2024 23:14 [23:14:07]line Смена: 322 ФФД: 1.0 [23:14:08]line ЗНМ: 0300000181 [23:14:08]line РНМ: 0000000000098096 [23:14:08]line Версия ККМ: 001 [23:14:08]line ФМ: 0000000000965400 [23:14:08]line ФД: 68238 [23:14:08]line ФПД: 196203814562728 [23:14:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240602T231408&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68238&fm=196203814562728&tin=02508201610067®Number=0000000000098096&sum=30000 [23:14:08]written 0, free lines is 4095 [23:14:08]Write to MH i2c: 01 00 00 22 15 37 [23:14:08]Write i2c OK [23:14:08]MH_I2C_Read... [23:14:08]Read from MH i2c: 01 [23:14:08]MH_I2C_Read... [23:14:08]Read from MH i2c: 01 07 00 [23:14:08]MH_I2C_Read... [23:14:08]Read from MH i2c: 01 07 00 22 15 00 00 00 00 00 E4 0C 2E [23:14:08]RasterBufferAndPrint [23:14:08]line [23:14:08]line [23:14:08]line [23:14:08]line [23:14:08]line [23:14:08]written 0, free lines is 3303 [23:14:08]MH_Cut [23:14:08]Write to MH i2c: D1 01 00 29 15 01 10 [23:14:08]Write i2c OK [23:14:08]MH_I2C_Read... [23:14:08]Read from MH i2c: D1 [23:14:08]MH_I2C_Read... [23:14:08]Read from MH i2c: D1 01 00 [23:14:08]MH_I2C_Read... [23:14:08]Read from MH i2c: D1 01 00 29 15 00 0F [23:14:08]Write to MH i2c: 01 00 00 2A 15 3F [23:14:08]Write i2c OK [23:14:08]MH_I2C_Read... [23:14:09]*** Cut start [23:14:09]*** Partial cut [23:14:09]*** CUTSNS_PIN = 1 [23:14:09]*** CUTSNS_PIN = 0 [23:14:09]*** Brake cut motor [23:14:10]Read from MH i2c: 01 [23:14:10]MH_I2C_Read... [23:14:10]*** Stop cut motor [23:14:10]*** Cut end [23:14:10]Read from MH i2c: 01 07 00 [23:14:10]MH_I2C_Read... [23:14:10]Read from MH i2c: 01 07 00 2A 15 00 00 00 00 00 FF 0F 54 [23:14:10]process_action close_receipt done [23:14:10]requested_data is exist [23:14:10]produce_requested_data [23:14:10]requested_item fm.sn is exist - process it [23:14:10]wFMCommunicate request_size=4 [23:14:10]MH_SAM_APDU [23:14:10]CAPDU: 80 11 00 00 [23:14:10]Write to MH i2c: E2 08 00 2B 15 80 11 00 00 00 00 00 00 BA [23:14:10]Write i2c OK [23:14:10]MH_I2C_Read... [23:14:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:14:10]Read from MH i2c: E2 [23:14:10]MH_I2C_Read... [23:14:10]Read from MH i2c: E2 17 00 [23:14:10]MH_I2C_Read... [23:14:10]Read from MH i2c: E2 17 00 2B 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 05 [23:14:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [23:14:10]wFMCommunicate OK [23:14:10]requested_item fd.num is exist - process it [23:14:10]SAM_PROTO_GetFieldsCounters [23:14:10]wFMCommunicate request_size=4 [23:14:10]MH_SAM_APDU [23:14:10]CAPDU: 80 13 00 00 [23:14:10]Write to MH i2c: E2 08 00 2C 15 80 13 00 00 00 00 00 00 BD [23:14:10]Write i2c OK [23:14:10]MH_I2C_Read... [23:14:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:14:10]Read from MH i2c: E2 [23:14:10]MH_I2C_Read... [23:14:10]Read from MH i2c: E2 62 00 [23:14:10]MH_I2C_Read... [23:14:10]Read from MH i2c: E2 62 00 2C 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 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 8E 0A 01 00 0E 04 04 00 42 01 00 00 12 04 04 00 FD 00 00 00 5E 04 04 00 FD 00 00 00 57 04 04 00 FE 00 00 00 19 04 04 00 00 00 00 00 90 00 B0 [23:14: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 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 8E 0A 01 00 0E 04 04 00 42 01 00 00 12 04 04 00 FD 00 00 00 5E 04 04 00 FD 00 00 00 57 04 04 00 FE 00 00 00 19 04 04 00 00 00 00 00 90 00 [23:14:10]wFMCommunicate OK [23:14:10]SAM_PROTO_GetFieldsCounters done [23:14:10]requested_item shift.num is exist - process it [23:14:10]requested_item shift.opened is exist - process it [23:14:10]req_shift_opened [23:14:10]FM_GetShiftState [23:14:10]SAM_PROTO_GetShiftState [23:14:10]wFMCommunicate request_size=4 [23:14:10]MH_SAM_APDU [23:14:10]CAPDU: 80 13 01 00 [23:14:10]Write to MH i2c: E2 08 00 2D 15 80 13 01 00 00 00 00 00 BF [23:14:10]Write i2c OK [23:14:10]MH_I2C_Read... [23:14:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:14:10]Read from MH i2c: E2 [23:14:10]MH_I2C_Read... [23:14:10]Read from MH i2c: E2 0E 00 [23:14:10]MH_I2C_Read... [23:14:10]Read from MH i2c: E2 0E 00 2D 15 00 09 00 01 A4 BB 5B 66 00 00 00 00 90 00 EB [23:14:10]RAPDU: 09 00 01 A4 BB 5B 66 00 00 00 00 90 00 [23:14:10]wFMCommunicate OK [23:14:10]SAM_PROTO_GetShiftState done [23:14:10]FM_GetShiftState done [23:14:10]req_shift_opened done [23:14:10]requested_item shift.open_date is exist - process it [23:14:10]req_shift_open_date [23:14:10]req_shift_open_date done [23:14:10]produce_requested_data done [23:14:10]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68238,"shift.num":322,"shift.opened":1,"shift.open_date":1717287844} [23:14:10]process_action_free close_receipt [23:14:10]json_value_free [23:14:10]json_value_free done [23:14:10]process_json_proto returns [23:14:10]Send response to host [23:14:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68238,"shift.num":322,"shift.opened":1,"shift.open_date":1717287844}}} [23:14:10]free response buf [23:14:10]execute_script done [23:14:10]execute_script returns [23:14:10]free content buf [23:14:10]Sock 9.Close socket [23:14:10]Sock 9.Thread stoped [23:14:15]ConnectInit Can't connect to host [23:14:15]CommunicateWithHost connect error [23:14:15]CommunicateWithHost err = -1 [23:14:15]OFD Sender: Server communicate error [23:14:15]OFD Sender: Processing packet 68237 [packets to send 27, broken 25] [23:14:15]ProducePacketName [23:14:15]name=ofd_packets/00068237 [23:14:15]OFD Sender: To server: pG, [23:14:15]CommunicateWithHost lk.salyk.kg:30040 [23:14:15]ConnectInit lk.salyk.kg [23:14:15]Connected sock=9 [23:14:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 ED 97 07 01 C8 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 34 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FC 00 00 00 F4 03 04 00 41 FC 5C 66 0E 04 04 00 42 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 8D 0A 01 00 35 04 06 00 26 64 9E A0 C3 CD 02 F0 DA 53 64 89 D0 91 [23:14:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 84 04 47 00 20 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 35 34 30 30 10 04 04 00 8D 0A 01 00 F4 03 04 00 C5 A3 5C 66 B6 04 01 00 00 FF F2 32 92 63 BC 16 0C [23:14:15]CommunicateWithHost err = 0 [23:14:15]CheckOFDResponse [23:14:15]1017 (14) - 77093643461234 [23:14:15]1041 (16) - 0000000000965400 [23:14:15]1040 (4) - 68237 [23:14:15]1012 (4) - 02.06.2024 16:54 [23:14:15]1206 (1) - 0 [23:14:15]OFD Sender: Remove packet 68237 [23:14:15]ProducePacketName [23:14:15]name=ofd_packets/00068237 [23:14:15]NVStorageDeleteData [23:14:16]OFD Sender: Processing packet 68238 [packets to send 26, broken 25] [23:14:16]ProducePacketName [23:14:16]name=ofd_packets/00068238 [23:14:16]OFD Sender: To server: pG, [23:14:16]CommunicateWithHost lk.salyk.kg:30040 [23:14:16]ConnectInit lk.salyk.kg [23:14:16]Connected sock=9 [23:14:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 9F DF 07 01 07 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 34 FF 03 08 00 03 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 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 73 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 FD 00 00 00 F4 03 04 00 C0 FC 5C 66 0E 04 04 00 42 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 8E 0A 01 00 35 04 06 00 B2 72 42 AB AB A8 29 33 14 14 0C D4 98 18 [23:14:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 F4 4B 47 00 70 38 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 8E 0A 01 00 F4 03 04 00 C6 A3 5C 66 B6 04 01 00 00 6F B2 25 F2 9F 3E 6D 00 [23:14:16]CommunicateWithHost err = 0 [23:14:16]CheckOFDResponse [23:14:16]1017 (14) - 77093643461234 [23:14:16]1041 (16) - 0000000000965400 [23:14:16]1040 (4) - 68238 [23:14:16]1012 (4) - 02.06.2024 16:54 [23:14:16]1206 (1) - 0 [23:14:16]OFD Sender: Remove packet 68238 [23:14:16]ProducePacketName [23:14:16]name=ofd_packets/00068238 [23:14:16]NVStorageDeleteData [23:14:17]OFD Sender: No OFD packet to send [23:14:22]OFD Sender: No OFD packet to send [23:14:27]OFD Sender: No OFD packet to send [23:14:32]OFD Sender: No OFD packet to send [23:14:37]OFD Sender: No OFD packet to send [23:14:42]OFD Sender: No OFD packet to send [23:14:47]OFD Sender: No OFD packet to send [23:14:52]OFD Sender: No OFD packet to send [23:14:57]OFD Sender: No OFD packet to send [23:15:02]OFD Sender: No OFD packet to send [23:15:07]OFD Sender: No OFD packet to send [23:15:12]OFD Sender: No OFD packet to send [23:15:17]OFD Sender: No OFD packet to send [23:15:22]OFD Sender: No OFD packet to send [23:15:24]accept exits with 7 [23:15:24]New connection [23:15:24]New thread 3066543460 created [23:15:24]Thread 3066686820 joined [23:15:24]Waiting for new connection... [23:15:24] Sock 7.Parse request [23:15:24]Sock 7.Check first char [23:15:24]Sock 7.First char is OK [23:15:24]request: POST /json_proto HTTP/1.0 [23:15:24]Method: POST [23:15:24]URL: /json_proto [23:15:24]Method is POST - this is cgi request [23:15:24]url: /json_proto [23:15:24]query_string will be loaded in cgi processing [23:15:24]execute_cgi json_proto POST (null) [23:15:24]execute_cgi path=json_proto method=POST [23:15:24]POST find Content-Length [23:15:24]Host: 172.17.36.132:8080 [23:15:24]Content-Length: 682 [23:15:24]Content-Type: application/json [23:15:24] [23:15:24]POST finish read [23:15:24]Found Content-Length = 682 [23:15:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706311", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:15:24]execute_script... [23:15:24]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706311", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:15:24]POST & json_proto [23:15:24]process_json_proto [23:15:24]json parsed OK: [23:15:24]protocol is kg_v1.0 [23:15:24]action value=close_receipt [23:15:24]process_action close_receipt [23:15:24]cmd_close_receipt [23:15:24]MH_GetDate [23:15:24]Write to MH i2c: F0 00 00 2E 15 32 [23:15:24]Write i2c OK [23:15:24]MH_I2C_Read... [23:15:24]Read from MH i2c: F0 [23:15:24]MH_I2C_Read... [23:15:24]Read from MH i2c: F0 09 00 [23:15:24]MH_I2C_Read... [23:15:24]Read from MH i2c: F0 09 00 2E 15 00 0E FD 5C 66 B2 22 B0 64 F0 [23:15:24]GetLastDocTimeStamp 1717370048 [23:15:24]current date 1717370126 [23:15:24]FM_GetShiftState [23:15:24]SAM_PROTO_GetShiftState [23:15:24]wFMCommunicate request_size=4 [23:15:24]MH_SAM_APDU [23:15:24]CAPDU: 80 13 01 00 [23:15:24]Write to MH i2c: E2 08 00 2F 15 80 13 01 00 00 00 00 00 C1 [23:15:24]Write i2c OK [23:15:24]MH_I2C_Read... [23:15:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:15:24]Read from MH i2c: E2 [23:15:24]MH_I2C_Read... [23:15:24]Read from MH i2c: E2 0E 00 [23:15:24]MH_I2C_Read... [23:15:24]Read from MH i2c: E2 0E 00 2F 15 00 09 00 01 A4 BB 5B 66 00 00 00 00 90 00 ED [23:15:24]RAPDU: 09 00 01 A4 BB 5B 66 00 00 00 00 90 00 [23:15:24]wFMCommunicate OK [23:15:24]SAM_PROTO_GetShiftState done [23:15:24]FM_GetShiftState done [23:15:24]opened in 1717287844 [23:15:24]opened+sec_in_day 1717374244 [23:15:24]quantity*price = 100064 [23:15:24]sum+1 = 100066 [23:15:24]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.65 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.26 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 254 02.06.2024 23:15 Смена: 322 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 ФМ: 0000000000965400 ФД: 68239 ФПД: 196206222315274 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240602T231526&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68239&fm=196206222315274&tin=02508201610067®Number=0000000000098096&sum=100000 [23:15:26]StoreToDocumentArchive [23:15:26]shift 322 fd 68239 [23:15:26]save to /storage/0322/doc_00068239 [23:15:26]save last doc name /storage/0322/doc_00068239 to /storage/kkm_last_doc_name [23:15:26]save OK [23:15:26]Clear old archive folders... [23:15:26]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:15:26]tlvbuf is B6F14AB0 [23:15:26]SAM_PROTO_ClearQueue [23:15:26]wFMCommunicate request_size=4 [23:15:26]MH_SAM_APDU [23:15:26]CAPDU: 80 09 00 00 [23:15:26]Write to MH i2c: E2 08 00 3C 15 80 09 00 00 00 00 00 00 C3 [23:15:26]Write i2c OK [23:15:26]MH_I2C_Read... [23:15:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:15:26]Read from MH i2c: E2 [23:15:26]MH_I2C_Read... [23:15:26]Read from MH i2c: E2 03 00 [23:15:26]MH_I2C_Read... [23:15:26]Read from MH i2c: E2 03 00 3C 15 00 90 00 C5 [23:15:26]RAPDU: 90 00 [23:15:26]wFMCommunicate OK [23:15:26]SAM_PROTO_ClearQueue done [23:15:26]KKMCreateOFDPacket [23:15:26]OFDProtocolAddRootSTLVToBuf [23:15:26]FM_MakeSignedData [23:15:26]FM_MakeSignedData [23:15:26]SAM_PROTO_SignData [23:15:26]wFMCommunicate request_size=4 [23:15:26]MH_SAM_APDU [23:15:26]CAPDU: 80 0D 01 02 [23:15:26]Write to MH i2c: E2 08 00 3D 15 80 0D 01 02 00 00 00 00 CB [23:15:26]Write i2c OK [23:15:26]MH_I2C_Read... [23:15:26]Read from MH i2c: E2 [23:15:26]MH_I2C_Read... [23:15:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:15:26]Read from MH i2c: E2 03 00 [23:15:26]MH_I2C_Read... [23:15:26]Read from MH i2c: E2 03 00 3D 15 00 90 00 C6 [23:15:26]RAPDU: 90 00 [23:15:26]wFMCommunicate OK [23:15:26]wFMCommunicate request_size=255 [23:15:26]MH_SAM_APDU [23:15: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 34 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 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 0E FD 5C 66 0E 04 04 00 42 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 8F 0A 01 00 35 04 06 00 B2 [23:15:26]Write to MH i2c: E2 02 01 3E 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 34 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 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 0E FD 5C 66 0E 04 04 00 42 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 8F 0A 01 00 35 04 06 00 B2 00 00 27 [23:15:26]Write i2c OK [23:15:26]MH_I2C_Read... [23:15:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:15:26]Read from MH i2c: E2 [23:15:26]MH_I2C_Read... [23:15:26]Read from MH i2c: E2 03 00 [23:15:26]MH_I2C_Read... [23:15:26]Read from MH i2c: E2 03 00 3E 15 00 90 00 C7 [23:15:26]RAPDU: 90 00 [23:15:26]wFMCommunicate OK [23:15:26]wFMCommunicate request_size=10 [23:15:26]MH_SAM_APDU [23:15:26]CAPDU: 80 0D 02 02 05 72 D2 2F 0F 0A [23:15:26]Write to MH i2c: E2 0D 00 3F 15 80 0D 02 02 05 00 72 D2 2F 0F 0A 00 00 64 [23:15:26]Write i2c OK [23:15:26]MH_I2C_Read... [23:15:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:15:26]Read from MH i2c: E2 [23:15:26]MH_I2C_Read... [23:15:26]Read from MH i2c: E2 03 00 [23:15:26]MH_I2C_Read... [23:15:26]Read from MH i2c: E2 03 00 3F 15 00 90 00 C8 [23:15:26]RAPDU: 90 00 [23:15:26]wFMCommunicate OK [23:15:26]wFMCommunicate request_size=4 [23:15:26]MH_SAM_APDU [23:15:26]CAPDU: 80 0D 03 02 [23:15:26]Write to MH i2c: E2 08 00 40 15 80 0D 03 02 00 00 00 00 D0 [23:15:26]Write i2c OK [23:15:26]MH_I2C_Read... [23:15:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:15:26]Read from MH i2c: E2 [23:15:26]MH_I2C_Read... [23:15:26]Read from MH i2c: E2 0B 00 [23:15:26]MH_I2C_Read... [23:15:26]Read from MH i2c: E2 0B 00 40 15 00 80 8E E7 5E CA 06 07 15 90 00 10 [23:15:26]RAPDU: 80 8E E7 5E CA 06 07 15 90 00 [23:15:26]wFMCommunicate OK [23:15:26]SAM_PROTO_SignData done [23:15:26]FM_MakeSignedData done [23:15:26]CreateOFDProtocolMessage [23:15:26]wFMCommunicate request_size=4 [23:15:26]MH_SAM_APDU [23:15:26]CAPDU: 80 11 00 00 [23:15:26]Write to MH i2c: E2 08 00 41 15 80 11 00 00 00 00 00 00 D0 [23:15:26]Write i2c OK [23:15:26]MH_I2C_Read... [23:15:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:15:26]Read from MH i2c: E2 [23:15:26]MH_I2C_Read... [23:15:26]Read from MH i2c: E2 17 00 [23:15:26]MH_I2C_Read... [23:15:26]Read from MH i2c: E2 17 00 41 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 1B [23:15:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [23:15:26]wFMCommunicate OK [23:15:26]CreateOFDProtocolMessage done [23:15:26]OFDSenderStorePacket 68239 [23:15:26]StoreOFDPacket docnum=68239 [23:15:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 02 BB 07 01 94 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 34 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 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 0E FD 5C 66 0E 04 04 00 42 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 8F 0A 01 00 35 04 06 00 B2 72 D2 2F 0F 0A 80 8E E7 5E CA 06 07 15 [23:15:26]CheckFolder [23:15:26]dirname=/storage/ofd_packets [23:15:26]CheckFolder done [23:15:26]ProducePacketName [23:15:26]name=ofd_packets/00068239 [23:15:26]NVStorageSaveData ofd_packets/00068239 [23:15:26]File name is /storage/ofd_packets/00068239 [23:15:26]Write 301 bytes [23:15:26]NVStorageSaveData done [23:15:26]OFDSenderStorePacket done [23:15:26]KKMCreateOFDPacket done [23:15:26]NVStorageSaveData kkm_last_timestamp [23:15:26]File name is /storage/kkm_last_timestamp [23:15:26]Write 4 bytes [23:15:26]NVStorageSaveData done [23:15:26]ExternCall_PrintAddStr [23:15:26]wPrintStart [23:15:26]Write to MH i2c: 01 00 00 42 15 57 [23:15:26]Write i2c OK [23:15:26]MH_I2C_Read... [23:15:26]Read from MH i2c: 01 [23:15:26]MH_I2C_Read... [23:15:26]Read from MH i2c: 01 07 00 [23:15:26]MH_I2C_Read... [23:15:26]Read from MH i2c: 01 07 00 42 15 00 00 00 00 00 FF 0F 6C [23:15:26]RasterBufferAndPrint [23:15:26]line Счет N : (1)706311 [23:15:26]line ИНН: 02508201610067 [23:15:26]line Контрольно-Кассовый Чек [23:15:26]line ПРОДАЖА [23:15:26]line ТРК (МРК, ГНК) : 32 [23:15:26]line Товар: 2710124130 [23:15:26]line Аи-92-К-4 [23:15:26]line 15.070 * 66.40 [23:15:26]line = 1000.65 [23:15:26]line НДС 12% НСП 1% [23:15:26]line > о реализуемом товаре [23:15:26]line ОКРУГЛЕНИЕ: -0.65 [23:15:26]line ИТОГО: 1000.00 [23:15:26]line Внесено: 1000.00 [23:15:26]line СДАЧА: 0.00 [23:15:26]line НСП 1% : 8.85 [23:15:26]line НДС 12% : 106.26 [23:15:26]line Наличными: 1000.00 [23:15:26]line Безнал.: 0.00 [23:15:26]line Место: АЗС № 62 "Партнер Нефть" [23:15:26]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [23:15:26]line СНО: Общий режим [23:15:26]line Чек 254 02.06.2024 23:15 [23:15:26]line Смена: 322 ФФД: 1.0 [23:15:26]line ЗНМ: 0300000181 [23:15:26]line РНМ: 0000000000098096 [23:15:26]line Версия ККМ: 001 [23:15:26]line ФМ: 0000000000965400 [23:15:26]line ФД: 68239 [23:15:26]line ФПД: 196206222315274 [23:15:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240602T231526&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68239&fm=196206222315274&tin=02508201610067®Number=0000000000098096&sum=100000 [23:15:26]OFD Sender: Processing packet 68239 [packets to send 26, broken 25] [23:15:26]ProducePacketName [23:15:26]name=ofd_packets/00068239 [23:15:26]OFD Sender: To server: pG, [23:15:26]CommunicateWithHost lk.salyk.kg:30040 [23:15:26]ConnectInit lk.salyk.kg [23:15:26]written 0, free lines is 4095 [23:15:26]Connected sock=10 [23:15:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 02 BB 07 01 94 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 34 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 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 0E FD 5C 66 0E 04 04 00 42 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 8F 0A 01 00 35 04 06 00 B2 72 D2 2F 0F 0A 80 8E E7 5E CA 06 07 15 [23:15:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 5F 1F 47 00 B1 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 35 34 30 30 10 04 04 00 8F 0A 01 00 F4 03 04 00 0C A4 5C 66 B6 04 01 00 00 7A E9 6F EF 83 63 4D 97 [23:15:27]CommunicateWithHost err = 0 [23:15:27]CheckOFDResponse [23:15:27]1017 (14) - 77093643461234 [23:15:27]1041 (16) - 0000000000965400 [23:15:27]1040 (4) - 68239 [23:15:27]1012 (4) - 02.06.2024 16:55 [23:15:27]1206 (1) - 0 [23:15:27]OFD Sender: Remove packet 68239 [23:15:27]ProducePacketName [23:15:27]name=ofd_packets/00068239 [23:15:27]NVStorageDeleteData [23:15:27]Write to MH i2c: 01 00 00 6D 15 82 [23:15:27]Write i2c OK [23:15:27]MH_I2C_Read... [23:15:27]Read from MH i2c: 01 [23:15:27]MH_I2C_Read... [23:15:27]Read from MH i2c: 01 07 00 [23:15:27]MH_I2C_Read... [23:15:27]Read from MH i2c: 01 07 00 6D 15 00 00 00 00 00 EE 0C 83 [23:15:27]RasterBufferAndPrint [23:15:27]line [23:15:27]line [23:15:27]line [23:15:27]line [23:15:27]line [23:15:27]written 0, free lines is 3316 [23:15:27]MH_Cut [23:15:27]Write to MH i2c: D1 01 00 74 15 01 5B [23:15:27]Write i2c OK [23:15:27]MH_I2C_Read... [23:15:27]Read from MH i2c: D1 [23:15:27]MH_I2C_Read... [23:15:27]Read from MH i2c: D1 01 00 [23:15:27]MH_I2C_Read... [23:15:27]Read from MH i2c: D1 01 00 74 15 00 5A [23:15:27]Write to MH i2c: 01 00 00 75 15 8A [23:15:27]Write i2c OK [23:15:27]MH_I2C_Read... [23:15:27]OFD Sender: No OFD packet to send [23:15:28]*** Cut start [23:15:28]*** Partial cut [23:15:28]*** CUTSNS_PIN = 1 [23:15:28]*** CUTSNS_PIN = 0 [23:15:28]*** Brake cut motor [23:15:28]Read from MH i2c: 01 [23:15:28]MH_I2C_Read... [23:15:28]*** Stop cut motor [23:15:28]*** Cut end [23:15:28]Read from MH i2c: 01 07 00 [23:15:28]MH_I2C_Read... [23:15:28]Read from MH i2c: 01 07 00 75 15 00 00 00 00 00 FF 0F 9F [23:15:28]process_action close_receipt done [23:15:28]requested_data is exist [23:15:28]produce_requested_data [23:15:28]requested_item fm.sn is exist - process it [23:15:28]wFMCommunicate request_size=4 [23:15:28]MH_SAM_APDU [23:15:28]CAPDU: 80 11 00 00 [23:15:28]Write to MH i2c: E2 08 00 76 15 80 11 00 00 00 00 00 00 05 [23:15:28]Write i2c OK [23:15:28]MH_I2C_Read... [23:15:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:15:28]Read from MH i2c: E2 [23:15:28]MH_I2C_Read... [23:15:28]Read from MH i2c: E2 17 00 [23:15:28]MH_I2C_Read... [23:15:28]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 35 34 30 30 90 00 50 [23:15:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [23:15:28]wFMCommunicate OK [23:15:28]requested_item fd.num is exist - process it [23:15:28]SAM_PROTO_GetFieldsCounters [23:15:28]wFMCommunicate request_size=4 [23:15:28]MH_SAM_APDU [23:15:28]CAPDU: 80 13 00 00 [23:15:28]Write to MH i2c: E2 08 00 77 15 80 13 00 00 00 00 00 00 08 [23:15:28]Write i2c OK [23:15:28]MH_I2C_Read... [23:15:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:15:28]Read from MH i2c: E2 [23:15:28]MH_I2C_Read... [23:15:28]Read from MH i2c: E2 62 00 [23:15:28]MH_I2C_Read... [23:15:28]Read from MH i2c: E2 62 00 77 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 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 8F 0A 01 00 0E 04 04 00 42 01 00 00 12 04 04 00 FE 00 00 00 5E 04 04 00 FE 00 00 00 57 04 04 00 FF 00 00 00 19 04 04 00 00 00 00 00 90 00 FF [23:15: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 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 8F 0A 01 00 0E 04 04 00 42 01 00 00 12 04 04 00 FE 00 00 00 5E 04 04 00 FE 00 00 00 57 04 04 00 FF 00 00 00 19 04 04 00 00 00 00 00 90 00 [23:15:28]wFMCommunicate OK [23:15:28]SAM_PROTO_GetFieldsCounters done [23:15:28]requested_item shift.num is exist - process it [23:15:28]requested_item shift.opened is exist - process it [23:15:28]req_shift_opened [23:15:28]FM_GetShiftState [23:15:28]SAM_PROTO_GetShiftState [23:15:28]wFMCommunicate request_size=4 [23:15:28]MH_SAM_APDU [23:15:28]CAPDU: 80 13 01 00 [23:15:28]Write to MH i2c: E2 08 00 78 15 80 13 01 00 00 00 00 00 0A [23:15:28]Write i2c OK [23:15:28]MH_I2C_Read... [23:15:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:15:29]Read from MH i2c: E2 [23:15:29]MH_I2C_Read... [23:15:29]Read from MH i2c: E2 0E 00 [23:15:29]MH_I2C_Read... [23:15:29]Read from MH i2c: E2 0E 00 78 15 00 09 00 01 A4 BB 5B 66 00 00 00 00 90 00 36 [23:15:29]RAPDU: 09 00 01 A4 BB 5B 66 00 00 00 00 90 00 [23:15:29]wFMCommunicate OK [23:15:29]SAM_PROTO_GetShiftState done [23:15:29]FM_GetShiftState done [23:15:29]req_shift_opened done [23:15:29]requested_item shift.open_date is exist - process it [23:15:29]req_shift_open_date [23:15:29]req_shift_open_date done [23:15:29]produce_requested_data done [23:15:29]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68239,"shift.num":322,"shift.opened":1,"shift.open_date":1717287844} [23:15:29]process_action_free close_receipt [23:15:29]json_value_free [23:15:29]json_value_free done [23:15:29]process_json_proto returns [23:15:29]Send response to host [23:15:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68239,"shift.num":322,"shift.opened":1,"shift.open_date":1717287844}}} [23:15:29]free response buf [23:15:29]execute_script done [23:15:29]execute_script returns [23:15:29]free content buf [23:15:29]Sock 7.Close socket [23:15:29]Sock 7.Thread stoped [23:15:32]OFD Sender: No OFD packet to send [23:15:37]OFD Sender: No OFD packet to send [23:15:42]OFD Sender: No OFD packet to send [23:15:47]OFD Sender: No OFD packet to send [23:15:52]OFD Sender: No OFD packet to send [23:15:57]OFD Sender: No OFD packet to send [23:16:02]OFD Sender: No OFD packet to send [23:16:07]OFD Sender: No OFD packet to send [23:16:12]OFD Sender: No OFD packet to send [23:16:17]OFD Sender: No OFD packet to send [23:16:22]OFD Sender: No OFD packet to send [23:16:27]OFD Sender: No OFD packet to send [23:16:32]OFD Sender: No OFD packet to send [23:16:37]OFD Sender: No OFD packet to send [23:16:42]OFD Sender: No OFD packet to send [23:16:47]OFD Sender: No OFD packet to send [23:16:52]OFD Sender: No OFD packet to send [23:16:57]OFD Sender: No OFD packet to send [23:17:02]OFD Sender: No OFD packet to send [23:17:07]OFD Sender: No OFD packet to send [23:17:12]OFD Sender: No OFD packet to send [23:17:17]OFD Sender: No OFD packet to send [23:17:22]OFD Sender: No OFD packet to send [23:17:27]OFD Sender: No OFD packet to send [23:17:32]OFD Sender: No OFD packet to send [23:17:37]OFD Sender: No OFD packet to send [23:17:42]OFD Sender: No OFD packet to send [23:17:47]OFD Sender: No OFD packet to send [23:17:52]OFD Sender: No OFD packet to send [23:17:57]OFD Sender: No OFD packet to send [23:18:02]OFD Sender: No OFD packet to send [23:18:07]OFD Sender: No OFD packet to send [23:18:12]OFD Sender: No OFD packet to send [23:18:17]OFD Sender: No OFD packet to send [23:18:22]OFD Sender: No OFD packet to send [23:18:27]OFD Sender: No OFD packet to send [23:18:32]OFD Sender: No OFD packet to send [23:18:37]OFD Sender: No OFD packet to send [23:18:42]OFD Sender: No OFD packet to send [23:18:47]OFD Sender: No OFD packet to send [23:18:52]OFD Sender: No OFD packet to send [23:18:57]OFD Sender: No OFD packet to send [23:19:02]OFD Sender: No OFD packet to send [23:19:07]OFD Sender: No OFD packet to send [23:19:08]accept exits with 9 [23:19:08]New connection [23:19:08]New thread 3066686820 created [23:19:08]Thread 3066543460 joined [23:19:08]Waiting for new connection... [23:19:08] Sock 9.Parse request [23:19:08]Sock 9.Check first char [23:19:08]Sock 9.First char is OK [23:19:08]request: POST /json_proto HTTP/1.0 [23:19:08]Method: POST [23:19:08]URL: /json_proto [23:19:08]Method is POST - this is cgi request [23:19:08]url: /json_proto [23:19:08]query_string will be loaded in cgi processing [23:19:08]execute_cgi json_proto POST (null) [23:19:08]execute_cgi path=json_proto method=POST [23:19:08]POST find Content-Length [23:19:08]Host: 172.17.36.132:8080 [23:19:08]Content-Length: 840 [23:19:08]Content-Type: application/json [23:19:08] [23:19:08]POST finish read [23:19:08]Found Content-Length = 840 [23:19:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706312", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.40, "quantity" : 3.020, "sum" : 200.53, "attribute": 0, "vats" : [ {"type": 0, "rate": 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.53 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:19:08]execute_script... [23:19:08]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706312", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.40, "quantity" : 3.020, "sum" : 200.53, "attribute": 0, "vats" : [ {"type": 0, "rate": 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.53 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:19:08]POST & json_proto [23:19:08]process_json_proto [23:19:08]json parsed OK: [23:19:08]protocol is kg_v1.0 [23:19:08]action value=close_receipt [23:19:08]process_action close_receipt [23:19:08]cmd_close_receipt [23:19:08]MH_GetDate [23:19:08]Write to MH i2c: F0 00 00 79 15 7D [23:19:08]Write i2c OK [23:19:08]MH_I2C_Read... [23:19:08]Read from MH i2c: F0 [23:19:08]MH_I2C_Read... [23:19:08]Read from MH i2c: F0 09 00 [23:19:08]MH_I2C_Read... [23:19:08]Read from MH i2c: F0 09 00 79 15 00 EE FD 5C 66 B2 22 B0 64 1B [23:19:08]GetLastDocTimeStamp 1717370126 [23:19:08]current date 1717370350 [23:19:08]FM_GetShiftState [23:19:08]SAM_PROTO_GetShiftState [23:19:08]wFMCommunicate request_size=4 [23:19:08]MH_SAM_APDU [23:19:08]CAPDU: 80 13 01 00 [23:19:08]Write to MH i2c: E2 08 00 7A 15 80 13 01 00 00 00 00 00 0C [23:19:08]Write i2c OK [23:19:08]MH_I2C_Read... [23:19:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:19:09]Read from MH i2c: E2 [23:19:09]MH_I2C_Read... [23:19:09]Read from MH i2c: E2 0E 00 [23:19:09]MH_I2C_Read... [23:19:09]Read from MH i2c: E2 0E 00 7A 15 00 09 00 01 A4 BB 5B 66 00 00 00 00 90 00 38 [23:19:09]RAPDU: 09 00 01 A4 BB 5B 66 00 00 00 00 90 00 [23:19:09]wFMCommunicate OK [23:19:09]SAM_PROTO_GetShiftState done [23:19:09]FM_GetShiftState done [23:19:09]opened in 1717287844 [23:19:09]opened+sec_in_day 1717374244 [23:19:09]quantity*price = 20052 [23:19:09]sum+1 = 20054 [23:19:09]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 200.53 НСП 1% : 1.77 НДС 12% : 21.29 Наличными: 0.00 Безнал.: 200.53 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 255 02.06.2024 23:19 Смена: 322 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000965400 ФД: 68240 ФПД: 109089962256673 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240602T231910&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68240&fm=109089962256673&tin=02508201610067®Number=0000000000098096&sum=20053 [23:19:10]StoreToDocumentArchive [23:19:10]shift 322 fd 68240 [23:19:10]save to /storage/0322/doc_00068240 [23:19:10]save last doc name /storage/0322/doc_00068240 to /storage/kkm_last_doc_name [23:19:10]save OK [23:19:10]Clear old archive folders... [23:19:10]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:19:10]tlvbuf is 0024B7B0 [23:19:10]SAM_PROTO_ClearQueue [23:19:10]wFMCommunicate request_size=4 [23:19:10]MH_SAM_APDU [23:19:10]CAPDU: 80 09 00 00 [23:19:10]Write to MH i2c: E2 08 00 87 15 80 09 00 00 00 00 00 00 0E [23:19:10]Write i2c OK [23:19:10]MH_I2C_Read... [23:19:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:19:10]Read from MH i2c: E2 [23:19:10]MH_I2C_Read... [23:19:10]Read from MH i2c: E2 03 00 [23:19:10]MH_I2C_Read... [23:19:10]Read from MH i2c: E2 03 00 87 15 00 90 00 10 [23:19:10]RAPDU: 90 00 [23:19:10]wFMCommunicate OK [23:19:10]SAM_PROTO_ClearQueue done [23:19:10]KKMCreateOFDPacket [23:19:10]OFDProtocolAddRootSTLVToBuf [23:19:10]FM_MakeSignedData [23:19:10]FM_MakeSignedData [23:19:10]SAM_PROTO_SignData [23:19:10]wFMCommunicate request_size=4 [23:19:10]MH_SAM_APDU [23:19:10]CAPDU: 80 0D 01 02 [23:19:10]Write to MH i2c: E2 08 00 88 15 80 0D 01 02 00 00 00 00 16 [23:19:10]Write i2c OK [23:19:10]MH_I2C_Read... [23:19:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:19:10]Read from MH i2c: E2 [23:19:10]MH_I2C_Read... [23:19:10]Read from MH i2c: E2 03 00 [23:19:10]MH_I2C_Read... [23:19:10]Read from MH i2c: E2 03 00 88 15 00 90 00 11 [23:19:10]RAPDU: 90 00 [23:19:10]wFMCommunicate OK [23:19:10]wFMCommunicate request_size=255 [23:19:10]MH_SAM_APDU [23:19: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 34 FF 03 08 00 03 CC 0B 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 55 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 55 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 51 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 55 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FF 00 00 00 F4 03 04 00 EE FD 5C 66 0E 04 04 00 42 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 90 0A 01 00 35 04 06 00 63 [23:19:10]Write to MH i2c: E2 02 01 89 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 34 FF 03 08 00 03 CC 0B 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 55 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 55 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 51 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 55 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FF 00 00 00 F4 03 04 00 EE FD 5C 66 0E 04 04 00 42 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 90 0A 01 00 35 04 06 00 63 00 00 DE [23:19:10]Write i2c OK [23:19:10]MH_I2C_Read... [23:19:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:19:10]Read from MH i2c: E2 [23:19:10]MH_I2C_Read... [23:19:10]Read from MH i2c: E2 03 00 [23:19:10]MH_I2C_Read... [23:19:10]Read from MH i2c: E2 03 00 89 15 00 90 00 12 [23:19:10]RAPDU: 90 00 [23:19:10]wFMCommunicate OK [23:19:10]wFMCommunicate request_size=10 [23:19:10]MH_SAM_APDU [23:19:10]CAPDU: 80 0D 02 02 05 37 7C 72 E9 21 [23:19:10]Write to MH i2c: E2 0D 00 8A 15 80 0D 02 02 05 00 37 7C 72 E9 21 00 00 52 [23:19:10]Write i2c OK [23:19:10]MH_I2C_Read... [23:19:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:19:10]Read from MH i2c: E2 [23:19:10]MH_I2C_Read... [23:19:10]Read from MH i2c: E2 03 00 [23:19:10]MH_I2C_Read... [23:19:10]Read from MH i2c: E2 03 00 8A 15 00 90 00 13 [23:19:10]RAPDU: 90 00 [23:19:10]wFMCommunicate OK [23:19:10]wFMCommunicate request_size=4 [23:19:10]MH_SAM_APDU [23:19:10]CAPDU: 80 0D 03 02 [23:19:10]Write to MH i2c: E2 08 00 8B 15 80 0D 03 02 00 00 00 00 1B [23:19:10]Write i2c OK [23:19:10]MH_I2C_Read... [23:19:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:19:10]Read from MH i2c: E2 [23:19:10]MH_I2C_Read... [23:19:10]Read from MH i2c: E2 0B 00 [23:19:10]MH_I2C_Read... [23:19:10]Read from MH i2c: E2 0B 00 8B 15 00 2F EC DA E7 6D 42 29 9A 90 00 6A [23:19:10]RAPDU: 2F EC DA E7 6D 42 29 9A 90 00 [23:19:10]wFMCommunicate OK [23:19:10]SAM_PROTO_SignData done [23:19:10]FM_MakeSignedData done [23:19:10]CreateOFDProtocolMessage [23:19:10]wFMCommunicate request_size=4 [23:19:10]MH_SAM_APDU [23:19:10]CAPDU: 80 11 00 00 [23:19:10]Write to MH i2c: E2 08 00 8C 15 80 11 00 00 00 00 00 00 1B [23:19:10]Write i2c OK [23:19:10]MH_I2C_Read... [23:19:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:19:10]Read from MH i2c: E2 [23:19:10]MH_I2C_Read... [23:19:10]Read from MH i2c: E2 17 00 [23:19:10]MH_I2C_Read... [23:19:10]Read from MH i2c: E2 17 00 8C 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 66 [23:19:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [23:19:10]wFMCommunicate OK [23:19:10]CreateOFDProtocolMessage done [23:19:10]OFDSenderStorePacket 68240 [23:19:10]StoreOFDPacket docnum=68240 [23:19:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 A4 30 07 01 2E 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 34 FF 03 08 00 03 CC 0B 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 55 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 55 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 51 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 55 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FF 00 00 00 F4 03 04 00 EE FD 5C 66 0E 04 04 00 42 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 90 0A 01 00 35 04 06 00 63 37 7C 72 E9 21 2F EC DA E7 6D 42 29 9A [23:19:10]CheckFolder [23:19:10]dirname=/storage/ofd_packets [23:19:10]CheckFolder done [23:19:10]ProducePacketName [23:19:10]name=ofd_packets/00068240 [23:19:10]NVStorageSaveData ofd_packets/00068240 [23:19:10]File name is /storage/ofd_packets/00068240 [23:19:10]Write 301 bytes [23:19:10]NVStorageSaveData done [23:19:10]OFDSenderStorePacket done [23:19:10]KKMCreateOFDPacket done [23:19:10]NVStorageSaveData kkm_last_timestamp [23:19:10]File name is /storage/kkm_last_timestamp [23:19:10]Write 4 bytes [23:19:10]NVStorageSaveData done [23:19:10]ExternCall_PrintAddStr [23:19:10]wPrintStart [23:19:10]Write to MH i2c: 01 00 00 8D 15 A2 [23:19:10]Write i2c OK [23:19:10]MH_I2C_Read... [23:19:10]Read from MH i2c: 01 [23:19:10]MH_I2C_Read... [23:19:10]Read from MH i2c: 01 07 00 [23:19:10]MH_I2C_Read... [23:19:10]Read from MH i2c: 01 07 00 8D 15 00 00 00 00 00 FF 0F B7 [23:19:10]RasterBufferAndPrint [23:19:10]line Счет N : (1)706312 [23:19:10]line ИНН: 02508201610067 [23:19:10]line Контрольно-Кассовый Чек [23:19:10]line ПРОДАЖА [23:19:10]line ТРК (МРК, ГНК) : 42 [23:19:10]line Товар: 2710124130 [23:19:10]line Аи-92-К-4 [23:19:10]line 3.020 * 66.40 [23:19:10]line = 200.53 [23:19:10]line НДС 12% НСП 1% [23:19:10]line > о реализуемом товаре [23:19:10]line ИТОГО: 200.53 [23:19:10]line НСП 1% : 1.77 [23:19:10]line НДС 12% : 21.29 [23:19:10]line Наличными: 0.00 [23:19:10]line Безнал.: 200.53 [23:19:10]line Место: АЗС № 62 "Партнер Нефть" [23:19:10]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [23:19:10]line СНО: Общий режим [23:19:10]line Чек 255 02.06.2024 23:19 [23:19:10]line Смена: 322 ФФД: 1.0 [23:19:10]line ЗНМ: 0300000181 [23:19:10]line РНМ: 0000000000098096 [23:19:10]line Версия ККМ: 001 [23:19:10]line Платежная система: АКБ Кыргызстан [23:19:10]line ФМ: 0000000000965400 [23:19:10]line ФД: 68240 [23:19:10]line ФПД: 109089962256673 [23:19:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240602T231910&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68240&fm=109089962256673&tin=02508201610067®Number=0000000000098096&sum=20053 [23:19:11]OFD Sender: Processing packet 68240 [packets to send 26, broken 25] [23:19:11]ProducePacketName [23:19:11]name=ofd_packets/00068240 [23:19:11]OFD Sender: To server: pG, [23:19:11]CommunicateWithHost lk.salyk.kg:30040 [23:19:11]ConnectInit lk.salyk.kg [23:19:11]written 0, free lines is 4095 [23:19:11]Connected sock=10 [23:19:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 A4 30 07 01 2E 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 34 FF 03 08 00 03 CC 0B 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 55 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 55 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 51 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 55 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FF 00 00 00 F4 03 04 00 EE FD 5C 66 0E 04 04 00 42 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 90 0A 01 00 35 04 06 00 63 37 7C 72 E9 21 2F EC DA E7 6D 42 29 9A [23:19:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 DF 41 47 00 B3 C6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 90 0A 01 00 F4 03 04 00 EC A4 5C 66 B6 04 01 00 00 9E A1 DC F7 CB 84 62 76 [23:19:11]CommunicateWithHost err = 0 [23:19:11]CheckOFDResponse [23:19:11]1017 (14) - 77093643461234 [23:19:11]1041 (16) - 0000000000965400 [23:19:11]1040 (4) - 68240 [23:19:11]1012 (4) - 02.06.2024 16:59 [23:19:11]1206 (1) - 0 [23:19:11]OFD Sender: Remove packet 68240 [23:19:11]ProducePacketName [23:19:11]name=ofd_packets/00068240 [23:19:11]NVStorageDeleteData [23:19:11]Write to MH i2c: 01 00 00 B7 15 CC [23:19:11]Write i2c OK [23:19:11]MH_I2C_Read... [23:19:11]Read from MH i2c: 01 [23:19:11]MH_I2C_Read... [23:19:11]Read from MH i2c: 01 07 00 [23:19:11]MH_I2C_Read... [23:19:11]Read from MH i2c: 01 07 00 B7 15 00 00 00 00 00 07 0D E7 [23:19:11]RasterBufferAndPrint [23:19:11]line [23:19:11]line [23:19:11]line [23:19:11]line [23:19:11]line [23:19:11]written 0, free lines is 3341 [23:19:11]MH_Cut [23:19:11]Write to MH i2c: D1 01 00 BE 15 01 A5 [23:19:11]Write i2c OK [23:19:11]MH_I2C_Read... [23:19:11]Read from MH i2c: D1 [23:19:11]MH_I2C_Read... [23:19:11]Read from MH i2c: D1 01 00 [23:19:11]MH_I2C_Read... [23:19:11]Read from MH i2c: D1 01 00 BE 15 00 A4 [23:19:11]Write to MH i2c: 01 00 00 BF 15 D4 [23:19:11]Write i2c OK [23:19:11]MH_I2C_Read... [23:19:11]OFD Sender: No OFD packet to send [23:19:12]*** Cut start [23:19:12]*** Partial cut [23:19:12]*** CUTSNS_PIN = 1 [23:19:12]*** CUTSNS_PIN = 0 [23:19:12]*** Brake cut motor [23:19:12]Read from MH i2c: 01 [23:19:12]MH_I2C_Read... [23:19:12]*** Stop cut motor [23:19:12]*** Cut end [23:19:12]Read from MH i2c: 01 07 00 [23:19:12]MH_I2C_Read... [23:19:12]Read from MH i2c: 01 07 00 BF 15 00 00 00 00 00 FF 0F E9 [23:19:12]process_action close_receipt done [23:19:12]requested_data is exist [23:19:12]produce_requested_data [23:19:12]requested_item fm.sn is exist - process it [23:19:12]wFMCommunicate request_size=4 [23:19:12]MH_SAM_APDU [23:19:12]CAPDU: 80 11 00 00 [23:19:12]Write to MH i2c: E2 08 00 C0 15 80 11 00 00 00 00 00 00 4F [23:19:12]Write i2c OK [23:19:12]MH_I2C_Read... [23:19:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:19:12]Read from MH i2c: E2 [23:19:12]MH_I2C_Read... [23:19:12]Read from MH i2c: E2 17 00 [23:19:12]MH_I2C_Read... [23:19:12]Read from MH i2c: E2 17 00 C0 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 9A [23:19:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [23:19:12]wFMCommunicate OK [23:19:12]requested_item fd.num is exist - process it [23:19:12]SAM_PROTO_GetFieldsCounters [23:19:12]wFMCommunicate request_size=4 [23:19:12]MH_SAM_APDU [23:19:12]CAPDU: 80 13 00 00 [23:19:12]Write to MH i2c: E2 08 00 C1 15 80 13 00 00 00 00 00 00 52 [23:19:12]Write i2c OK [23:19:12]MH_I2C_Read... [23:19:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:19:13]Read from MH i2c: E2 [23:19:13]MH_I2C_Read... [23:19:13]Read from MH i2c: E2 62 00 [23:19:13]MH_I2C_Read... [23:19:13]Read from MH i2c: E2 62 00 C1 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 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 90 0A 01 00 0E 04 04 00 42 01 00 00 12 04 04 00 FF 00 00 00 5E 04 04 00 FF 00 00 00 57 04 04 00 00 01 00 00 19 04 04 00 00 00 00 00 90 00 4E [23:19: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 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 90 0A 01 00 0E 04 04 00 42 01 00 00 12 04 04 00 FF 00 00 00 5E 04 04 00 FF 00 00 00 57 04 04 00 00 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:19:13]wFMCommunicate OK [23:19:13]SAM_PROTO_GetFieldsCounters done [23:19:13]requested_item shift.num is exist - process it [23:19:13]requested_item shift.opened is exist - process it [23:19:13]req_shift_opened [23:19:13]FM_GetShiftState [23:19:13]SAM_PROTO_GetShiftState [23:19:13]wFMCommunicate request_size=4 [23:19:13]MH_SAM_APDU [23:19:13]CAPDU: 80 13 01 00 [23:19:13]Write to MH i2c: E2 08 00 C2 15 80 13 01 00 00 00 00 00 54 [23:19:13]Write i2c OK [23:19:13]MH_I2C_Read... [23:19:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:19:13]Read from MH i2c: E2 [23:19:13]MH_I2C_Read... [23:19:13]Read from MH i2c: E2 0E 00 [23:19:13]MH_I2C_Read... [23:19:13]Read from MH i2c: E2 0E 00 C2 15 00 09 00 01 A4 BB 5B 66 00 00 00 00 90 00 80 [23:19:13]RAPDU: 09 00 01 A4 BB 5B 66 00 00 00 00 90 00 [23:19:13]wFMCommunicate OK [23:19:13]SAM_PROTO_GetShiftState done [23:19:13]FM_GetShiftState done [23:19:13]req_shift_opened done [23:19:13]requested_item shift.open_date is exist - process it [23:19:13]req_shift_open_date [23:19:13]req_shift_open_date done [23:19:13]produce_requested_data done [23:19:13]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68240,"shift.num":322,"shift.opened":1,"shift.open_date":1717287844} [23:19:13]process_action_free close_receipt [23:19:13]json_value_free [23:19:13]json_value_free done [23:19:13]process_json_proto returns [23:19:13]Send response to host [23:19:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68240,"shift.num":322,"shift.opened":1,"shift.open_date":1717287844}}} [23:19:13]free response buf [23:19:13]execute_script done [23:19:13]execute_script returns [23:19:13]free content buf [23:19:13]Sock 9.Close socket [23:19:13]Sock 9.Thread stoped [23:19:16]OFD Sender: No OFD packet to send [23:19:21]OFD Sender: No OFD packet to send [23:19:26]OFD Sender: No OFD packet to send [23:19:31]OFD Sender: No OFD packet to send [23:19:35]accept exits with 7 [23:19:35]New connection [23:19:35]New thread 3066543460 created [23:19:35]Thread 3066686820 joined [23:19:35]Waiting for new connection... [23:19:35] Sock 7.Parse request [23:19:35]Sock 7.Check first char [23:19:35]Sock 7.First char is OK [23:19:35]request: POST /json_proto HTTP/1.0 [23:19:35]Method: POST [23:19:35]URL: /json_proto [23:19:35]Method is POST - this is cgi request [23:19:35]url: /json_proto [23:19:35]query_string will be loaded in cgi processing [23:19:35]execute_cgi json_proto POST (null) [23:19:35]execute_cgi path=json_proto method=POST [23:19:35]POST find Content-Length [23:19:35]Host: 172.17.36.132:8080 [23:19:35]Content-Length: 677 [23:19:35]Content-Type: application/json [23:19:35] [23:19:35]POST finish read [23:19:35]Found Content-Length = 677 [23:19:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706313", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.40, "quantity" : 1.510, "sum" : 100.26, "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" ] } } [23:19:35]execute_script... [23:19:35]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706313", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.40, "quantity" : 1.510, "sum" : 100.26, "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" ] } } [23:19:35]POST & json_proto [23:19:35]process_json_proto [23:19:35]json parsed OK: [23:19:35]protocol is kg_v1.0 [23:19:35]action value=close_receipt [23:19:35]process_action close_receipt [23:19:35]cmd_close_receipt [23:19:35]MH_GetDate [23:19:35]Write to MH i2c: F0 00 00 C3 15 C7 [23:19:35]Write i2c OK [23:19:35]MH_I2C_Read... [23:19:35]Read from MH i2c: F0 [23:19:35]MH_I2C_Read... [23:19:35]Read from MH i2c: F0 09 00 [23:19:35]MH_I2C_Read... [23:19:35]Read from MH i2c: F0 09 00 C3 15 00 08 FE 5C 66 B2 22 B0 64 80 [23:19:35]GetLastDocTimeStamp 1717370350 [23:19:35]current date 1717370376 [23:19:35]FM_GetShiftState [23:19:35]SAM_PROTO_GetShiftState [23:19:35]wFMCommunicate request_size=4 [23:19:35]MH_SAM_APDU [23:19:35]CAPDU: 80 13 01 00 [23:19:35]Write to MH i2c: E2 08 00 C4 15 80 13 01 00 00 00 00 00 56 [23:19:35]Write i2c OK [23:19:35]MH_I2C_Read... [23:19:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:19:35]Read from MH i2c: E2 [23:19:35]MH_I2C_Read... [23:19:35]Read from MH i2c: E2 0E 00 [23:19:35]MH_I2C_Read... [23:19:35]Read from MH i2c: E2 0E 00 C4 15 00 09 00 01 A4 BB 5B 66 00 00 00 00 90 00 82 [23:19:35]RAPDU: 09 00 01 A4 BB 5B 66 00 00 00 00 90 00 [23:19:35]wFMCommunicate OK [23:19:35]SAM_PROTO_GetShiftState done [23:19:35]FM_GetShiftState done [23:19:35]opened in 1717287844 [23:19:35]opened+sec_in_day 1717374244 [23:19:35]quantity*price = 10026 [23:19:35]sum+1 = 10027 [23:19:35]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.26 ИТОГО: 100.00 Внесено: 100.00 СДАЧА: 0.00 НСП 1% : 0.89 НДС 12% : 10.65 Наличными: 100.00 Безнал.: 0.00 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 256 02.06.2024 23:19 Смена: 322 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 ФМ: 0000000000965400 ФД: 68241 ФПД: 225119568320683 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240602T231936&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68241&fm=225119568320683&tin=02508201610067®Number=0000000000098096&sum=10000 [23:19:36]StoreToDocumentArchive [23:19:36]shift 322 fd 68241 [23:19:36]save to /storage/0322/doc_00068241 [23:19:36]save last doc name /storage/0322/doc_00068241 to /storage/kkm_last_doc_name [23:19:36]save OK [23:19:36]Clear old archive folders... [23:19:36]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:19:36]tlvbuf is 002959D0 [23:19:36]SAM_PROTO_ClearQueue [23:19:36]wFMCommunicate request_size=4 [23:19:36]MH_SAM_APDU [23:19:36]CAPDU: 80 09 00 00 [23:19:36]Write to MH i2c: E2 08 00 D1 15 80 09 00 00 00 00 00 00 58 [23:19:36]Write i2c OK [23:19:36]MH_I2C_Read... [23:19:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:19:36]Read from MH i2c: E2 [23:19:36]MH_I2C_Read... [23:19:36]Read from MH i2c: E2 03 00 [23:19:36]MH_I2C_Read... [23:19:36]Read from MH i2c: E2 03 00 D1 15 00 90 00 5A [23:19:36]RAPDU: 90 00 [23:19:36]wFMCommunicate OK [23:19:36]SAM_PROTO_ClearQueue done [23:19:36]KKMCreateOFDPacket [23:19:36]OFDProtocolAddRootSTLVToBuf [23:19:36]FM_MakeSignedData [23:19:36]FM_MakeSignedData [23:19:36]SAM_PROTO_SignData [23:19:36]wFMCommunicate request_size=4 [23:19:36]MH_SAM_APDU [23:19:36]CAPDU: 80 0D 01 02 [23:19:36]Write to MH i2c: E2 08 00 D2 15 80 0D 01 02 00 00 00 00 60 [23:19:36]Write i2c OK [23:19:36]MH_I2C_Read... [23:19:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:19:36]Read from MH i2c: E2 [23:19:36]MH_I2C_Read... [23:19:36]Read from MH i2c: E2 03 00 [23:19:36]MH_I2C_Read... [23:19:36]Read from MH i2c: E2 03 00 D2 15 00 90 00 5B [23:19:36]RAPDU: 90 00 [23:19:36]wFMCommunicate OK [23:19:36]wFMCommunicate request_size=255 [23:19:36]MH_SAM_APDU [23:19: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 34 FF 03 08 00 03 E6 05 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 2A 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 29 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 00 01 00 00 F4 03 04 00 08 FE 5C 66 0E 04 04 00 42 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 91 0A 01 00 35 04 06 00 CC [23:19:36]Write to MH i2c: E2 02 01 D3 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 34 FF 03 08 00 03 E6 05 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 2A 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 29 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 00 01 00 00 F4 03 04 00 08 FE 5C 66 0E 04 04 00 42 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 91 0A 01 00 35 04 06 00 CC 00 00 15 [23:19:36]Write i2c OK [23:19:36]MH_I2C_Read... [23:19:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:19:36]Read from MH i2c: E2 [23:19:36]MH_I2C_Read... [23:19:36]Read from MH i2c: E2 03 00 [23:19:36]MH_I2C_Read... [23:19:36]Read from MH i2c: E2 03 00 D3 15 00 90 00 5C [23:19:36]RAPDU: 90 00 [23:19:36]wFMCommunicate OK [23:19:36]wFMCommunicate request_size=10 [23:19:36]MH_SAM_APDU [23:19:36]CAPDU: 80 0D 02 02 05 BE BB E6 D8 AB [23:19:36]Write to MH i2c: E2 0D 00 D4 15 80 0D 02 02 05 00 BE BB E6 D8 AB 00 00 4F [23:19:36]Write i2c OK [23:19:36]MH_I2C_Read... [23:19:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:19:36]Read from MH i2c: E2 [23:19:36]MH_I2C_Read... [23:19:36]Read from MH i2c: E2 03 00 [23:19:36]MH_I2C_Read... [23:19:36]Read from MH i2c: E2 03 00 D4 15 00 90 00 5D [23:19:36]RAPDU: 90 00 [23:19:36]wFMCommunicate OK [23:19:36]wFMCommunicate request_size=4 [23:19:36]MH_SAM_APDU [23:19:36]CAPDU: 80 0D 03 02 [23:19:36]Write to MH i2c: E2 08 00 D5 15 80 0D 03 02 00 00 00 00 65 [23:19:36]Write i2c OK [23:19:36]MH_I2C_Read... [23:19:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:19:36]Read from MH i2c: E2 [23:19:36]MH_I2C_Read... [23:19:36]Read from MH i2c: E2 0B 00 [23:19:36]MH_I2C_Read... [23:19:36]Read from MH i2c: E2 0B 00 D5 15 00 EE 83 D0 F8 09 52 0D 64 90 00 6B [23:19:36]RAPDU: EE 83 D0 F8 09 52 0D 64 90 00 [23:19:36]wFMCommunicate OK [23:19:36]SAM_PROTO_SignData done [23:19:36]FM_MakeSignedData done [23:19:36]CreateOFDProtocolMessage [23:19:36]wFMCommunicate request_size=4 [23:19:36]MH_SAM_APDU [23:19:36]CAPDU: 80 11 00 00 [23:19:36]Write to MH i2c: E2 08 00 D6 15 80 11 00 00 00 00 00 00 65 [23:19:36]Write i2c OK [23:19:36]MH_I2C_Read... [23:19:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:19:36]Read from MH i2c: E2 [23:19:36]MH_I2C_Read... [23:19:36]Read from MH i2c: E2 17 00 [23:19:36]MH_I2C_Read... [23:19:36]Read from MH i2c: E2 17 00 D6 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 B0 [23:19:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [23:19:36]wFMCommunicate OK [23:19:36]CreateOFDProtocolMessage done [23:19:36]OFDSenderStorePacket 68241 [23:19:36]StoreOFDPacket docnum=68241 [23:19:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 80 0C 07 01 C2 F8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 E6 05 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 2A 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 29 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 00 01 00 00 F4 03 04 00 08 FE 5C 66 0E 04 04 00 42 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 91 0A 01 00 35 04 06 00 CC BE BB E6 D8 AB EE 83 D0 F8 09 52 0D 64 [23:19:36]CheckFolder [23:19:36]dirname=/storage/ofd_packets [23:19:36]CheckFolder done [23:19:36]ProducePacketName [23:19:36]name=ofd_packets/00068241 [23:19:36]NVStorageSaveData ofd_packets/00068241 [23:19:36]File name is /storage/ofd_packets/00068241 [23:19:36]Write 301 bytes [23:19:36]NVStorageSaveData done [23:19:36]OFDSenderStorePacket done [23:19:36]KKMCreateOFDPacket done [23:19:36]NVStorageSaveData kkm_last_timestamp [23:19:36]File name is /storage/kkm_last_timestamp [23:19:36]Write 4 bytes [23:19:36]NVStorageSaveData done [23:19:36]ExternCall_PrintAddStr [23:19:36]wPrintStart [23:19:36]Write to MH i2c: 01 00 00 D7 15 EC [23:19:36]Write i2c OK [23:19:36]MH_I2C_Read... [23:19:36]Read from MH i2c: 01 [23:19:36]MH_I2C_Read... [23:19:36]Read from MH i2c: 01 07 00 [23:19:36]MH_I2C_Read... [23:19:36]Read from MH i2c: 01 07 00 D7 15 00 00 00 00 00 FF 0F 01 [23:19:36]RasterBufferAndPrint [23:19:36]line Счет N : (1)706313 [23:19:36]line ИНН: 02508201610067 [23:19:36]line Контрольно-Кассовый Чек [23:19:36]line ПРОДАЖА [23:19:36]line ТРК (МРК, ГНК) : 42 [23:19:36]line Товар: 2710124130 [23:19:36]line Аи-92-К-4 [23:19:36]line 1.510 * 66.40 [23:19:36]line = 100.26 [23:19:36]line НДС 12% НСП 1% [23:19:36]line > о реализуемом товаре [23:19:36]line ОКРУГЛЕНИЕ: -0.26 [23:19:36]line ИТОГО: 100.00 [23:19:36]line Внесено: 100.00 [23:19:36]line СДАЧА: 0.00 [23:19:36]line НСП 1% : 0.89 [23:19:36]line НДС 12% : 10.65 [23:19:36]line Наличными: 100.00 [23:19:36]line Безнал.: 0.00 [23:19:36]line Место: АЗС № 62 "Партнер Нефть" [23:19:36]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [23:19:36]line СНО: Общий режим [23:19:36]line Чек 256 02.06.2024 23:19 [23:19:36]line Смена: 322 ФФД: 1.0 [23:19:36]line ЗНМ: 0300000181 [23:19:36]line РНМ: 0000000000098096 [23:19:36]line Версия ККМ: 001 [23:19:36]line ФМ: 0000000000965400 [23:19:36]line ФД: 68241 [23:19:36]line ФПД: 225119568320683 [23:19:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240602T231936&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68241&fm=225119568320683&tin=02508201610067®Number=0000000000098096&sum=10000 [23:19:37]OFD Sender: Processing packet 68241 [packets to send 26, broken 25] [23:19:37]ProducePacketName [23:19:37]name=ofd_packets/00068241 [23:19:37]OFD Sender: To server: pG, [23:19:37]CommunicateWithHost lk.salyk.kg:30040 [23:19:37]ConnectInit lk.salyk.kg [23:19:37]written 0, free lines is 4095 [23:19:37]Connected sock=10 [23:19:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 80 0C 07 01 C2 F8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 E6 05 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 2A 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 29 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 00 01 00 00 F4 03 04 00 08 FE 5C 66 0E 04 04 00 42 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 91 0A 01 00 35 04 06 00 CC BE BB E6 D8 AB EE 83 D0 F8 09 52 0D 64 [23:19:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 FD 00 47 00 3D 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 35 34 30 30 10 04 04 00 91 0A 01 00 F4 03 04 00 06 A5 5C 66 B6 04 01 00 00 AF F4 75 54 FD 34 0B 83 [23:19:37]CommunicateWithHost err = 0 [23:19:37]CheckOFDResponse [23:19:37]1017 (14) - 77093643461234 [23:19:37]1041 (16) - 0000000000965400 [23:19:37]1040 (4) - 68241 [23:19:37]1012 (4) - 02.06.2024 16:59 [23:19:37]1206 (1) - 0 [23:19:37]OFD Sender: Remove packet 68241 [23:19:37]ProducePacketName [23:19:37]name=ofd_packets/00068241 [23:19:37]NVStorageDeleteData [23:19:37]Write to MH i2c: 01 00 00 02 16 18 [23:19:37]Write i2c OK [23:19:37]MH_I2C_Read... [23:19:37]Read from MH i2c: 01 [23:19:37]MH_I2C_Read... [23:19:37]Read from MH i2c: 01 07 00 [23:19:37]MH_I2C_Read... [23:19:37]Read from MH i2c: 01 07 00 02 16 00 00 00 00 00 E4 0C 0F [23:19:37]RasterBufferAndPrint [23:19:37]line [23:19:37]line [23:19:37]line [23:19:37]line [23:19:37]line [23:19:37]written 0, free lines is 3306 [23:19:37]MH_Cut [23:19:37]Write to MH i2c: D1 01 00 09 16 01 F1 [23:19:37]Write i2c OK [23:19:37]MH_I2C_Read... [23:19:37]Read from MH i2c: D1 [23:19:37]MH_I2C_Read... [23:19:37]Read from MH i2c: D1 01 00 [23:19:37]MH_I2C_Read... [23:19:37]Read from MH i2c: D1 01 00 09 16 00 F0 [23:19:37]Write to MH i2c: 01 00 00 0A 16 20 [23:19:37]Write i2c OK [23:19:37]MH_I2C_Read... [23:19:37]OFD Sender: No OFD packet to send [23:19:38]*** Cut start [23:19:38]*** Partial cut [23:19:38]*** CUTSNS_PIN = 1 [23:19:38]*** CUTSNS_PIN = 0 [23:19:38]*** Brake cut motor [23:19:38]Read from MH i2c: 01 [23:19:38]MH_I2C_Read... [23:19:38]*** Stop cut motor [23:19:38]*** Cut end [23:19:38]Read from MH i2c: 01 07 00 [23:19:38]MH_I2C_Read... [23:19:38]Read from MH i2c: 01 07 00 0A 16 00 00 00 00 00 FF 0F 35 [23:19:38]process_action close_receipt done [23:19:38]requested_data is exist [23:19:38]produce_requested_data [23:19:38]requested_item fm.sn is exist - process it [23:19:38]wFMCommunicate request_size=4 [23:19:38]MH_SAM_APDU [23:19:38]CAPDU: 80 11 00 00 [23:19:38]Write to MH i2c: E2 08 00 0B 16 80 11 00 00 00 00 00 00 9B [23:19:38]Write i2c OK [23:19:38]MH_I2C_Read... [23:19:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:19:38]Read from MH i2c: E2 [23:19:38]MH_I2C_Read... [23:19:38]Read from MH i2c: E2 17 00 [23:19:38]MH_I2C_Read... [23:19:38]Read from MH i2c: E2 17 00 0B 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 E6 [23:19:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [23:19:38]wFMCommunicate OK [23:19:38]requested_item fd.num is exist - process it [23:19:38]SAM_PROTO_GetFieldsCounters [23:19:38]wFMCommunicate request_size=4 [23:19:38]MH_SAM_APDU [23:19:38]CAPDU: 80 13 00 00 [23:19:38]Write to MH i2c: E2 08 00 0C 16 80 13 00 00 00 00 00 00 9E [23:19:38]Write i2c OK [23:19:38]MH_I2C_Read... [23:19:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:19:39]Read from MH i2c: E2 [23:19:39]MH_I2C_Read... [23:19:39]Read from MH i2c: E2 62 00 [23:19:39]MH_I2C_Read... [23:19:39]Read from MH i2c: E2 62 00 0C 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 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 91 0A 01 00 0E 04 04 00 42 01 00 00 12 04 04 00 00 01 00 00 5E 04 04 00 00 01 00 00 57 04 04 00 01 01 00 00 19 04 04 00 00 00 00 00 90 00 A0 [23:19: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 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 91 0A 01 00 0E 04 04 00 42 01 00 00 12 04 04 00 00 01 00 00 5E 04 04 00 00 01 00 00 57 04 04 00 01 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:19:39]wFMCommunicate OK [23:19:39]SAM_PROTO_GetFieldsCounters done [23:19:39]requested_item shift.num is exist - process it [23:19:39]requested_item shift.opened is exist - process it [23:19:39]req_shift_opened [23:19:39]FM_GetShiftState [23:19:39]SAM_PROTO_GetShiftState [23:19:39]wFMCommunicate request_size=4 [23:19:39]MH_SAM_APDU [23:19:39]CAPDU: 80 13 01 00 [23:19:39]Write to MH i2c: E2 08 00 0D 16 80 13 01 00 00 00 00 00 A0 [23:19:39]Write i2c OK [23:19:39]MH_I2C_Read... [23:19:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:19:39]Read from MH i2c: E2 [23:19:39]MH_I2C_Read... [23:19:39]Read from MH i2c: E2 0E 00 [23:19:39]MH_I2C_Read... [23:19:39]Read from MH i2c: E2 0E 00 0D 16 00 09 00 01 A4 BB 5B 66 00 00 00 00 90 00 CC [23:19:39]RAPDU: 09 00 01 A4 BB 5B 66 00 00 00 00 90 00 [23:19:39]wFMCommunicate OK [23:19:39]SAM_PROTO_GetShiftState done [23:19:39]FM_GetShiftState done [23:19:39]req_shift_opened done [23:19:39]requested_item shift.open_date is exist - process it [23:19:39]req_shift_open_date [23:19:39]req_shift_open_date done [23:19:39]produce_requested_data done [23:19:39]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68241,"shift.num":322,"shift.opened":1,"shift.open_date":1717287844} [23:19:39]process_action_free close_receipt [23:19:39]json_value_free [23:19:39]json_value_free done [23:19:39]process_json_proto returns [23:19:39]Send response to host [23:19:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68241,"shift.num":322,"shift.opened":1,"shift.open_date":1717287844}}} [23:19:39]free response buf [23:19:39]execute_script done [23:19:39]execute_script returns [23:19:39]free content buf [23:19:39]Sock 7.Close socket [23:19:39]Sock 7.Thread stoped [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:31]accept exits with 9 [23:20:31]New connection [23:20:31]New thread 3066686820 created [23:20:31]Thread 3066543460 joined [23:20:31]Waiting for new connection... [23:20:31] Sock 9.Parse request [23:20:31]Sock 9.Check first char [23:20:31]Sock 9.First char is OK [23:20:31]request: POST /json_proto HTTP/1.0 [23:20:31]Method: POST [23:20:31]URL: /json_proto [23:20:31]Method is POST - this is cgi request [23:20:31]url: /json_proto [23:20:31]query_string will be loaded in cgi processing [23:20:31]execute_cgi json_proto POST (null) [23:20:31]execute_cgi path=json_proto method=POST [23:20:31]POST find Content-Length [23:20:31]Host: 172.17.36.132:8080 [23:20:31]Content-Length: 682 [23:20:31]Content-Type: application/json [23:20:31] [23:20:31]POST finish read [23:20:31]Found Content-Length = 682 [23:20:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706314", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.40, "quantity" : 18.980, "sum" : 1260.27, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1260.00, "total" : 1260.00, "payments": [ { "type": 0, "sum" : 1260.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:20:31]execute_script... [23:20: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)706314", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.40, "quantity" : 18.980, "sum" : 1260.27, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1260.00, "total" : 1260.00, "payments": [ { "type": 0, "sum" : 1260.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:20:31]POST & json_proto [23:20:31]process_json_proto [23:20:31]json parsed OK: [23:20:31]protocol is kg_v1.0 [23:20:31]action value=close_receipt [23:20:31]process_action close_receipt [23:20:31]cmd_close_receipt [23:20:31]MH_GetDate [23:20:31]Write to MH i2c: F0 00 00 0E 16 13 [23:20:31]Write i2c OK [23:20:31]MH_I2C_Read... [23:20:31]Read from MH i2c: F0 [23:20:31]MH_I2C_Read... [23:20:31]Read from MH i2c: F0 09 00 [23:20:31]MH_I2C_Read... [23:20:31]Read from MH i2c: F0 09 00 0E 16 00 41 FE 5C 66 B2 22 B0 64 05 [23:20:31]GetLastDocTimeStamp 1717370376 [23:20:31]current date 1717370433 [23:20:31]FM_GetShiftState [23:20:31]SAM_PROTO_GetShiftState [23:20:31]wFMCommunicate request_size=4 [23:20:31]MH_SAM_APDU [23:20:31]CAPDU: 80 13 01 00 [23:20:31]Write to MH i2c: E2 08 00 0F 16 80 13 01 00 00 00 00 00 A2 [23:20:31]Write i2c OK [23:20:31]MH_I2C_Read... [23:20:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:20:31]Read from MH i2c: E2 [23:20:31]MH_I2C_Read... [23:20:31]Read from MH i2c: E2 0E 00 [23:20:31]MH_I2C_Read... [23:20:31]Read from MH i2c: E2 0E 00 0F 16 00 09 00 01 A4 BB 5B 66 00 00 00 00 90 00 CE [23:20:31]RAPDU: 09 00 01 A4 BB 5B 66 00 00 00 00 90 00 [23:20:31]wFMCommunicate OK [23:20:31]SAM_PROTO_GetShiftState done [23:20:31]FM_GetShiftState done [23:20:31]opened in 1717287844 [23:20:31]opened+sec_in_day 1717374244 [23:20:31]quantity*price = 126027 [23:20:31]sum+1 = 126028 [23:20:31]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.27 ИТОГО: 1260.00 Внесено: 1260.00 СДАЧА: 0.00 НСП 1% : 11.15 НДС 12% : 133.83 Наличными: 1260.00 Безнал.: 0.00 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 257 02.06.2024 23:20 Смена: 322 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 ФМ: 0000000000965400 ФД: 68242 ФПД: 60327562758731 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240602T232033&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68242&fm=60327562758731&tin=02508201610067®Number=0000000000098096&sum=126000 [23:20:32]StoreToDocumentArchive [23:20:32]shift 322 fd 68242 [23:20:32]save to /storage/0322/doc_00068242 [23:20:32]save last doc name /storage/0322/doc_00068242 to /storage/kkm_last_doc_name [23:20:32]save OK [23:20:32]Clear old archive folders... [23:20:32]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:20:32]tlvbuf is 0024C7F0 [23:20:32]SAM_PROTO_ClearQueue [23:20:32]wFMCommunicate request_size=4 [23:20:32]MH_SAM_APDU [23:20:32]CAPDU: 80 09 00 00 [23:20:32]Write to MH i2c: E2 08 00 1C 16 80 09 00 00 00 00 00 00 A4 [23:20:32]Write i2c OK [23:20:32]MH_I2C_Read... [23:20:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:20:32]Read from MH i2c: E2 [23:20:32]MH_I2C_Read... [23:20:32]Read from MH i2c: E2 03 00 [23:20:32]MH_I2C_Read... [23:20:32]Read from MH i2c: E2 03 00 1C 16 00 90 00 A6 [23:20:32]RAPDU: 90 00 [23:20:32]wFMCommunicate OK [23:20:32]SAM_PROTO_ClearQueue done [23:20:32]KKMCreateOFDPacket [23:20:32]OFDProtocolAddRootSTLVToBuf [23:20:32]FM_MakeSignedData [23:20:32]FM_MakeSignedData [23:20:32]SAM_PROTO_SignData [23:20:32]wFMCommunicate request_size=4 [23:20:32]MH_SAM_APDU [23:20:32]CAPDU: 80 0D 01 02 [23:20:32]Write to MH i2c: E2 08 00 1D 16 80 0D 01 02 00 00 00 00 AC [23:20:32]Write i2c OK [23:20:32]MH_I2C_Read... [23:20:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:20:32]Read from MH i2c: E2 [23:20:32]MH_I2C_Read... [23:20:32]Read from MH i2c: E2 03 00 [23:20:32]MH_I2C_Read... [23:20:32]Read from MH i2c: E2 03 00 1D 16 00 90 00 A7 [23:20:32]RAPDU: 90 00 [23:20:32]wFMCommunicate OK [23:20:32]wFMCommunicate request_size=255 [23:20:32]MH_SAM_APDU [23:20: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 34 FF 03 08 00 03 24 4A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 4B EC 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 EC 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5B 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 47 34 00 00 00 00 07 04 06 00 30 EC 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 01 00 00 F4 03 04 00 41 FE 5C 66 0E 04 04 00 42 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 92 0A 01 00 35 04 06 00 36 [23:20:32]Write to MH i2c: E2 02 01 1E 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 34 FF 03 08 00 03 24 4A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 4B EC 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 EC 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5B 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 47 34 00 00 00 00 07 04 06 00 30 EC 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 01 00 00 F4 03 04 00 41 FE 5C 66 0E 04 04 00 42 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 92 0A 01 00 35 04 06 00 36 00 00 90 [23:20:32]Write i2c OK [23:20:32]MH_I2C_Read... [23:20:32]OFD Sender: No OFD packet to send [23:20:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:20:33]Read from MH i2c: E2 [23:20:33]MH_I2C_Read... [23:20:33]Read from MH i2c: E2 03 00 [23:20:33]MH_I2C_Read... [23:20:33]Read from MH i2c: E2 03 00 1E 16 00 90 00 A8 [23:20:33]RAPDU: 90 00 [23:20:33]wFMCommunicate OK [23:20:33]wFMCommunicate request_size=10 [23:20:33]MH_SAM_APDU [23:20:33]CAPDU: 80 0D 02 02 05 DE 1A F2 CA 4B [23:20:33]Write to MH i2c: E2 0D 00 1F 16 80 0D 02 02 05 00 DE 1A F2 CA 4B 00 00 B8 [23:20:33]Write i2c OK [23:20:33]MH_I2C_Read... [23:20:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:20:33]Read from MH i2c: E2 [23:20:33]MH_I2C_Read... [23:20:33]Read from MH i2c: E2 03 00 [23:20:33]MH_I2C_Read... [23:20:33]Read from MH i2c: E2 03 00 1F 16 00 90 00 A9 [23:20:33]RAPDU: 90 00 [23:20:33]wFMCommunicate OK [23:20:33]wFMCommunicate request_size=4 [23:20:33]MH_SAM_APDU [23:20:33]CAPDU: 80 0D 03 02 [23:20:33]Write to MH i2c: E2 08 00 20 16 80 0D 03 02 00 00 00 00 B1 [23:20:33]Write i2c OK [23:20:33]MH_I2C_Read... [23:20:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:20:33]Read from MH i2c: E2 [23:20:33]MH_I2C_Read... [23:20:33]Read from MH i2c: E2 0B 00 [23:20:33]MH_I2C_Read... [23:20:33]Read from MH i2c: E2 0B 00 20 16 00 97 02 81 76 EF 1D 99 23 90 00 0A [23:20:33]RAPDU: 97 02 81 76 EF 1D 99 23 90 00 [23:20:33]wFMCommunicate OK [23:20:33]SAM_PROTO_SignData done [23:20:33]FM_MakeSignedData done [23:20:33]CreateOFDProtocolMessage [23:20:33]wFMCommunicate request_size=4 [23:20:33]MH_SAM_APDU [23:20:33]CAPDU: 80 11 00 00 [23:20:33]Write to MH i2c: E2 08 00 21 16 80 11 00 00 00 00 00 00 B1 [23:20:33]Write i2c OK [23:20:33]MH_I2C_Read... [23:20:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:20:33]Read from MH i2c: E2 [23:20:33]MH_I2C_Read... [23:20:33]Read from MH i2c: E2 17 00 [23:20:33]MH_I2C_Read... [23:20:33]Read from MH i2c: E2 17 00 21 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 FC [23:20:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [23:20:33]wFMCommunicate OK [23:20:33]CreateOFDProtocolMessage done [23:20:33]OFDSenderStorePacket 68242 [23:20:33]StoreOFDPacket docnum=68242 [23:20:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 C6 5E 07 01 C3 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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 24 4A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 4B EC 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 EC 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5B 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 47 34 00 00 00 00 07 04 06 00 30 EC 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 01 00 00 F4 03 04 00 41 FE 5C 66 0E 04 04 00 42 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 92 0A 01 00 35 04 06 00 36 DE 1A F2 CA 4B 97 02 81 76 EF 1D 99 23 [23:20:33]CheckFolder [23:20:33]dirname=/storage/ofd_packets [23:20:33]CheckFolder done [23:20:33]ProducePacketName [23:20:33]name=ofd_packets/00068242 [23:20:33]NVStorageSaveData ofd_packets/00068242 [23:20:33]File name is /storage/ofd_packets/00068242 [23:20:33]Write 301 bytes [23:20:33]NVStorageSaveData done [23:20:33]OFDSenderStorePacket done [23:20:33]KKMCreateOFDPacket done [23:20:33]NVStorageSaveData kkm_last_timestamp [23:20:33]File name is /storage/kkm_last_timestamp [23:20:33]Write 4 bytes [23:20:33]NVStorageSaveData done [23:20:33]ExternCall_PrintAddStr [23:20:33]wPrintStart [23:20:33]Write to MH i2c: 01 00 00 22 16 38 [23:20:33]Write i2c OK [23:20:33]MH_I2C_Read... [23:20:33]Read from MH i2c: 01 [23:20:33]MH_I2C_Read... [23:20:33]Read from MH i2c: 01 07 00 [23:20:33]MH_I2C_Read... [23:20:33]Read from MH i2c: 01 07 00 22 16 00 00 00 00 00 FF 0F 4D [23:20:33]RasterBufferAndPrint [23:20:33]line Счет N : (1)706314 [23:20:33]line ИНН: 02508201610067 [23:20:33]line Контрольно-Кассовый Чек [23:20:33]line ПРОДАЖА [23:20:33]line ТРК (МРК, ГНК) : 63 [23:20:33]line Товар: 2710124130 [23:20:33]line Аи-92-К-4 [23:20:33]line 18.980 * 66.40 [23:20:33]line = 1260.27 [23:20:33]line НДС 12% НСП 1% [23:20:33]line > о реализуемом товаре [23:20:33]line ОКРУГЛЕНИЕ: -0.27 [23:20:33]line ИТОГО: 1260.00 [23:20:33]line Внесено: 1260.00 [23:20:33]line СДАЧА: 0.00 [23:20:33]line НСП 1% : 11.15 [23:20:33]line НДС 12% : 133.83 [23:20:33]line Наличными: 1260.00 [23:20:33]line Безнал.: 0.00 [23:20:33]line Место: АЗС № 62 "Партнер Нефть" [23:20:33]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [23:20:33]line СНО: Общий режим [23:20:33]line Чек 257 02.06.2024 23:20 [23:20:33]line Смена: 322 ФФД: 1.0 [23:20:33]line ЗНМ: 0300000181 [23:20:33]line РНМ: 0000000000098096 [23:20:33]line Версия ККМ: 001 [23:20:33]line ФМ: 0000000000965400 [23:20:33]line ФД: 68242 [23:20:33]line ФПД: 60327562758731 [23:20:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240602T232033&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68242&fm=60327562758731&tin=02508201610067®Number=0000000000098096&sum=126000 [23:20:33]OFD Sender: Processing packet 68242 [packets to send 26, broken 25] [23:20:33]ProducePacketName [23:20:33]name=ofd_packets/00068242 [23:20:33]OFD Sender: To server: pG, [23:20:33]CommunicateWithHost lk.salyk.kg:30040 [23:20:33]ConnectInit lk.salyk.kg [23:20:33]written 0, free lines is 4095 [23:20:33]Connected sock=10 [23:20:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 C6 5E 07 01 C3 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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 24 4A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 4B EC 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 EC 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5B 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 47 34 00 00 00 00 07 04 06 00 30 EC 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 01 00 00 F4 03 04 00 41 FE 5C 66 0E 04 04 00 42 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 92 0A 01 00 35 04 06 00 36 DE 1A F2 CA 4B 97 02 81 76 EF 1D 99 23 [23:20:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 3F EC 47 00 41 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 35 34 30 30 10 04 04 00 92 0A 01 00 F4 03 04 00 3F A5 5C 66 B6 04 01 00 00 76 2D 2B CC 18 BD D7 0A [23:20:33]CommunicateWithHost err = 0 [23:20:33]CheckOFDResponse [23:20:33]1017 (14) - 77093643461234 [23:20:33]1041 (16) - 0000000000965400 [23:20:33]1040 (4) - 68242 [23:20:33]1012 (4) - 02.06.2024 17:00 [23:20:33]1206 (1) - 0 [23:20:33]OFD Sender: Remove packet 68242 [23:20:33]ProducePacketName [23:20:33]name=ofd_packets/00068242 [23:20:33]NVStorageDeleteData [23:20:34]Write to MH i2c: 01 00 00 4D 16 63 [23:20:34]Write i2c OK [23:20:34]MH_I2C_Read... [23:20:34]Read from MH i2c: 01 [23:20:34]MH_I2C_Read... [23:20:34]Read from MH i2c: 01 07 00 [23:20:34]MH_I2C_Read... [23:20:34]Read from MH i2c: 01 07 00 4D 16 00 00 00 00 00 F1 0C 67 [23:20:34]RasterBufferAndPrint [23:20:34]line [23:20:34]line [23:20:34]line [23:20:34]line [23:20:34]line [23:20:34]written 0, free lines is 3319 [23:20:34]MH_Cut [23:20:34]Write to MH i2c: D1 01 00 54 16 01 3C [23:20:34]Write i2c OK [23:20:34]MH_I2C_Read... [23:20:34]Read from MH i2c: D1 [23:20:34]MH_I2C_Read... [23:20:34]Read from MH i2c: D1 01 00 [23:20:34]MH_I2C_Read... [23:20:34]Read from MH i2c: D1 01 00 54 16 00 3B [23:20:34]Write to MH i2c: 01 00 00 55 16 6B [23:20:34]Write i2c OK [23:20:34]MH_I2C_Read... [23:20:34]OFD Sender: No OFD packet to send [23:20:34]*** Cut start [23:20:34]*** Partial cut [23:20:34]*** CUTSNS_PIN = 1 [23:20:34]*** CUTSNS_PIN = 0 [23:20:35]*** Brake cut motor [23:20:35]Read from MH i2c: 01 [23:20:35]MH_I2C_Read... [23:20:35]*** Stop cut motor [23:20:35]*** Cut end [23:20:35]Read from MH i2c: 01 07 00 [23:20:35]MH_I2C_Read... [23:20:35]Read from MH i2c: 01 07 00 55 16 00 00 00 00 00 FF 0F 80 [23:20:35]process_action close_receipt done [23:20:35]requested_data is exist [23:20:35]produce_requested_data [23:20:35]requested_item fm.sn is exist - process it [23:20:35]wFMCommunicate request_size=4 [23:20:35]MH_SAM_APDU [23:20:35]CAPDU: 80 11 00 00 [23:20:35]Write to MH i2c: E2 08 00 56 16 80 11 00 00 00 00 00 00 E6 [23:20:35]Write i2c OK [23:20:35]MH_I2C_Read... [23:20:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:20:35]Read from MH i2c: E2 [23:20:35]MH_I2C_Read... [23:20:35]Read from MH i2c: E2 17 00 [23:20:35]MH_I2C_Read... [23:20:35]Read from MH i2c: E2 17 00 56 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 31 [23:20:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [23:20:35]wFMCommunicate OK [23:20:35]requested_item fd.num is exist - process it [23:20:35]SAM_PROTO_GetFieldsCounters [23:20:35]wFMCommunicate request_size=4 [23:20:35]MH_SAM_APDU [23:20:35]CAPDU: 80 13 00 00 [23:20:35]Write to MH i2c: E2 08 00 57 16 80 13 00 00 00 00 00 00 E9 [23:20:35]Write i2c OK [23:20:35]MH_I2C_Read... [23:20:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:20:35]Read from MH i2c: E2 [23:20:35]MH_I2C_Read... [23:20:35]Read from MH i2c: E2 62 00 [23:20:35]MH_I2C_Read... [23:20:35]Read from MH i2c: E2 62 00 57 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 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 92 0A 01 00 0E 04 04 00 42 01 00 00 12 04 04 00 01 01 00 00 5E 04 04 00 01 01 00 00 57 04 04 00 02 01 00 00 19 04 04 00 00 00 00 00 90 00 EF [23:20:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 92 0A 01 00 0E 04 04 00 42 01 00 00 12 04 04 00 01 01 00 00 5E 04 04 00 01 01 00 00 57 04 04 00 02 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:20:35]wFMCommunicate OK [23:20:35]SAM_PROTO_GetFieldsCounters done [23:20:35]requested_item shift.num is exist - process it [23:20:35]requested_item shift.opened is exist - process it [23:20:35]req_shift_opened [23:20:35]FM_GetShiftState [23:20:35]SAM_PROTO_GetShiftState [23:20:35]wFMCommunicate request_size=4 [23:20:35]MH_SAM_APDU [23:20:35]CAPDU: 80 13 01 00 [23:20:35]Write to MH i2c: E2 08 00 58 16 80 13 01 00 00 00 00 00 EB [23:20:35]Write i2c OK [23:20:35]MH_I2C_Read... [23:20:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:20:35]Read from MH i2c: E2 [23:20:35]MH_I2C_Read... [23:20:35]Read from MH i2c: E2 0E 00 [23:20:35]MH_I2C_Read... [23:20:35]Read from MH i2c: E2 0E 00 58 16 00 09 00 01 A4 BB 5B 66 00 00 00 00 90 00 17 [23:20:35]RAPDU: 09 00 01 A4 BB 5B 66 00 00 00 00 90 00 [23:20:35]wFMCommunicate OK [23:20:35]SAM_PROTO_GetShiftState done [23:20:35]FM_GetShiftState done [23:20:35]req_shift_opened done [23:20:35]requested_item shift.open_date is exist - process it [23:20:35]req_shift_open_date [23:20:35]req_shift_open_date done [23:20:35]produce_requested_data done [23:20:35]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68242,"shift.num":322,"shift.opened":1,"shift.open_date":1717287844} [23:20:35]process_action_free close_receipt [23:20:35]json_value_free [23:20:35]json_value_free done [23:20:35]process_json_proto returns [23:20:35]Send response to host [23:20:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68242,"shift.num":322,"shift.opened":1,"shift.open_date":1717287844}}} [23:20:35]free response buf [23:20:35]execute_script done [23:20:35]execute_script returns [23:20:35]free content buf [23:20:35]Sock 9.Close socket [23:20:35]Sock 9.Thread stoped [23:20:39]OFD Sender: No OFD packet to send [23:20:44]OFD Sender: No OFD packet to send [23:20:49]OFD Sender: No OFD packet to send [23:20:54]OFD Sender: No OFD packet to send [23:20:59]OFD Sender: No OFD packet to send [23:21:04]OFD Sender: No OFD packet to send [23:21:09]OFD Sender: No OFD packet to send [23:21:14]OFD Sender: No OFD packet to send [23:21:19]OFD Sender: No OFD packet to send [23:21:24]OFD Sender: No OFD packet to send [23:21:29]OFD Sender: No OFD packet to send [23:21:34]OFD Sender: No OFD packet to send [23:21:39]OFD Sender: No OFD packet to send [23:21:44]OFD Sender: No OFD packet to send [23:21:49]OFD Sender: No OFD packet to send [23:21:54]OFD Sender: No OFD packet to send [23:21:59]OFD Sender: No OFD packet to send [23:22:04]OFD Sender: No OFD packet to send [23:22:09]OFD Sender: No OFD packet to send [23:22:14]OFD Sender: No OFD packet to send [23:22:19]OFD Sender: No OFD packet to send [23:22:24]OFD Sender: No OFD packet to send [23:22:29]OFD Sender: No OFD packet to send [23:22:34]OFD Sender: No OFD packet to send [23:22:39]OFD Sender: No OFD packet to send [23:22:44]OFD Sender: No OFD packet to send [23:22:49]OFD Sender: No OFD packet to send [23:22:54]OFD Sender: No OFD packet to send [23:22:59]OFD Sender: No OFD packet to send [23:23:04]OFD Sender: No OFD packet to send [23:23:09]OFD Sender: No OFD packet to send [23:23:14]OFD Sender: No OFD packet to send [23:23:19]OFD Sender: No OFD packet to send [23:23:24]OFD Sender: No OFD packet to send [23:23:29]OFD Sender: No OFD packet to send [23:23:34]OFD Sender: No OFD packet to send [23:23:39]OFD Sender: No OFD packet to send [23:23:44]OFD Sender: No OFD packet to send [23:23:49]OFD Sender: No OFD packet to send [23:23:54]OFD Sender: No OFD packet to send [23:23:59]OFD Sender: No OFD packet to send [23:24:04]OFD Sender: No OFD packet to send [23:24:09]OFD Sender: No OFD packet to send [23:24:14]OFD Sender: No OFD packet to send [23:24:19]OFD Sender: No OFD packet to send [23:24:24]OFD Sender: No OFD packet to send [23:24:29]OFD Sender: No OFD packet to send [23:24:34]OFD Sender: No OFD packet to send [23:24:39]OFD Sender: No OFD packet to send [23:24: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: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]OFD Sender: No OFD packet to send [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:34]OFD Sender: No OFD packet to send [23:30:39]OFD Sender: No OFD packet to send [23:30:44]OFD Sender: No OFD packet to send [23:30:49]OFD Sender: No OFD packet to send [23:30:54]OFD Sender: No OFD packet to send [23:30:59]OFD Sender: No OFD packet to send [23:31:04]OFD Sender: No OFD packet to send [23:31:09]OFD Sender: No OFD packet to send [23:31:14]OFD Sender: No OFD packet to send [23:31:19]OFD Sender: No OFD packet to send [23:31:24]OFD Sender: No OFD packet to send [23:31:29]OFD Sender: No OFD packet to send [23:31:34]OFD Sender: No OFD packet to send [23:31:39]OFD Sender: No OFD packet to send [23:31:44]OFD Sender: No OFD packet to send [23:31:49]OFD Sender: No OFD packet to send [23:31:54]OFD Sender: No OFD packet to send [23:31:59]OFD Sender: No OFD packet to send [23:32:04]OFD Sender: No OFD packet to send [23:32:09]OFD Sender: No OFD packet to send [23:32:14]OFD Sender: No OFD packet to send [23:32:19]OFD Sender: No OFD packet to send [23:32:24]OFD Sender: No OFD packet to send [23:32:29]OFD Sender: No OFD packet to send [23:32:34]OFD Sender: No OFD packet to send [23:32:39]OFD Sender: No OFD packet to send [23:32:44]OFD Sender: No OFD packet to send [23:32:49]OFD Sender: No OFD packet to send [23:32:54]OFD Sender: No OFD packet to send [23:32:59]OFD Sender: No OFD packet to send [23:33:04]OFD Sender: No OFD packet to send [23:33:09]OFD Sender: No OFD packet to send [23:33:14]OFD Sender: No OFD packet to send [23:33:19]OFD Sender: No OFD packet to send [23:33:24]OFD Sender: No OFD packet to send [23:33:29]OFD Sender: No OFD packet to send [23:33:35]OFD Sender: No OFD packet to send [23:33:40]OFD Sender: No OFD packet to send [23:33:45]OFD Sender: No OFD packet to send [23:33:50]OFD Sender: No OFD packet to send [23:33:55]OFD Sender: No OFD packet to send [23:34:00]OFD Sender: No OFD packet to send [23:34:05]OFD Sender: No OFD packet to send [23:34:10]OFD Sender: No OFD packet to send [23:34:15]OFD Sender: No OFD packet to send [23:34:20]OFD Sender: No OFD packet to send [23:34:25]OFD Sender: No OFD packet to send [23:34:30]OFD Sender: No OFD packet to send [23:34:35]OFD Sender: No OFD packet to send [23:34:40]OFD Sender: No OFD packet to send [23:34:45]OFD Sender: No OFD packet to send [23:34:50]OFD Sender: No OFD packet to send [23:34:55]OFD Sender: No OFD packet to send [23:35:00]OFD Sender: No OFD packet to send [23:35:05]OFD Sender: No OFD packet to send [23:35:10]OFD Sender: No OFD packet to send [23:35:15]OFD Sender: No OFD packet to send [23:35:20]OFD Sender: No OFD packet to send [23:35:25]OFD Sender: No OFD packet to send [23:35:30]OFD Sender: No OFD packet to send [23:35:35]OFD Sender: No OFD packet to send [23:35:40]OFD Sender: No OFD packet to send [23:35:45]OFD Sender: No OFD packet to send [23:35:50]OFD Sender: No OFD packet to send [23:35:55]OFD Sender: No OFD packet to send [23:36:00]OFD Sender: No OFD packet to send [23:36:05]OFD Sender: No OFD packet to send [23:36:10]OFD Sender: No OFD packet to send [23:36:15]OFD Sender: No OFD packet to send [23:36:20]OFD Sender: No OFD packet to send [23:36:25]OFD Sender: No OFD packet to send [23:36:30]OFD Sender: No OFD packet to send [23:36:35]OFD Sender: No OFD packet to send [23:36:40]OFD Sender: No OFD packet to send [23:36:45]OFD Sender: No OFD packet to send [23:36:50]OFD Sender: No OFD packet to send [23:36:55]OFD Sender: No OFD packet to send [23:37:00]OFD Sender: No OFD packet to send [23:37:05]OFD Sender: No OFD packet to send [23:37:10]OFD Sender: No OFD packet to send [23:37:15]OFD Sender: No OFD packet to send [23:37:20]OFD Sender: No OFD packet to send [23:37:25]OFD Sender: No OFD packet to send [23:37:30]OFD Sender: No OFD packet to send [23:37:35]OFD Sender: No OFD packet to send [23:37:40]OFD Sender: No OFD packet to send [23:37:45]OFD Sender: No OFD packet to send [23:37:50]OFD Sender: No OFD packet to send [23:37:55]OFD Sender: No OFD packet to send [23:38:00]OFD Sender: No OFD packet to send [23:38:05]OFD Sender: No OFD packet to send [23:38:10]OFD Sender: No OFD packet to send [23:38:15]OFD Sender: No OFD packet to send [23:38:20]OFD Sender: No OFD packet to send [23:38:25]OFD Sender: No OFD packet to send [23:38:30]OFD Sender: No OFD packet to send [23:38:35]OFD Sender: No OFD packet to send [23:38:40]OFD Sender: No OFD packet to send [23:38:45]OFD Sender: No OFD packet to send [23:38:50]OFD Sender: No OFD packet to send [23:38:55]OFD Sender: No OFD packet to send [23:39:00]OFD Sender: No OFD packet to send [23:39:05]OFD Sender: No OFD packet to send [23:39:10]OFD Sender: No OFD packet to send [23:39:15]OFD Sender: No OFD packet to send [23:39:20]OFD Sender: No OFD packet to send [23:39:25]OFD Sender: No OFD packet to send [23:39:30]OFD Sender: No OFD packet to send [23:39:35]OFD Sender: No OFD packet to send [23:39:40]OFD Sender: No OFD packet to send [23:39:45]OFD Sender: No OFD packet to send [23:39:50]OFD Sender: No OFD packet to send [23:39:55]OFD Sender: No OFD packet to send [23:40:00]OFD Sender: No OFD packet to send [23:40:05]OFD Sender: No OFD packet to send [23:40:10]OFD Sender: No OFD packet to send [23:40:15]OFD Sender: No OFD packet to send [23:40:20]OFD Sender: No OFD packet to send [23:40:25]OFD Sender: No OFD packet to send [23:40:30]OFD Sender: No OFD packet to send [23:40:35]OFD Sender: No OFD packet to send [23:40:40]OFD Sender: No OFD packet to send [23:40:45]OFD Sender: No OFD packet to send [23:40:50]OFD Sender: No OFD packet to send [23:40:55]OFD Sender: No OFD packet to send [23:41:00]OFD Sender: No OFD packet to send [23:41:05]OFD Sender: No OFD packet to send [23:41:10]OFD Sender: No OFD packet to send [23:41:15]OFD Sender: No OFD packet to send [23:41:20]OFD Sender: No OFD packet to send [23:41:25]OFD Sender: No OFD packet to send [23:41:30]OFD Sender: No OFD packet to send [23:41:35]OFD Sender: No OFD packet to send [23:41:40]OFD Sender: No OFD packet to send [23:41:45]OFD Sender: No OFD packet to send [23:41:50]OFD Sender: No OFD packet to send [23:41:55]OFD Sender: No OFD packet to send [23:42:00]OFD Sender: No OFD packet to send [23:42:05]OFD Sender: No OFD packet to send [23:42:10]OFD Sender: No OFD packet to send [23:42:15]OFD Sender: No OFD packet to send [23:42:20]OFD Sender: No OFD packet to send [23:42:25]OFD Sender: No OFD packet to send [23:42:30]OFD Sender: No OFD packet to send [23:42:35]OFD Sender: No OFD packet to send [23:42:40]OFD Sender: No OFD packet to send [23:42:45]OFD Sender: No OFD packet to send [23:42:50]OFD Sender: No OFD packet to send [23:42:55]OFD Sender: No OFD packet to send [23:43:00]OFD Sender: No OFD packet to send [23:43:05]OFD Sender: No OFD packet to send [23:43:10]OFD Sender: No OFD packet to send [23:43:15]OFD Sender: No OFD packet to send [23:43:20]OFD Sender: No OFD packet to send [23:43:25]OFD Sender: No OFD packet to send [23:43:30]OFD Sender: No OFD packet to send [23:43:35]OFD Sender: No OFD packet to send [23:43:40]OFD Sender: No OFD packet to send [23:43:45]OFD Sender: No OFD packet to send [23:43:50]OFD Sender: No OFD packet to send [23:43:55]OFD Sender: No OFD packet to send [23:44:00]OFD Sender: No OFD packet to send [23:44:05]OFD Sender: No OFD packet to send [23:44:10]OFD Sender: No OFD packet to send [23:44:15]OFD Sender: No OFD packet to send [23:44:20]OFD Sender: No OFD packet to send [23:44:25]OFD Sender: No OFD packet to send [23:44:30]OFD Sender: No OFD packet to send [23:44:35]OFD Sender: No OFD packet to send [23:44:40]OFD Sender: No OFD packet to send [23:44:45]OFD Sender: No OFD packet to send [23:44:50]OFD Sender: No OFD packet to send [23:44:51]accept exits with 7 [23:44:51]New connection [23:44:51]New thread 3066543460 created [23:44:51]Thread 3066686820 joined [23:44:51]Waiting for new connection... [23:44:51] Sock 7.Parse request [23:44:51]Sock 7.Check first char [23:44:51]Sock 7.First char is OK [23:44:51]request: POST /json_proto HTTP/1.0 [23:44:51]Method: POST [23:44:51]URL: /json_proto [23:44:51]Method is POST - this is cgi request [23:44:51]url: /json_proto [23:44:51]query_string will be loaded in cgi processing [23:44:51]execute_cgi json_proto POST (null) [23:44:51]execute_cgi path=json_proto method=POST [23:44:51]POST find Content-Length [23:44:51]Host: 172.17.36.132:8080 [23:44:51]Content-Length: 677 [23:44:51]Content-Type: application/json [23:44:51] [23:44:51]POST finish read [23:44:51]Found Content-Length = 677 [23:44:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706316", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:44:51]execute_script... [23:44: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)706316", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:44:51]POST & json_proto [23:44:51]process_json_proto [23:44:51]json parsed OK: [23:44:51]protocol is kg_v1.0 [23:44:51]action value=close_receipt [23:44:51]process_action close_receipt [23:44:51]cmd_close_receipt [23:44:51]MH_GetDate [23:44:51]Write to MH i2c: F0 00 00 59 16 5E [23:44:51]Write i2c OK [23:44:51]MH_I2C_Read... [23:44:51]Read from MH i2c: F0 [23:44:51]MH_I2C_Read... [23:44:51]Read from MH i2c: F0 09 00 [23:44:51]MH_I2C_Read... [23:44:51]Read from MH i2c: F0 09 00 59 16 00 F5 03 5D 66 B2 22 B0 64 0A [23:44:51]GetLastDocTimeStamp 1717370433 [23:44:51]current date 1717371893 [23:44:51]FM_GetShiftState [23:44:51]SAM_PROTO_GetShiftState [23:44:51]wFMCommunicate request_size=4 [23:44:51]MH_SAM_APDU [23:44:51]CAPDU: 80 13 01 00 [23:44:51]Write to MH i2c: E2 08 00 5A 16 80 13 01 00 00 00 00 00 ED [23:44:51]Write i2c OK [23:44:51]MH_I2C_Read... [23:44:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:44:51]Read from MH i2c: E2 [23:44:51]MH_I2C_Read... [23:44:51]Read from MH i2c: E2 0E 00 [23:44:51]MH_I2C_Read... [23:44:51]Read from MH i2c: E2 0E 00 5A 16 00 09 00 01 A4 BB 5B 66 00 00 00 00 90 00 19 [23:44:51]RAPDU: 09 00 01 A4 BB 5B 66 00 00 00 00 90 00 [23:44:51]wFMCommunicate OK [23:44:51]SAM_PROTO_GetShiftState done [23:44:51]FM_GetShiftState done [23:44:51]opened in 1717287844 [23:44:51]opened+sec_in_day 1717374244 [23:44:51]quantity*price = 50065 [23:44:51]sum+1 = 50067 [23:44:51]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.66 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.17 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 258 02.06.2024 23:44 Смена: 322 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 ФМ: 0000000000965400 ФД: 68243 ФПД: 103650175748157 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240602T234453&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68243&fm=103650175748157&tin=02508201610067®Number=0000000000098096&sum=50000 [23:44:52]StoreToDocumentArchive [23:44:52]shift 322 fd 68243 [23:44:52]save to /storage/0322/doc_00068243 [23:44:52]save last doc name /storage/0322/doc_00068243 to /storage/kkm_last_doc_name [23:44:52]save OK [23:44:52]Clear old archive folders... [23:44:52]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:44:52]tlvbuf is 00467040 [23:44:52]SAM_PROTO_ClearQueue [23:44:52]wFMCommunicate request_size=4 [23:44:52]MH_SAM_APDU [23:44:52]CAPDU: 80 09 00 00 [23:44:52]Write to MH i2c: E2 08 00 67 16 80 09 00 00 00 00 00 00 EF [23:44:52]Write i2c OK [23:44:52]MH_I2C_Read... [23:44:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:44:52]Read from MH i2c: E2 [23:44:52]MH_I2C_Read... [23:44:52]Read from MH i2c: E2 03 00 [23:44:52]MH_I2C_Read... [23:44:52]Read from MH i2c: E2 03 00 67 16 00 90 00 F1 [23:44:52]RAPDU: 90 00 [23:44:52]wFMCommunicate OK [23:44:52]SAM_PROTO_ClearQueue done [23:44:52]KKMCreateOFDPacket [23:44:52]OFDProtocolAddRootSTLVToBuf [23:44:52]FM_MakeSignedData [23:44:52]FM_MakeSignedData [23:44:52]SAM_PROTO_SignData [23:44:52]wFMCommunicate request_size=4 [23:44:52]MH_SAM_APDU [23:44:52]CAPDU: 80 0D 01 02 [23:44:52]Write to MH i2c: E2 08 00 68 16 80 0D 01 02 00 00 00 00 F7 [23:44:52]Write i2c OK [23:44:52]MH_I2C_Read... [23:44:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:44:52]Read from MH i2c: E2 [23:44:52]MH_I2C_Read... [23:44:52]Read from MH i2c: E2 03 00 [23:44:52]MH_I2C_Read... [23:44:52]Read from MH i2c: E2 03 00 68 16 00 90 00 F2 [23:44:52]RAPDU: 90 00 [23:44:52]wFMCommunicate OK [23:44:52]wFMCommunicate request_size=255 [23:44:52]MH_SAM_APDU [23:44: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 34 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 01 00 00 F4 03 04 00 F5 03 5D 66 0E 04 04 00 42 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 93 0A 01 00 35 04 06 00 5E [23:44:52]Write to MH i2c: E2 02 01 69 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 34 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 01 00 00 F4 03 04 00 F5 03 5D 66 0E 04 04 00 42 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 93 0A 01 00 35 04 06 00 5E 00 00 A6 [23:44:52]Write i2c OK [23:44:52]MH_I2C_Read... [23:44:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:44:53]Read from MH i2c: E2 [23:44:53]MH_I2C_Read... [23:44:53]Read from MH i2c: E2 03 00 [23:44:53]MH_I2C_Read... [23:44:53]Read from MH i2c: E2 03 00 69 16 00 90 00 F3 [23:44:53]RAPDU: 90 00 [23:44:53]wFMCommunicate OK [23:44:53]wFMCommunicate request_size=10 [23:44:53]MH_SAM_APDU [23:44:53]CAPDU: 80 0D 02 02 05 44 EF E8 08 3D [23:44:53]Write to MH i2c: E2 0D 00 6A 16 80 0D 02 02 05 00 44 EF E8 08 3D 00 00 64 [23:44:53]Write i2c OK [23:44:53]MH_I2C_Read... [23:44:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:44:53]Read from MH i2c: E2 [23:44:53]MH_I2C_Read... [23:44:53]Read from MH i2c: E2 03 00 [23:44:53]MH_I2C_Read... [23:44:53]Read from MH i2c: E2 03 00 6A 16 00 90 00 F4 [23:44:53]RAPDU: 90 00 [23:44:53]wFMCommunicate OK [23:44:53]wFMCommunicate request_size=4 [23:44:53]MH_SAM_APDU [23:44:53]CAPDU: 80 0D 03 02 [23:44:53]Write to MH i2c: E2 08 00 6B 16 80 0D 03 02 00 00 00 00 FC [23:44:53]Write i2c OK [23:44:53]MH_I2C_Read... [23:44:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:44:53]Read from MH i2c: E2 [23:44:53]MH_I2C_Read... [23:44:53]Read from MH i2c: E2 0B 00 [23:44:53]MH_I2C_Read... [23:44:53]Read from MH i2c: E2 0B 00 6B 16 00 49 77 98 76 83 75 69 AB 90 00 D7 [23:44:53]RAPDU: 49 77 98 76 83 75 69 AB 90 00 [23:44:53]wFMCommunicate OK [23:44:53]SAM_PROTO_SignData done [23:44:53]FM_MakeSignedData done [23:44:53]CreateOFDProtocolMessage [23:44:53]wFMCommunicate request_size=4 [23:44:53]MH_SAM_APDU [23:44:53]CAPDU: 80 11 00 00 [23:44:53]Write to MH i2c: E2 08 00 6C 16 80 11 00 00 00 00 00 00 FC [23:44:53]Write i2c OK [23:44:53]MH_I2C_Read... [23:44:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:44:53]Read from MH i2c: E2 [23:44:53]MH_I2C_Read... [23:44:53]Read from MH i2c: E2 17 00 [23:44:53]MH_I2C_Read... [23:44:53]Read from MH i2c: E2 17 00 6C 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 47 [23:44:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [23:44:53]wFMCommunicate OK [23:44:53]CreateOFDProtocolMessage done [23:44:53]OFDSenderStorePacket 68243 [23:44:53]StoreOFDPacket docnum=68243 [23:44:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 2A DD 07 01 54 A9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 01 00 00 F4 03 04 00 F5 03 5D 66 0E 04 04 00 42 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 93 0A 01 00 35 04 06 00 5E 44 EF E8 08 3D 49 77 98 76 83 75 69 AB [23:44:53]CheckFolder [23:44:53]dirname=/storage/ofd_packets [23:44:53]CheckFolder done [23:44:53]ProducePacketName [23:44:53]name=ofd_packets/00068243 [23:44:53]NVStorageSaveData ofd_packets/00068243 [23:44:53]File name is /storage/ofd_packets/00068243 [23:44:53]Write 301 bytes [23:44:53]NVStorageSaveData done [23:44:53]OFDSenderStorePacket done [23:44:53]KKMCreateOFDPacket done [23:44:53]NVStorageSaveData kkm_last_timestamp [23:44:53]File name is /storage/kkm_last_timestamp [23:44:53]Write 4 bytes [23:44:53]NVStorageSaveData done [23:44:53]ExternCall_PrintAddStr [23:44:53]wPrintStart [23:44:53]Write to MH i2c: 01 00 00 6D 16 83 [23:44:53]Write i2c OK [23:44:53]MH_I2C_Read... [23:44:53]Read from MH i2c: 01 [23:44:53]MH_I2C_Read... [23:44:53]Read from MH i2c: 01 07 00 [23:44:53]MH_I2C_Read... [23:44:53]Read from MH i2c: 01 07 00 6D 16 00 00 00 00 00 FF 0F 98 [23:44:53]RasterBufferAndPrint [23:44:53]line Счет N : (1)706316 [23:44:53]line ИНН: 02508201610067 [23:44:53]line Контрольно-Кассовый Чек [23:44:53]line ПРОДАЖА [23:44:53]line ТРК (МРК, ГНК) : 42 [23:44:53]line Товар: 2710124130 [23:44:53]line Аи-92-К-4 [23:44:53]line 7.540 * 66.40 [23:44:53]line = 500.66 [23:44:53]line НДС 12% НСП 1% [23:44:53]line > о реализуемом товаре [23:44:53]line ОКРУГЛЕНИЕ: -0.66 [23:44:53]line ИТОГО: 500.00 [23:44:53]line Внесено: 500.00 [23:44:53]line СДАЧА: 0.00 [23:44:53]line НСП 1% : 4.43 [23:44:53]line НДС 12% : 53.17 [23:44:53]line Наличными: 500.00 [23:44:53]line Безнал.: 0.00 [23:44:53]line Место: АЗС № 62 "Партнер Нефть" [23:44:53]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [23:44:53]line СНО: Общий режим [23:44:53]line Чек 258 02.06.2024 23:44 [23:44:53]line Смена: 322 ФФД: 1.0 [23:44:53]line ЗНМ: 0300000181 [23:44:53]line РНМ: 0000000000098096 [23:44:53]line Версия ККМ: 001 [23:44:53]line ФМ: 0000000000965400 [23:44:53]line ФД: 68243 [23:44:53]line ФПД: 103650175748157 [23:44:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240602T234453&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68243&fm=103650175748157&tin=02508201610067®Number=0000000000098096&sum=50000 [23:44:53]OFD Sender: Processing packet 68243 [packets to send 26, broken 25] [23:44:53]ProducePacketName [23:44:53]name=ofd_packets/00068243 [23:44:53]OFD Sender: To server: pG, [23:44:53]CommunicateWithHost lk.salyk.kg:30040 [23:44:53]ConnectInit lk.salyk.kg [23:44:53]written 0, free lines is 4095 [23:44:53]Connected sock=10 [23:44:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 2A DD 07 01 54 A9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 01 00 00 F4 03 04 00 F5 03 5D 66 0E 04 04 00 42 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 93 0A 01 00 35 04 06 00 5E 44 EF E8 08 3D 49 77 98 76 83 75 69 AB [23:44:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 91 27 47 00 C1 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 35 34 30 30 10 04 04 00 93 0A 01 00 F4 03 04 00 F3 AA 5C 66 B6 04 01 00 00 57 EB 29 4B 52 C4 48 C8 [23:44:53]CommunicateWithHost err = 0 [23:44:53]CheckOFDResponse [23:44:53]1017 (14) - 77093643461234 [23:44:53]1041 (16) - 0000000000965400 [23:44:53]1040 (4) - 68243 [23:44:53]1012 (4) - 02.06.2024 17:25 [23:44:53]1206 (1) - 0 [23:44:53]OFD Sender: Remove packet 68243 [23:44:53]ProducePacketName [23:44:53]name=ofd_packets/00068243 [23:44:53]NVStorageDeleteData [23:44:53]Write to MH i2c: 01 00 00 98 16 AE [23:44:53]Write i2c OK [23:44:53]MH_I2C_Read... [23:44:53]Read from MH i2c: 01 [23:44:53]MH_I2C_Read... [23:44:53]Read from MH i2c: 01 07 00 [23:44:53]MH_I2C_Read... [23:44:53]Read from MH i2c: 01 07 00 98 16 00 00 00 00 00 E0 0C A1 [23:44:53]RasterBufferAndPrint [23:44:53]line [23:44:53]line [23:44:53]line [23:44:53]line [23:44:53]line [23:44:53]written 0, free lines is 3302 [23:44:54]MH_Cut [23:44:54]Write to MH i2c: D1 01 00 9F 16 01 87 [23:44:54]Write i2c OK [23:44:54]MH_I2C_Read... [23:44:54]Read from MH i2c: D1 [23:44:54]MH_I2C_Read... [23:44:54]Read from MH i2c: D1 01 00 [23:44:54]MH_I2C_Read... [23:44:54]Read from MH i2c: D1 01 00 9F 16 00 86 [23:44:54]Write to MH i2c: 01 00 00 A0 16 B6 [23:44:54]Write i2c OK [23:44:54]MH_I2C_Read... [23:44:54]OFD Sender: No OFD packet to send [23:44:54]*** Cut start [23:44:54]*** Partial cut [23:44:54]*** CUTSNS_PIN = 1 [23:44:54]*** CUTSNS_PIN = 0 [23:44:55]*** Brake cut motor [23:44:55]Read from MH i2c: 01 [23:44:55]MH_I2C_Read... [23:44:55]*** Stop cut motor [23:44:55]*** Cut end [23:44:55]Read from MH i2c: 01 07 00 [23:44:55]MH_I2C_Read... [23:44:55]Read from MH i2c: 01 07 00 A0 16 00 00 00 00 00 FF 0F CB [23:44:55]process_action close_receipt done [23:44:55]requested_data is exist [23:44:55]produce_requested_data [23:44:55]requested_item fm.sn is exist - process it [23:44:55]wFMCommunicate request_size=4 [23:44:55]MH_SAM_APDU [23:44:55]CAPDU: 80 11 00 00 [23:44:55]Write to MH i2c: E2 08 00 A1 16 80 11 00 00 00 00 00 00 31 [23:44:55]Write i2c OK [23:44:55]MH_I2C_Read... [23:44:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:44:55]Read from MH i2c: E2 [23:44:55]MH_I2C_Read... [23:44:55]Read from MH i2c: E2 17 00 [23:44:55]MH_I2C_Read... [23:44:55]Read from MH i2c: E2 17 00 A1 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 7C [23:44:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [23:44:55]wFMCommunicate OK [23:44:55]requested_item fd.num is exist - process it [23:44:55]SAM_PROTO_GetFieldsCounters [23:44:55]wFMCommunicate request_size=4 [23:44:55]MH_SAM_APDU [23:44:55]CAPDU: 80 13 00 00 [23:44:55]Write to MH i2c: E2 08 00 A2 16 80 13 00 00 00 00 00 00 34 [23:44:55]Write i2c OK [23:44:55]MH_I2C_Read... [23:44:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:44:55]Read from MH i2c: E2 [23:44:55]MH_I2C_Read... [23:44:55]Read from MH i2c: E2 62 00 [23:44:55]MH_I2C_Read... [23:44:55]Read from MH i2c: E2 62 00 A2 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 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 93 0A 01 00 0E 04 04 00 42 01 00 00 12 04 04 00 02 01 00 00 5E 04 04 00 02 01 00 00 57 04 04 00 03 01 00 00 19 04 04 00 00 00 00 00 90 00 3E [23:44: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 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 93 0A 01 00 0E 04 04 00 42 01 00 00 12 04 04 00 02 01 00 00 5E 04 04 00 02 01 00 00 57 04 04 00 03 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:44:55]wFMCommunicate OK [23:44:55]SAM_PROTO_GetFieldsCounters done [23:44:55]requested_item shift.num is exist - process it [23:44:55]requested_item shift.opened is exist - process it [23:44:55]req_shift_opened [23:44:55]FM_GetShiftState [23:44:55]SAM_PROTO_GetShiftState [23:44:55]wFMCommunicate request_size=4 [23:44:55]MH_SAM_APDU [23:44:55]CAPDU: 80 13 01 00 [23:44:55]Write to MH i2c: E2 08 00 A3 16 80 13 01 00 00 00 00 00 36 [23:44:55]Write i2c OK [23:44:55]MH_I2C_Read... [23:44:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:44:55]Read from MH i2c: E2 [23:44:55]MH_I2C_Read... [23:44:55]Read from MH i2c: E2 0E 00 [23:44:55]MH_I2C_Read... [23:44:55]Read from MH i2c: E2 0E 00 A3 16 00 09 00 01 A4 BB 5B 66 00 00 00 00 90 00 62 [23:44:55]RAPDU: 09 00 01 A4 BB 5B 66 00 00 00 00 90 00 [23:44:55]wFMCommunicate OK [23:44:55]SAM_PROTO_GetShiftState done [23:44:55]FM_GetShiftState done [23:44:55]req_shift_opened done [23:44:55]requested_item shift.open_date is exist - process it [23:44:55]req_shift_open_date [23:44:55]req_shift_open_date done [23:44:55]produce_requested_data done [23:44:55]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68243,"shift.num":322,"shift.opened":1,"shift.open_date":1717287844} [23:44:55]process_action_free close_receipt [23:44:55]json_value_free [23:44:55]json_value_free done [23:44:55]process_json_proto returns [23:44:55]Send response to host [23:44:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68243,"shift.num":322,"shift.opened":1,"shift.open_date":1717287844}}} [23:44:55]free response buf [23:44:55]execute_script done [23:44:55]execute_script returns [23:44:55]free content buf [23:44:55]Sock 7.Close socket [23:44:55]Sock 7.Thread stoped [23:44:59]OFD Sender: No OFD packet to send [23:45:04]OFD Sender: No OFD packet to send [23:45:09]OFD Sender: No OFD packet to send [23:45:14]OFD Sender: No OFD packet to send [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:07]accept exits with 9 [23:49:07]New connection [23:49:07]New thread 3066686820 created [23:49:07]Thread 3066543460 joined [23:49:07]Waiting for new connection... [23:49:07] Sock 9.Parse request [23:49:07]Sock 9.Check first char [23:49:07]Sock 9.First char is OK [23:49:07]request: POST /json_proto HTTP/1.0 [23:49:07]Method: POST [23:49:07]URL: /json_proto [23:49:07]Method is POST - this is cgi request [23:49:07]url: /json_proto [23:49:07]query_string will be loaded in cgi processing [23:49:07]execute_cgi json_proto POST (null) [23:49:07]execute_cgi path=json_proto method=POST [23:49:07]POST find Content-Length [23:49:07]Host: 172.17.36.132:8080 [23:49:07]Content-Length: 215 [23:49:07]Content-Type: application/json [23:49:07] [23:49:07]POST finish read [23:49:07]Found Content-Length = 215 [23:49:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:49:07]execute_script... [23:49:07]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:49:07]POST & json_proto [23:49:07]process_json_proto [23:49:07]json parsed OK: [23:49:07]protocol is kg_v1.0 [23:49:07]action value=get_value [23:49:07]process_action get_value [23:49:07]cmd_get_value [23:49:07]process_action get_value done [23:49:07]requested_data is exist [23:49:07]produce_requested_data [23:49:07]requested_item kkm.sn is exist - process it [23:49:07]requested_item kkm.ver is exist - process it [23:49:07]requested_item fm.sn is exist - process it [23:49:07]wFMCommunicate request_size=4 [23:49:07]MH_SAM_APDU [23:49:07]CAPDU: 80 11 00 00 [23:49:07]Write to MH i2c: E2 08 00 A4 16 80 11 00 00 00 00 00 00 34 [23:49:07]Write i2c OK [23:49:07]MH_I2C_Read... [23:49:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:49:07]Read from MH i2c: E2 [23:49:07]MH_I2C_Read... [23:49:07]Read from MH i2c: E2 17 00 [23:49:07]MH_I2C_Read... [23:49:07]Read from MH i2c: E2 17 00 A4 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 7F [23:49:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [23:49:07]wFMCommunicate OK [23:49:07]requested_item fd.num is exist - process it [23:49:07]SAM_PROTO_GetFieldsCounters [23:49:07]wFMCommunicate request_size=4 [23:49:07]MH_SAM_APDU [23:49:07]CAPDU: 80 13 00 00 [23:49:07]Write to MH i2c: E2 08 00 A5 16 80 13 00 00 00 00 00 00 37 [23:49:07]Write i2c OK [23:49:07]MH_I2C_Read... [23:49:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:49:07]Read from MH i2c: E2 [23:49:07]MH_I2C_Read... [23:49:07]Read from MH i2c: E2 62 00 [23:49:07]MH_I2C_Read... [23:49:07]Read from MH i2c: E2 62 00 A5 16 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 93 0A 01 00 0E 04 04 00 42 01 00 00 12 04 04 00 02 01 00 00 5E 04 04 00 02 01 00 00 57 04 04 00 03 01 00 00 19 04 04 00 00 00 00 00 90 00 41 [23:49: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 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 93 0A 01 00 0E 04 04 00 42 01 00 00 12 04 04 00 02 01 00 00 5E 04 04 00 02 01 00 00 57 04 04 00 03 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:49:07]wFMCommunicate OK [23:49:07]SAM_PROTO_GetFieldsCounters done [23:49:07]requested_item shift.num is exist - process it [23:49:07]requested_item shift.opened is exist - process it [23:49:07]req_shift_opened [23:49:07]FM_GetShiftState [23:49:07]SAM_PROTO_GetShiftState [23:49:07]wFMCommunicate request_size=4 [23:49:07]MH_SAM_APDU [23:49:07]CAPDU: 80 13 01 00 [23:49:07]Write to MH i2c: E2 08 00 A6 16 80 13 01 00 00 00 00 00 39 [23:49:07]Write i2c OK [23:49:07]MH_I2C_Read... [23:49:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:49:08]Read from MH i2c: E2 [23:49:08]MH_I2C_Read... [23:49:08]Read from MH i2c: E2 0E 00 [23:49:08]MH_I2C_Read... [23:49:08]Read from MH i2c: E2 0E 00 A6 16 00 09 00 01 A4 BB 5B 66 00 00 00 00 90 00 65 [23:49:08]RAPDU: 09 00 01 A4 BB 5B 66 00 00 00 00 90 00 [23:49:08]wFMCommunicate OK [23:49:08]SAM_PROTO_GetShiftState done [23:49:08]FM_GetShiftState done [23:49:08]req_shift_opened done [23:49:08]requested_item shift.open_date is exist - process it [23:49:08]req_shift_open_date [23:49:08]req_shift_open_date done [23:49:08]produce_requested_data done [23:49:08]produce_requested_data return {"kkm.sn":"0300000181","kkm.ver":"001","fm.sn":"0000000000965400","fd.num":68243,"shift.num":322,"shift.opened":1,"shift.open_date":1717287844} [23:49:08]process_action_free get_value [23:49:08]json_value_free [23:49:08]json_value_free done [23:49:08]process_json_proto returns [23:49:08]Send response to host [23:49:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000181","kkm.ver":"001","fm.sn":"0000000000965400","fd.num":68243,"shift.num":322,"shift.opened":1,"shift.open_date":1717287844}}} [23:49:08]free response buf [23:49:08]execute_script done [23:49:08]execute_script returns [23:49:08]free content buf [23:49:08]Sock 9.Close socket [23:49:08]Sock 9.Thread stoped [23:49:08]accept exits with 10 [23:49:08]New connection [23:49:08]New thread 3066543460 created [23:49:08]Thread 3066686820 joined [23:49:08]Waiting for new connection... [23:49:08] Sock 10.Parse request [23:49:08]Sock 10.Check first char [23:49:08]Sock 10.First char is OK [23:49:08]request: POST /json_proto HTTP/1.0 [23:49:08]Method: POST [23:49:08]URL: /json_proto [23:49:08]Method is POST - this is cgi request [23:49:08]url: /json_proto [23:49:08]query_string will be loaded in cgi processing [23:49:08]execute_cgi json_proto POST (null) [23:49:08]execute_cgi path=json_proto method=POST [23:49:08]POST find Content-Length [23:49:08]Host: 172.17.36.132:8080 [23:49:08]Content-Length: 331 [23:49:08]Content-Type: application/json [23:49:08] [23:49:08]POST finish read [23:49:08]Found Content-Length = 331 [23:49:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [23:49:08]execute_script... [23:49:08]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [23:49:08]POST & json_proto [23:49:08]process_json_proto [23:49:08]json parsed OK: [23:49:08]protocol is kg_v1.0 [23:49:08]action value=get_value [23:49:08]process_action get_value [23:49:08]cmd_get_value [23:49:08]process_action get_value done [23:49:08]requested_data is exist [23:49:08]produce_requested_data [23:49:08]requested_item fm.sale.total is exist - process it [23:49:08]SAM_PROTO_GetFMData [23:49:08]wFMCommunicate request_size=4 [23:49:08]MH_SAM_APDU [23:49:08]CAPDU: 80 13 03 00 [23:49:08]Write to MH i2c: E2 08 00 A7 16 80 13 03 00 00 00 00 00 3C [23:49:08]Write i2c OK [23:49:08]MH_I2C_Read... [23:49:08]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [23:49:08]Read from MH i2c: E2 [23:49:08]MH_I2C_Read... [23:49:08]Read from MH i2c: E2 FD 00 [23:49:08]MH_I2C_Read... [23:49:08]Read from MH i2c: E2 FD 00 A7 16 00 C5 04 85 04 C1 04 6E 04 04 00 0F 08 01 00 69 04 A3 00 6F 04 04 00 04 03 01 00 B1 04 05 00 73 D7 4B 38 01 70 04 05 00 6C E6 F0 0B 01 72 04 04 00 07 F1 5A 2C 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 80 A3 2C 21 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 08 9F C3 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 9C 00 6F 04 04 00 0B 05 00 00 B1 04 04 00 F0 67 BC 0E 70 04 04 00 F0 67 BC 0E 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 3E AA 90 01 EF 03 09 90 00 C1 [23:49:08]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 0F 08 01 00 69 04 A3 00 6F 04 04 00 04 03 01 00 B1 04 05 00 73 D7 4B 38 01 70 04 05 00 6C E6 F0 0B 01 72 04 04 00 07 F1 5A 2C 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 80 A3 2C 21 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 08 9F C3 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 9C 00 6F 04 04 00 0B 05 00 00 B1 04 04 00 F0 67 BC 0E 70 04 04 00 F0 67 BC 0E 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 3E AA 90 01 EF 03 09 90 00 [23:49:08]wFMCommunicate OK [23:49:08]wFMCommunicate request_size=4 [23:49:08]MH_SAM_APDU [23:49:08]CAPDU: 80 17 00 00 [23:49:08]Write to MH i2c: E2 08 00 A8 16 80 17 00 00 00 00 00 00 3E [23:49:08]Write i2c OK [23:49:08]MH_I2C_Read... [23:49:09]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:49:09]Read from MH i2c: E2 [23:49:09]MH_I2C_Read... [23:49:09]Read from MH i2c: E2 FD 00 [23:49:09]MH_I2C_Read... [23:49:09]Read from MH i2c: E2 FD 00 A8 16 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 12 63 21 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 8A [23:49:09]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 12 63 21 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 [23:49:09]wFMCommunicate OK [23:49:09]wFMCommunicate request_size=4 [23:49:09]MH_SAM_APDU [23:49:09]CAPDU: 80 17 00 00 [23:49:09]Write to MH i2c: E2 08 00 A9 16 80 17 00 00 00 00 00 00 3F [23:49:09]Write i2c OK [23:49:09]MH_I2C_Read... [23:49:09]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:49:09]Read from MH i2c: E2 [23:49:09]MH_I2C_Read... [23:49:09]Read from MH i2c: E2 FD 00 [23:49:09]MH_I2C_Read... [23:49:09]Read from MH i2c: E2 FD 00 A9 16 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 51 [23:49:09]RAPDU: 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:49:09]wFMCommunicate OK [23:49:09]wFMCommunicate request_size=4 [23:49:09]MH_SAM_APDU [23:49:09]CAPDU: 80 17 00 00 [23:49:09]Write to MH i2c: E2 08 00 AA 16 80 17 00 00 00 00 00 00 40 [23:49:09]Write i2c OK [23:49:09]MH_I2C_Read... [23:49:09]OFD Sender: No OFD packet to send [23:49:09]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:49:09]Read from MH i2c: E2 [23:49:09]MH_I2C_Read... [23:49:09]Read from MH i2c: E2 FD 00 [23:49:09]MH_I2C_Read... [23:49:09]Read from MH i2c: E2 FD 00 AA 16 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 CC [23:49:09]RAPDU: 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:49:09]wFMCommunicate OK [23:49:09]wFMCommunicate request_size=4 [23:49:09]MH_SAM_APDU [23:49:09]CAPDU: 80 17 00 00 [23:49:09]Write to MH i2c: E2 08 00 AB 16 80 17 00 00 00 00 00 00 41 [23:49:09]Write i2c OK [23:49:09]MH_I2C_Read... [23:49:09]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [23:49:09]Read from MH i2c: E2 [23:49:09]MH_I2C_Read... [23:49:09]Read from MH i2c: E2 E2 00 [23:49:09]MH_I2C_Read... [23:49:09]Read from MH i2c: E2 E2 00 AB 16 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 1F [23:49:09]RAPDU: EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [23:49:09]wFMCommunicate OK [23:49:09]SAM_PROTO_GetFMData done [23:49:09]requested_item fm.sale_refund.total is exist - process it [23:49:09]requested_item fm.buy.total is exist - process it [23:49:09]requested_item shift.sale.total is exist - process it [23:49:09]SAM_PROTO_GetShiftData [23:49:09]wFMCommunicate request_size=4 [23:49:09]MH_SAM_APDU [23:49:09]CAPDU: 80 13 02 00 [23:49:09]Write to MH i2c: E2 08 00 AC 16 80 13 02 00 00 00 00 00 40 [23:49:09]Write i2c OK [23:49:09]MH_I2C_Read... [23:49:10]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [23:49:10]Read from MH i2c: E2 [23:49:10]MH_I2C_Read... [23:49:10]Read from MH i2c: E2 FD 00 [23:49:10]MH_I2C_Read... [23:49:10]Read from MH i2c: E2 FD 00 AC 16 00 BC 04 AA 04 B8 04 6E 04 04 00 02 01 00 00 69 04 9E 00 6F 04 04 00 FC 00 00 00 B1 04 04 00 ED F0 C9 01 70 04 04 00 BC 7E 8C 01 72 04 03 00 31 72 3D 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 82 A4 30 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 A2 0D 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 B8 E9 0D 70 04 03 00 B8 E9 0D 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 57 7A 01 EF 03 09 00 F6 03 01 00 00 F7 03 90 00 DE [23:49:10]RAPDU: BC 04 AA 04 B8 04 6E 04 04 00 02 01 00 00 69 04 9E 00 6F 04 04 00 FC 00 00 00 B1 04 04 00 ED F0 C9 01 70 04 04 00 BC 7E 8C 01 72 04 03 00 31 72 3D 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 82 A4 30 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 A2 0D 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 B8 E9 0D 70 04 03 00 B8 E9 0D 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 57 7A 01 EF 03 09 00 F6 03 01 00 00 F7 03 90 00 [23:49:10]wFMCommunicate OK [23:49:10]wFMCommunicate request_size=4 [23:49:10]MH_SAM_APDU [23:49:10]CAPDU: 80 17 00 00 [23:49:10]Write to MH i2c: E2 08 00 AD 16 80 17 00 00 00 00 00 00 43 [23:49:10]Write i2c OK [23:49:10]MH_I2C_Read... [23:49:10]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:49:10]Read from MH i2c: E2 [23:49:10]MH_I2C_Read... [23:49:10]Read from MH i2c: E2 FD 00 [23:49:10]MH_I2C_Read... [23:49:10]Read from MH i2c: E2 FD 00 AD 16 00 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 87 1F EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 93 [23:49:10]RAPDU: 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 87 1F EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:49:10]wFMCommunicate OK [23:49:10]wFMCommunicate request_size=4 [23:49:10]MH_SAM_APDU [23:49:10]CAPDU: 80 17 00 00 [23:49:10]Write to MH i2c: E2 08 00 AE 16 80 17 00 00 00 00 00 00 44 [23:49:10]Write i2c OK [23:49:10]MH_I2C_Read... [23:49:10]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:49:10]Read from MH i2c: E2 [23:49:10]MH_I2C_Read... [23:49:10]Read from MH i2c: E2 FD 00 [23:49:10]MH_I2C_Read... [23:49:10]Read from MH i2c: E2 FD 00 AE 16 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 6D [23:49:10]RAPDU: 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:49:10]wFMCommunicate OK [23:49:10]wFMCommunicate request_size=4 [23:49:10]MH_SAM_APDU [23:49:10]CAPDU: 80 17 00 00 [23:49:10]Write to MH i2c: E2 08 00 AF 16 80 17 00 00 00 00 00 00 45 [23:49:10]Write i2c OK [23:49:10]MH_I2C_Read... [23:49:11]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:49:11]Read from MH i2c: E2 [23:49:11]MH_I2C_Read... [23:49:11]Read from MH i2c: E2 FD 00 [23:49:11]MH_I2C_Read... [23:49:11]Read from MH i2c: E2 FD 00 AF 16 00 03 00 00 EF 03 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 90 00 C6 [23:49:11]RAPDU: 03 00 00 EF 03 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 90 00 [23:49:11]wFMCommunicate OK [23:49:11]wFMCommunicate request_size=4 [23:49:11]MH_SAM_APDU [23:49:11]CAPDU: 80 17 00 00 [23:49:11]Write to MH i2c: E2 08 00 B0 16 80 17 00 00 00 00 00 00 46 [23:49:11]Write i2c OK [23:49:11]MH_I2C_Read... [23:49:11]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 214! [23:49:11]Read from MH i2c: E2 [23:49:11]MH_I2C_Read... [23:49:11]Read from MH i2c: E2 D9 00 [23:49:11]MH_I2C_Read... [23:49:11]Read from MH i2c: E2 D9 00 B0 16 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 25 [23:49:11]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [23:49:11]wFMCommunicate OK [23:49:11]SAM_PROTO_GetShiftData done [23:49:11]requested_item shift.sale.total_cash is exist - process it [23:49:11]requested_item shift.sale_refund.total is exist - process it [23:49:11]requested_item shift.sale_refund.total_cash is exist - process it [23:49:11]requested_item shift.buy.total is exist - process it [23:49:11]requested_item shift.buy.total_cash is exist - process it [23:49:11]produce_requested_data done [23:49:11]produce_requested_data return {"fm.sale.total":52394617.47,"fm.sale_refund.total":2472284.00,"fm.buy.total":0.00,"shift.sale.total":300116.29,"shift.sale.total_cash":259847.00,"shift.sale_refund.total":9118.00,"shift.sale_refund.total_cash":9118.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [23:49:11]process_action_free get_value [23:49:11]json_value_free [23:49:11]json_value_free done [23:49:11]process_json_proto returns [23:49:11]Send response to host [23:49:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":52394617.47,"fm.sale_refund.total":2472284.00,"fm.buy.total":0.00,"shift.sale.total":300116.29,"shift.sale.total_cash":259847.00,"shift.sale_refund.total":9118.00,"shift.sale_refund.total_cash":9118.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [23:49:11]free response buf [23:49:11]execute_script done [23:49:11]execute_script returns [23:49:11]free content buf [23:49:11]Sock 10.Close socket [23:49:11]Sock 10.Thread stoped [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:25]OFD Sender: No OFD packet to send [23:57:30]OFD Sender: No OFD packet to send [23:57:35]OFD Sender: No OFD packet to send [23:57:40]OFD Sender: No OFD packet to send [23:57:45]OFD Sender: No OFD packet to send [23:57:50]OFD Sender: No OFD packet to send [23:57:55]OFD Sender: No OFD packet to send [23:58:00]OFD Sender: No OFD packet to send [23:58:05]OFD Sender: No OFD packet to send [23:58:10]OFD Sender: No OFD packet to send [23:58:15]OFD Sender: No OFD packet to send [23:58:20]OFD Sender: No OFD packet to send [23:58:25]OFD Sender: No OFD packet to send [23:58:30]OFD Sender: No OFD packet to send [23:58:35]OFD Sender: No OFD packet to send [23:58:40]OFD Sender: No OFD packet to send [23:58:45]OFD Sender: No OFD packet to send [23:58:50]OFD Sender: No OFD packet to send [23:58:55]OFD Sender: No OFD packet to send [23:59:00]OFD Sender: No OFD packet to send [23:59:05]OFD Sender: No OFD packet to send [23:59:10]OFD Sender: No OFD packet to send [23:59:15]OFD Sender: No OFD packet to send [23:59:20]OFD Sender: No OFD packet to send [23:59:25]OFD Sender: No OFD packet to send [23:59:30]OFD Sender: No OFD packet to send [23:59:35]OFD Sender: No OFD packet to send [23:59:40]OFD Sender: No OFD packet to send [23:59:45]OFD Sender: No OFD packet to send [23:59:50]OFD Sender: No OFD packet to send [23:59:55]OFD Sender: No OFD packet to send [00:00:00]OFD Sender: No OFD packet to send [00:00:05]OFD Sender: No OFD packet to send [00:00:10]OFD Sender: No OFD packet to send [00:00:15]OFD Sender: No OFD packet to send [00:00:20]OFD Sender: No OFD packet to send [00:00:25]OFD Sender: No OFD packet to send [00:00:30]OFD Sender: No OFD packet to send [00:00:35]OFD Sender: No OFD packet to send [00:00:40]OFD Sender: No OFD packet to send [00:00:45]OFD Sender: No OFD packet to send [00:00:50]OFD Sender: No OFD packet to send [00:00:55]OFD Sender: No OFD packet to send [00:01:00]OFD Sender: No OFD packet to send [00:01:05]OFD Sender: No OFD packet to send [00:01:10]OFD Sender: No OFD packet to send [00:01:15]OFD Sender: No OFD packet to send [00:01:20]OFD Sender: No OFD packet to send [00:01:25]OFD Sender: No OFD packet to send [00:01:30]OFD Sender: No OFD packet to send [00:01:35]OFD Sender: No OFD packet to send [00:01:40]OFD Sender: No OFD packet to send [00:01:45]OFD Sender: No OFD packet to send [00:01:50]OFD Sender: No OFD packet to send [00:01:55]OFD Sender: No OFD packet to send [00:02:00]OFD Sender: No OFD packet to send [00:02:05]OFD Sender: No OFD packet to send [00:02:10]OFD Sender: No OFD packet to send [00:02:15]OFD Sender: No OFD packet to send [00:02:20]OFD Sender: No OFD packet to send [00:02:25]OFD Sender: No OFD packet to send [00:02:30]OFD Sender: No OFD packet to send [00:02:33]accept exits with 7 [00:02:33]New connection [00:02:33]New thread 3066686820 created [00:02:33]Thread 3066543460 joined [00:02:33]Waiting for new connection... [00:02:33] Sock 7.Parse request [00:02:33]Sock 7.Check first char [00:02:33]Sock 7.First char is OK [00:02:33]request: POST /json_proto HTTP/1.0 [00:02:33]Method: POST [00:02:33]URL: /json_proto [00:02:33]Method is POST - this is cgi request [00:02:33]url: /json_proto [00:02:33]query_string will be loaded in cgi processing [00:02:33]execute_cgi json_proto POST (null) [00:02:33]execute_cgi path=json_proto method=POST [00:02:33]POST find Content-Length [00:02:33]Host: 172.17.36.132:8080 [00:02:33]Content-Length: 215 [00:02:33]Content-Type: application/json [00:02:33] [00:02:33]POST finish read [00:02:33]Found Content-Length = 215 [00:02:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:02:33]execute_script... [00:02:33]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:02:33]POST & json_proto [00:02:33]process_json_proto [00:02:33]json parsed OK: [00:02:33]protocol is kg_v1.0 [00:02:33]action value=get_value [00:02:33]process_action get_value [00:02:33]cmd_get_value [00:02:33]process_action get_value done [00:02:33]requested_data is exist [00:02:33]produce_requested_data [00:02:33]requested_item kkm.sn is exist - process it [00:02:33]requested_item kkm.ver is exist - process it [00:02:33]requested_item fm.sn is exist - process it [00:02:33]wFMCommunicate request_size=4 [00:02:33]MH_SAM_APDU [00:02:33]CAPDU: 80 11 00 00 [00:02:33]Write to MH i2c: E2 08 00 B1 16 80 11 00 00 00 00 00 00 41 [00:02:33]Write i2c OK [00:02:33]MH_I2C_Read... [00:02:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:02:33]Read from MH i2c: E2 [00:02:33]MH_I2C_Read... [00:02:33]Read from MH i2c: E2 17 00 [00:02:33]MH_I2C_Read... [00:02:33]Read from MH i2c: E2 17 00 B1 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 8C [00:02:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [00:02:33]wFMCommunicate OK [00:02:33]requested_item fd.num is exist - process it [00:02:33]SAM_PROTO_GetFieldsCounters [00:02:33]wFMCommunicate request_size=4 [00:02:33]MH_SAM_APDU [00:02:33]CAPDU: 80 13 00 00 [00:02:33]Write to MH i2c: E2 08 00 B2 16 80 13 00 00 00 00 00 00 44 [00:02:33]Write i2c OK [00:02:33]MH_I2C_Read... [00:02:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:02:33]Read from MH i2c: E2 [00:02:33]MH_I2C_Read... [00:02:33]Read from MH i2c: E2 62 00 [00:02:33]MH_I2C_Read... [00:02:33]Read from MH i2c: E2 62 00 B2 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 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 93 0A 01 00 0E 04 04 00 42 01 00 00 12 04 04 00 02 01 00 00 5E 04 04 00 02 01 00 00 57 04 04 00 03 01 00 00 19 04 04 00 00 00 00 00 90 00 4E [00:02: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 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 93 0A 01 00 0E 04 04 00 42 01 00 00 12 04 04 00 02 01 00 00 5E 04 04 00 02 01 00 00 57 04 04 00 03 01 00 00 19 04 04 00 00 00 00 00 90 00 [00:02:33]wFMCommunicate OK [00:02:33]SAM_PROTO_GetFieldsCounters done [00:02:33]requested_item shift.num is exist - process it [00:02:33]requested_item shift.opened is exist - process it [00:02:33]req_shift_opened [00:02:33]FM_GetShiftState [00:02:33]SAM_PROTO_GetShiftState [00:02:33]wFMCommunicate request_size=4 [00:02:33]MH_SAM_APDU [00:02:33]CAPDU: 80 13 01 00 [00:02:33]Write to MH i2c: E2 08 00 B3 16 80 13 01 00 00 00 00 00 46 [00:02:33]Write i2c OK [00:02:33]MH_I2C_Read... [00:02:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:02:33]Read from MH i2c: E2 [00:02:33]MH_I2C_Read... [00:02:33]Read from MH i2c: E2 0E 00 [00:02:33]MH_I2C_Read... [00:02:33]Read from MH i2c: E2 0E 00 B3 16 00 09 00 01 A4 BB 5B 66 00 00 00 00 90 00 72 [00:02:33]RAPDU: 09 00 01 A4 BB 5B 66 00 00 00 00 90 00 [00:02:33]wFMCommunicate OK [00:02:33]SAM_PROTO_GetShiftState done [00:02:33]FM_GetShiftState done [00:02:33]req_shift_opened done [00:02:33]requested_item shift.open_date is exist - process it [00:02:33]req_shift_open_date [00:02:33]req_shift_open_date done [00:02:33]produce_requested_data done [00:02:33]produce_requested_data return {"kkm.sn":"0300000181","kkm.ver":"001","fm.sn":"0000000000965400","fd.num":68243,"shift.num":322,"shift.opened":1,"shift.open_date":1717287844} [00:02:33]process_action_free get_value [00:02:33]json_value_free [00:02:33]json_value_free done [00:02:33]process_json_proto returns [00:02:33]Send response to host [00:02:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000181","kkm.ver":"001","fm.sn":"0000000000965400","fd.num":68243,"shift.num":322,"shift.opened":1,"shift.open_date":1717287844}}} [00:02:33]free response buf [00:02:33]execute_script done [00:02:33]execute_script returns [00:02:33]free content buf [00:02:33]Sock 7.Close socket [00:02:33]Sock 7.Thread stoped [00:02:33]accept exits with 9 [00:02:33]New connection [00:02:33]New thread 3066543460 created [00:02:33]Thread 3066686820 joined [00:02:33]Waiting for new connection... [00:02:33] Sock 9.Parse request [00:02:33]Sock 9.Check first char [00:02:33]Sock 9.First char is OK [00:02:33]request: POST /json_proto HTTP/1.0 [00:02:33]Method: POST [00:02:33]URL: /json_proto [00:02:33]Method is POST - this is cgi request [00:02:33]url: /json_proto [00:02:33]query_string will be loaded in cgi processing [00:02:33]execute_cgi json_proto POST (null) [00:02:33]execute_cgi path=json_proto method=POST [00:02:33]POST find Content-Length [00:02:33]Host: 172.17.36.132:8080 [00:02:33]Content-Length: 331 [00:02:33]Content-Type: application/json [00:02:33] [00:02:33]POST finish read [00:02:33]Found Content-Length = 331 [00:02:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:02:33]execute_script... [00:02:34]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:02:34]POST & json_proto [00:02:34]process_json_proto [00:02:34]json parsed OK: [00:02:34]protocol is kg_v1.0 [00:02:34]action value=get_value [00:02:34]process_action get_value [00:02:34]cmd_get_value [00:02:34]process_action get_value done [00:02:34]requested_data is exist [00:02:34]produce_requested_data [00:02:34]requested_item fm.sale.total is exist - process it [00:02:34]SAM_PROTO_GetFMData [00:02:34]wFMCommunicate request_size=4 [00:02:34]MH_SAM_APDU [00:02:34]CAPDU: 80 13 03 00 [00:02:34]Write to MH i2c: E2 08 00 B4 16 80 13 03 00 00 00 00 00 49 [00:02:34]Write i2c OK [00:02:34]MH_I2C_Read... [00:02:34]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:02:34]Read from MH i2c: E2 [00:02:34]MH_I2C_Read... [00:02:34]Read from MH i2c: E2 FD 00 [00:02:34]MH_I2C_Read... [00:02:34]Read from MH i2c: E2 FD 00 B4 16 00 C5 04 85 04 C1 04 6E 04 04 00 0F 08 01 00 69 04 A3 00 6F 04 04 00 04 03 01 00 B1 04 05 00 73 D7 4B 38 01 70 04 05 00 6C E6 F0 0B 01 72 04 04 00 07 F1 5A 2C 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 80 A3 2C 21 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 08 9F C3 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 9C 00 6F 04 04 00 0B 05 00 00 B1 04 04 00 F0 67 BC 0E 70 04 04 00 F0 67 BC 0E 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 3E AA 90 01 EF 03 09 90 00 CE [00:02:34]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 0F 08 01 00 69 04 A3 00 6F 04 04 00 04 03 01 00 B1 04 05 00 73 D7 4B 38 01 70 04 05 00 6C E6 F0 0B 01 72 04 04 00 07 F1 5A 2C 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 80 A3 2C 21 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 08 9F C3 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 9C 00 6F 04 04 00 0B 05 00 00 B1 04 04 00 F0 67 BC 0E 70 04 04 00 F0 67 BC 0E 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 3E AA 90 01 EF 03 09 90 00 [00:02:34]wFMCommunicate OK [00:02:34]wFMCommunicate request_size=4 [00:02:34]MH_SAM_APDU [00:02:34]CAPDU: 80 17 00 00 [00:02:34]Write to MH i2c: E2 08 00 B5 16 80 17 00 00 00 00 00 00 4B [00:02:34]Write i2c OK [00:02:34]MH_I2C_Read... [00:02:34]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:02:34]Read from MH i2c: E2 [00:02:34]MH_I2C_Read... [00:02:34]Read from MH i2c: E2 FD 00 [00:02:34]MH_I2C_Read... [00:02:34]Read from MH i2c: E2 FD 00 B5 16 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 12 63 21 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 97 [00:02:34]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 12 63 21 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 [00:02:34]wFMCommunicate OK [00:02:34]wFMCommunicate request_size=4 [00:02:34]MH_SAM_APDU [00:02:34]CAPDU: 80 17 00 00 [00:02:34]Write to MH i2c: E2 08 00 B6 16 80 17 00 00 00 00 00 00 4C [00:02:34]Write i2c OK [00:02:34]MH_I2C_Read... [00:02:35]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:02:35]Read from MH i2c: E2 [00:02:35]MH_I2C_Read... [00:02:35]Read from MH i2c: E2 FD 00 [00:02:35]MH_I2C_Read... [00:02:35]Read from MH i2c: E2 FD 00 B6 16 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 5E [00:02:35]RAPDU: 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:02:35]wFMCommunicate OK [00:02:35]wFMCommunicate request_size=4 [00:02:35]MH_SAM_APDU [00:02:35]CAPDU: 80 17 00 00 [00:02:35]Write to MH i2c: E2 08 00 B7 16 80 17 00 00 00 00 00 00 4D [00:02:35]Write i2c OK [00:02:35]MH_I2C_Read... [00:02:35]OFD Sender: No OFD packet to send [00:02:35]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:02:35]Read from MH i2c: E2 [00:02:35]MH_I2C_Read... [00:02:35]Read from MH i2c: E2 FD 00 [00:02:35]MH_I2C_Read... [00:02:35]Read from MH i2c: E2 FD 00 B7 16 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 D9 [00:02:35]RAPDU: 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:02:35]wFMCommunicate OK [00:02:35]wFMCommunicate request_size=4 [00:02:35]MH_SAM_APDU [00:02:35]CAPDU: 80 17 00 00 [00:02:35]Write to MH i2c: E2 08 00 B8 16 80 17 00 00 00 00 00 00 4E [00:02:35]Write i2c OK [00:02:35]MH_I2C_Read... [00:02:35]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [00:02:35]Read from MH i2c: E2 [00:02:35]MH_I2C_Read... [00:02:35]Read from MH i2c: E2 E2 00 [00:02:35]MH_I2C_Read... [00:02:35]Read from MH i2c: E2 E2 00 B8 16 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 2C [00:02:35]RAPDU: EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:02:35]wFMCommunicate OK [00:02:35]SAM_PROTO_GetFMData done [00:02:35]requested_item fm.sale_refund.total is exist - process it [00:02:35]requested_item fm.buy.total is exist - process it [00:02:35]requested_item shift.sale.total is exist - process it [00:02:35]SAM_PROTO_GetShiftData [00:02:35]wFMCommunicate request_size=4 [00:02:35]MH_SAM_APDU [00:02:35]CAPDU: 80 13 02 00 [00:02:35]Write to MH i2c: E2 08 00 B9 16 80 13 02 00 00 00 00 00 4D [00:02:35]Write i2c OK [00:02:35]MH_I2C_Read... [00:02:36]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:02:36]Read from MH i2c: E2 [00:02:36]MH_I2C_Read... [00:02:36]Read from MH i2c: E2 FD 00 [00:02:36]MH_I2C_Read... [00:02:36]Read from MH i2c: E2 FD 00 B9 16 00 BC 04 AA 04 B8 04 6E 04 04 00 02 01 00 00 69 04 9E 00 6F 04 04 00 FC 00 00 00 B1 04 04 00 ED F0 C9 01 70 04 04 00 BC 7E 8C 01 72 04 03 00 31 72 3D 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 82 A4 30 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 A2 0D 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 B8 E9 0D 70 04 03 00 B8 E9 0D 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 57 7A 01 EF 03 09 00 F6 03 01 00 00 F7 03 90 00 EB [00:02:36]RAPDU: BC 04 AA 04 B8 04 6E 04 04 00 02 01 00 00 69 04 9E 00 6F 04 04 00 FC 00 00 00 B1 04 04 00 ED F0 C9 01 70 04 04 00 BC 7E 8C 01 72 04 03 00 31 72 3D 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 82 A4 30 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 A2 0D 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 B8 E9 0D 70 04 03 00 B8 E9 0D 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 57 7A 01 EF 03 09 00 F6 03 01 00 00 F7 03 90 00 [00:02:36]wFMCommunicate OK [00:02:36]wFMCommunicate request_size=4 [00:02:36]MH_SAM_APDU [00:02:36]CAPDU: 80 17 00 00 [00:02:36]Write to MH i2c: E2 08 00 BA 16 80 17 00 00 00 00 00 00 50 [00:02:36]Write i2c OK [00:02:36]MH_I2C_Read... [00:02:36]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:02:36]Read from MH i2c: E2 [00:02:36]MH_I2C_Read... [00:02:36]Read from MH i2c: E2 FD 00 [00:02:36]MH_I2C_Read... [00:02:36]Read from MH i2c: E2 FD 00 BA 16 00 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 87 1F EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 A0 [00:02:36]RAPDU: 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 87 1F EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:02:36]wFMCommunicate OK [00:02:36]wFMCommunicate request_size=4 [00:02:36]MH_SAM_APDU [00:02:36]CAPDU: 80 17 00 00 [00:02:36]Write to MH i2c: E2 08 00 BB 16 80 17 00 00 00 00 00 00 51 [00:02:36]Write i2c OK [00:02:36]MH_I2C_Read... [00:02:36]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:02:36]Read from MH i2c: E2 [00:02:36]MH_I2C_Read... [00:02:36]Read from MH i2c: E2 FD 00 [00:02:36]MH_I2C_Read... [00:02:36]Read from MH i2c: E2 FD 00 BB 16 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 7A [00:02:36]RAPDU: 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:02:36]wFMCommunicate OK [00:02:36]wFMCommunicate request_size=4 [00:02:36]MH_SAM_APDU [00:02:36]CAPDU: 80 17 00 00 [00:02:36]Write to MH i2c: E2 08 00 BC 16 80 17 00 00 00 00 00 00 52 [00:02:36]Write i2c OK [00:02:36]MH_I2C_Read... [00:02:36]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:02:36]Read from MH i2c: E2 [00:02:36]MH_I2C_Read... [00:02:36]Read from MH i2c: E2 FD 00 [00:02:36]MH_I2C_Read... [00:02:36]Read from MH i2c: E2 FD 00 BC 16 00 03 00 00 EF 03 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 90 00 D3 [00:02:36]RAPDU: 03 00 00 EF 03 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 90 00 [00:02:36]wFMCommunicate OK [00:02:36]wFMCommunicate request_size=4 [00:02:36]MH_SAM_APDU [00:02:36]CAPDU: 80 17 00 00 [00:02:36]Write to MH i2c: E2 08 00 BD 16 80 17 00 00 00 00 00 00 53 [00:02:36]Write i2c OK [00:02:36]MH_I2C_Read... [00:02:37]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 214! [00:02:37]Read from MH i2c: E2 [00:02:37]MH_I2C_Read... [00:02:37]Read from MH i2c: E2 D9 00 [00:02:37]MH_I2C_Read... [00:02:37]Read from MH i2c: E2 D9 00 BD 16 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 32 [00:02:37]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:02:37]wFMCommunicate OK [00:02:37]SAM_PROTO_GetShiftData done [00:02:37]requested_item shift.sale.total_cash is exist - process it [00:02:37]requested_item shift.sale_refund.total is exist - process it [00:02:37]requested_item shift.sale_refund.total_cash is exist - process it [00:02:37]requested_item shift.buy.total is exist - process it [00:02:37]requested_item shift.buy.total_cash is exist - process it [00:02:37]produce_requested_data done [00:02:37]produce_requested_data return {"fm.sale.total":52394617.47,"fm.sale_refund.total":2472284.00,"fm.buy.total":0.00,"shift.sale.total":300116.29,"shift.sale.total_cash":259847.00,"shift.sale_refund.total":9118.00,"shift.sale_refund.total_cash":9118.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [00:02:37]process_action_free get_value [00:02:37]json_value_free [00:02:37]json_value_free done [00:02:37]process_json_proto returns [00:02:37]Send response to host [00:02:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":52394617.47,"fm.sale_refund.total":2472284.00,"fm.buy.total":0.00,"shift.sale.total":300116.29,"shift.sale.total_cash":259847.00,"shift.sale_refund.total":9118.00,"shift.sale_refund.total_cash":9118.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [00:02:37]free response buf [00:02:37]execute_script done [00:02:37]execute_script returns [00:02:37]free content buf [00:02:37]Sock 9.Close socket [00:02:37]Sock 9.Thread stoped [00:02:37]accept exits with 7 [00:02:37]New connection [00:02:37]New thread 3066686820 created [00:02:37]Thread 3066543460 joined [00:02:37]Waiting for new connection... [00:02:37] Sock 7.Parse request [00:02:37]Sock 7.Check first char [00:02:37]Sock 7.First char is OK [00:02:37]request: POST /json_proto HTTP/1.0 [00:02:37]Method: POST [00:02:37]URL: /json_proto [00:02:37]Method is POST - this is cgi request [00:02:37]url: /json_proto [00:02:37]query_string will be loaded in cgi processing [00:02:37]execute_cgi json_proto POST (null) [00:02:37]execute_cgi path=json_proto method=POST [00:02:37]POST find Content-Length [00:02:37]Host: 172.17.36.132:8080 [00:02:37]Content-Length: 331 [00:02:37]Content-Type: application/json [00:02:37] [00:02:37]POST finish read [00:02:37]Found Content-Length = 331 [00:02: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:02:37]execute_script... [00:02: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:02:37]POST & json_proto [00:02:37]process_json_proto [00:02:37]json parsed OK: [00:02:37]protocol is kg_v1.0 [00:02:37]action value=get_value [00:02:37]process_action get_value [00:02:37]cmd_get_value [00:02:37]process_action get_value done [00:02:37]requested_data is exist [00:02:37]produce_requested_data [00:02:37]requested_item fm.sale.total is exist - process it [00:02:37]SAM_PROTO_GetFMData [00:02:37]wFMCommunicate request_size=4 [00:02:37]MH_SAM_APDU [00:02:37]CAPDU: 80 13 03 00 [00:02:37]Write to MH i2c: E2 08 00 BE 16 80 13 03 00 00 00 00 00 53 [00:02:37]Write i2c OK [00:02:37]MH_I2C_Read... [00:02:37]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:02:37]Read from MH i2c: E2 [00:02:37]MH_I2C_Read... [00:02:37]Read from MH i2c: E2 FD 00 [00:02:37]MH_I2C_Read... [00:02:37]Read from MH i2c: E2 FD 00 BE 16 00 C5 04 85 04 C1 04 6E 04 04 00 0F 08 01 00 69 04 A3 00 6F 04 04 00 04 03 01 00 B1 04 05 00 73 D7 4B 38 01 70 04 05 00 6C E6 F0 0B 01 72 04 04 00 07 F1 5A 2C 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 80 A3 2C 21 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 08 9F C3 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 9C 00 6F 04 04 00 0B 05 00 00 B1 04 04 00 F0 67 BC 0E 70 04 04 00 F0 67 BC 0E 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 3E AA 90 01 EF 03 09 90 00 D8 [00:02:37]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 0F 08 01 00 69 04 A3 00 6F 04 04 00 04 03 01 00 B1 04 05 00 73 D7 4B 38 01 70 04 05 00 6C E6 F0 0B 01 72 04 04 00 07 F1 5A 2C 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 80 A3 2C 21 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 08 9F C3 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 9C 00 6F 04 04 00 0B 05 00 00 B1 04 04 00 F0 67 BC 0E 70 04 04 00 F0 67 BC 0E 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 3E AA 90 01 EF 03 09 90 00 [00:02:37]wFMCommunicate OK [00:02:37]wFMCommunicate request_size=4 [00:02:37]MH_SAM_APDU [00:02:37]CAPDU: 80 17 00 00 [00:02:37]Write to MH i2c: E2 08 00 BF 16 80 17 00 00 00 00 00 00 55 [00:02:37]Write i2c OK [00:02:37]MH_I2C_Read... [00:02:38]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:02:38]Read from MH i2c: E2 [00:02:38]MH_I2C_Read... [00:02:38]Read from MH i2c: E2 FD 00 [00:02:38]MH_I2C_Read... [00:02:38]Read from MH i2c: E2 FD 00 BF 16 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 12 63 21 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 A1 [00:02:38]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 12 63 21 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 [00:02:38]wFMCommunicate OK [00:02:38]wFMCommunicate request_size=4 [00:02:38]MH_SAM_APDU [00:02:38]CAPDU: 80 17 00 00 [00:02:38]Write to MH i2c: E2 08 00 C0 16 80 17 00 00 00 00 00 00 56 [00:02:38]Write i2c OK [00:02:38]MH_I2C_Read... [00:02:38]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:02:38]Read from MH i2c: E2 [00:02:38]MH_I2C_Read... [00:02:38]Read from MH i2c: E2 FD 00 [00:02:38]MH_I2C_Read... [00:02:38]Read from MH i2c: E2 FD 00 C0 16 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 68 [00:02:38]RAPDU: 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:02:38]wFMCommunicate OK [00:02:38]wFMCommunicate request_size=4 [00:02:38]MH_SAM_APDU [00:02:38]CAPDU: 80 17 00 00 [00:02:38]Write to MH i2c: E2 08 00 C1 16 80 17 00 00 00 00 00 00 57 [00:02:38]Write i2c OK [00:02:38]MH_I2C_Read... [00:02:38]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:02:38]Read from MH i2c: E2 [00:02:38]MH_I2C_Read... [00:02:38]Read from MH i2c: E2 FD 00 [00:02:38]MH_I2C_Read... [00:02:38]Read from MH i2c: E2 FD 00 C1 16 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 E3 [00:02:38]RAPDU: 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:02:38]wFMCommunicate OK [00:02:38]wFMCommunicate request_size=4 [00:02:38]MH_SAM_APDU [00:02:38]CAPDU: 80 17 00 00 [00:02:38]Write to MH i2c: E2 08 00 C2 16 80 17 00 00 00 00 00 00 58 [00:02:38]Write i2c OK [00:02:38]MH_I2C_Read... [00:02:39]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [00:02:39]Read from MH i2c: E2 [00:02:39]MH_I2C_Read... [00:02:39]Read from MH i2c: E2 E2 00 [00:02:39]MH_I2C_Read... [00:02:39]Read from MH i2c: E2 E2 00 C2 16 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 36 [00:02:39]RAPDU: EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:02:39]wFMCommunicate OK [00:02:39]SAM_PROTO_GetFMData done [00:02:39]requested_item fm.sale_refund.total is exist - process it [00:02:39]requested_item fm.buy.total is exist - process it [00:02:39]requested_item shift.sale.total is exist - process it [00:02:39]SAM_PROTO_GetShiftData [00:02:39]wFMCommunicate request_size=4 [00:02:39]MH_SAM_APDU [00:02:39]CAPDU: 80 13 02 00 [00:02:39]Write to MH i2c: E2 08 00 C3 16 80 13 02 00 00 00 00 00 57 [00:02:39]Write i2c OK [00:02:39]MH_I2C_Read... [00:02:39]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:02:39]Read from MH i2c: E2 [00:02:39]MH_I2C_Read... [00:02:39]Read from MH i2c: E2 FD 00 [00:02:39]MH_I2C_Read... [00:02:39]Read from MH i2c: E2 FD 00 C3 16 00 BC 04 AA 04 B8 04 6E 04 04 00 02 01 00 00 69 04 9E 00 6F 04 04 00 FC 00 00 00 B1 04 04 00 ED F0 C9 01 70 04 04 00 BC 7E 8C 01 72 04 03 00 31 72 3D 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 82 A4 30 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 A2 0D 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 B8 E9 0D 70 04 03 00 B8 E9 0D 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 57 7A 01 EF 03 09 00 F6 03 01 00 00 F7 03 90 00 F5 [00:02:39]RAPDU: BC 04 AA 04 B8 04 6E 04 04 00 02 01 00 00 69 04 9E 00 6F 04 04 00 FC 00 00 00 B1 04 04 00 ED F0 C9 01 70 04 04 00 BC 7E 8C 01 72 04 03 00 31 72 3D 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 82 A4 30 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 A2 0D 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 B8 E9 0D 70 04 03 00 B8 E9 0D 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 57 7A 01 EF 03 09 00 F6 03 01 00 00 F7 03 90 00 [00:02:39]wFMCommunicate OK [00:02:39]wFMCommunicate request_size=4 [00:02:39]MH_SAM_APDU [00:02:39]CAPDU: 80 17 00 00 [00:02:39]Write to MH i2c: E2 08 00 C4 16 80 17 00 00 00 00 00 00 5A [00:02:39]Write i2c OK [00:02:39]MH_I2C_Read... [00:02:40]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:02:40]Read from MH i2c: E2 [00:02:40]MH_I2C_Read... [00:02:40]Read from MH i2c: E2 FD 00 [00:02:40]MH_I2C_Read... [00:02:40]Read from MH i2c: E2 FD 00 C4 16 00 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 87 1F EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 AA [00:02:40]RAPDU: 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 87 1F EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:02:40]wFMCommunicate OK [00:02:40]wFMCommunicate request_size=4 [00:02:40]MH_SAM_APDU [00:02:40]CAPDU: 80 17 00 00 [00:02:40]Write to MH i2c: E2 08 00 C5 16 80 17 00 00 00 00 00 00 5B [00:02:40]Write i2c OK [00:02:40]MH_I2C_Read... [00:02:40]OFD Sender: No OFD packet to send [00:02:40]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:02:40]Read from MH i2c: E2 [00:02:40]MH_I2C_Read... [00:02:40]Read from MH i2c: E2 FD 00 [00:02:40]MH_I2C_Read... [00:02:40]Read from MH i2c: E2 FD 00 C5 16 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 84 [00:02:40]RAPDU: 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:02:40]wFMCommunicate OK [00:02:40]wFMCommunicate request_size=4 [00:02:40]MH_SAM_APDU [00:02:40]CAPDU: 80 17 00 00 [00:02:40]Write to MH i2c: E2 08 00 C6 16 80 17 00 00 00 00 00 00 5C [00:02:40]Write i2c OK [00:02:40]MH_I2C_Read... [00:02:40]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:02:40]Read from MH i2c: E2 [00:02:40]MH_I2C_Read... [00:02:40]Read from MH i2c: E2 FD 00 [00:02:40]MH_I2C_Read... [00:02:40]Read from MH i2c: E2 FD 00 C6 16 00 03 00 00 EF 03 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 90 00 DD [00:02:41]RAPDU: 03 00 00 EF 03 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 90 00 [00:02:41]wFMCommunicate OK [00:02:41]wFMCommunicate request_size=4 [00:02:41]MH_SAM_APDU [00:02:41]CAPDU: 80 17 00 00 [00:02:41]Write to MH i2c: E2 08 00 C7 16 80 17 00 00 00 00 00 00 5D [00:02:41]Write i2c OK [00:02:41]MH_I2C_Read... [00:02:41]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 214! [00:02:41]Read from MH i2c: E2 [00:02:41]MH_I2C_Read... [00:02:41]Read from MH i2c: E2 D9 00 [00:02:41]MH_I2C_Read... [00:02:41]Read from MH i2c: E2 D9 00 C7 16 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 3C [00:02:41]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:02:41]wFMCommunicate OK [00:02:41]SAM_PROTO_GetShiftData done [00:02:41]requested_item shift.sale.total_cash is exist - process it [00:02:41]requested_item shift.sale_refund.total is exist - process it [00:02:41]requested_item shift.sale_refund.total_cash is exist - process it [00:02:41]requested_item shift.buy.total is exist - process it [00:02:41]requested_item shift.buy.total_cash is exist - process it [00:02:41]produce_requested_data done [00:02:41]produce_requested_data return {"fm.sale.total":52394617.47,"fm.sale_refund.total":2472284.00,"fm.buy.total":0.00,"shift.sale.total":300116.29,"shift.sale.total_cash":259847.00,"shift.sale_refund.total":9118.00,"shift.sale_refund.total_cash":9118.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [00:02:41]process_action_free get_value [00:02:41]json_value_free [00:02:41]json_value_free done [00:02:41]process_json_proto returns [00:02:41]Send response to host [00:02:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":52394617.47,"fm.sale_refund.total":2472284.00,"fm.buy.total":0.00,"shift.sale.total":300116.29,"shift.sale.total_cash":259847.00,"shift.sale_refund.total":9118.00,"shift.sale_refund.total_cash":9118.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [00:02:41]free response buf [00:02:41]execute_script done [00:02:41]execute_script returns [00:02:41]free content buf [00:02:41]Sock 7.Close socket [00:02:41]Sock 7.Thread stoped [00:02:41]accept exits with 9 [00:02:41]New connection [00:02:41]New thread 3066543460 created [00:02:41]Thread 3066686820 joined [00:02:41]Waiting for new connection... [00:02:41] Sock 9.Parse request [00:02:41]Sock 9.Check first char [00:02:41]Sock 9.First char is OK [00:02:41]request: POST /json_proto HTTP/1.0 [00:02:41]Method: POST [00:02:41]URL: /json_proto [00:02:41]Method is POST - this is cgi request [00:02:41]url: /json_proto [00:02:41]query_string will be loaded in cgi processing [00:02:41]execute_cgi json_proto POST (null) [00:02:41]execute_cgi path=json_proto method=POST [00:02:41]POST find Content-Length [00:02:41]Host: 172.17.36.132:8080 [00:02:41]Content-Length: 265 [00:02:41]Content-Type: application/json [00:02:41] [00:02:41]POST finish read [00:02:41]Found Content-Length = 265 [00:02:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "x_report", "params" : { "operator" : "\u041A\u0430\u043C\u0447\u044B\u0431\u0435\u043A \u0443. \u042D. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:02:41]execute_script... [00:02:41]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "x_report", "params" : { "operator" : "\u041A\u0430\u043C\u0447\u044B\u0431\u0435\u043A \u0443. \u042D. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:02:41]POST & json_proto [00:02:41]process_json_proto [00:02:41]json parsed OK: [00:02:41]protocol is kg_v1.0 [00:02:41]action value=x_report [00:02:41]process_action x_report [00:02:41]cmd_x_report [00:02:41]MH_GetDate [00:02:41]Write to MH i2c: F0 00 00 C8 16 CD [00:02:41]Write i2c OK [00:02:41]MH_I2C_Read... [00:02:41]Read from MH i2c: F0 [00:02:41]MH_I2C_Read... [00:02:41]Read from MH i2c: F0 09 00 [00:02:41]MH_I2C_Read... [00:02:41]Read from MH i2c: F0 09 00 C8 16 00 23 08 5D 66 B2 22 B0 64 AC [00:02:41]GetLastDocTimeStamp 1717371893 [00:02:41]current date 1717372963 [00:02:41]FM_GetShiftState [00:02:41]SAM_PROTO_GetShiftState [00:02:41]wFMCommunicate request_size=4 [00:02:41]MH_SAM_APDU [00:02:41]CAPDU: 80 13 01 00 [00:02:41]Write to MH i2c: E2 08 00 C9 16 80 13 01 00 00 00 00 00 5C [00:02:41]Write i2c OK [00:02:41]MH_I2C_Read... [00:02:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:02:41]Read from MH i2c: E2 [00:02:41]MH_I2C_Read... [00:02:41]Read from MH i2c: E2 0E 00 [00:02:41]MH_I2C_Read... [00:02:41]Read from MH i2c: E2 0E 00 C9 16 00 09 00 01 A4 BB 5B 66 00 00 00 00 90 00 88 [00:02:41]RAPDU: 09 00 01 A4 BB 5B 66 00 00 00 00 90 00 [00:02:41]wFMCommunicate OK [00:02:41]SAM_PROTO_GetShiftState done [00:02:41]FM_GetShiftState done [00:02:41]KKMCreateXReportDocument [00:02:41]Load OK [00:02:41]Malloc new data [00:02:41]MH_GetDate [00:02:41]Write to MH i2c: F0 00 00 CA 16 CF [00:02:41]Write i2c OK [00:02:41]MH_I2C_Read... [00:02:41]Read from MH i2c: F0 [00:02:41]MH_I2C_Read... [00:02:41]Read from MH i2c: F0 09 00 [00:02:41]MH_I2C_Read... [00:02:41]Read from MH i2c: F0 09 00 CA 16 00 23 08 5D 66 B2 22 B0 64 AE [00:02:41]Malloc new data [00:02:41]Malloc new data [00:02:41]wFMCommunicate request_size=4 [00:02:41]MH_SAM_APDU [00:02:41]CAPDU: 80 11 00 00 [00:02:41]Write to MH i2c: E2 08 00 CB 16 80 11 00 00 00 00 00 00 5B [00:02:41]Write i2c OK [00:02:41]MH_I2C_Read... [00:02:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:02:41]Read from MH i2c: E2 [00:02:41]MH_I2C_Read... [00:02:41]Read from MH i2c: E2 17 00 [00:02:41]MH_I2C_Read... [00:02:41]Read from MH i2c: E2 17 00 CB 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 A6 [00:02:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [00:02:41]wFMCommunicate OK [00:02:41]SAM_PROTO_GetFieldsCounters [00:02:41]wFMCommunicate request_size=4 [00:02:41]MH_SAM_APDU [00:02:41]CAPDU: 80 13 00 00 [00:02:41]Write to MH i2c: E2 08 00 CC 16 80 13 00 00 00 00 00 00 5E [00:02:41]Write i2c OK [00:02:41]MH_I2C_Read... [00:02:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:02:41]Read from MH i2c: E2 [00:02:41]MH_I2C_Read... [00:02:41]Read from MH i2c: E2 62 00 [00:02:41]MH_I2C_Read... [00:02:41]Read from MH i2c: E2 62 00 CC 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 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 93 0A 01 00 0E 04 04 00 42 01 00 00 12 04 04 00 02 01 00 00 5E 04 04 00 02 01 00 00 57 04 04 00 03 01 00 00 19 04 04 00 00 00 00 00 90 00 68 [00:02: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 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 93 0A 01 00 0E 04 04 00 42 01 00 00 12 04 04 00 02 01 00 00 5E 04 04 00 02 01 00 00 57 04 04 00 03 01 00 00 19 04 04 00 00 00 00 00 90 00 [00:02:41]wFMCommunicate OK [00:02:41]SAM_PROTO_GetFieldsCounters done [00:02:41]Malloc new data [00:02:41]Malloc new data [00:02:41]Malloc new data [00:02:41]KKMCreateXReportDocument OK [00:02:41]KKMSetXReportData OK [00:02:41]KKMPrepareXReportFMData [00:02:41]SAM_PROTO_GetShiftData [00:02:41]wFMCommunicate request_size=4 [00:02:41]MH_SAM_APDU [00:02:41]CAPDU: 80 13 02 00 [00:02:41]Write to MH i2c: E2 08 00 CD 16 80 13 02 00 00 00 00 00 61 [00:02:41]Write i2c OK [00:02:41]MH_I2C_Read... [00:02:42]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:02:42]Read from MH i2c: E2 [00:02:42]MH_I2C_Read... [00:02:42]Read from MH i2c: E2 FD 00 [00:02:42]MH_I2C_Read... [00:02:42]Read from MH i2c: E2 FD 00 CD 16 00 BC 04 AA 04 B8 04 6E 04 04 00 02 01 00 00 69 04 9E 00 6F 04 04 00 FC 00 00 00 B1 04 04 00 ED F0 C9 01 70 04 04 00 BC 7E 8C 01 72 04 03 00 31 72 3D 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 82 A4 30 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 A2 0D 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 B8 E9 0D 70 04 03 00 B8 E9 0D 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 57 7A 01 EF 03 09 00 F6 03 01 00 00 F7 03 90 00 FF [00:02:42]RAPDU: BC 04 AA 04 B8 04 6E 04 04 00 02 01 00 00 69 04 9E 00 6F 04 04 00 FC 00 00 00 B1 04 04 00 ED F0 C9 01 70 04 04 00 BC 7E 8C 01 72 04 03 00 31 72 3D 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 82 A4 30 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 A2 0D 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 B8 E9 0D 70 04 03 00 B8 E9 0D 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 57 7A 01 EF 03 09 00 F6 03 01 00 00 F7 03 90 00 [00:02:42]wFMCommunicate OK [00:02:42]wFMCommunicate request_size=4 [00:02:42]MH_SAM_APDU [00:02:42]CAPDU: 80 17 00 00 [00:02:42]Write to MH i2c: E2 08 00 CE 16 80 17 00 00 00 00 00 00 64 [00:02:42]Write i2c OK [00:02:42]MH_I2C_Read... [00:02:42]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:02:42]Read from MH i2c: E2 [00:02:42]MH_I2C_Read... [00:02:42]Read from MH i2c: E2 FD 00 [00:02:42]MH_I2C_Read... [00:02:42]Read from MH i2c: E2 FD 00 CE 16 00 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 87 1F EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 B4 [00:02:42]RAPDU: 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 87 1F EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:02:43]wFMCommunicate OK [00:02:43]wFMCommunicate request_size=4 [00:02:43]MH_SAM_APDU [00:02:43]CAPDU: 80 17 00 00 [00:02:43]Write to MH i2c: E2 08 00 CF 16 80 17 00 00 00 00 00 00 65 [00:02:43]Write i2c OK [00:02:43]MH_I2C_Read... [00:02:43]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:02:43]Read from MH i2c: E2 [00:02:43]MH_I2C_Read... [00:02:43]Read from MH i2c: E2 FD 00 [00:02:43]MH_I2C_Read... [00:02:43]Read from MH i2c: E2 FD 00 CF 16 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 8E [00:02:43]RAPDU: 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:02:43]wFMCommunicate OK [00:02:43]wFMCommunicate request_size=4 [00:02:43]MH_SAM_APDU [00:02:43]CAPDU: 80 17 00 00 [00:02:43]Write to MH i2c: E2 08 00 D0 16 80 17 00 00 00 00 00 00 66 [00:02:43]Write i2c OK [00:02:43]MH_I2C_Read... [00:02:43]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:02:43]Read from MH i2c: E2 [00:02:43]MH_I2C_Read... [00:02:43]Read from MH i2c: E2 FD 00 [00:02:43]MH_I2C_Read... [00:02:43]Read from MH i2c: E2 FD 00 D0 16 00 03 00 00 EF 03 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 90 00 E7 [00:02:43]RAPDU: 03 00 00 EF 03 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 90 00 [00:02:43]wFMCommunicate OK [00:02:43]wFMCommunicate request_size=4 [00:02:43]MH_SAM_APDU [00:02:43]CAPDU: 80 17 00 00 [00:02:43]Write to MH i2c: E2 08 00 D1 16 80 17 00 00 00 00 00 00 67 [00:02:43]Write i2c OK [00:02:43]MH_I2C_Read... [00:02:44]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 214! [00:02:44]Read from MH i2c: E2 [00:02:44]MH_I2C_Read... [00:02:44]Read from MH i2c: E2 D9 00 [00:02:44]MH_I2C_Read... [00:02:44]Read from MH i2c: E2 D9 00 D1 16 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 46 [00:02:44]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:02:44]wFMCommunicate OK [00:02:44]SAM_PROTO_GetShiftData done [00:02:44]1194 (1208) - счетчики итогов смены [00:02:44] 1134 (4) - 258 - количество чеков со всеми признаками расчетов [00:02:44] 1129 (158) - счетчики операций «приход» [00:02:44] 1135 (4) - 252 - количество чеков по признаку расчетов [00:02:44] 1201 (4) - 300116.29 - общая итоговая сумма в чеках [00:02:44] 1136 (4) - 259847.00 - итоговая сумма в чеках наличными [00:02:44] 1138 (3) - 40269.29 - итоговая сумма в чеках безналичными [00:02:44] 1024 (123) - суммы налогов [00:02:44] 1006 (9) - суммы НДС [00:02:44] 1010 (1) - 0% - код ставки НДС [00:02:44] 1011 (0) - 0.00 - сумма НДС по ставке [00:02:44] 1006 (12) - суммы НДС [00:02:44] 1010 (1) - 12% - код ставки НДС [00:02:44] 1011 (3) - 31878.42 - сумма НДС по ставке [00:02:44] 1007 (9) - суммы НСП [00:02:44] 1014 (1) - 0% - код ставки НСП [00:02:44] 1015 (0) - 0.00 - сумма НСП по ставке [00:02:44] 1007 (12) - суммы НСП [00:02:44] 1014 (1) - 1% - код ставки НСП [00:02:44] 1015 (3) - 2656.34 - сумма НСП по ставке [00:02:44] 1007 (9) - суммы НСП [00:02:44] 1014 (1) - 2% - код ставки НСП [00:02:44] 1015 (0) - 0.00 - сумма НСП по ставке [00:02:44] 1007 (9) - суммы НСП [00:02:44] 1014 (1) - 3% - код ставки НСП [00:02:44] 1015 (0) - 0.00 - сумма НСП по ставке [00:02:44] 1007 (9) - суммы НСП [00:02:44] 1014 (1) - 5% - код ставки НСП [00:02:44] 1015 (0) - 0.00 - сумма НСП по ставке [00:02:44] 1007 (9) - суммы НСП [00:02:44] 1014 (1) - 0,50% - код ставки НСП [00:02:44] 1015 (0) - 0.00 - сумма НСП по ставке [00:02:44] 1007 (9) - суммы НСП [00:02:44] 1014 (1) - 1,50% - код ставки НСП [00:02:44] 1015 (0) - 0.00 - сумма НСП по ставке [00:02:44] 1130 (152) - счетчики операций «возврат прихода» [00:02:44] 1135 (4) - 6 - количество чеков по признаку расчетов [00:02:44] 1201 (3) - 9118.00 - общая итоговая сумма в чеках [00:02:44] 1136 (3) - 9118.00 - итоговая сумма в чеках наличными [00:02:44] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:02:44] 1024 (122) - суммы налогов [00:02:44] 1006 (9) - суммы НДС [00:02:44] 1010 (1) - 0% - код ставки НДС [00:02:44] 1011 (0) - 0.00 - сумма НДС по ставке [00:02:44] 1006 (12) - суммы НДС [00:02:44] 1010 (1) - 12% - код ставки НДС [00:02:44] 1011 (3) - 968.55 - сумма НДС по ставке [00:02:44] 1007 (9) - суммы НСП [00:02:44] 1014 (1) - 0% - код ставки НСП [00:02:44] 1015 (0) - 0.00 - сумма НСП по ставке [00:02:44] 1007 (11) - суммы НСП [00:02:44] 1014 (1) - 1% - код ставки НСП [00:02:44] 1015 (2) - 80.71 - сумма НСП по ставке [00:02:44] 1007 (9) - суммы НСП [00:02:44] 1014 (1) - 2% - код ставки НСП [00:02:44] 1015 (0) - 0.00 - сумма НСП по ставке [00:02:44] 1007 (9) - суммы НСП [00:02:44] 1014 (1) - 3% - код ставки НСП [00:02:44] 1015 (0) - 0.00 - сумма НСП по ставке [00:02:44] 1007 (9) - суммы НСП [00:02:44] 1014 (1) - 5% - код ставки НСП [00:02:44] 1015 (0) - 0.00 - сумма НСП по ставке [00:02:44] 1007 (9) - суммы НСП [00:02:44] 1014 (1) - 0,50% - код ставки НСП [00:02:44] 1015 (0) - 0.00 - сумма НСП по ставке [00:02:44] 1007 (9) - суммы НСП [00:02:44] 1014 (1) - 1,50% - код ставки НСП [00:02:44] 1015 (0) - 0.00 - сумма НСП по ставке [00:02:44] 1131 (141) - счетчики операций «расход» [00:02:44] 1135 (4) - 0 - количество чеков по признаку расчетов [00:02:44] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:02:44] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:02:44] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:02:44] 1024 (117) - суммы налогов [00:02:44] 1006 (9) - суммы НДС [00:02:44] 1010 (1) - 0% - код ставки НДС [00:02:44] 1011 (0) - 0.00 - сумма НДС по ставке [00:02:44] 1006 (9) - суммы НДС [00:02:44] 1010 (1) - 12% - код ставки НДС [00:02:44] 1011 (0) - 0.00 - сумма НДС по ставке [00:02:44] 1007 (9) - суммы НСП [00:02:44] 1014 (1) - 0% - код ставки НСП [00:02:44] 1015 (0) - 0.00 - сумма НСП по ставке [00:02:44] 1007 (9) - суммы НСП [00:02:44] 1014 (1) - 1% - код ставки НСП [00:02:44] 1015 (0) - 0.00 - сумма НСП по ставке [00:02:44] 1007 (9) - суммы НСП [00:02:44] 1014 (1) - 2% - код ставки НСП [00:02:44] 1015 (0) - 0.00 - сумма НСП по ставке [00:02:44] 1007 (9) - суммы НСП [00:02:44] 1014 (1) - 3% - код ставки НСП [00:02:44] 1015 (0) - 0.00 - сумма НСП по ставке [00:02:44] 1007 (9) - суммы НСП [00:02:44] 1014 (1) - 5% - код ставки НСП [00:02:44] 1015 (0) - 0.00 - сумма НСП по ставке [00:02:44] 1007 (9) - суммы НСП [00:02:44] 1014 (1) - 0,50% - код ставки НСП [00:02:44] 1015 (0) - 0.00 - сумма НСП по ставке [00:02:44] 1007 (9) - суммы НСП [00:02:44] 1014 (1) - 1,50% - код ставки НСП [00:02:44] 1015 (0) - 0.00 - сумма НСП по ставке [00:02:44] 1132 (141) - счетчики операций «возврат расхода» [00:02:44] 1135 (4) - 0 - количество чеков по признаку расчетов [00:02:44] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:02:44] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:02:44] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:02:44] 1024 (117) - суммы налогов [00:02:44] 1006 (9) - суммы НДС [00:02:44] 1010 (1) - 0% - код ставки НДС [00:02:44] 1011 (0) - 0.00 - сумма НДС по ставке [00:02:44] 1006 (9) - суммы НДС [00:02:44] 1010 (1) - 12% - код ставки НДС [00:02:44] 1011 (0) - 0.00 - сумма НДС по ставке [00:02:44] 1007 (9) - суммы НСП [00:02:44] 1014 (1) - 0% - код ставки НСП [00:02:44] 1015 (0) - 0.00 - сумма НСП по ставке [00:02:44] 1007 (9) - суммы НСП [00:02:44] 1014 (1) - 1% - код ставки НСП [00:02:44] 1015 (0) - 0.00 - сумма НСП по ставке [00:02:44] 1007 (9) - суммы НСП [00:02:44] 1014 (1) - 2% - код ставки НСП [00:02:44] 1015 (0) - 0.00 - сумма НСП по ставке [00:02:44] 1007 (9) - суммы НСП [00:02:44] 1014 (1) - 3% - код ставки НСП [00:02:44] 1015 (0) - 0.00 - сумма НСП по ставке [00:02:44] 1007 (9) - суммы НСП [00:02:44] 1014 (1) - 5% - код ставки НСП [00:02:44] 1015 (0) - 0.00 - сумма НСП по ставке [00:02:44] 1007 (9) - суммы НСП [00:02:44] 1014 (1) - 0,50% - код ставки НСП [00:02:44] 1015 (0) - 0.00 - сумма НСП по ставке [00:02:44] 1007 (9) - суммы НСП [00:02:44] 1014 (1) - 1,50% - код ставки НСП [00:02:44] 1015 (0) - 0.00 - сумма НСП по ставке [00:02:44] 1133 (588) - - счетчики коррекции - не используются [00:02:44]SetTLVBufToDocument [00:02:44]Processing tag 1194 (04AA) [00:02:44]Load OK [00:02:44]SetTLVBufToDocument [00:02:44]Processing tag 1134 (046E) [00:02:44]Malloc new data [00:02:44]Processing tag 1129 (0469) [00:02:44]Load OK [00:02:44]SetTLVBufToDocument [00:02:44]Processing tag 1135 (046F) [00:02:44]Malloc new data [00:02:44]Processing tag 1201 (04B1) [00:02:44]Malloc new data [00:02:44]Processing tag 1136 (0470) [00:02:44]Malloc new data [00:02:44]Processing tag 1138 (0472) [00:02:44]Malloc new data [00:02:44]Processing tag 1024 (0400) [00:02:44]Load OK [00:02:44]SetTLVBufToDocument [00:02:44]Processing tag 1006 (03EE) [00:02:44]Load OK [00:02:44]SetTLVBufToDocument [00:02:44]Processing tag 1010 (03F2) [00:02:44]Malloc new data [00:02:44]Processing tag 1011 (03F3) [00:02:44]Malloc new data [00:02:44]SetTLVBufToDocument err=0 [00:02:44]Processing tag 1006 (03EE) [00:02:44]Load OK [00:02:44]SetTLVBufToDocument [00:02:44]Processing tag 1010 (03F2) [00:02:44]Malloc new data [00:02:44]Processing tag 1011 (03F3) [00:02:44]Malloc new data [00:02:44]SetTLVBufToDocument err=0 [00:02:44]Processing tag 1007 (03EF) [00:02:44]Load OK [00:02:44]SetTLVBufToDocument [00:02:44]Processing tag 1014 (03F6) [00:02:44]Malloc new data [00:02:44]Processing tag 1015 (03F7) [00:02:44]Malloc new data [00:02:44]SetTLVBufToDocument err=0 [00:02:44]Processing tag 1007 (03EF) [00:02:44]Load OK [00:02:44]SetTLVBufToDocument [00:02:44]Processing tag 1014 (03F6) [00:02:44]Malloc new data [00:02:44]Processing tag 1015 (03F7) [00:02:44]Malloc new data [00:02:44]SetTLVBufToDocument err=0 [00:02:44]Processing tag 1007 (03EF) [00:02:44]Load OK [00:02:44]SetTLVBufToDocument [00:02:44]Processing tag 1014 (03F6) [00:02:44]Malloc new data [00:02:44]Processing tag 1015 (03F7) [00:02:44]Malloc new data [00:02:44]SetTLVBufToDocument err=0 [00:02:44]Processing tag 1007 (03EF) [00:02:45]Load OK [00:02:45]SetTLVBufToDocument [00:02:45]Processing tag 1014 (03F6) [00:02:45]Malloc new data [00:02:45]Processing tag 1015 (03F7) [00:02:45]Malloc new data [00:02:45]SetTLVBufToDocument err=0 [00:02:45]Processing tag 1007 (03EF) [00:02:45]Load OK [00:02:45]SetTLVBufToDocument [00:02:45]Processing tag 1014 (03F6) [00:02:45]Malloc new data [00:02:45]Processing tag 1015 (03F7) [00:02:45]Malloc new data [00:02:45]SetTLVBufToDocument err=0 [00:02:45]Processing tag 1007 (03EF) [00:02:45]Load OK [00:02:45]SetTLVBufToDocument [00:02:45]Processing tag 1014 (03F6) [00:02:45]Malloc new data [00:02:45]Processing tag 1015 (03F7) [00:02:45]Malloc new data [00:02:45]SetTLVBufToDocument err=0 [00:02:45]Processing tag 1007 (03EF) [00:02:45]Load OK [00:02:45]SetTLVBufToDocument [00:02:45]Processing tag 1014 (03F6) [00:02:45]Malloc new data [00:02:45]Processing tag 1015 (03F7) [00:02:45]Malloc new data [00:02:45]SetTLVBufToDocument err=0 [00:02:45]SetTLVBufToDocument err=0 [00:02:45]SetTLVBufToDocument err=0 [00:02:45]Processing tag 1130 (046A) [00:02:45]Load OK [00:02:45]SetTLVBufToDocument [00:02:45]Processing tag 1135 (046F) [00:02:45]Malloc new data [00:02:45]Processing tag 1201 (04B1) [00:02:45]Malloc new data [00:02:45]Processing tag 1136 (0470) [00:02:45]Malloc new data [00:02:45]Processing tag 1138 (0472) [00:02:45]Malloc new data [00:02:45]Processing tag 1024 (0400) [00:02:45]Load OK [00:02:45]SetTLVBufToDocument [00:02:45]Processing tag 1006 (03EE) [00:02:45]Load OK [00:02:45]SetTLVBufToDocument [00:02:45]Processing tag 1010 (03F2) [00:02:45]Malloc new data [00:02:45]Processing tag 1011 (03F3) [00:02:45]Malloc new data [00:02:45]SetTLVBufToDocument err=0 [00:02:45]Processing tag 1006 (03EE) [00:02:45]Load OK [00:02:45]SetTLVBufToDocument [00:02:45]Processing tag 1010 (03F2) [00:02:45]Malloc new data [00:02:45]Processing tag 1011 (03F3) [00:02:45]Malloc new data [00:02:45]SetTLVBufToDocument err=0 [00:02:45]Processing tag 1007 (03EF) [00:02:45]Load OK [00:02:45]SetTLVBufToDocument [00:02:45]Processing tag 1014 (03F6) [00:02:45]Malloc new data [00:02:45]Processing tag 1015 (03F7) [00:02:45]Malloc new data [00:02:45]SetTLVBufToDocument err=0 [00:02:45]Processing tag 1007 (03EF) [00:02:45]Load OK [00:02:45]SetTLVBufToDocument [00:02:45]Processing tag 1014 (03F6) [00:02:45]Malloc new data [00:02:45]Processing tag 1015 (03F7) [00:02:45]Malloc new data [00:02:45]SetTLVBufToDocument err=0 [00:02:45]Processing tag 1007 (03EF) [00:02:45]Load OK [00:02:45]SetTLVBufToDocument [00:02:45]Processing tag 1014 (03F6) [00:02:45]Malloc new data [00:02:45]Processing tag 1015 (03F7) [00:02:45]Malloc new data [00:02:45]SetTLVBufToDocument err=0 [00:02:45]Processing tag 1007 (03EF) [00:02:45]Load OK [00:02:45]SetTLVBufToDocument [00:02:45]Processing tag 1014 (03F6) [00:02:45]Malloc new data [00:02:45]Processing tag 1015 (03F7) [00:02:45]Malloc new data [00:02:45]SetTLVBufToDocument err=0 [00:02:45]Processing tag 1007 (03EF) [00:02:45]Load OK [00:02:45]SetTLVBufToDocument [00:02:45]Processing tag 1014 (03F6) [00:02:45]Malloc new data [00:02:45]Processing tag 1015 (03F7) [00:02:45]Malloc new data [00:02:45]SetTLVBufToDocument err=0 [00:02:45]Processing tag 1007 (03EF) [00:02:45]Load OK [00:02:45]SetTLVBufToDocument [00:02:45]Processing tag 1014 (03F6) [00:02:45]Malloc new data [00:02:45]Processing tag 1015 (03F7) [00:02:45]Malloc new data [00:02:45]SetTLVBufToDocument err=0 [00:02:45]Processing tag 1007 (03EF) [00:02:45]Load OK [00:02:45]SetTLVBufToDocument [00:02:45]Processing tag 1014 (03F6) [00:02:45]Malloc new data [00:02:45]Processing tag 1015 (03F7) [00:02:45]Malloc new data [00:02:45]SetTLVBufToDocument err=0 [00:02:45]SetTLVBufToDocument err=0 [00:02:45]SetTLVBufToDocument err=0 [00:02:45]Processing tag 1131 (046B) [00:02:45]Load OK [00:02:45]SetTLVBufToDocument [00:02:45]Processing tag 1135 (046F) [00:02:45]Malloc new data [00:02:45]Processing tag 1201 (04B1) [00:02:45]Malloc new data [00:02:45]Processing tag 1136 (0470) [00:02:45]Malloc new data [00:02:45]Processing tag 1138 (0472) [00:02:45]Malloc new data [00:02:45]Processing tag 1024 (0400) [00:02:45]Load OK [00:02:45]SetTLVBufToDocument [00:02:45]Processing tag 1006 (03EE) [00:02:45]Load OK [00:02:45]SetTLVBufToDocument [00:02:45]Processing tag 1010 (03F2) [00:02:45]Malloc new data [00:02:45]Processing tag 1011 (03F3) [00:02:45]Malloc new data [00:02:45]SetTLVBufToDocument err=0 [00:02:45]Processing tag 1006 (03EE) [00:02:45]Load OK [00:02:45]SetTLVBufToDocument [00:02:45]Processing tag 1010 (03F2) [00:02:45]Malloc new data [00:02:45]Processing tag 1011 (03F3) [00:02:45]Malloc new data [00:02:45]SetTLVBufToDocument err=0 [00:02:45]Processing tag 1007 (03EF) [00:02:45]Load OK [00:02:45]SetTLVBufToDocument [00:02:45]Processing tag 1014 (03F6) [00:02:45]Malloc new data [00:02:45]Processing tag 1015 (03F7) [00:02:45]Malloc new data [00:02:45]SetTLVBufToDocument err=0 [00:02:45]Processing tag 1007 (03EF) [00:02:45]Load OK [00:02:45]SetTLVBufToDocument [00:02:45]Processing tag 1014 (03F6) [00:02:45]Malloc new data [00:02:45]Processing tag 1015 (03F7) [00:02:45]Malloc new data [00:02:45]SetTLVBufToDocument err=0 [00:02:45]Processing tag 1007 (03EF) [00:02:45]Load OK [00:02:45]SetTLVBufToDocument [00:02:45]Processing tag 1014 (03F6) [00:02:45]Malloc new data [00:02:45]Processing tag 1015 (03F7) [00:02:45]Malloc new data [00:02:45]SetTLVBufToDocument err=0 [00:02:45]Processing tag 1007 (03EF) [00:02:45]Load OK [00:02:45]SetTLVBufToDocument [00:02:45]Processing tag 1014 (03F6) [00:02:45]Malloc new data [00:02:45]Processing tag 1015 (03F7) [00:02:45]Malloc new data [00:02:45]SetTLVBufToDocument err=0 [00:02:45]Processing tag 1007 (03EF) [00:02:45]Load OK [00:02:45]SetTLVBufToDocument [00:02:45]Processing tag 1014 (03F6) [00:02:45]Malloc new data [00:02:45]Processing tag 1015 (03F7) [00:02:45]Malloc new data [00:02:45]SetTLVBufToDocument err=0 [00:02:45]Processing tag 1007 (03EF) [00:02:45]Load OK [00:02:45]SetTLVBufToDocument [00:02:45]Processing tag 1014 (03F6) [00:02:45]Malloc new data [00:02:45]Processing tag 1015 (03F7) [00:02:45]Malloc new data [00:02:45]SetTLVBufToDocument err=0 [00:02:45]Processing tag 1007 (03EF) [00:02:45]Load OK [00:02:45]SetTLVBufToDocument [00:02:45]Processing tag 1014 (03F6) [00:02:45]Malloc new data [00:02:45]Processing tag 1015 (03F7) [00:02:45]Malloc new data [00:02:45]SetTLVBufToDocument err=0 [00:02:45]SetTLVBufToDocument err=0 [00:02:45]SetTLVBufToDocument err=0 [00:02:45]Processing tag 1132 (046C) [00:02:45]Load OK [00:02:45]SetTLVBufToDocument [00:02:45]Processing tag 1135 (046F) [00:02:45]Malloc new data [00:02:45]Processing tag 1201 (04B1) [00:02:45]Malloc new data [00:02:45]Processing tag 1136 (0470) [00:02:45]Malloc new data [00:02:45]Processing tag 1138 (0472) [00:02:45]Malloc new data [00:02:45]Processing tag 1024 (0400) [00:02:45]Load OK [00:02:45]SetTLVBufToDocument [00:02:45]Processing tag 1006 (03EE) [00:02:45]Load OK [00:02:45]SetTLVBufToDocument [00:02:45]Processing tag 1010 (03F2) [00:02:45]Malloc new data [00:02:45]Processing tag 1011 (03F3) [00:02:45]Malloc new data [00:02:45]SetTLVBufToDocument err=0 [00:02:45]Processing tag 1006 (03EE) [00:02:45]Load OK [00:02:45]SetTLVBufToDocument [00:02:45]Processing tag 1010 (03F2) [00:02:45]Malloc new data [00:02:45]Processing tag 1011 (03F3) [00:02:45]Malloc new data [00:02:45]SetTLVBufToDocument err=0 [00:02:45]Processing tag 1007 (03EF) [00:02:45]Load OK [00:02:45]SetTLVBufToDocument [00:02:45]Processing tag 1014 (03F6) [00:02:45]Malloc new data [00:02:45]Processing tag 1015 (03F7) [00:02:45]Malloc new data [00:02:45]SetTLVBufToDocument err=0 [00:02:45]Processing tag 1007 (03EF) [00:02:45]Load OK [00:02:45]SetTLVBufToDocument [00:02:45]Processing tag 1014 (03F6) [00:02:45]Malloc new data [00:02:45]Processing tag 1015 (03F7) [00:02:45]Malloc new data [00:02:45]SetTLVBufToDocument err=0 [00:02:45]Processing tag 1007 (03EF) [00:02:45]Load OK [00:02:45]SetTLVBufToDocument [00:02:45]Processing tag 1014 (03F6) [00:02:45]Malloc new data [00:02:45]Processing tag 1015 (03F7) [00:02:45]Malloc new data [00:02:45]SetTLVBufToDocument err=0 [00:02:45]Processing tag 1007 (03EF) [00:02:45]Load OK [00:02:45]SetTLVBufToDocument [00:02:45]Processing tag 1014 (03F6) [00:02:45]Malloc new data [00:02:45]Processing tag 1015 (03F7) [00:02:45]Malloc new data [00:02:45]SetTLVBufToDocument err=0 [00:02:45]Processing tag 1007 (03EF) [00:02:45]Load OK [00:02:45]SetTLVBufToDocument [00:02:45]Processing tag 1014 (03F6) [00:02:45]Malloc new data [00:02:45]Processing tag 1015 (03F7) [00:02:45]Malloc new data [00:02:45]SetTLVBufToDocument err=0 [00:02:45]Processing tag 1007 (03EF) [00:02:45]Load OK [00:02:45]SetTLVBufToDocument [00:02:45]Processing tag 1014 (03F6) [00:02:45]Malloc new data [00:02:45]Processing tag 1015 (03F7) [00:02:45]Malloc new data [00:02:45]SetTLVBufToDocument err=0 [00:02:45]Processing tag 1007 (03EF) [00:02:45]Load OK [00:02:45]SetTLVBufToDocument [00:02:45]Processing tag 1014 (03F6) [00:02:45]Malloc new data [00:02:45]Processing tag 1015 (03F7) [00:02:45]Malloc new data [00:02:45]SetTLVBufToDocument err=0 [00:02:45]SetTLVBufToDocument err=0 [00:02:45]SetTLVBufToDocument err=0 [00:02:45]Processing tag 1133 (046D) [00:02:45]Malloc new data [00:02:45]SetTLVBufToDocument err=0 [00:02:45]SetTLVBufToDocument err=0 [00:02:45]Malloc new data [00:02:45]SAM_PROTO_GetFMData [00:02:45]wFMCommunicate request_size=4 [00:02:45]MH_SAM_APDU [00:02:45]CAPDU: 80 13 03 00 [00:02:45]Write to MH i2c: E2 08 00 D2 16 80 13 03 00 00 00 00 00 67 [00:02:45]OFD Sender: No OFD packet to send [00:02:45]Write i2c OK [00:02:45]MH_I2C_Read... [00:02:46]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:02:46]Read from MH i2c: E2 [00:02:46]MH_I2C_Read... [00:02:46]Read from MH i2c: E2 FD 00 [00:02:46]MH_I2C_Read... [00:02:46]Read from MH i2c: E2 FD 00 D2 16 00 C5 04 85 04 C1 04 6E 04 04 00 0F 08 01 00 69 04 A3 00 6F 04 04 00 04 03 01 00 B1 04 05 00 73 D7 4B 38 01 70 04 05 00 6C E6 F0 0B 01 72 04 04 00 07 F1 5A 2C 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 80 A3 2C 21 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 08 9F C3 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 9C 00 6F 04 04 00 0B 05 00 00 B1 04 04 00 F0 67 BC 0E 70 04 04 00 F0 67 BC 0E 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 3E AA 90 01 EF 03 09 90 00 EC [00:02:46]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 0F 08 01 00 69 04 A3 00 6F 04 04 00 04 03 01 00 B1 04 05 00 73 D7 4B 38 01 70 04 05 00 6C E6 F0 0B 01 72 04 04 00 07 F1 5A 2C 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 80 A3 2C 21 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 08 9F C3 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 9C 00 6F 04 04 00 0B 05 00 00 B1 04 04 00 F0 67 BC 0E 70 04 04 00 F0 67 BC 0E 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 3E AA 90 01 EF 03 09 90 00 [00:02:46]wFMCommunicate OK [00:02:46]wFMCommunicate request_size=4 [00:02:46]MH_SAM_APDU [00:02:46]CAPDU: 80 17 00 00 [00:02:46]Write to MH i2c: E2 08 00 D3 16 80 17 00 00 00 00 00 00 69 [00:02:46]Write i2c OK [00:02:46]MH_I2C_Read... [00:02:46]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:02:46]Read from MH i2c: E2 [00:02:46]MH_I2C_Read... [00:02:46]Read from MH i2c: E2 FD 00 [00:02:46]MH_I2C_Read... [00:02:46]Read from MH i2c: E2 FD 00 D3 16 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 12 63 21 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 B5 [00:02:46]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 12 63 21 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 [00:02:46]wFMCommunicate OK [00:02:46]wFMCommunicate request_size=4 [00:02:46]MH_SAM_APDU [00:02:46]CAPDU: 80 17 00 00 [00:02:46]Write to MH i2c: E2 08 00 D4 16 80 17 00 00 00 00 00 00 6A [00:02:46]Write i2c OK [00:02:46]MH_I2C_Read... [00:02:47]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:02:47]Read from MH i2c: E2 [00:02:47]MH_I2C_Read... [00:02:47]Read from MH i2c: E2 FD 00 [00:02:47]MH_I2C_Read... [00:02:47]Read from MH i2c: E2 FD 00 D4 16 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 7C [00:02:47]RAPDU: 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:02:47]wFMCommunicate OK [00:02:47]wFMCommunicate request_size=4 [00:02:47]MH_SAM_APDU [00:02:47]CAPDU: 80 17 00 00 [00:02:47]Write to MH i2c: E2 08 00 D5 16 80 17 00 00 00 00 00 00 6B [00:02:47]Write i2c OK [00:02:47]MH_I2C_Read... [00:02:47]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:02:47]Read from MH i2c: E2 [00:02:47]MH_I2C_Read... [00:02:47]Read from MH i2c: E2 FD 00 [00:02:47]MH_I2C_Read... [00:02:47]Read from MH i2c: E2 FD 00 D5 16 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 F7 [00:02:47]RAPDU: 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:02:47]wFMCommunicate OK [00:02:47]wFMCommunicate request_size=4 [00:02:47]MH_SAM_APDU [00:02:47]CAPDU: 80 17 00 00 [00:02:47]Write to MH i2c: E2 08 00 D6 16 80 17 00 00 00 00 00 00 6C [00:02:47]Write i2c OK [00:02:47]MH_I2C_Read... [00:02:48]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [00:02:48]Read from MH i2c: E2 [00:02:48]MH_I2C_Read... [00:02:48]Read from MH i2c: E2 E2 00 [00:02:48]MH_I2C_Read... [00:02:48]Read from MH i2c: E2 E2 00 D6 16 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 4A [00:02:48]RAPDU: EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:02:48]wFMCommunicate OK [00:02:48]SAM_PROTO_GetFMData done [00:02:48]FM_GetFMData:85 04 C1 04 6E 04 04 00 0F 08 01 00 69 04 A3 00 6F 04 04 00 04 03 01 00 B1 04 05 00 73 D7 4B 38 01 70 04 05 00 6C E6 F0 0B 01 72 04 04 00 07 F1 5A 2C 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 80 A3 2C 21 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 08 9F C3 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 9C 00 6F 04 04 00 0B 05 00 00 B1 04 04 00 F0 67 BC 0E 70 04 04 00 F0 67 BC 0E 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 3E AA 90 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 12 63 21 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:02:49]oper:6F 04 04 00 04 03 01 00 B1 04 05 00 73 D7 4B 38 01 70 04 05 00 6C E6 F0 0B 01 72 04 04 00 07 F1 5A 2C 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 80 A3 2C 21 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 08 9F C3 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 [00:02:49]total:73 D7 4B 38 01 [00:02:49]Malloc new data [00:02:49]oper:6F 04 04 00 0B 05 00 00 B1 04 04 00 F0 67 BC 0E 70 04 04 00 F0 67 BC 0E 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 3E AA 90 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 12 63 21 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [00:02:49]total:F0 67 BC 0E [00:02:49]Malloc new data [00:02:49]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:02:49]total: [00:02:49]Malloc new data [00:02:49]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:02:49]total: [00:02:49]Malloc new data [00:02:49]KKMPrepareXReportFMData err=0 [00:02:49]Х отчет ИНН: 02508201610067 Кассир: Камчыбек у. Э. 03.06.2024 00:02 Смена: 266 РНМ: 0000000000098096 ЗНМ: 0300000181 СНО: Общий режим Всего чеков: 258 ИТОГИ ПРИХОД Чеков: 252 Общий итог: 300116.29 Итого наличными: 259847.00 Итого безнал.: 40269.29 НДС 0% : 0.00 НДС 12% : 31878.42 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 2656.34 ИТОГИ ВОЗВРАТ ПРИХОДА Чеков: 6 Общий итог: 9118.00 Итого наличными: 9118.00 Итого безнал.: 0.00 НДС 0% : 0.00 НДС 12% : 968.55 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 80.71 ИТОГИ РАСХОД Чеков: 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 Нал. в кассе: 250729.00 НС Приход: 52394617.47 НС Возвр.Прихода: 2472284.00 НС Расход: 0.00 НС Возвр.Расхода: 0.00 ФМ: 0000000000965400 [00:02:49]StoreToDocumentArchive [00:02:49]MH_GetDate [00:02:49]Write to MH i2c: F0 00 00 D7 16 DC [00:02:49]Write i2c OK [00:02:49]MH_I2C_Read... [00:02:49]Read from MH i2c: F0 [00:02:49]MH_I2C_Read... [00:02:49]Read from MH i2c: F0 09 00 [00:02:49]MH_I2C_Read... [00:02:49]Read from MH i2c: F0 09 00 D7 16 00 2B 08 5D 66 B2 22 B0 64 C3 [00:02:49]shift 266 fd 1717372971 [00:02:49]Create dir for shift 0266 [00:02:49]save to /storage/0266/doc_1717372971 [00:02:49]save last doc name /storage/0266/doc_1717372971 to /storage/kkm_last_doc_name [00:02:49]save OK [00:02:49]Clear old archive folders... [00:02:49]NVStorageSaveData kkm_last_timestamp [00:02:49]File name is /storage/kkm_last_timestamp [00:02:49]Write 4 bytes [00:02:49]NVStorageSaveData done [00:02:49]ExternCall_PrintAddStr [00:02:49]wPrintStart [00:02:49]Write to MH i2c: 01 00 00 D8 16 EE [00:02:49]Write i2c OK [00:02:49]MH_I2C_Read... [00:02:49]Read from MH i2c: 01 [00:02:49]MH_I2C_Read... [00:02:49]Read from MH i2c: 01 07 00 [00:02:49]MH_I2C_Read... [00:02:49]Read from MH i2c: 01 07 00 D8 16 00 00 00 00 00 FF 0F 03 [00:02:49]RasterBufferAndPrint [00:02:49]line Х отчет [00:02:49]line ИНН: 02508201610067 [00:02:49]line Кассир: Камчыбек у. Э. [00:02:49]line 03.06.2024 00:02 [00:02:49]line Смена: 266 [00:02:49]line РНМ: 0000000000098096 [00:02:49]line ЗНМ: 0300000181 [00:02:49]line СНО: Общий режим [00:02:49]line Всего чеков: 258 [00:02:49]line ИТОГИ ПРИХОД [00:02:49]line Чеков: 252 [00:02:49]line Общий итог: 300116.29 [00:02:49]line Итого наличными: 259847.00 [00:02:49]line Итого безнал.: 40269.29 [00:02:49]line НДС 0% : 0.00 [00:02:49]line НДС 12% : 31878.42 [00:02:49]line НСП 0% : 0.00 [00:02:49]line НСП 1,50% : 0.00 [00:02:49]line НСП 0,50% : 0.00 [00:02:49]line НСП 5% : 0.00 [00:02:49]line НСП 3% : 0.00 [00:02:49]line НСП 2% : 0.00 [00:02:49]line НСП 1% : 2656.34 [00:02:49]line ИТОГИ ВОЗВРАТ ПРИХОДА [00:02:49]line Чеков: 6 [00:02:49]line Общий итог: 9118.00 [00:02:49]line Итого наличными: 9118.00 [00:02:49]line Итого безнал.: 0.00 [00:02:49]line НДС 0% : 0.00 [00:02:49]line НДС 12% : 968.55 [00:02:49]line НСП 0% : 0.00 [00:02:49]line НСП 1,50% : 0.00 [00:02:49]line НСП 0,50% : 0.00 [00:02:49]line НСП 5% : 0.00 [00:02:49]line НСП 3% : 0.00 [00:02:49]line НСП 2% : 0.00 [00:02:49]line НСП 1% : 80.71 [00:02:49]line ИТОГИ РАСХОД [00:02:49]line Чеков: 0 [00:02:49]line Общий итог: 0.00 [00:02:49]line Итого наличными: 0.00 [00:02:49]line Итого безнал.: 0.00 [00:02:49]line НДС 0% : 0.00 [00:02:49]line НДС 12% : 0.00 [00:02:49]line НСП 0% : 0.00 [00:02:49]line НСП 1,50% : 0.00 [00:02:49]line НСП 0,50% : 0.00 [00:02:49]line НСП 5% : 0.00 [00:02:49]line НСП 3% : 0.00 [00:02:49]line НСП 2% : 0.00 [00:02:49]line НСП 1% : 0.00 [00:02:49]line ИТОГИ ВОЗВРАТ РАСХОДА [00:02:49]line Чеков: 0 [00:02:49]line Общий итог: 0.00 [00:02:49]line Итого наличными: 0.00 [00:02:49]line Итого безнал.: 0.00 [00:02:49]line НДС 0% : 0.00 [00:02:49]line НДС 12% : 0.00 [00:02:49]line НСП 0% : 0.00 [00:02:49]line НСП 1,50% : 0.00 [00:02:49]line НСП 0,50% : 0.00 [00:02:49]line НСП 5% : 0.00 [00:02:49]line НСП 3% : 0.00 [00:02:49]line НСП 2% : 0.00 [00:02:49]line НСП 1% : 0.00 [00:02:49]line Сумма внесений: 0.00 [00:02:49]line Сумма выплат: 0.00 [00:02:49]line Нал. в кассе: 250729.00 [00:02:49]line НС Приход: 52394617.47 [00:02:49]line НС Возвр.Прихода: 2472284.00 [00:02:49]line НС Расход: 0.00 [00:02:49]line НС Возвр.Расхода: 0.00 [00:02:49]line ФМ: 0000000000965400 [00:02:49]written 0, free lines is 4095 [00:02:50]Write to MH i2c: 01 00 00 23 17 3A [00:02:50]Write i2c OK [00:02:50]MH_I2C_Read... [00:02:50]Read from MH i2c: 01 [00:02:50]MH_I2C_Read... [00:02:50]Read from MH i2c: 01 07 00 [00:02:50]MH_I2C_Read... [00:02:50]Read from MH i2c: 01 07 00 23 17 00 00 00 00 00 B7 0A 02 [00:02:50]RasterBufferAndPrint [00:02:50]line [00:02:50]line [00:02:50]line [00:02:50]line [00:02:50]line [00:02:50]written 0, free lines is 2778 [00:02:50]MH_Cut [00:02:50]Write to MH i2c: D1 01 00 2A 17 01 13 [00:02:50]Write i2c OK [00:02:50]MH_I2C_Read... [00:02:50]Read from MH i2c: D1 [00:02:50]MH_I2C_Read... [00:02:50]Read from MH i2c: D1 01 00 [00:02:50]MH_I2C_Read... [00:02:50]Read from MH i2c: D1 01 00 2A 17 00 12 [00:02:50]Write to MH i2c: 01 00 00 2B 17 42 [00:02:50]Write i2c OK [00:02:50]MH_I2C_Read... [00:02:50]OFD Sender: No OFD packet to send [00:02:51]*** Cut start [00:02:51]*** Partial cut [00:02:51]*** CUTSNS_PIN = 1 [00:02:51]*** CUTSNS_PIN = 0 [00:02:51]*** Brake cut motor [00:02:51]Read from MH i2c: 01 [00:02:51]MH_I2C_Read... [00:02:51]*** Stop cut motor [00:02:51]*** Cut end [00:02:51]Read from MH i2c: 01 07 00 [00:02:51]MH_I2C_Read... [00:02:51]Read from MH i2c: 01 07 00 2B 17 00 00 00 00 00 FF 0F 57 [00:02:51]process_action x_report done [00:02:51]requested_data is exist [00:02:51]produce_requested_data [00:02:51]requested_item fd.num is exist - process it [00:02:51]SAM_PROTO_GetFieldsCounters [00:02:51]wFMCommunicate request_size=4 [00:02:51]MH_SAM_APDU [00:02:51]CAPDU: 80 13 00 00 [00:02:51]Write to MH i2c: E2 08 00 2C 17 80 13 00 00 00 00 00 00 BF [00:02:51]Write i2c OK [00:02:51]MH_I2C_Read... [00:02:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:02:52]Read from MH i2c: E2 [00:02:52]MH_I2C_Read... [00:02:52]Read from MH i2c: E2 62 00 [00:02:52]MH_I2C_Read... [00:02:52]Read from MH i2c: E2 62 00 2C 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 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 93 0A 01 00 0E 04 04 00 42 01 00 00 12 04 04 00 02 01 00 00 5E 04 04 00 02 01 00 00 57 04 04 00 03 01 00 00 19 04 04 00 00 00 00 00 90 00 C9 [00:02: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 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 93 0A 01 00 0E 04 04 00 42 01 00 00 12 04 04 00 02 01 00 00 5E 04 04 00 02 01 00 00 57 04 04 00 03 01 00 00 19 04 04 00 00 00 00 00 90 00 [00:02:52]wFMCommunicate OK [00:02:52]SAM_PROTO_GetFieldsCounters done [00:02:52]requested_item shift.num is exist - process it [00:02:52]requested_item shift.opened is exist - process it [00:02:52]req_shift_opened [00:02:52]FM_GetShiftState [00:02:52]SAM_PROTO_GetShiftState [00:02:52]wFMCommunicate request_size=4 [00:02:52]MH_SAM_APDU [00:02:52]CAPDU: 80 13 01 00 [00:02:52]Write to MH i2c: E2 08 00 2D 17 80 13 01 00 00 00 00 00 C1 [00:02:52]Write i2c OK [00:02:52]MH_I2C_Read... [00:02:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:02:52]Read from MH i2c: E2 [00:02:52]MH_I2C_Read... [00:02:52]Read from MH i2c: E2 0E 00 [00:02:52]MH_I2C_Read... [00:02:52]Read from MH i2c: E2 0E 00 2D 17 00 09 00 01 A4 BB 5B 66 00 00 00 00 90 00 ED [00:02:52]RAPDU: 09 00 01 A4 BB 5B 66 00 00 00 00 90 00 [00:02:52]wFMCommunicate OK [00:02:52]SAM_PROTO_GetShiftState done [00:02:52]FM_GetShiftState done [00:02:52]req_shift_opened done [00:02:52]requested_item shift.open_date is exist - process it [00:02:52]req_shift_open_date [00:02:52]req_shift_open_date done [00:02:52]produce_requested_data done [00:02:52]produce_requested_data return {"fd.num":68243,"shift.num":322,"shift.opened":1,"shift.open_date":1717287844} [00:02:52]process_action_free x_report [00:02:52]json_value_free [00:02:52]json_value_free done [00:02:52]process_json_proto returns [00:02:52]Send response to host [00:02:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":68243,"shift.num":322,"shift.opened":1,"shift.open_date":1717287844}}} [00:02:52]free response buf [00:02:52]execute_script done [00:02:52]execute_script returns [00:02:52]free content buf [00:02:52]Sock 9.Close socket [00:02:52]Sock 9.Thread stoped [00:02:55]OFD Sender: No OFD packet to send [00:03:00]OFD Sender: No OFD packet to send [00:03:05]OFD Sender: No OFD packet to send [00:03:10]OFD Sender: No OFD packet to send [00:03:15]OFD Sender: No OFD packet to send [00:03:20]OFD Sender: No OFD packet to send [00:03:25]OFD Sender: No OFD packet to send [00:03:30]OFD Sender: No OFD packet to send [00:03:33]accept exits with 7 [00:03:33]New connection [00:03:33]New thread 3066686820 created [00:03:33]Thread 3066543460 joined [00:03:33]Waiting for new connection... [00:03:33] Sock 7.Parse request [00:03:33]Sock 7.Check first char [00:03:33]Sock 7.First char is OK [00:03:33]request: POST /json_proto HTTP/1.0 [00:03:33]Method: POST [00:03:33]URL: /json_proto [00:03:33]Method is POST - this is cgi request [00:03:33]url: /json_proto [00:03:33]query_string will be loaded in cgi processing [00:03:33]execute_cgi json_proto POST (null) [00:03:33]execute_cgi path=json_proto method=POST [00:03:33]POST find Content-Length [00:03:33]Host: 172.17.36.132:8080 [00:03:33]Content-Length: 215 [00:03:33]Content-Type: application/json [00:03:33] [00:03:33]POST finish read [00:03:33]Found Content-Length = 215 [00:03:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:03:33]execute_script... [00:03:33]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:03:33]POST & json_proto [00:03:33]process_json_proto [00:03:33]json parsed OK: [00:03:33]protocol is kg_v1.0 [00:03:33]action value=get_value [00:03:33]process_action get_value [00:03:33]cmd_get_value [00:03:33]process_action get_value done [00:03:33]requested_data is exist [00:03:33]produce_requested_data [00:03:33]requested_item kkm.sn is exist - process it [00:03:33]requested_item kkm.ver is exist - process it [00:03:33]requested_item fm.sn is exist - process it [00:03:33]wFMCommunicate request_size=4 [00:03:33]MH_SAM_APDU [00:03:33]CAPDU: 80 11 00 00 [00:03:33]Write to MH i2c: E2 08 00 2E 17 80 11 00 00 00 00 00 00 BF [00:03:33]Write i2c OK [00:03:33]MH_I2C_Read... [00:03:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:03:33]Read from MH i2c: E2 [00:03:33]MH_I2C_Read... [00:03:33]Read from MH i2c: E2 17 00 [00:03:33]MH_I2C_Read... [00:03:33]Read from MH i2c: E2 17 00 2E 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 0A [00:03:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [00:03:33]wFMCommunicate OK [00:03:33]requested_item fd.num is exist - process it [00:03:33]SAM_PROTO_GetFieldsCounters [00:03:33]wFMCommunicate request_size=4 [00:03:33]MH_SAM_APDU [00:03:33]CAPDU: 80 13 00 00 [00:03:33]Write to MH i2c: E2 08 00 2F 17 80 13 00 00 00 00 00 00 C2 [00:03:33]Write i2c OK [00:03:33]MH_I2C_Read... [00:03:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:03:33]Read from MH i2c: E2 [00:03:33]MH_I2C_Read... [00:03:33]Read from MH i2c: E2 62 00 [00:03:33]MH_I2C_Read... [00:03:33]Read from MH i2c: E2 62 00 2F 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 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 93 0A 01 00 0E 04 04 00 42 01 00 00 12 04 04 00 02 01 00 00 5E 04 04 00 02 01 00 00 57 04 04 00 03 01 00 00 19 04 04 00 00 00 00 00 90 00 CC [00:03: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 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 93 0A 01 00 0E 04 04 00 42 01 00 00 12 04 04 00 02 01 00 00 5E 04 04 00 02 01 00 00 57 04 04 00 03 01 00 00 19 04 04 00 00 00 00 00 90 00 [00:03:33]wFMCommunicate OK [00:03:33]SAM_PROTO_GetFieldsCounters done [00:03:33]requested_item shift.num is exist - process it [00:03:33]requested_item shift.opened is exist - process it [00:03:33]req_shift_opened [00:03:33]FM_GetShiftState [00:03:33]SAM_PROTO_GetShiftState [00:03:33]wFMCommunicate request_size=4 [00:03:33]MH_SAM_APDU [00:03:33]CAPDU: 80 13 01 00 [00:03:33]Write to MH i2c: E2 08 00 30 17 80 13 01 00 00 00 00 00 C4 [00:03:33]Write i2c OK [00:03:33]MH_I2C_Read... [00:03:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:03:33]Read from MH i2c: E2 [00:03:33]MH_I2C_Read... [00:03:33]Read from MH i2c: E2 0E 00 [00:03:33]MH_I2C_Read... [00:03:33]Read from MH i2c: E2 0E 00 30 17 00 09 00 01 A4 BB 5B 66 00 00 00 00 90 00 F0 [00:03:33]RAPDU: 09 00 01 A4 BB 5B 66 00 00 00 00 90 00 [00:03:33]wFMCommunicate OK [00:03:33]SAM_PROTO_GetShiftState done [00:03:33]FM_GetShiftState done [00:03:33]req_shift_opened done [00:03:33]requested_item shift.open_date is exist - process it [00:03:33]req_shift_open_date [00:03:33]req_shift_open_date done [00:03:33]produce_requested_data done [00:03:33]produce_requested_data return {"kkm.sn":"0300000181","kkm.ver":"001","fm.sn":"0000000000965400","fd.num":68243,"shift.num":322,"shift.opened":1,"shift.open_date":1717287844} [00:03:33]process_action_free get_value [00:03:33]json_value_free [00:03:33]json_value_free done [00:03:33]process_json_proto returns [00:03:33]Send response to host [00:03:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000181","kkm.ver":"001","fm.sn":"0000000000965400","fd.num":68243,"shift.num":322,"shift.opened":1,"shift.open_date":1717287844}}} [00:03:33]free response buf [00:03:33]execute_script done [00:03:33]execute_script returns [00:03:33]free content buf [00:03:33]Sock 7.Close socket [00:03:33]Sock 7.Thread stoped [00:03:33]accept exits with 9 [00:03:33]New connection [00:03:33]New thread 3066543460 created [00:03:33]Thread 3066686820 joined [00:03:33]Waiting for new connection... [00:03:33] Sock 9.Parse request [00:03:33]Sock 9.Check first char [00:03:33]Sock 9.First char is OK [00:03:33]request: POST /json_proto HTTP/1.0 [00:03:33]Method: POST [00:03:33]URL: /json_proto [00:03:33]Method is POST - this is cgi request [00:03:33]url: /json_proto [00:03:33]query_string will be loaded in cgi processing [00:03:33]execute_cgi json_proto POST (null) [00:03:33]execute_cgi path=json_proto method=POST [00:03:33]POST find Content-Length [00:03:33]Host: 172.17.36.132:8080 [00:03:33]Content-Length: 331 [00:03:33]Content-Type: application/json [00:03:33] [00:03:33]POST finish read [00:03:33]Found Content-Length = 331 [00:03:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:03:33]execute_script... [00:03:34]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:34]POST & json_proto [00:03:34]process_json_proto [00:03:34]json parsed OK: [00:03:34]protocol is kg_v1.0 [00:03:34]action value=get_value [00:03:34]process_action get_value [00:03:34]cmd_get_value [00:03:34]process_action get_value done [00:03:34]requested_data is exist [00:03:34]produce_requested_data [00:03:34]requested_item fm.sale.total is exist - process it [00:03:34]SAM_PROTO_GetFMData [00:03:34]wFMCommunicate request_size=4 [00:03:34]MH_SAM_APDU [00:03:34]CAPDU: 80 13 03 00 [00:03:34]Write to MH i2c: E2 08 00 31 17 80 13 03 00 00 00 00 00 C7 [00:03:34]Write i2c OK [00:03:34]MH_I2C_Read... [00:03:34]*** iso7816_exchange 80 13 03 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 31 17 00 C5 04 85 04 C1 04 6E 04 04 00 0F 08 01 00 69 04 A3 00 6F 04 04 00 04 03 01 00 B1 04 05 00 73 D7 4B 38 01 70 04 05 00 6C E6 F0 0B 01 72 04 04 00 07 F1 5A 2C 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 80 A3 2C 21 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 08 9F C3 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 9C 00 6F 04 04 00 0B 05 00 00 B1 04 04 00 F0 67 BC 0E 70 04 04 00 F0 67 BC 0E 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 3E AA 90 01 EF 03 09 90 00 4C [00:03:34]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 0F 08 01 00 69 04 A3 00 6F 04 04 00 04 03 01 00 B1 04 05 00 73 D7 4B 38 01 70 04 05 00 6C E6 F0 0B 01 72 04 04 00 07 F1 5A 2C 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 80 A3 2C 21 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 08 9F C3 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 9C 00 6F 04 04 00 0B 05 00 00 B1 04 04 00 F0 67 BC 0E 70 04 04 00 F0 67 BC 0E 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 3E AA 90 01 EF 03 09 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 32 17 80 17 00 00 00 00 00 00 C9 [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 = 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 32 17 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 12 63 21 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 15 [00:03:34]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 12 63 21 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 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 33 17 80 17 00 00 00 00 00 00 CA [00:03:34]Write i2c OK [00:03:34]MH_I2C_Read... [00:03:35]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:03:35]Read from MH i2c: E2 [00:03:35]MH_I2C_Read... [00:03:35]Read from MH i2c: E2 FD 00 [00:03:35]MH_I2C_Read... [00:03:35]Read from MH i2c: E2 FD 00 33 17 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 DC [00:03:35]RAPDU: 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:03:35]wFMCommunicate OK [00:03:35]wFMCommunicate request_size=4 [00:03:35]MH_SAM_APDU [00:03:35]CAPDU: 80 17 00 00 [00:03:35]Write to MH i2c: E2 08 00 34 17 80 17 00 00 00 00 00 00 CB [00:03:35]Write i2c OK [00:03:35]MH_I2C_Read... [00:03:35]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:03:35]Read from MH i2c: E2 [00:03:35]MH_I2C_Read... [00:03:35]Read from MH i2c: E2 FD 00 [00:03:35]MH_I2C_Read... [00:03:35]Read from MH i2c: E2 FD 00 34 17 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 57 [00:03:35]RAPDU: 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:03:35]wFMCommunicate OK [00:03:35]wFMCommunicate request_size=4 [00:03:35]MH_SAM_APDU [00:03:35]CAPDU: 80 17 00 00 [00:03:35]Write to MH i2c: E2 08 00 35 17 80 17 00 00 00 00 00 00 CC [00:03:35]Write i2c OK [00:03:35]MH_I2C_Read... [00:03:35]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [00:03:35]Read from MH i2c: E2 [00:03:35]MH_I2C_Read... [00:03:35]Read from MH i2c: E2 E2 00 [00:03:35]MH_I2C_Read... [00:03:35]Read from MH i2c: E2 E2 00 35 17 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 AA [00:03:35]RAPDU: EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:35]wFMCommunicate OK [00:03:35]SAM_PROTO_GetFMData done [00:03:35]requested_item fm.sale_refund.total is exist - process it [00:03:35]requested_item fm.buy.total is exist - process it [00:03:35]requested_item shift.sale.total is exist - process it [00:03:35]SAM_PROTO_GetShiftData [00:03:35]wFMCommunicate request_size=4 [00:03:35]MH_SAM_APDU [00:03:35]CAPDU: 80 13 02 00 [00:03:35]Write to MH i2c: E2 08 00 36 17 80 13 02 00 00 00 00 00 CB [00:03:35]Write i2c OK [00:03:35]MH_I2C_Read... [00:03:35]OFD Sender: No OFD packet to send [00:03:36]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:03:36]Read from MH i2c: E2 [00:03:36]MH_I2C_Read... [00:03:36]Read from MH i2c: E2 FD 00 [00:03:36]MH_I2C_Read... [00:03:36]Read from MH i2c: E2 FD 00 36 17 00 BC 04 AA 04 B8 04 6E 04 04 00 02 01 00 00 69 04 9E 00 6F 04 04 00 FC 00 00 00 B1 04 04 00 ED F0 C9 01 70 04 04 00 BC 7E 8C 01 72 04 03 00 31 72 3D 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 82 A4 30 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 A2 0D 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 B8 E9 0D 70 04 03 00 B8 E9 0D 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 57 7A 01 EF 03 09 00 F6 03 01 00 00 F7 03 90 00 69 [00:03:36]RAPDU: BC 04 AA 04 B8 04 6E 04 04 00 02 01 00 00 69 04 9E 00 6F 04 04 00 FC 00 00 00 B1 04 04 00 ED F0 C9 01 70 04 04 00 BC 7E 8C 01 72 04 03 00 31 72 3D 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 82 A4 30 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 A2 0D 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 B8 E9 0D 70 04 03 00 B8 E9 0D 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 57 7A 01 EF 03 09 00 F6 03 01 00 00 F7 03 90 00 [00:03:36]wFMCommunicate OK [00:03:36]wFMCommunicate request_size=4 [00:03:36]MH_SAM_APDU [00:03:36]CAPDU: 80 17 00 00 [00:03:36]Write to MH i2c: E2 08 00 37 17 80 17 00 00 00 00 00 00 CE [00:03:36]Write i2c OK [00:03:36]MH_I2C_Read... [00:03:36]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:03:36]Read from MH i2c: E2 [00:03:36]MH_I2C_Read... [00:03:36]Read from MH i2c: E2 FD 00 [00:03:36]MH_I2C_Read... [00:03:36]Read from MH i2c: E2 FD 00 37 17 00 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 87 1F EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 1E [00:03:36]RAPDU: 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 87 1F EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:03:36]wFMCommunicate OK [00:03:36]wFMCommunicate request_size=4 [00:03:36]MH_SAM_APDU [00:03:36]CAPDU: 80 17 00 00 [00:03:36]Write to MH i2c: E2 08 00 38 17 80 17 00 00 00 00 00 00 CF [00:03:36]Write i2c OK [00:03:36]MH_I2C_Read... [00:03:36]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:03:36]Read from MH i2c: E2 [00:03:36]MH_I2C_Read... [00:03:36]Read from MH i2c: E2 FD 00 [00:03:36]MH_I2C_Read... [00:03:36]Read from MH i2c: E2 FD 00 38 17 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 F8 [00:03:36]RAPDU: 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:03:36]wFMCommunicate OK [00:03:36]wFMCommunicate request_size=4 [00:03:36]MH_SAM_APDU [00:03:36]CAPDU: 80 17 00 00 [00:03:36]Write to MH i2c: E2 08 00 39 17 80 17 00 00 00 00 00 00 D0 [00:03:36]Write i2c OK [00:03:36]MH_I2C_Read... [00:03:36]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:03:36]Read from MH i2c: E2 [00:03:36]MH_I2C_Read... [00:03:36]Read from MH i2c: E2 FD 00 [00:03:36]MH_I2C_Read... [00:03:37]Read from MH i2c: E2 FD 00 39 17 00 03 00 00 EF 03 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 90 00 51 [00:03:37]RAPDU: 03 00 00 EF 03 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 90 00 [00:03:37]wFMCommunicate OK [00:03:37]wFMCommunicate request_size=4 [00:03:37]MH_SAM_APDU [00:03:37]CAPDU: 80 17 00 00 [00:03:37]Write to MH i2c: E2 08 00 3A 17 80 17 00 00 00 00 00 00 D1 [00:03:37]Write i2c OK [00:03:37]MH_I2C_Read... [00:03:37]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 214! [00:03:37]Read from MH i2c: E2 [00:03:37]MH_I2C_Read... [00:03:37]Read from MH i2c: E2 D9 00 [00:03:37]MH_I2C_Read... [00:03:37]Read from MH i2c: E2 D9 00 3A 17 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 B0 [00:03:37]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:37]wFMCommunicate OK [00:03:37]SAM_PROTO_GetShiftData done [00:03:37]requested_item shift.sale.total_cash is exist - process it [00:03:37]requested_item shift.sale_refund.total is exist - process it [00:03:37]requested_item shift.sale_refund.total_cash is exist - process it [00:03:37]requested_item shift.buy.total is exist - process it [00:03:37]requested_item shift.buy.total_cash is exist - process it [00:03:37]produce_requested_data done [00:03:37]produce_requested_data return {"fm.sale.total":52394617.47,"fm.sale_refund.total":2472284.00,"fm.buy.total":0.00,"shift.sale.total":300116.29,"shift.sale.total_cash":259847.00,"shift.sale_refund.total":9118.00,"shift.sale_refund.total_cash":9118.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [00:03:37]process_action_free get_value [00:03:37]json_value_free [00:03:37]json_value_free done [00:03:37]process_json_proto returns [00:03:37]Send response to host [00:03:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":52394617.47,"fm.sale_refund.total":2472284.00,"fm.buy.total":0.00,"shift.sale.total":300116.29,"shift.sale.total_cash":259847.00,"shift.sale_refund.total":9118.00,"shift.sale_refund.total_cash":9118.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [00:03:37]free response buf [00:03:37]execute_script done [00:03:37]execute_script returns [00:03:37]free content buf [00:03:37]Sock 9.Close socket [00:03:37]Sock 9.Thread stoped [00:03:37]accept exits with 7 [00:03:37]New connection [00:03:37]New thread 3066686820 created [00:03:37]Thread 3066543460 joined [00:03:37]Waiting for new connection... [00:03:37] Sock 7.Parse request [00:03:37]Sock 7.Check first char [00:03:37]Sock 7.First char is OK [00:03:37]request: POST /json_proto HTTP/1.0 [00:03:37]Method: POST [00:03:37]URL: /json_proto [00:03:37]Method is POST - this is cgi request [00:03:37]url: /json_proto [00:03:37]query_string will be loaded in cgi processing [00:03:37]execute_cgi json_proto POST (null) [00:03:37]execute_cgi path=json_proto method=POST [00:03:37]POST find Content-Length [00:03:37]Host: 172.17.36.132:8080 [00:03:37]Content-Length: 331 [00:03:37]Content-Type: application/json [00:03:37] [00:03:37]POST finish read [00:03:37]Found Content-Length = 331 [00:03: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:03:37]execute_script... [00:03: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:03:37]POST & json_proto [00:03:37]process_json_proto [00:03:37]json parsed OK: [00:03:37]protocol is kg_v1.0 [00:03:37]action value=get_value [00:03:37]process_action get_value [00:03:37]cmd_get_value [00:03:37]process_action get_value done [00:03:37]requested_data is exist [00:03:37]produce_requested_data [00:03:37]requested_item fm.sale.total is exist - process it [00:03:37]SAM_PROTO_GetFMData [00:03:37]wFMCommunicate request_size=4 [00:03:37]MH_SAM_APDU [00:03:37]CAPDU: 80 13 03 00 [00:03:37]Write to MH i2c: E2 08 00 3B 17 80 13 03 00 00 00 00 00 D1 [00:03:37]Write i2c OK [00:03:37]MH_I2C_Read... [00:03:37]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:03:37]Read from MH i2c: E2 [00:03:37]MH_I2C_Read... [00:03:37]Read from MH i2c: E2 FD 00 [00:03:37]MH_I2C_Read... [00:03:37]Read from MH i2c: E2 FD 00 3B 17 00 C5 04 85 04 C1 04 6E 04 04 00 0F 08 01 00 69 04 A3 00 6F 04 04 00 04 03 01 00 B1 04 05 00 73 D7 4B 38 01 70 04 05 00 6C E6 F0 0B 01 72 04 04 00 07 F1 5A 2C 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 80 A3 2C 21 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 08 9F C3 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 9C 00 6F 04 04 00 0B 05 00 00 B1 04 04 00 F0 67 BC 0E 70 04 04 00 F0 67 BC 0E 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 3E AA 90 01 EF 03 09 90 00 56 [00:03:37]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 0F 08 01 00 69 04 A3 00 6F 04 04 00 04 03 01 00 B1 04 05 00 73 D7 4B 38 01 70 04 05 00 6C E6 F0 0B 01 72 04 04 00 07 F1 5A 2C 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 80 A3 2C 21 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 08 9F C3 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 9C 00 6F 04 04 00 0B 05 00 00 B1 04 04 00 F0 67 BC 0E 70 04 04 00 F0 67 BC 0E 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 3E AA 90 01 EF 03 09 90 00 [00:03:37]wFMCommunicate OK [00:03:37]wFMCommunicate request_size=4 [00:03:37]MH_SAM_APDU [00:03:37]CAPDU: 80 17 00 00 [00:03:37]Write to MH i2c: E2 08 00 3C 17 80 17 00 00 00 00 00 00 D3 [00:03:37]Write i2c OK [00:03:37]MH_I2C_Read... [00:03:38]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:03:38]Read from MH i2c: E2 [00:03:38]MH_I2C_Read... [00:03:38]Read from MH i2c: E2 FD 00 [00:03:38]MH_I2C_Read... [00:03:38]Read from MH i2c: E2 FD 00 3C 17 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 12 63 21 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 1F [00:03:38]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 12 63 21 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 [00:03:38]wFMCommunicate OK [00:03:38]wFMCommunicate request_size=4 [00:03:38]MH_SAM_APDU [00:03:38]CAPDU: 80 17 00 00 [00:03:38]Write to MH i2c: E2 08 00 3D 17 80 17 00 00 00 00 00 00 D4 [00:03:38]Write i2c OK [00:03:38]MH_I2C_Read... [00:03:38]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:03:38]Read from MH i2c: E2 [00:03:38]MH_I2C_Read... [00:03:38]Read from MH i2c: E2 FD 00 [00:03:38]MH_I2C_Read... [00:03:38]Read from MH i2c: E2 FD 00 3D 17 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 E6 [00:03:38]RAPDU: 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:03:38]wFMCommunicate OK [00:03:38]wFMCommunicate request_size=4 [00:03:38]MH_SAM_APDU [00:03:38]CAPDU: 80 17 00 00 [00:03:38]Write to MH i2c: E2 08 00 3E 17 80 17 00 00 00 00 00 00 D5 [00:03:38]Write i2c OK [00:03:38]MH_I2C_Read... [00:03:38]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:03:38]Read from MH i2c: E2 [00:03:38]MH_I2C_Read... [00:03:38]Read from MH i2c: E2 FD 00 [00:03:38]MH_I2C_Read... [00:03:38]Read from MH i2c: E2 FD 00 3E 17 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 61 [00:03:38]RAPDU: 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:03:39]wFMCommunicate OK [00:03:39]wFMCommunicate request_size=4 [00:03:39]MH_SAM_APDU [00:03:39]CAPDU: 80 17 00 00 [00:03:39]Write to MH i2c: E2 08 00 3F 17 80 17 00 00 00 00 00 00 D6 [00:03:39]Write i2c OK [00:03:39]MH_I2C_Read... [00:03:39]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [00:03:39]Read from MH i2c: E2 [00:03:39]MH_I2C_Read... [00:03:39]Read from MH i2c: E2 E2 00 [00:03:39]MH_I2C_Read... [00:03:39]Read from MH i2c: E2 E2 00 3F 17 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 B4 [00:03:39]RAPDU: EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:39]wFMCommunicate OK [00:03:39]SAM_PROTO_GetFMData done [00:03:39]requested_item fm.sale_refund.total is exist - process it [00:03:39]requested_item fm.buy.total is exist - process it [00:03:39]requested_item shift.sale.total is exist - process it [00:03:39]SAM_PROTO_GetShiftData [00:03:39]wFMCommunicate request_size=4 [00:03:39]MH_SAM_APDU [00:03:39]CAPDU: 80 13 02 00 [00:03:39]Write to MH i2c: E2 08 00 40 17 80 13 02 00 00 00 00 00 D5 [00:03:39]Write i2c OK [00:03:39]MH_I2C_Read... [00:03:39]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:03:39]Read from MH i2c: E2 [00:03:39]MH_I2C_Read... [00:03:39]Read from MH i2c: E2 FD 00 [00:03:39]MH_I2C_Read... [00:03:39]Read from MH i2c: E2 FD 00 40 17 00 BC 04 AA 04 B8 04 6E 04 04 00 02 01 00 00 69 04 9E 00 6F 04 04 00 FC 00 00 00 B1 04 04 00 ED F0 C9 01 70 04 04 00 BC 7E 8C 01 72 04 03 00 31 72 3D 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 82 A4 30 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 A2 0D 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 B8 E9 0D 70 04 03 00 B8 E9 0D 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 57 7A 01 EF 03 09 00 F6 03 01 00 00 F7 03 90 00 73 [00:03:39]RAPDU: BC 04 AA 04 B8 04 6E 04 04 00 02 01 00 00 69 04 9E 00 6F 04 04 00 FC 00 00 00 B1 04 04 00 ED F0 C9 01 70 04 04 00 BC 7E 8C 01 72 04 03 00 31 72 3D 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 82 A4 30 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 A2 0D 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 B8 E9 0D 70 04 03 00 B8 E9 0D 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 57 7A 01 EF 03 09 00 F6 03 01 00 00 F7 03 90 00 [00:03:39]wFMCommunicate OK [00:03:39]wFMCommunicate request_size=4 [00:03:39]MH_SAM_APDU [00:03:39]CAPDU: 80 17 00 00 [00:03:39]Write to MH i2c: E2 08 00 41 17 80 17 00 00 00 00 00 00 D8 [00:03:39]Write i2c OK [00:03:39]MH_I2C_Read... [00:03:40]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:03:40]Read from MH i2c: E2 [00:03:40]MH_I2C_Read... [00:03:40]Read from MH i2c: E2 FD 00 [00:03:40]MH_I2C_Read... [00:03:40]Read from MH i2c: E2 FD 00 41 17 00 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 87 1F EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 28 [00:03:40]RAPDU: 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 87 1F EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:03:40]wFMCommunicate OK [00:03:40]wFMCommunicate request_size=4 [00:03:40]MH_SAM_APDU [00:03:40]CAPDU: 80 17 00 00 [00:03:40]Write to MH i2c: E2 08 00 42 17 80 17 00 00 00 00 00 00 D9 [00:03:40]Write i2c OK [00:03:40]MH_I2C_Read... [00:03:40]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:03:40]Read from MH i2c: E2 [00:03:40]MH_I2C_Read... [00:03:40]Read from MH i2c: E2 FD 00 [00:03:40]MH_I2C_Read... [00:03:40]Read from MH i2c: E2 FD 00 42 17 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 02 [00:03:40]RAPDU: 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:03:40]wFMCommunicate OK [00:03:40]wFMCommunicate request_size=4 [00:03:40]MH_SAM_APDU [00:03:40]CAPDU: 80 17 00 00 [00:03:40]Write to MH i2c: E2 08 00 43 17 80 17 00 00 00 00 00 00 DA [00:03:40]Write i2c OK [00:03:40]MH_I2C_Read... [00:03:40]OFD Sender: No OFD packet to send [00:03:40]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:03:40]Read from MH i2c: E2 [00:03:40]MH_I2C_Read... [00:03:40]Read from MH i2c: E2 FD 00 [00:03:40]MH_I2C_Read... [00:03:41]Read from MH i2c: E2 FD 00 43 17 00 03 00 00 EF 03 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 90 00 5B [00:03:41]RAPDU: 03 00 00 EF 03 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 90 00 [00:03:41]wFMCommunicate OK [00:03:41]wFMCommunicate request_size=4 [00:03:41]MH_SAM_APDU [00:03:41]CAPDU: 80 17 00 00 [00:03:41]Write to MH i2c: E2 08 00 44 17 80 17 00 00 00 00 00 00 DB [00:03:41]Write i2c OK [00:03:41]MH_I2C_Read... [00:03:41]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 214! [00:03:41]Read from MH i2c: E2 [00:03:41]MH_I2C_Read... [00:03:41]Read from MH i2c: E2 D9 00 [00:03:41]MH_I2C_Read... [00:03:41]Read from MH i2c: E2 D9 00 44 17 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 BA [00:03:41]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:41]wFMCommunicate OK [00:03:41]SAM_PROTO_GetShiftData done [00:03:41]requested_item shift.sale.total_cash is exist - process it [00:03:41]requested_item shift.sale_refund.total is exist - process it [00:03:41]requested_item shift.sale_refund.total_cash is exist - process it [00:03:41]requested_item shift.buy.total is exist - process it [00:03:41]requested_item shift.buy.total_cash is exist - process it [00:03:41]produce_requested_data done [00:03:41]produce_requested_data return {"fm.sale.total":52394617.47,"fm.sale_refund.total":2472284.00,"fm.buy.total":0.00,"shift.sale.total":300116.29,"shift.sale.total_cash":259847.00,"shift.sale_refund.total":9118.00,"shift.sale_refund.total_cash":9118.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [00:03:41]process_action_free get_value [00:03:41]json_value_free [00:03:41]json_value_free done [00:03:41]process_json_proto returns [00:03:41]Send response to host [00:03:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":52394617.47,"fm.sale_refund.total":2472284.00,"fm.buy.total":0.00,"shift.sale.total":300116.29,"shift.sale.total_cash":259847.00,"shift.sale_refund.total":9118.00,"shift.sale_refund.total_cash":9118.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [00:03:41]free response buf [00:03:41]execute_script done [00:03:41]execute_script returns [00:03:41]free content buf [00:03:41]Sock 7.Close socket [00:03:41]Sock 7.Thread stoped [00:03:41]accept exits with 9 [00:03:41]New connection [00:03:41]New thread 3066543460 created [00:03:41]Thread 3066686820 joined [00:03:41]Waiting for new connection... [00:03:41] Sock 9.Parse request [00:03:41]Sock 9.Check first char [00:03:41]Sock 9.First char is OK [00:03:41]request: POST /json_proto HTTP/1.0 [00:03:41]Method: POST [00:03:41]URL: /json_proto [00:03:41]Method is POST - this is cgi request [00:03:41]url: /json_proto [00:03:41]query_string will be loaded in cgi processing [00:03:41]execute_cgi json_proto POST (null) [00:03:41]execute_cgi path=json_proto method=POST [00:03:41]POST find Content-Length [00:03:41]Host: 172.17.36.132:8080 [00:03:41]Content-Length: 268 [00:03:41]Content-Type: application/json [00:03:41] [00:03:41]POST finish read [00:03:41]Found Content-Length = 268 [00:03:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_shift", "params" : { "operator" : "\u041A\u0430\u043C\u0447\u044B\u0431\u0435\u043A \u0443. \u042D. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:03:41]execute_script... [00:03:41]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_shift", "params" : { "operator" : "\u041A\u0430\u043C\u0447\u044B\u0431\u0435\u043A \u0443. \u042D. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:03:41]POST & json_proto [00:03:41]process_json_proto [00:03:41]json parsed OK: [00:03:41]protocol is kg_v1.0 [00:03:41]action value=close_shift [00:03:41]process_action close_shift [00:03:41]cmd_close_shift [00:03:41]MH_GetDate [00:03:41]Write to MH i2c: F0 00 00 45 17 4B [00:03:41]Write i2c OK [00:03:41]MH_I2C_Read... [00:03:41]Read from MH i2c: F0 [00:03:41]MH_I2C_Read... [00:03:41]Read from MH i2c: F0 09 00 [00:03:41]MH_I2C_Read... [00:03:41]Read from MH i2c: F0 09 00 45 17 00 5F 08 5D 66 B2 22 B0 64 66 [00:03:41]GetLastDocTimeStamp 1717372963 [00:03:41]current date 1717373023 [00:03:41]FM_GetShiftState [00:03:41]SAM_PROTO_GetShiftState [00:03:41]wFMCommunicate request_size=4 [00:03:41]MH_SAM_APDU [00:03:41]CAPDU: 80 13 01 00 [00:03:41]Write to MH i2c: E2 08 00 46 17 80 13 01 00 00 00 00 00 DA [00:03:41]Write i2c OK [00:03:41]MH_I2C_Read... [00:03:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:03:41]Read from MH i2c: E2 [00:03:41]MH_I2C_Read... [00:03:41]Read from MH i2c: E2 0E 00 [00:03:41]MH_I2C_Read... [00:03:41]Read from MH i2c: E2 0E 00 46 17 00 09 00 01 A4 BB 5B 66 00 00 00 00 90 00 06 [00:03:41]RAPDU: 09 00 01 A4 BB 5B 66 00 00 00 00 90 00 [00:03:41]wFMCommunicate OK [00:03:41]SAM_PROTO_GetShiftState done [00:03:41]FM_GetShiftState done [00:03:41]KKMCreateCloseShiftDocument [00:03:41]Load OK [00:03:41]Malloc new data [00:03:41]MH_GetDate [00:03:41]Write to MH i2c: F0 00 00 47 17 4D [00:03:41]Write i2c OK [00:03:41]MH_I2C_Read... [00:03:41]Read from MH i2c: F0 [00:03:41]MH_I2C_Read... [00:03:41]Read from MH i2c: F0 09 00 [00:03:41]MH_I2C_Read... [00:03:41]Read from MH i2c: F0 09 00 47 17 00 5F 08 5D 66 B2 22 B0 64 68 [00:03:41]Malloc new data [00:03:41]Malloc new data [00:03:41]Malloc new data [00:03:41]Malloc new data [00:03:41]KKMCreateCloseShiftDocument OK [00:03:41]KKMSetCloseShiftData OK [00:03:41]ProcessDocumentItem done err = 0, tmpTLVsize=75 [00:03:41]tlvbuf is 00230130 [00:03:41]KKMLoadAndSignCloseShiftData [00:03:41]SAM_PROTO_ProcessDocument [00:03:41]wFMCommunicate request_size=9 [00:03:41]MH_SAM_APDU [00:03:41]CAPDU: 80 15 01 00 04 05 00 4B 00 [00:03:41]Write to MH i2c: E2 0C 00 48 17 80 15 01 00 04 00 05 00 4B 00 00 00 36 [00:03:41]Write i2c OK [00:03:41]MH_I2C_Read... [00:03:41]*** iso7816_exchange 80 15 01 00... Resp OK rsp.len_out = 0! [00:03:41]Read from MH i2c: E2 [00:03:41]MH_I2C_Read... [00:03:41]Read from MH i2c: E2 03 00 [00:03:41]MH_I2C_Read... [00:03:41]Read from MH i2c: E2 03 00 48 17 00 90 00 D3 [00:03:41]RAPDU: 90 00 [00:03:41]wFMCommunicate OK [00:03:41]wFMCommunicate request_size=23 [00:03:41]MH_SAM_APDU [00:03: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:03:41]Write to MH i2c: E2 1A 00 49 17 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 D5 [00:03:41]Write i2c OK [00:03:41]MH_I2C_Read... [00:03:41]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:03:41]Read from MH i2c: E2 [00:03:41]MH_I2C_Read... [00:03:41]Read from MH i2c: E2 03 00 [00:03:41]MH_I2C_Read... [00:03:41]Read from MH i2c: E2 03 00 49 17 00 90 00 D4 [00:03:41]RAPDU: 90 00 [00:03:41]wFMCommunicate OK [00:03:41]wFMCommunicate request_size=34 [00:03:41]MH_SAM_APDU [00:03:41]CAPDU: 80 15 02 00 1D FD 03 19 00 D0 9A D0 B0 D0 BC D1 87 D1 8B D0 B1 D0 B5 D0 BA 20 D1 83 2E 20 D0 AD 2E 20 [00:03:41]Write to MH i2c: E2 25 00 4A 17 80 15 02 00 1D 00 FD 03 19 00 D0 9A D0 B0 D0 BC D1 87 D1 8B D0 B1 D0 B5 D0 BA 20 D1 83 2E 20 D0 AD 2E 20 00 00 7B [00:03:41]Write i2c OK [00:03:41]MH_I2C_Read... [00:03:41]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:03:41]Read from MH i2c: E2 [00:03:41]MH_I2C_Read... [00:03:41]Read from MH i2c: E2 03 00 [00:03:41]MH_I2C_Read... [00:03:41]Read from MH i2c: E2 03 00 4A 17 00 90 00 D5 [00:03:41]RAPDU: 90 00 [00:03:41]wFMCommunicate OK [00:03:41]wFMCommunicate request_size=13 [00:03:41]MH_SAM_APDU [00:03:41]CAPDU: 80 15 02 00 08 F4 03 04 00 5F 08 5D 66 [00:03:41]Write to MH i2c: E2 10 00 4B 17 80 15 02 00 08 00 F4 03 04 00 5F 08 5D 66 00 00 17 [00:03:41]Write i2c OK [00:03:41]MH_I2C_Read... [00:03:41]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:03:41]Read from MH i2c: E2 [00:03:41]MH_I2C_Read... [00:03:41]Read from MH i2c: E2 03 00 [00:03:42]MH_I2C_Read... [00:03:42]Read from MH i2c: E2 03 00 4B 17 00 90 00 D6 [00:03:42]RAPDU: 90 00 [00:03:42]wFMCommunicate OK [00:03:42]wFMCommunicate request_size=25 [00:03:42]MH_SAM_APDU [00:03:42]CAPDU: 80 15 02 00 14 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 [00:03:42]Write to MH i2c: E2 1C 00 4C 17 80 15 02 00 14 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 00 00 4C [00:03:42]Write i2c OK [00:03:42]MH_I2C_Read... [00:03:42]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:03:42]Read from MH i2c: E2 [00:03:42]MH_I2C_Read... [00:03:42]Read from MH i2c: E2 03 00 [00:03:42]MH_I2C_Read... [00:03:42]Read from MH i2c: E2 03 00 4C 17 00 90 00 D7 [00:03:42]RAPDU: 90 00 [00:03:42]wFMCommunicate OK [00:03:42]wFMCommunicate request_size=4 [00:03:42]MH_SAM_APDU [00:03:42]CAPDU: 80 15 03 00 [00:03:42]Write to MH i2c: E2 08 00 4D 17 80 15 03 00 00 00 00 00 E5 [00:03:42]Write i2c OK [00:03:42]MH_I2C_Read... [00:03:42]*** iso7816_exchange 80 15 03 00... Resp OK rsp.len_out = 250! [00:03:42]Read from MH i2c: E2 [00:03:42]MH_I2C_Read... [00:03:42]Read from MH i2c: E2 FD 00 [00:03:42]MH_I2C_Read... [00:03:42]Read from MH i2c: E2 FD 00 4D 17 00 FF 04 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 94 0A 01 00 0E 04 04 00 42 01 00 00 5E 04 04 00 02 01 00 00 57 04 04 00 04 01 00 00 AA 04 B8 04 6E 04 04 00 02 01 00 00 69 04 9E 00 6F 04 04 00 FC 00 00 00 B1 04 04 00 ED F0 C9 01 70 04 04 00 BC 7E 8C 01 72 04 03 00 31 72 3D 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 82 A4 30 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 A2 0D 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 B8 90 00 F9 [00:03:42]RAPDU: FF 04 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 94 0A 01 00 0E 04 04 00 42 01 00 00 5E 04 04 00 02 01 00 00 57 04 04 00 04 01 00 00 AA 04 B8 04 6E 04 04 00 02 01 00 00 69 04 9E 00 6F 04 04 00 FC 00 00 00 B1 04 04 00 ED F0 C9 01 70 04 04 00 BC 7E 8C 01 72 04 03 00 31 72 3D 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 82 A4 30 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 A2 0D 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 B8 90 00 [00:03:42]wFMCommunicate OK [00:03:42]SAM_PROTO_ProcessDocument answer len = 1279 [00:03:42]SAM_PROTO_ProcessDocument remain to read = 1031 [00:03:42]wFMCommunicate request_size=4 [00:03:42]MH_SAM_APDU [00:03:42]CAPDU: 80 17 00 00 [00:03:42]Write to MH i2c: E2 08 00 4E 17 80 17 00 00 00 00 00 00 E5 [00:03:42]Write i2c OK [00:03:42]MH_I2C_Read... [00:03:43]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:03:43]Read from MH i2c: E2 [00:03:43]MH_I2C_Read... [00:03:43]Read from MH i2c: E2 FD 00 [00:03:43]MH_I2C_Read... [00:03:43]Read from MH i2c: E2 FD 00 4E 17 00 E9 0D 70 04 03 00 B8 E9 0D 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 57 7A 01 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 87 1F EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 DA [00:03:43]RAPDU: E9 0D 70 04 03 00 B8 E9 0D 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 57 7A 01 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 87 1F EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:03:43]wFMCommunicate OK [00:03:43]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [00:03:43]SAM_PROTO_ProcessDocument remain to read = 781 [00:03:43]wFMCommunicate request_size=4 [00:03:43]MH_SAM_APDU [00:03:43]CAPDU: 80 17 00 00 [00:03:43]Write to MH i2c: E2 08 00 4F 17 80 17 00 00 00 00 00 00 E6 [00:03:43]Write i2c OK [00:03:43]MH_I2C_Read... [00:03:43]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:03:43]Read from MH i2c: E2 [00:03:43]MH_I2C_Read... [00:03:43]Read from MH i2c: E2 FD 00 [00:03:43]MH_I2C_Read... [00:03:43]Read from MH i2c: E2 FD 00 4F 17 00 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 4C [00:03:43]RAPDU: 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 [00:03:43]wFMCommunicate OK [00:03:43]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [00:03:43]SAM_PROTO_ProcessDocument remain to read = 531 [00:03:43]wFMCommunicate request_size=4 [00:03:43]MH_SAM_APDU [00:03:43]CAPDU: 80 17 00 00 [00:03:43]Write to MH i2c: E2 08 00 50 17 80 17 00 00 00 00 00 00 E7 [00:03:43]Write i2c OK [00:03:43]MH_I2C_Read... [00:03:43]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:03:43]Read from MH i2c: E2 [00:03:43]MH_I2C_Read... [00:03:43]Read from MH i2c: E2 FD 00 [00:03:43]MH_I2C_Read... [00:03:43]Read from MH i2c: E2 FD 00 50 17 00 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 88 [00:03:44]RAPDU: 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:03:44]wFMCommunicate OK [00:03:44]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [00:03:44]SAM_PROTO_ProcessDocument remain to read = 281 [00:03:44]wFMCommunicate request_size=4 [00:03:44]MH_SAM_APDU [00:03:44]CAPDU: 80 17 00 00 [00:03:44]Write to MH i2c: E2 08 00 51 17 80 17 00 00 00 00 00 00 E8 [00:03:44]Write i2c OK [00:03:44]MH_I2C_Read... [00:03:44]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:03:44]Read from MH i2c: E2 [00:03:44]MH_I2C_Read... [00:03:44]Read from MH i2c: E2 FD 00 [00:03:44]MH_I2C_Read... [00:03:44]Read from MH i2c: E2 FD 00 51 17 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 90 00 94 [00:03:44]RAPDU: 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 90 00 [00:03:44]wFMCommunicate OK [00:03:44]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [00:03:44]SAM_PROTO_ProcessDocument remain to read = 31 [00:03:44]wFMCommunicate request_size=4 [00:03:44]MH_SAM_APDU [00:03:44]CAPDU: 80 17 00 00 [00:03:44]Write to MH i2c: E2 08 00 52 17 80 17 00 00 00 00 00 00 E9 [00:03:44]Write i2c OK [00:03:44]MH_I2C_Read... [00:03:44]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 31! [00:03:44]Read from MH i2c: E2 [00:03:44]MH_I2C_Read... [00:03:44]Read from MH i2c: E2 22 00 [00:03:44]MH_I2C_Read... [00:03:44]Read from MH i2c: E2 22 00 52 17 00 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 1A 96 8C A7 B4 E9 90 00 B3 [00:03:44]RAPDU: 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 1A 96 8C A7 B4 E9 90 00 [00:03:44]wFMCommunicate OK [00:03:44]SAM_PROTO_ProcessDocument received (without SW) 31 bytes [00:03:44]SAM_PROTO_ProcessDocument done [00:03:44]1209 (1) - 1.0 - номер версии ФФД [00:03:44]1041 (16) - 0000000000965400 - номер ФМ [00:03:44]1040 (4) - 68244 - номер ФД [00:03:44]1038 (4) - 322 - номер смены [00:03:44]1118 (4) - 258 - количество кассовых чеков за смену [00:03:44]1111 (4) - 260 - общее количество ФД за смену [00:03:44]1194 (1208) - счетчики итогов смены [00:03:44] 1134 (4) - 258 - количество чеков со всеми признаками расчетов [00:03:44] 1129 (158) - счетчики операций «приход» [00:03:44] 1135 (4) - 252 - количество чеков по признаку расчетов [00:03:44] 1201 (4) - 300116.29 - общая итоговая сумма в чеках [00:03:44] 1136 (4) - 259847.00 - итоговая сумма в чеках наличными [00:03:44] 1138 (3) - 40269.29 - итоговая сумма в чеках безналичными [00:03:44] 1024 (123) - суммы налогов [00:03:44] 1006 (9) - суммы НДС [00:03:44] 1010 (1) - 0% - код ставки НДС [00:03:44] 1011 (0) - 0.00 - сумма НДС по ставке [00:03:44] 1006 (12) - суммы НДС [00:03:44] 1010 (1) - 12% - код ставки НДС [00:03:44] 1011 (3) - 31878.42 - сумма НДС по ставке [00:03:44] 1007 (9) - суммы НСП [00:03:44] 1014 (1) - 0% - код ставки НСП [00:03:44] 1015 (0) - 0.00 - сумма НСП по ставке [00:03:44] 1007 (12) - суммы НСП [00:03:44] 1014 (1) - 1% - код ставки НСП [00:03:44] 1015 (3) - 2656.34 - сумма НСП по ставке [00:03:44] 1007 (9) - суммы НСП [00:03:44] 1014 (1) - 2% - код ставки НСП [00:03:44] 1015 (0) - 0.00 - сумма НСП по ставке [00:03:44] 1007 (9) - суммы НСП [00:03:44] 1014 (1) - 3% - код ставки НСП [00:03:44] 1015 (0) - 0.00 - сумма НСП по ставке [00:03:44] 1007 (9) - суммы НСП [00:03:44] 1014 (1) - 5% - код ставки НСП [00:03:44] 1015 (0) - 0.00 - сумма НСП по ставке [00:03:44] 1007 (9) - суммы НСП [00:03:44] 1014 (1) - 0,50% - код ставки НСП [00:03:44] 1015 (0) - 0.00 - сумма НСП по ставке [00:03:44] 1007 (9) - суммы НСП [00:03:44] 1014 (1) - 1,50% - код ставки НСП [00:03:44] 1015 (0) - 0.00 - сумма НСП по ставке [00:03:44] 1130 (152) - счетчики операций «возврат прихода» [00:03:44] 1135 (4) - 6 - количество чеков по признаку расчетов [00:03:44] 1201 (3) - 9118.00 - общая итоговая сумма в чеках [00:03:44] 1136 (3) - 9118.00 - итоговая сумма в чеках наличными [00:03:44] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:03:44] 1024 (122) - суммы налогов [00:03:44] 1006 (9) - суммы НДС [00:03:44] 1010 (1) - 0% - код ставки НДС [00:03:44] 1011 (0) - 0.00 - сумма НДС по ставке [00:03:44] 1006 (12) - суммы НДС [00:03:44] 1010 (1) - 12% - код ставки НДС [00:03:44] 1011 (3) - 968.55 - сумма НДС по ставке [00:03:44] 1007 (9) - суммы НСП [00:03:44] 1014 (1) - 0% - код ставки НСП [00:03:44] 1015 (0) - 0.00 - сумма НСП по ставке [00:03:44] 1007 (11) - суммы НСП [00:03:44] 1014 (1) - 1% - код ставки НСП [00:03:44] 1015 (2) - 80.71 - сумма НСП по ставке [00:03:44] 1007 (9) - суммы НСП [00:03:44] 1014 (1) - 2% - код ставки НСП [00:03:44] 1015 (0) - 0.00 - сумма НСП по ставке [00:03:44] 1007 (9) - суммы НСП [00:03:44] 1014 (1) - 3% - код ставки НСП [00:03:44] 1015 (0) - 0.00 - сумма НСП по ставке [00:03:44] 1007 (9) - суммы НСП [00:03:44] 1014 (1) - 5% - код ставки НСП [00:03:44] 1015 (0) - 0.00 - сумма НСП по ставке [00:03:44] 1007 (9) - суммы НСП [00:03:44] 1014 (1) - 0,50% - код ставки НСП [00:03:44] 1015 (0) - 0.00 - сумма НСП по ставке [00:03:44] 1007 (9) - суммы НСП [00:03:44] 1014 (1) - 1,50% - код ставки НСП [00:03:44] 1015 (0) - 0.00 - сумма НСП по ставке [00:03:44] 1131 (141) - счетчики операций «расход» [00:03:44] 1135 (4) - 0 - количество чеков по признаку расчетов [00:03:44] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:03:44] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:03:44] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:03:44] 1024 (117) - суммы налогов [00:03:44] 1006 (9) - суммы НДС [00:03:44] 1010 (1) - 0% - код ставки НДС [00:03:44] 1011 (0) - 0.00 - сумма НДС по ставке [00:03:44] 1006 (9) - суммы НДС [00:03:44] 1010 (1) - 12% - код ставки НДС [00:03:44] 1011 (0) - 0.00 - сумма НДС по ставке [00:03:44] 1007 (9) - суммы НСП [00:03:44] 1014 (1) - 0% - код ставки НСП [00:03:45] 1015 (0) - 0.00 - сумма НСП по ставке [00:03:45] 1007 (9) - суммы НСП [00:03:45] 1014 (1) - 1% - код ставки НСП [00:03:45] 1015 (0) - 0.00 - сумма НСП по ставке [00:03:45] 1007 (9) - суммы НСП [00:03:45] 1014 (1) - 2% - код ставки НСП [00:03:45] 1015 (0) - 0.00 - сумма НСП по ставке [00:03:45] 1007 (9) - суммы НСП [00:03:45] 1014 (1) - 3% - код ставки НСП [00:03:45] 1015 (0) - 0.00 - сумма НСП по ставке [00:03:45] 1007 (9) - суммы НСП [00:03:45] 1014 (1) - 5% - код ставки НСП [00:03:45] 1015 (0) - 0.00 - сумма НСП по ставке [00:03:45] 1007 (9) - суммы НСП [00:03:45] 1014 (1) - 0,50% - код ставки НСП [00:03:45] 1015 (0) - 0.00 - сумма НСП по ставке [00:03:45] 1007 (9) - суммы НСП [00:03:45] 1014 (1) - 1,50% - код ставки НСП [00:03:45] 1015 (0) - 0.00 - сумма НСП по ставке [00:03:45] 1132 (141) - счетчики операций «возврат расхода» [00:03:45] 1135 (4) - 0 - количество чеков по признаку расчетов [00:03:45] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:03:45] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:03:45] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:03:45] 1024 (117) - суммы налогов [00:03:45] 1006 (9) - суммы НДС [00:03:45] 1010 (1) - 0% - код ставки НДС [00:03:45] 1011 (0) - 0.00 - сумма НДС по ставке [00:03:45] 1006 (9) - суммы НДС [00:03:45] 1010 (1) - 12% - код ставки НДС [00:03:45] 1011 (0) - 0.00 - сумма НДС по ставке [00:03:45] 1007 (9) - суммы НСП [00:03:45] 1014 (1) - 0% - код ставки НСП [00:03:45] 1015 (0) - 0.00 - сумма НСП по ставке [00:03:45] 1007 (9) - суммы НСП [00:03:45] 1014 (1) - 1% - код ставки НСП [00:03:45] 1015 (0) - 0.00 - сумма НСП по ставке [00:03:45] 1007 (9) - суммы НСП [00:03:45] 1014 (1) - 2% - код ставки НСП [00:03:45] 1015 (0) - 0.00 - сумма НСП по ставке [00:03:45] 1007 (9) - суммы НСП [00:03:45] 1014 (1) - 3% - код ставки НСП [00:03:45] 1015 (0) - 0.00 - сумма НСП по ставке [00:03:45] 1007 (9) - суммы НСП [00:03:45] 1014 (1) - 5% - код ставки НСП [00:03:45] 1015 (0) - 0.00 - сумма НСП по ставке [00:03:45] 1007 (9) - суммы НСП [00:03:45] 1014 (1) - 0,50% - код ставки НСП [00:03:45] 1015 (0) - 0.00 - сумма НСП по ставке [00:03:45] 1007 (9) - суммы НСП [00:03:45] 1014 (1) - 1,50% - код ставки НСП [00:03:45] 1015 (0) - 0.00 - сумма НСП по ставке [00:03:45] 1133 (588) - - счетчики коррекции - не используются [00:03:45]1077 (6) - 29233907217641 - ФПД [00:03:45]SetTLVBufToDocument [00:03:45]Processing tag 1209 (04B9) [00:03:45]Malloc new data [00:03:45]Processing tag 1041 (0411) [00:03:45]Processing tag 1040 (0410) [00:03:45]Malloc new data [00:03:45]Processing tag 1038 (040E) [00:03:45]Malloc new data [00:03:45]Processing tag 1118 (045E) [00:03:45]Malloc new data [00:03:45]Processing tag 1111 (0457) [00:03:45]Malloc new data [00:03:45]Processing tag 1194 (04AA) [00:03:45]Load OK [00:03:45]SetTLVBufToDocument [00:03:45]Processing tag 1134 (046E) [00:03:45]Malloc new data [00:03:45]Processing tag 1129 (0469) [00:03:45]Load OK [00:03:45]SetTLVBufToDocument [00:03:45]Processing tag 1135 (046F) [00:03:45]Malloc new data [00:03:45]Processing tag 1201 (04B1) [00:03:45]Malloc new data [00:03:45]Processing tag 1136 (0470) [00:03:45]Malloc new data [00:03:45]Processing tag 1138 (0472) [00:03:45]Malloc new data [00:03:45]Processing tag 1024 (0400) [00:03:45]Load OK [00:03:45]SetTLVBufToDocument [00:03:45]Processing tag 1006 (03EE) [00:03:45]Load OK [00:03:45]SetTLVBufToDocument [00:03:45]Processing tag 1010 (03F2) [00:03:45]Malloc new data [00:03:45]Processing tag 1011 (03F3) [00:03:45]Malloc new data [00:03:45]SetTLVBufToDocument err=0 [00:03:45]Processing tag 1006 (03EE) [00:03:45]Load OK [00:03:45]SetTLVBufToDocument [00:03:45]Processing tag 1010 (03F2) [00:03:45]Malloc new data [00:03:45]Processing tag 1011 (03F3) [00:03:45]Malloc new data [00:03:45]SetTLVBufToDocument err=0 [00:03:45]Processing tag 1007 (03EF) [00:03:45]Load OK [00:03:45]SetTLVBufToDocument [00:03:45]Processing tag 1014 (03F6) [00:03:45]Malloc new data [00:03:45]Processing tag 1015 (03F7) [00:03:45]Malloc new data [00:03:45]SetTLVBufToDocument err=0 [00:03:45]Processing tag 1007 (03EF) [00:03:45]Load OK [00:03:45]SetTLVBufToDocument [00:03:45]Processing tag 1014 (03F6) [00:03:45]Malloc new data [00:03:45]Processing tag 1015 (03F7) [00:03:45]Malloc new data [00:03:45]SetTLVBufToDocument err=0 [00:03:45]Processing tag 1007 (03EF) [00:03:45]Load OK [00:03:45]SetTLVBufToDocument [00:03:45]Processing tag 1014 (03F6) [00:03:45]Malloc new data [00:03:45]Processing tag 1015 (03F7) [00:03:45]Malloc new data [00:03:45]SetTLVBufToDocument err=0 [00:03:45]Processing tag 1007 (03EF) [00:03:45]Load OK [00:03:45]SetTLVBufToDocument [00:03:45]Processing tag 1014 (03F6) [00:03:45]Malloc new data [00:03:45]Processing tag 1015 (03F7) [00:03:45]Malloc new data [00:03:45]SetTLVBufToDocument err=0 [00:03:45]Processing tag 1007 (03EF) [00:03:45]Load OK [00:03:45]SetTLVBufToDocument [00:03:45]Processing tag 1014 (03F6) [00:03:45]Malloc new data [00:03:45]Processing tag 1015 (03F7) [00:03:45]Malloc new data [00:03:45]SetTLVBufToDocument err=0 [00:03:45]Processing tag 1007 (03EF) [00:03:45]Load OK [00:03:45]SetTLVBufToDocument [00:03:45]Processing tag 1014 (03F6) [00:03:45]Malloc new data [00:03:45]Processing tag 1015 (03F7) [00:03:45]Malloc new data [00:03:45]SetTLVBufToDocument err=0 [00:03:45]Processing tag 1007 (03EF) [00:03:45]Load OK [00:03:45]SetTLVBufToDocument [00:03:45]Processing tag 1014 (03F6) [00:03:45]Malloc new data [00:03:45]Processing tag 1015 (03F7) [00:03:45]Malloc new data [00:03:45]SetTLVBufToDocument err=0 [00:03:45]SetTLVBufToDocument err=0 [00:03:45]SetTLVBufToDocument err=0 [00:03:45]Processing tag 1130 (046A) [00:03:45]Load OK [00:03:45]SetTLVBufToDocument [00:03:45]Processing tag 1135 (046F) [00:03:45]Malloc new data [00:03:45]Processing tag 1201 (04B1) [00:03:45]Malloc new data [00:03:45]Processing tag 1136 (0470) [00:03:45]Malloc new data [00:03:45]Processing tag 1138 (0472) [00:03:45]Malloc new data [00:03:45]Processing tag 1024 (0400) [00:03:45]Load OK [00:03:45]SetTLVBufToDocument [00:03:45]Processing tag 1006 (03EE) [00:03:45]Load OK [00:03:45]SetTLVBufToDocument [00:03:45]Processing tag 1010 (03F2) [00:03:45]Malloc new data [00:03:45]Processing tag 1011 (03F3) [00:03:45]Malloc new data [00:03:45]SetTLVBufToDocument err=0 [00:03:45]Processing tag 1006 (03EE) [00:03:45]Load OK [00:03:45]SetTLVBufToDocument [00:03:45]Processing tag 1010 (03F2) [00:03:45]Malloc new data [00:03:45]Processing tag 1011 (03F3) [00:03:45]Malloc new data [00:03:45]SetTLVBufToDocument err=0 [00:03:45]Processing tag 1007 (03EF) [00:03:45]Load OK [00:03:45]SetTLVBufToDocument [00:03:45]Processing tag 1014 (03F6) [00:03:45]Malloc new data [00:03:45]Processing tag 1015 (03F7) [00:03:45]Malloc new data [00:03:45]SetTLVBufToDocument err=0 [00:03:45]Processing tag 1007 (03EF) [00:03:45]Load OK [00:03:45]SetTLVBufToDocument [00:03:45]Processing tag 1014 (03F6) [00:03:45]Malloc new data [00:03:45]Processing tag 1015 (03F7) [00:03:45]Malloc new data [00:03:45]SetTLVBufToDocument err=0 [00:03:45]Processing tag 1007 (03EF) [00:03:45]Load OK [00:03:45]SetTLVBufToDocument [00:03:45]Processing tag 1014 (03F6) [00:03:45]Malloc new data [00:03:45]Processing tag 1015 (03F7) [00:03:45]Malloc new data [00:03:45]SetTLVBufToDocument err=0 [00:03:45]Processing tag 1007 (03EF) [00:03:45]Load OK [00:03:45]SetTLVBufToDocument [00:03:45]Processing tag 1014 (03F6) [00:03:45]Malloc new data [00:03:45]Processing tag 1015 (03F7) [00:03:45]Malloc new data [00:03:45]SetTLVBufToDocument err=0 [00:03:45]Processing tag 1007 (03EF) [00:03:45]Load OK [00:03:45]SetTLVBufToDocument [00:03:45]Processing tag 1014 (03F6) [00:03:45]Malloc new data [00:03:45]Processing tag 1015 (03F7) [00:03:45]Malloc new data [00:03:45]SetTLVBufToDocument err=0 [00:03:45]Processing tag 1007 (03EF) [00:03:45]Load OK [00:03:45]SetTLVBufToDocument [00:03:45]Processing tag 1014 (03F6) [00:03:45]Malloc new data [00:03:45]Processing tag 1015 (03F7) [00:03:45]Malloc new data [00:03:45]SetTLVBufToDocument err=0 [00:03:45]Processing tag 1007 (03EF) [00:03:45]Load OK [00:03:45]SetTLVBufToDocument [00:03:45]Processing tag 1014 (03F6) [00:03:45]Malloc new data [00:03:45]Processing tag 1015 (03F7) [00:03:45]Malloc new data [00:03:45]SetTLVBufToDocument err=0 [00:03:45]SetTLVBufToDocument err=0 [00:03:45]SetTLVBufToDocument err=0 [00:03:45]Processing tag 1131 (046B) [00:03:45]Load OK [00:03:45]SetTLVBufToDocument [00:03:45]Processing tag 1135 (046F) [00:03:45]Malloc new data [00:03:45]Processing tag 1201 (04B1) [00:03:45]Malloc new data [00:03:45]Processing tag 1136 (0470) [00:03:45]Malloc new data [00:03:45]Processing tag 1138 (0472) [00:03:45]Malloc new data [00:03:45]Processing tag 1024 (0400) [00:03:45]Load OK [00:03:45]SetTLVBufToDocument [00:03:45]Processing tag 1006 (03EE) [00:03:45]Load OK [00:03:45]SetTLVBufToDocument [00:03:45]Processing tag 1010 (03F2) [00:03:45]Malloc new data [00:03:45]Processing tag 1011 (03F3) [00:03:45]Malloc new data [00:03:45]SetTLVBufToDocument err=0 [00:03:45]Processing tag 1006 (03EE) [00:03:45]Load OK [00:03:45]SetTLVBufToDocument [00:03:45]Processing tag 1010 (03F2) [00:03:45]Malloc new data [00:03:45]Processing tag 1011 (03F3) [00:03:45]Malloc new data [00:03:45]SetTLVBufToDocument err=0 [00:03:45]Processing tag 1007 (03EF) [00:03:45]Load OK [00:03:45]SetTLVBufToDocument [00:03:45]Processing tag 1014 (03F6) [00:03:45]Malloc new data [00:03:45]Processing tag 1015 (03F7) [00:03:45]Malloc new data [00:03:45]SetTLVBufToDocument err=0 [00:03:45]Processing tag 1007 (03EF) [00:03:45]Load OK [00:03:45]SetTLVBufToDocument [00:03:45]Processing tag 1014 (03F6) [00:03:45]Malloc new data [00:03:45]Processing tag 1015 (03F7) [00:03:45]Malloc new data [00:03:45]SetTLVBufToDocument err=0 [00:03:45]Processing tag 1007 (03EF) [00:03:45]Load OK [00:03:45]SetTLVBufToDocument [00:03:45]Processing tag 1014 (03F6) [00:03:45]Malloc new data [00:03:45]Processing tag 1015 (03F7) [00:03:45]Malloc new data [00:03:45]SetTLVBufToDocument err=0 [00:03:45]Processing tag 1007 (03EF) [00:03:45]Load OK [00:03:45]SetTLVBufToDocument [00:03:45]Processing tag 1014 (03F6) [00:03:45]Malloc new data [00:03:45]Processing tag 1015 (03F7) [00:03:45]Malloc new data [00:03:45]SetTLVBufToDocument err=0 [00:03:45]Processing tag 1007 (03EF) [00:03:45]Load OK [00:03:45]SetTLVBufToDocument [00:03:45]Processing tag 1014 (03F6) [00:03:45]Malloc new data [00:03:45]Processing tag 1015 (03F7) [00:03:45]Malloc new data [00:03:45]SetTLVBufToDocument err=0 [00:03:45]Processing tag 1007 (03EF) [00:03:45]Load OK [00:03:45]SetTLVBufToDocument [00:03:45]Processing tag 1014 (03F6) [00:03:45]Malloc new data [00:03:45]Processing tag 1015 (03F7) [00:03:45]Malloc new data [00:03:45]SetTLVBufToDocument err=0 [00:03:45]Processing tag 1007 (03EF) [00:03:45]Load OK [00:03:45]SetTLVBufToDocument [00:03:45]Processing tag 1014 (03F6) [00:03:45]Malloc new data [00:03:45]Processing tag 1015 (03F7) [00:03:45]Malloc new data [00:03:45]SetTLVBufToDocument err=0 [00:03:45]SetTLVBufToDocument err=0 [00:03:45]SetTLVBufToDocument err=0 [00:03:45]Processing tag 1132 (046C) [00:03:45]Load OK [00:03:45]SetTLVBufToDocument [00:03:45]Processing tag 1135 (046F) [00:03:45]Malloc new data [00:03:45]Processing tag 1201 (04B1) [00:03:45]Malloc new data [00:03:45]Processing tag 1136 (0470) [00:03:45]Malloc new data [00:03:45]Processing tag 1138 (0472) [00:03:45]Malloc new data [00:03:45]Processing tag 1024 (0400) [00:03:45]Load OK [00:03:45]SetTLVBufToDocument [00:03:45]Processing tag 1006 (03EE) [00:03:45]Load OK [00:03:45]SetTLVBufToDocument [00:03:45]Processing tag 1010 (03F2) [00:03:45]Malloc new data [00:03:45]Processing tag 1011 (03F3) [00:03:45]Malloc new data [00:03:45]SetTLVBufToDocument err=0 [00:03:45]Processing tag 1006 (03EE) [00:03:45]Load OK [00:03:45]SetTLVBufToDocument [00:03:45]Processing tag 1010 (03F2) [00:03:45]Malloc new data [00:03:45]Processing tag 1011 (03F3) [00:03:45]Malloc new data [00:03:45]SetTLVBufToDocument err=0 [00:03:45]Processing tag 1007 (03EF) [00:03:45]Load OK [00:03:45]SetTLVBufToDocument [00:03:45]Processing tag 1014 (03F6) [00:03:45]Malloc new data [00:03:45]Processing tag 1015 (03F7) [00:03:45]Malloc new data [00:03:45]SetTLVBufToDocument err=0 [00:03:45]Processing tag 1007 (03EF) [00:03:45]Load OK [00:03:45]SetTLVBufToDocument [00:03:45]Processing tag 1014 (03F6) [00:03:45]Malloc new data [00:03:45]Processing tag 1015 (03F7) [00:03:45]Malloc new data [00:03:45]SetTLVBufToDocument err=0 [00:03:45]Processing tag 1007 (03EF) [00:03:45]Load OK [00:03:45]SetTLVBufToDocument [00:03:45]Processing tag 1014 (03F6) [00:03:45]Malloc new data [00:03:45]Processing tag 1015 (03F7) [00:03:45]Malloc new data [00:03:45]SetTLVBufToDocument err=0 [00:03:45]Processing tag 1007 (03EF) [00:03:45]Load OK [00:03:45]SetTLVBufToDocument [00:03:45]Processing tag 1014 (03F6) [00:03:46]Malloc new data [00:03:46]Processing tag 1015 (03F7) [00:03:46]Malloc new data [00:03:46]SetTLVBufToDocument err=0 [00:03:46]Processing tag 1007 (03EF) [00:03:46]Load OK [00:03:46]SetTLVBufToDocument [00:03:46]Processing tag 1014 (03F6) [00:03:46]Malloc new data [00:03:46]Processing tag 1015 (03F7) [00:03:46]Malloc new data [00:03:46]SetTLVBufToDocument err=0 [00:03:46]Processing tag 1007 (03EF) [00:03:46]Load OK [00:03:46]SetTLVBufToDocument [00:03:46]OFD Sender: No OFD packet to send [00:03:46]Processing tag 1014 (03F6) [00:03:46]Malloc new data [00:03:46]Processing tag 1015 (03F7) [00:03:46]Malloc new data [00:03:46]SetTLVBufToDocument err=0 [00:03:46]Processing tag 1007 (03EF) [00:03:46]Load OK [00:03:46]SetTLVBufToDocument [00:03:46]Processing tag 1014 (03F6) [00:03:46]Malloc new data [00:03:46]Processing tag 1015 (03F7) [00:03:46]Malloc new data [00:03:46]SetTLVBufToDocument err=0 [00:03:46]SetTLVBufToDocument err=0 [00:03:46]SetTLVBufToDocument err=0 [00:03:46]Processing tag 1133 (046D) [00:03:46]Malloc new data [00:03:46]SetTLVBufToDocument err=0 [00:03:46]Processing tag 1077 (0435) [00:03:46]Malloc new data [00:03:46]SetTLVBufToDocument err=0 [00:03:46]Malloc new data [00:03:46]SAM_PROTO_GetFMData [00:03:46]wFMCommunicate request_size=4 [00:03:46]MH_SAM_APDU [00:03:46]CAPDU: 80 13 03 00 [00:03:46]Write to MH i2c: E2 08 00 53 17 80 13 03 00 00 00 00 00 E9 [00:03:46]Write i2c OK [00:03:46]MH_I2C_Read... [00:03:46]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:03:46]Read from MH i2c: E2 [00:03:46]MH_I2C_Read... [00:03:46]Read from MH i2c: E2 FD 00 [00:03:46]MH_I2C_Read... [00:03:46]Read from MH i2c: E2 FD 00 53 17 00 C5 04 85 04 C1 04 6E 04 04 00 0F 08 01 00 69 04 A3 00 6F 04 04 00 04 03 01 00 B1 04 05 00 73 D7 4B 38 01 70 04 05 00 6C E6 F0 0B 01 72 04 04 00 07 F1 5A 2C 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 80 A3 2C 21 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 08 9F C3 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 9C 00 6F 04 04 00 0B 05 00 00 B1 04 04 00 F0 67 BC 0E 70 04 04 00 F0 67 BC 0E 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 3E AA 90 01 EF 03 09 90 00 6E [00:03:46]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 0F 08 01 00 69 04 A3 00 6F 04 04 00 04 03 01 00 B1 04 05 00 73 D7 4B 38 01 70 04 05 00 6C E6 F0 0B 01 72 04 04 00 07 F1 5A 2C 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 80 A3 2C 21 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 08 9F C3 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 9C 00 6F 04 04 00 0B 05 00 00 B1 04 04 00 F0 67 BC 0E 70 04 04 00 F0 67 BC 0E 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 3E AA 90 01 EF 03 09 90 00 [00:03:46]wFMCommunicate OK [00:03:46]wFMCommunicate request_size=4 [00:03:46]MH_SAM_APDU [00:03:46]CAPDU: 80 17 00 00 [00:03:46]Write to MH i2c: E2 08 00 54 17 80 17 00 00 00 00 00 00 EB [00:03:46]Write i2c OK [00:03:46]MH_I2C_Read... [00:03:46]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:03:46]Read from MH i2c: E2 [00:03:46]MH_I2C_Read... [00:03:46]Read from MH i2c: E2 FD 00 [00:03:46]MH_I2C_Read... [00:03:46]Read from MH i2c: E2 FD 00 54 17 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 12 63 21 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 37 [00:03:47]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 12 63 21 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 [00:03:47]wFMCommunicate OK [00:03:47]wFMCommunicate request_size=4 [00:03:47]MH_SAM_APDU [00:03:47]CAPDU: 80 17 00 00 [00:03:47]Write to MH i2c: E2 08 00 55 17 80 17 00 00 00 00 00 00 EC [00:03:47]Write i2c OK [00:03:47]MH_I2C_Read... [00:03:47]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:03:47]Read from MH i2c: E2 [00:03:47]MH_I2C_Read... [00:03:47]Read from MH i2c: E2 FD 00 [00:03:47]MH_I2C_Read... [00:03:47]Read from MH i2c: E2 FD 00 55 17 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 FE [00:03:47]RAPDU: 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:03:47]wFMCommunicate OK [00:03:47]wFMCommunicate request_size=4 [00:03:47]MH_SAM_APDU [00:03:47]CAPDU: 80 17 00 00 [00:03:47]Write to MH i2c: E2 08 00 56 17 80 17 00 00 00 00 00 00 ED [00:03:47]Write i2c OK [00:03:47]MH_I2C_Read... [00:03:47]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:03:47]Read from MH i2c: E2 [00:03:47]MH_I2C_Read... [00:03:47]Read from MH i2c: E2 FD 00 [00:03:47]MH_I2C_Read... [00:03:47]Read from MH i2c: E2 FD 00 56 17 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 79 [00:03:48]RAPDU: 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:03:48]wFMCommunicate OK [00:03:48]wFMCommunicate request_size=4 [00:03:48]MH_SAM_APDU [00:03:48]CAPDU: 80 17 00 00 [00:03:48]Write to MH i2c: E2 08 00 57 17 80 17 00 00 00 00 00 00 EE [00:03:48]Write i2c OK [00:03:48]MH_I2C_Read... [00:03:48]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [00:03:48]Read from MH i2c: E2 [00:03:48]MH_I2C_Read... [00:03:48]Read from MH i2c: E2 E2 00 [00:03:48]MH_I2C_Read... [00:03:48]Read from MH i2c: E2 E2 00 57 17 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 CC [00:03:48]RAPDU: EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:48]wFMCommunicate OK [00:03:48]SAM_PROTO_GetFMData done [00:03:48]Malloc new data [00:03:48]Malloc new data [00:03:48]Malloc new data [00:03:48]Malloc new data [00:03:48]KKMLoadAndSignCloseShiftData err=0 [00:03:48]Отчет о закрытии смены ФФД: 1.0 ИНН: 02508201610067 Кассир: Камчыбек у. Э. 03.06.2024 00:03 Смена: 322 РНМ: 0000000000098096 ЗНМ: 0300000181 СНО: Общий режим Чеков за смену: 258 ФД за смену: 260 Всего чеков: 258 ИТОГИ ПРИХОД Чеков: 252 Общий итог: 300116.29 Итого наличными: 259847.00 Итого безнал.: 40269.29 НДС 0% : 0.00 НДС 12% : 31878.42 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 2656.34 ИТОГИ ВОЗВРАТ ПРИХОДА Чеков: 6 Общий итог: 9118.00 Итого наличными: 9118.00 Итого безнал.: 0.00 НДС 0% : 0.00 НДС 12% : 968.55 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 80.71 ИТОГИ РАСХОД Чеков: 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 Нал. в кассе: 250729.00 НС Приход: 52394617.47 НС Возвр.Прихода: 2472284.00 НС Расход: 0.00 НС Возвр.Расхода: 0.00 ФД: 68244 ФМ: 0000000000965400 ФПД: 29233907217641 [00:03:48]StoreToDocumentArchive [00:03:48]shift 322 fd 68244 [00:03:48]save to /storage/0322/doc_00068244 [00:03:48]save last doc name /storage/0322/doc_00068244 to /storage/kkm_last_doc_name [00:03:48]save OK [00:03:48]Clear old archive folders... [00:03:48]Remove dir /storage/0266 [00:03:48]opendir ok [00:03:48]file . [00:03:48]file .. [00:03:48]file doc_1717372971 [00:03:48]remove file /storage/0266/doc_1717372971 [00:03:48]remove dir /storage/0266 [00:03:48]NVStorageSaveData kkm_registers [00:03:48]File name is /storage/kkm_registers [00:03:48]Write 24 bytes [00:03:48]NVStorageSaveData done [00:03:48]NVStorageSaveData kkm_registers [00:03:48]File name is /storage/kkm_registers [00:03:48]Write 24 bytes [00:03:48]NVStorageSaveData done [00:03:48]ProcessDocumentItem done err = 0, tmpTLVsize=1393 [00:03:48]tlvbuf is 005B8590 [00:03:48]SAM_PROTO_ClearQueue [00:03:48]wFMCommunicate request_size=4 [00:03:48]MH_SAM_APDU [00:03:48]CAPDU: 80 09 00 00 [00:03:48]Write to MH i2c: E2 08 00 58 17 80 09 00 00 00 00 00 00 E1 [00:03:48]Write i2c OK [00:03:48]MH_I2C_Read... [00:03:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:03:48]Read from MH i2c: E2 [00:03:48]MH_I2C_Read... [00:03:48]Read from MH i2c: E2 03 00 [00:03:48]MH_I2C_Read... [00:03:48]Read from MH i2c: E2 03 00 58 17 00 90 00 E3 [00:03:48]RAPDU: 90 00 [00:03:48]wFMCommunicate OK [00:03:48]SAM_PROTO_ClearQueue done [00:03:48]KKMCreateOFDPacket [00:03:48]OFDProtocolAddRootSTLVToBuf [00:03:48]FM_MakeSignedData [00:03:48]FM_MakeSignedData [00:03:48]SAM_PROTO_SignData [00:03:48]wFMCommunicate request_size=4 [00:03:48]MH_SAM_APDU [00:03:48]CAPDU: 80 0D 01 02 [00:03:48]Write to MH i2c: E2 08 00 59 17 80 0D 01 02 00 00 00 00 E9 [00:03:48]Write i2c OK [00:03:48]MH_I2C_Read... [00:03:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:03:48]Read from MH i2c: E2 [00:03:48]MH_I2C_Read... [00:03:48]Read from MH i2c: E2 03 00 [00:03:48]MH_I2C_Read... [00:03:48]Read from MH i2c: E2 03 00 59 17 00 90 00 E4 [00:03:48]RAPDU: 90 00 [00:03:48]wFMCommunicate OK [00:03:48]wFMCommunicate request_size=255 [00:03:48]MH_SAM_APDU [00:03:48]CAPDU: 80 0D 02 02 FA 05 00 71 05 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 19 00 D0 9A D0 B0 D0 BC D1 87 D1 8B D0 B1 D0 B5 D0 BA 20 D1 83 2E 20 D0 AD 2E 20 F4 03 04 00 5F 08 5D 66 0E 04 04 00 42 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 5E 04 04 00 02 01 00 00 57 04 04 00 04 01 00 00 AA 04 DF 04 6E 04 04 00 02 01 00 00 69 04 A5 00 6F 04 04 00 FC 00 00 00 B1 04 04 00 ED F0 C9 01 70 04 04 00 BC 7E 8C 01 72 04 03 00 31 72 3D 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 82 A4 30 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 [00:03:49]Write to MH i2c: E2 02 01 5A 17 80 0D 02 02 FA 00 05 00 71 05 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 19 00 D0 9A D0 B0 D0 BC D1 87 D1 8B D0 B1 D0 B5 D0 BA 20 D1 83 2E 20 D0 AD 2E 20 F4 03 04 00 5F 08 5D 66 0E 04 04 00 42 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 5E 04 04 00 02 01 00 00 57 04 04 00 04 01 00 00 AA 04 DF 04 6E 04 04 00 02 01 00 00 69 04 A5 00 6F 04 04 00 FC 00 00 00 B1 04 04 00 ED F0 C9 01 70 04 04 00 BC 7E 8C 01 72 04 03 00 31 72 3D 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 82 A4 30 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 00 00 D4 [00:03:49]Write i2c OK [00:03:49]MH_I2C_Read... [00:03:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:03:49]Read from MH i2c: E2 [00:03:49]MH_I2C_Read... [00:03:49]Read from MH i2c: E2 03 00 [00:03:49]MH_I2C_Read... [00:03:49]Read from MH i2c: E2 03 00 5A 17 00 90 00 E5 [00:03:49]RAPDU: 90 00 [00:03:49]wFMCommunicate OK [00:03:49]wFMCommunicate request_size=255 [00:03:49]MH_SAM_APDU [00:03:49]CAPDU: 80 0D 02 02 FA 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 A2 0D 04 6A 04 A0 00 6F 04 04 00 06 00 00 00 B1 04 03 00 B8 E9 0D 70 04 03 00 B8 E9 0D 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 57 7A 01 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 87 1F 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 [00:03:49]Write to MH i2c: E2 02 01 5B 17 80 0D 02 02 FA 00 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 A2 0D 04 6A 04 A0 00 6F 04 04 00 06 00 00 00 B1 04 03 00 B8 E9 0D 70 04 03 00 B8 E9 0D 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 57 7A 01 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 87 1F 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 00 00 08 [00:03:49]Write i2c OK [00:03:49]MH_I2C_Read... [00:03:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:03:50]Read from MH i2c: E2 [00:03:50]MH_I2C_Read... [00:03:50]Read from MH i2c: E2 03 00 [00:03:50]MH_I2C_Read... [00:03:50]Read from MH i2c: E2 03 00 5B 17 00 90 00 E6 [00:03:50]RAPDU: 90 00 [00:03:50]wFMCommunicate OK [00:03:50]wFMCommunicate request_size=255 [00:03:50]MH_SAM_APDU [00:03:50]CAPDU: 80 0D 02 02 FA 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 [00:03:50]Write to MH i2c: E2 02 01 5C 17 80 0D 02 02 FA 00 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 00 00 B4 [00:03:50]Write i2c OK [00:03:50]MH_I2C_Read... [00:03:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:03:50]Read from MH i2c: E2 [00:03:50]MH_I2C_Read... [00:03:50]Read from MH i2c: E2 03 00 [00:03:50]MH_I2C_Read... [00:03:50]Read from MH i2c: E2 03 00 5C 17 00 90 00 E7 [00:03:50]RAPDU: 90 00 [00:03:50]wFMCommunicate OK [00:03:50]wFMCommunicate request_size=255 [00:03:50]MH_SAM_APDU [00:03:50]CAPDU: 80 0D 02 02 FA 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 [00:03:50]Write to MH i2c: E2 02 01 5D 17 80 0D 02 02 FA 00 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 00 00 BB [00:03:50]Write i2c OK [00:03:50]MH_I2C_Read... [00:03:51]OFD Sender: No OFD packet to send [00:03:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:03:51]Read from MH i2c: E2 [00:03:51]MH_I2C_Read... [00:03:51]Read from MH i2c: E2 03 00 [00:03:51]MH_I2C_Read... [00:03:51]Read from MH i2c: E2 03 00 5D 17 00 90 00 E8 [00:03:51]RAPDU: 90 00 [00:03:51]wFMCommunicate OK [00:03:51]wFMCommunicate request_size=255 [00:03:51]MH_SAM_APDU [00:03:51]CAPDU: 80 0D 02 02 FA F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 [00:03:51]Write to MH i2c: E2 02 01 5E 17 80 0D 02 02 FA 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 00 83 [00:03:51]Write i2c OK [00:03:51]MH_I2C_Read... [00:03:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:03:51]Read from MH i2c: E2 [00:03:51]MH_I2C_Read... [00:03:51]Read from MH i2c: E2 03 00 [00:03:51]MH_I2C_Read... [00:03:51]Read from MH i2c: E2 03 00 5E 17 00 90 00 E9 [00:03:51]RAPDU: 90 00 [00:03:51]wFMCommunicate OK [00:03:51]wFMCommunicate request_size=152 [00:03:51]MH_SAM_APDU [00:03:51]CAPDU: 80 0D 02 02 93 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 94 0A 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 35 04 06 00 1A 96 8C A7 B4 E9 [00:03:51]Write to MH i2c: E2 9B 00 5F 17 80 0D 02 02 93 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 94 0A 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 35 04 06 00 1A 96 8C A7 B4 E9 00 00 44 [00:03:52]Write i2c OK [00:03:52]MH_I2C_Read... [00:03:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:03:52]Read from MH i2c: E2 [00:03:52]MH_I2C_Read... [00:03:52]Read from MH i2c: E2 03 00 [00:03:52]MH_I2C_Read... [00:03:52]Read from MH i2c: E2 03 00 5F 17 00 90 00 EA [00:03:52]RAPDU: 90 00 [00:03:52]wFMCommunicate OK [00:03:52]wFMCommunicate request_size=4 [00:03:52]MH_SAM_APDU [00:03:52]CAPDU: 80 0D 03 02 [00:03:52]Write to MH i2c: E2 08 00 60 17 80 0D 03 02 00 00 00 00 F2 [00:03:52]Write i2c OK [00:03:52]MH_I2C_Read... [00:03:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:03:52]Read from MH i2c: E2 [00:03:52]MH_I2C_Read... [00:03:52]Read from MH i2c: E2 0B 00 [00:03:52]MH_I2C_Read... [00:03:52]Read from MH i2c: E2 0B 00 60 17 00 76 99 D2 39 7B F0 13 A7 90 00 32 [00:03:52]RAPDU: 76 99 D2 39 7B F0 13 A7 90 00 [00:03:52]wFMCommunicate OK [00:03:52]SAM_PROTO_SignData done [00:03:52]FM_MakeSignedData done [00:03:52]CreateOFDProtocolMessage [00:03:52]wFMCommunicate request_size=4 [00:03:52]MH_SAM_APDU [00:03:52]CAPDU: 80 11 00 00 [00:03:52]Write to MH i2c: E2 08 00 61 17 80 11 00 00 00 00 00 00 F2 [00:03:52]Write i2c OK [00:03:52]MH_I2C_Read... [00:03:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:03:52]Read from MH i2c: E2 [00:03:52]MH_I2C_Read... [00:03:52]Read from MH i2c: E2 17 00 [00:03:52]MH_I2C_Read... [00:03:52]Read from MH i2c: E2 17 00 61 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 3D [00:03:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [00:03:52]wFMCommunicate OK [00:03:52]CreateOFDProtocolMessage done [00:03:52]OFDSenderStorePacket 68244 [00:03:52]StoreOFDPacket docnum=68244 [00:03:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 85 05 00 00 6A D3 7D 05 0B C3 5A 05 01 00 05 00 71 05 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 19 00 D0 9A D0 B0 D0 BC D1 87 D1 8B D0 B1 D0 B5 D0 BA 20 D1 83 2E 20 D0 AD 2E 20 F4 03 04 00 5F 08 5D 66 0E 04 04 00 42 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 5E 04 04 00 02 01 00 00 57 04 04 00 04 01 00 00 AA 04 DF 04 6E 04 04 00 02 01 00 00 69 04 A5 00 6F 04 04 00 FC 00 00 00 B1 04 04 00 ED F0 C9 01 70 04 04 00 BC 7E 8C 01 72 04 03 00 31 72 3D 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 82 A4 30 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 A2 0D 04 6A 04 A0 00 6F 04 04 00 06 00 00 00 B1 04 03 00 B8 E9 0D 70 04 03 00 B8 E9 0D 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 57 7A 01 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 87 1F 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 94 0A 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 35 04 06 00 1A 96 8C A7 B4 E9 76 99 D2 39 7B F0 13 A7 [00:03:52]CheckFolder [00:03:52]dirname=/storage/ofd_packets [00:03:52]CheckFolder done [00:03:52]ProducePacketName [00:03:52]name=ofd_packets/00068244 [00:03:52]NVStorageSaveData ofd_packets/00068244 [00:03:52]File name is /storage/ofd_packets/00068244 [00:03:52]Write 1443 bytes [00:03:52]NVStorageSaveData done [00:03:52]OFDSenderStorePacket done [00:03:52]KKMCreateOFDPacket done [00:03:52]NVStorageSaveData kkm_last_timestamp [00:03:52]File name is /storage/kkm_last_timestamp [00:03:52]Write 4 bytes [00:03:52]NVStorageSaveData done [00:03:52]ExternCall_PrintAddStr [00:03:52]wPrintStart [00:03:52]Write to MH i2c: 01 00 00 62 17 79 [00:03:52]Write i2c OK [00:03:52]MH_I2C_Read... [00:03:52]Read from MH i2c: 01 [00:03:52]MH_I2C_Read... [00:03:52]Read from MH i2c: 01 07 00 [00:03:52]MH_I2C_Read... [00:03:52]Read from MH i2c: 01 07 00 62 17 00 00 00 00 00 FF 0F 8E [00:03:52]RasterBufferAndPrint [00:03:52]line Отчет о закрытии смены [00:03:52]line ФФД: 1.0 [00:03:52]line ИНН: 02508201610067 [00:03:52]line Кассир: Камчыбек у. Э. [00:03:52]line 03.06.2024 00:03 [00:03:52]line Смена: 322 [00:03:52]line РНМ: 0000000000098096 [00:03:52]line ЗНМ: 0300000181 [00:03:52]line СНО: Общий режим [00:03:52]line Чеков за смену: 258 [00:03:52]line ФД за смену: 260 [00:03:52]line Всего чеков: 258 [00:03:52]line ИТОГИ ПРИХОД [00:03:52]line Чеков: 252 [00:03:52]line Общий итог: 300116.29 [00:03:52]line Итого наличными: 259847.00 [00:03:52]line Итого безнал.: 40269.29 [00:03:52]line НДС 0% : 0.00 [00:03:52]line НДС 12% : 31878.42 [00:03:52]line НСП 0% : 0.00 [00:03:52]line НСП 1,50% : 0.00 [00:03:52]line НСП 0,50% : 0.00 [00:03:52]line НСП 5% : 0.00 [00:03:52]line НСП 3% : 0.00 [00:03:52]line НСП 2% : 0.00 [00:03:52]line НСП 1% : 2656.34 [00:03:52]line ИТОГИ ВОЗВРАТ ПРИХОДА [00:03:52]line Чеков: 6 [00:03:52]line Общий итог: 9118.00 [00:03:52]line Итого наличными: 9118.00 [00:03:52]line Итого безнал.: 0.00 [00:03:52]line НДС 0% : 0.00 [00:03:52]line НДС 12% : 968.55 [00:03:52]line НСП 0% : 0.00 [00:03:52]line НСП 1,50% : 0.00 [00:03:52]line НСП 0,50% : 0.00 [00:03:52]line НСП 5% : 0.00 [00:03:52]line НСП 3% : 0.00 [00:03:52]line НСП 2% : 0.00 [00:03:52]line НСП 1% : 80.71 [00:03:52]line ИТОГИ РАСХОД [00:03:52]line Чеков: 0 [00:03:52]line Общий итог: 0.00 [00:03:52]line Итого наличными: 0.00 [00:03:52]line Итого безнал.: 0.00 [00:03:52]line НДС 0% : 0.00 [00:03:52]line НДС 12% : 0.00 [00:03:52]line НСП 0% : 0.00 [00:03:52]line НСП 1,50% : 0.00 [00:03:52]line НСП 0,50% : 0.00 [00:03:52]line НСП 5% : 0.00 [00:03:52]line НСП 3% : 0.00 [00:03:52]line НСП 2% : 0.00 [00:03:52]line НСП 1% : 0.00 [00:03:52]line ИТОГИ ВОЗВРАТ РАСХОДА [00:03:52]line Чеков: 0 [00:03:52]line Общий итог: 0.00 [00:03:52]line Итого наличными: 0.00 [00:03:52]line Итого безнал.: 0.00 [00:03:52]line НДС 0% : 0.00 [00:03:52]line НДС 12% : 0.00 [00:03:52]line НСП 0% : 0.00 [00:03:52]line НСП 1,50% : 0.00 [00:03:52]line НСП 0,50% : 0.00 [00:03:52]line НСП 5% : 0.00 [00:03:52]line НСП 3% : 0.00 [00:03:52]line НСП 2% : 0.00 [00:03:52]line НСП 1% : 0.00 [00:03:52]line Сумма внесений: 0.00 [00:03:52]line Сумма выплат: 0.00 [00:03:52]line Нал. в кассе: 250729.00 [00:03:52]line НС Приход: 52394617.47 [00:03:52]line НС Возвр.Прихода: 2472284.00 [00:03:52]line НС Расход: 0.00 [00:03:52]line НС Возвр.Расхода: 0.00 [00:03:52]line ФД: 68244 [00:03:52]line ФМ: 0000000000965400 [00:03:52]line ФПД: 29233907217641 [00:03:52]OFD Sender: Processing packet 68244 [packets to send 26, broken 25] [00:03:52]ProducePacketName [00:03:52]name=ofd_packets/00068244 [00:03:52]OFD Sender: To server: pG, [00:03:52]CommunicateWithHost lk.salyk.kg:30040 [00:03:52]ConnectInit lk.salyk.kg [00:03:52]written 0, free lines is 4095 [00:03:52]Connected sock=10 [00:03:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 85 05 00 00 6A D3 7D 05 0B C3 5A 05 01 00 05 00 71 05 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 19 00 D0 9A D0 B0 D0 BC D1 87 D1 8B D0 B1 D0 B5 D0 BA 20 D1 83 2E 20 D0 AD 2E 20 F4 03 04 00 5F 08 5D 66 0E 04 04 00 42 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 5E 04 04 00 02 01 00 00 57 04 04 00 04 01 00 00 AA 04 DF 04 6E 04 04 00 02 01 00 00 69 04 A5 00 6F 04 04 00 FC 00 00 00 B1 04 04 00 ED F0 C9 01 70 04 04 00 BC 7E 8C 01 72 04 03 00 31 72 3D 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 82 A4 30 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 A2 0D 04 6A 04 A0 00 6F 04 04 00 06 00 00 00 B1 04 03 00 B8 E9 0D 70 04 03 00 B8 E9 0D 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 57 7A 01 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 87 1F 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 Write to MH i2c: 09 01 00 00 F6 00 03 B2 01 17 00 C9 01 [00:03:53]F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 Write i2c OK [00:03:53]00 MH_I2C_Read... [00:03:53]03 Read from MH i2c: F7 01 03 [00:03:53]00 MH_I2C_Read... [00:03:53]00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 Read from MH i2c: F6 01 03 07 01 00 00 [00:03:53]05 MH_I2C_Read... [00:03:53]F7 Read from MH i2c: 03 01 00 07 00 00 EF B2 03 17 09 00 00 00 F6 00 03 00 01 00 00 92 06 0A F7 6C 03 [00:03:53]00 RasterBufferAndPrint [00:03:53]00 line [00:03:53]D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 line [00:03:53]70 line [00:03:53]04 line [00:03:53]00 line [00:03:53]00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 written 0, free lines is 2854 [00:03:53]09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 MH_Cut [00:03:53]00 Write to MH i2c: 00 D1 F7 01 00 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 B9 EF 17 03 01 09 A2 00 [00:03:53]F6 03 Write i2c OK [00:03:53]01 MH_I2C_Read... [00:03:53]00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 Read from MH i2c: 03 D1 00 [00:03:53]00 MH_I2C_Read... [00:03:53]EF Read from MH i2c: 03 D1 09 01 00 00 F6 [00:03:53]03 01 MH_I2C_Read... [00:03:53]00 04 F7 03 00 00 EF 03 09 00 Read from MH i2c: F6 D1 01 03 00 01 B9 00 17 05 00 F7 A1 03 [00:03:53]00 Write to MH i2c: 00 01 EF 03 00 09 00 00 BA F6 17 03 D1 01 [00:03:53]00 06 F7 03 00 00 10 04 04 00 94 0A 01 Write i2c OK [00:03:53]00 MH_I2C_Read... [00:03:53]11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 35 04 06 00 1A 96 8C A7 B4 E9 76 99 D2 39 7B F0 13 A7 [00:03:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 7A A0 47 00 11 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 35 34 30 30 10 04 04 00 94 0A 01 00 F4 03 04 00 67 AF 5C 66 B6 04 01 00 00 72 9B 3F 95 56 EE 4C EA [00:03:54]CommunicateWithHost err = 0 [00:03:54]CheckOFDResponse [00:03:54]1017 (14) - 77093643461234 [00:03:54]1041 (16) - 0000000000965400 [00:03:54]1040 (4) - 68244 [00:03:54]1012 (4) - 02.06.2024 17:44 [00:03:54]1206 (1) - 0 [00:03:54]OFD Sender: Remove packet 68244 [00:03:54]ProducePacketName [00:03:54]name=ofd_packets/00068244 [00:03:54]NVStorageDeleteData [00:03:54]OFD Sender: No OFD packet to send [00:03:54]*** Cut start [00:03:54]*** Partial cut [00:03:54]*** CUTSNS_PIN = 1 [00:03:54]*** CUTSNS_PIN = 0 [00:03:55]*** Brake cut motor [00:03:55]Read from MH i2c: 01 [00:03:55]MH_I2C_Read... [00:03:55]*** Stop cut motor [00:03:55]*** Cut end [00:03:55]Read from MH i2c: 01 07 00 [00:03:55]MH_I2C_Read... [00:03:55]Read from MH i2c: 01 07 00 BA 17 00 00 00 00 00 FF 0F E6 [00:03:55]process_action close_shift done [00:03:55]requested_data is exist [00:03:55]produce_requested_data [00:03:55]requested_item fd.num is exist - process it [00:03:55]SAM_PROTO_GetFieldsCounters [00:03:55]wFMCommunicate request_size=4 [00:03:55]MH_SAM_APDU [00:03:55]CAPDU: 80 13 00 00 [00:03:55]Write to MH i2c: E2 08 00 BB 17 80 13 00 00 00 00 00 00 4E [00:03:55]Write i2c OK [00:03:55]MH_I2C_Read... [00:03:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:03:55]Read from MH i2c: E2 [00:03:55]MH_I2C_Read... [00:03:55]Read from MH i2c: E2 62 00 [00:03:55]MH_I2C_Read... [00:03:55]Read from MH i2c: E2 62 00 BB 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 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 94 0A 01 00 0E 04 04 00 42 01 00 00 12 04 04 00 02 01 00 00 5E 04 04 00 02 01 00 00 57 04 04 00 04 01 00 00 19 04 04 00 00 00 00 00 90 00 5A [00:03: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 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 94 0A 01 00 0E 04 04 00 42 01 00 00 12 04 04 00 02 01 00 00 5E 04 04 00 02 01 00 00 57 04 04 00 04 01 00 00 19 04 04 00 00 00 00 00 90 00 [00:03:55]wFMCommunicate OK [00:03:55]SAM_PROTO_GetFieldsCounters done [00:03:55]requested_item shift.num is exist - process it [00:03:55]requested_item shift.opened is exist - process it [00:03:55]req_shift_opened [00:03:55]FM_GetShiftState [00:03:55]SAM_PROTO_GetShiftState [00:03:55]wFMCommunicate request_size=4 [00:03:55]MH_SAM_APDU [00:03:55]CAPDU: 80 13 01 00 [00:03:55]Write to MH i2c: E2 08 00 BC 17 80 13 01 00 00 00 00 00 50 [00:03:55]Write i2c OK [00:03:55]MH_I2C_Read... [00:03:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:03:55]Read from MH i2c: E2 [00:03:55]MH_I2C_Read... [00:03:55]Read from MH i2c: E2 0E 00 [00:03:55]MH_I2C_Read... [00:03:55]Read from MH i2c: E2 0E 00 BC 17 00 09 00 00 00 00 00 00 00 00 00 00 90 00 5B [00:03:55]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:03:55]wFMCommunicate OK [00:03:55]SAM_PROTO_GetShiftState done [00:03:55]FM_GetShiftState done [00:03:55]req_shift_opened done [00:03:55]requested_item shift.open_date is exist - process it [00:03:55]req_shift_open_date [00:03:55]FM_GetShiftState [00:03:55]SAM_PROTO_GetShiftState [00:03:55]wFMCommunicate request_size=4 [00:03:55]MH_SAM_APDU [00:03:55]CAPDU: 80 13 01 00 [00:03:55]Write to MH i2c: E2 08 00 BD 17 80 13 01 00 00 00 00 00 51 [00:03:55]Write i2c OK [00:03:55]MH_I2C_Read... [00:03:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:03:55]Read from MH i2c: E2 [00:03:55]MH_I2C_Read... [00:03:55]Read from MH i2c: E2 0E 00 [00:03:55]MH_I2C_Read... [00:03:55]Read from MH i2c: E2 0E 00 BD 17 00 09 00 00 00 00 00 00 00 00 00 00 90 00 5C [00:03:55]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:03:55]wFMCommunicate OK [00:03:55]SAM_PROTO_GetShiftState done [00:03:55]FM_GetShiftState done [00:03:55]req_shift_open_date done [00:03:55]produce_requested_data done [00:03:55]produce_requested_data return {"fd.num":68244,"shift.num":322,"shift.opened":0,"shift.open_date":0} [00:03:55]process_action_free close_shift [00:03:55]json_value_free [00:03:55]json_value_free done [00:03:55]process_json_proto returns [00:03:55]Send response to host [00:03:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":68244,"shift.num":322,"shift.opened":0,"shift.open_date":0}}} [00:03:55]free response buf [00:03:55]execute_script done [00:03:55]execute_script returns [00:03:55]free content buf [00:03:55]Sock 9.Close socket [00:03:55]Sock 9.Thread stoped [00:03:59]OFD Sender: No OFD packet to send [00:04:04]OFD Sender: No OFD packet to send [00:04:09]OFD Sender: No OFD packet to send [00:04:14]OFD Sender: No OFD packet to send [00:04:19]OFD Sender: No OFD packet to send [00:04:24]OFD Sender: No OFD packet to send [00:04:29]OFD Sender: No OFD packet to send [00:04:34]OFD Sender: No OFD packet to send [00:04:39]OFD Sender: No OFD packet to send [00:04:44]OFD Sender: No OFD packet to send [00:04:49]OFD Sender: No OFD packet to send [00:04:54]OFD Sender: No OFD packet to send [00:04:59]OFD Sender: No OFD packet to send [00:05:04]OFD Sender: No OFD packet to send [00:05:09]OFD Sender: No OFD packet to send [00:05:14]OFD Sender: No OFD packet to send [00:05:19]OFD Sender: No OFD packet to send [00:05:24]OFD Sender: No OFD packet to send [00:05:29]OFD Sender: No OFD packet to send [00:05:34]OFD Sender: No OFD packet to send [00:05:39]OFD Sender: No OFD packet to send [00:05:44]OFD Sender: No OFD packet to send [00:05:49]OFD Sender: No OFD packet to send [00:05:54]OFD Sender: No OFD packet to send [00:05:59]OFD Sender: No OFD packet to send [00:06:04]OFD Sender: No OFD packet to send [00:06:09]OFD Sender: No OFD packet to send [00:06:14]OFD Sender: No OFD packet to send [00:06:19]OFD Sender: No OFD packet to send [00:06:24]OFD Sender: No OFD packet to send [00:06:29]OFD Sender: No OFD packet to send [00:06:34]OFD Sender: No OFD packet to send [00:06:39]OFD Sender: No OFD packet to send [00:06:44]OFD Sender: No OFD packet to send [00:06:49]OFD Sender: No OFD packet to send [00:06:54]OFD Sender: No OFD packet to send [00:06:59]OFD Sender: No OFD packet to send [00:07:04]OFD Sender: No OFD packet to send [00:07:09]OFD Sender: No OFD packet to send [00:07:14]OFD Sender: No OFD packet to send [00:07:19]OFD Sender: No OFD packet to send [00:07:24]OFD Sender: No OFD packet to send [00:07:29]OFD Sender: No OFD packet to send [00:07:34]OFD Sender: No OFD packet to send [00:07:39]OFD Sender: No OFD packet to send [00:07:44]OFD Sender: No OFD packet to send [00:07:49]OFD Sender: No OFD packet to send [00:07:54]OFD Sender: No OFD packet to send [00:07:59]OFD Sender: No OFD packet to send [00:08:04]OFD Sender: No OFD packet to send [00:08:09]OFD Sender: No OFD packet to send [00:08:14]OFD Sender: No OFD packet to send [00:08:19]OFD Sender: No OFD packet to send [00:08:24]OFD Sender: No OFD packet to send [00:08:29]OFD Sender: No OFD packet to send [00:08:34]OFD Sender: No OFD packet to send [00:08:39]OFD Sender: No OFD packet to send [00:08:44]OFD Sender: No OFD packet to send [00:08:49]OFD Sender: No OFD packet to send [00:08:54]OFD Sender: No OFD packet to send [00:08:59]OFD Sender: No OFD packet to send [00:09:04]OFD Sender: No OFD packet to send [00:09:09]OFD Sender: No OFD packet to send [00:09:14]OFD Sender: No OFD packet to send [00:09:19]OFD Sender: No OFD packet to send [00:09:24]OFD Sender: No OFD packet to send [00:09:29]OFD Sender: No OFD packet to send [00:09:34]OFD Sender: No OFD packet to send [00:09:39]OFD Sender: No OFD packet to send [00:09:44]OFD Sender: No OFD packet to send [00:09:49]OFD Sender: No OFD packet to send [00:09:54]OFD Sender: No OFD packet to send [00:09:59]OFD Sender: No OFD packet to send [00:10:04]OFD Sender: No OFD packet to send [00:10:09]OFD Sender: No OFD packet to send [00:10:15]OFD Sender: No OFD packet to send [00:10:20]OFD Sender: No OFD packet to send [00:10:25]OFD Sender: No OFD packet to send [00:10:30]OFD Sender: No OFD packet to send [00:10:35]OFD Sender: No OFD packet to send [00:10:40]OFD Sender: No OFD packet to send [00:10:45]OFD Sender: No OFD packet to send [00:10:50]OFD Sender: No OFD packet to send [00:10:55]OFD Sender: No OFD packet to send [00:11:00]OFD Sender: No OFD packet to send [00:11:05]OFD Sender: No OFD packet to send [00:11:10]OFD Sender: No OFD packet to send [00:11:15]OFD Sender: No OFD packet to send [00:11:20]OFD Sender: No OFD packet to send [00:11:25]OFD Sender: No OFD packet to send [00:11:30]OFD Sender: No OFD packet to send [00:11:35]OFD Sender: No OFD packet to send [00:11:40]OFD Sender: No OFD packet to send [00:11:45]OFD Sender: No OFD packet to send [00:11:50]OFD Sender: No OFD packet to send [00:11:55]OFD Sender: No OFD packet to send [00:12:00]OFD Sender: No OFD packet to send [00:12:05]OFD Sender: No OFD packet to send [00:12:10]OFD Sender: No OFD packet to send [00:12:15]OFD Sender: No OFD packet to send [00:12:20]OFD Sender: No OFD packet to send [00:12:25]OFD Sender: No OFD packet to send [00:12:30]OFD Sender: No OFD packet to send [00:12:35]OFD Sender: No OFD packet to send [00:12:40]OFD Sender: No OFD packet to send [00:12:45]OFD Sender: No OFD packet to send [00:12:50]OFD Sender: No OFD packet to send [00:12:55]OFD Sender: No OFD packet to send [00:13:00]OFD Sender: No OFD packet to send [00:13:05]OFD Sender: No OFD packet to send [00:13:10]OFD Sender: No OFD packet to send [00:13:15]OFD Sender: No OFD packet to send [00:13:20]OFD Sender: No OFD packet to send [00:13:25]OFD Sender: No OFD packet to send [00:13:30]OFD Sender: No OFD packet to send [00:13:35]OFD Sender: No OFD packet to send [00:13:40]OFD Sender: No OFD packet to send [00:13:45]OFD Sender: No OFD packet to send [00:13:50]OFD Sender: No OFD packet to send [00:13:55]OFD Sender: No OFD packet to send [00:14:00]OFD Sender: No OFD packet to send [00:14:05]OFD Sender: No OFD packet to send [00:14:10]OFD Sender: No OFD packet to send [00:14:15]OFD Sender: No OFD packet to send [00:14:20]OFD Sender: No OFD packet to send [00:14:25]OFD Sender: No OFD packet to send [00:14:30]OFD Sender: No OFD packet to send [00:14:35]OFD Sender: No OFD packet to send [00:14:40]OFD Sender: No OFD packet to send [00:14:45]OFD Sender: No OFD packet to send [00:14:50]OFD Sender: No OFD packet to send [00:14:55]OFD Sender: No OFD packet to send [00:15:00]OFD Sender: No OFD packet to send [00:15:05]OFD Sender: No OFD packet to send [00:15:10]OFD Sender: No OFD packet to send [00:15:15]OFD Sender: No OFD packet to send [00:15:20]OFD Sender: No OFD packet to send [00:15:25]OFD Sender: No OFD packet to send [00:15:30]OFD Sender: No OFD packet to send [00:15:35]OFD Sender: No OFD packet to send [00:15:40]OFD Sender: No OFD packet to send [00:15:45]OFD Sender: No OFD packet to send [00:15:50]OFD Sender: No OFD packet to send [00:15:55]OFD Sender: No OFD packet to send [00:16:00]OFD Sender: No OFD packet to send [00:16:05]OFD Sender: No OFD packet to send [00:16:10]OFD Sender: No OFD packet to send [00:16:15]OFD Sender: No OFD packet to send [00:16:20]OFD Sender: No OFD packet to send [00:16:25]OFD Sender: No OFD packet to send [00:16:30]OFD Sender: No OFD packet to send [00:16:35]OFD Sender: No OFD packet to send [00:16:40]OFD Sender: No OFD packet to send [00:16:45]OFD Sender: No OFD packet to send [00:16:50]OFD Sender: No OFD packet to send [00:16:55]OFD Sender: No OFD packet to send [00:17:00]OFD Sender: No OFD packet to send [00:17:05]OFD Sender: No OFD packet to send [00:17:10]OFD Sender: No OFD packet to send [00:17:15]OFD Sender: No OFD packet to send [00:17:20]OFD Sender: No OFD packet to send [00:17:25]OFD Sender: No OFD packet to send [00:17:30]OFD Sender: No OFD packet to send [00:17:35]OFD Sender: No OFD packet to send [00:17:40]OFD Sender: No OFD packet to send [00:17:45]OFD Sender: No OFD packet to send [00:17:50]OFD Sender: No OFD packet to send [00:17:55]OFD Sender: No OFD packet to send [00:18:00]OFD Sender: No OFD packet to send [00:18:05]OFD Sender: No OFD packet to send [00:18:10]OFD Sender: No OFD packet to send [00:18:15]OFD Sender: No OFD packet to send [00:18:20]OFD Sender: No OFD packet to send [00:18:25]OFD Sender: No OFD packet to send [00:18:30]OFD Sender: No OFD packet to send [00:18:35]OFD Sender: No OFD packet to send [00:18:40]OFD Sender: No OFD packet to send [00:18:45]OFD Sender: No OFD packet to send [00:18:50]OFD Sender: No OFD packet to send [00:18:55]OFD Sender: No OFD packet to send [00:19:00]OFD Sender: No OFD packet to send [00:19:05]OFD Sender: No OFD packet to send [00:19:10]OFD Sender: No OFD packet to send [00:19:15]OFD Sender: No OFD packet to send [00:19:20]OFD Sender: No OFD packet to send [00:19:25]OFD Sender: No OFD packet to send [00:19:30]OFD Sender: No OFD packet to send [00:19:35]OFD Sender: No OFD packet to send [00:19:40]OFD Sender: No OFD packet to send [00:19:45]OFD Sender: No OFD packet to send [00:19:50]OFD Sender: No OFD packet to send [00:19:55]OFD Sender: No OFD packet to send [00:20:00]OFD Sender: No OFD packet to send [00:20:05]OFD Sender: No OFD packet to send [00:20:10]OFD Sender: No OFD packet to send [00:20:15]OFD Sender: No OFD packet to send [00:20:20]OFD Sender: No OFD packet to send [00:20:25]OFD Sender: No OFD packet to send [00:20:30]OFD Sender: No OFD packet to send [00:20:35]OFD Sender: No OFD packet to send [00:20:40]OFD Sender: No OFD packet to send [00:20:45]OFD Sender: No OFD packet to send [00:20:50]OFD Sender: No OFD packet to send [00:20:55]OFD Sender: No OFD packet to send [00:21:00]OFD Sender: No OFD packet to send [00:21: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:55]OFD Sender: No OFD packet to send [00:25:00]OFD Sender: No OFD packet to send [00:25:05]OFD Sender: No OFD packet to send [00:25:10]OFD Sender: No OFD packet to send [00:25:15]OFD Sender: No OFD packet to send [00:25:20]OFD Sender: No OFD packet to send [00:25:25]OFD Sender: No OFD packet to send [00:25:30]OFD Sender: No OFD packet to send [00:25:35]OFD Sender: No OFD packet to send [00:25:40]OFD Sender: No OFD packet to send [00:25:45]OFD Sender: No OFD packet to send [00:25:50]OFD Sender: No OFD packet to send [00:25:55]OFD Sender: No OFD packet to send [00:26:00]OFD Sender: No OFD packet to send [00:26:05]OFD Sender: No OFD packet to send [00:26:10]OFD Sender: No OFD packet to send [00:26:12]accept exits with 7 [00:26:12]New connection [00:26:12]New thread 3066686820 created [00:26:12]Thread 3066543460 joined [00:26:12]Waiting for new connection... [00:26:12] Sock 7.Parse request [00:26:12]Sock 7.Check first char [00:26:12]Sock 7.First char is OK [00:26:12]request: POST /json_proto HTTP/1.0 [00:26:12]Method: POST [00:26:12]URL: /json_proto [00:26:12]Method is POST - this is cgi request [00:26:12]url: /json_proto [00:26:12]query_string will be loaded in cgi processing [00:26:12]execute_cgi json_proto POST (null) [00:26:12]execute_cgi path=json_proto method=POST [00:26:12]POST find Content-Length [00:26:12]Host: 172.17.36.132:8080 [00:26:12]Content-Length: 215 [00:26:12]Content-Type: application/json [00:26:12] [00:26:12]POST finish read [00:26:12]Found Content-Length = 215 [00:26:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:26:12]execute_script... [00:26:12]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:26:12]POST & json_proto [00:26:12]process_json_proto [00:26:12]json parsed OK: [00:26:12]protocol is kg_v1.0 [00:26:12]action value=get_value [00:26:12]process_action get_value [00:26:12]cmd_get_value [00:26:12]process_action get_value done [00:26:12]requested_data is exist [00:26:12]produce_requested_data [00:26:12]requested_item kkm.sn is exist - process it [00:26:12]requested_item kkm.ver is exist - process it [00:26:12]requested_item fm.sn is exist - process it [00:26:12]wFMCommunicate request_size=4 [00:26:12]MH_SAM_APDU [00:26:12]CAPDU: 80 11 00 00 [00:26:12]Write to MH i2c: E2 08 00 BE 17 80 11 00 00 00 00 00 00 4F [00:26:12]Write i2c OK [00:26:12]MH_I2C_Read... [00:26:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:26:12]Read from MH i2c: E2 [00:26:12]MH_I2C_Read... [00:26:12]Read from MH i2c: E2 17 00 [00:26:12]MH_I2C_Read... [00:26:12]Read from MH i2c: E2 17 00 BE 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 9A [00:26:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [00:26:12]wFMCommunicate OK [00:26:12]requested_item fd.num is exist - process it [00:26:12]SAM_PROTO_GetFieldsCounters [00:26:12]wFMCommunicate request_size=4 [00:26:12]MH_SAM_APDU [00:26:12]CAPDU: 80 13 00 00 [00:26:12]Write to MH i2c: E2 08 00 BF 17 80 13 00 00 00 00 00 00 52 [00:26:12]Write i2c OK [00:26:12]MH_I2C_Read... [00:26:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:26:12]Read from MH i2c: E2 [00:26:12]MH_I2C_Read... [00:26:12]Read from MH i2c: E2 62 00 [00:26:12]MH_I2C_Read... [00:26:12]Read from MH i2c: E2 62 00 BF 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 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 94 0A 01 00 0E 04 04 00 42 01 00 00 12 04 04 00 02 01 00 00 5E 04 04 00 02 01 00 00 57 04 04 00 04 01 00 00 19 04 04 00 00 00 00 00 90 00 5E [00:26: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 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 94 0A 01 00 0E 04 04 00 42 01 00 00 12 04 04 00 02 01 00 00 5E 04 04 00 02 01 00 00 57 04 04 00 04 01 00 00 19 04 04 00 00 00 00 00 90 00 [00:26:12]wFMCommunicate OK [00:26:12]SAM_PROTO_GetFieldsCounters done [00:26:12]requested_item shift.num is exist - process it [00:26:12]requested_item shift.opened is exist - process it [00:26:12]req_shift_opened [00:26:12]FM_GetShiftState [00:26:12]SAM_PROTO_GetShiftState [00:26:12]wFMCommunicate request_size=4 [00:26:12]MH_SAM_APDU [00:26:12]CAPDU: 80 13 01 00 [00:26:12]Write to MH i2c: E2 08 00 C0 17 80 13 01 00 00 00 00 00 54 [00:26:12]Write i2c OK [00:26:12]MH_I2C_Read... [00:26:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:26:12]Read from MH i2c: E2 [00:26:12]MH_I2C_Read... [00:26:12]Read from MH i2c: E2 0E 00 [00:26:12]MH_I2C_Read... [00:26:12]Read from MH i2c: E2 0E 00 C0 17 00 09 00 00 00 00 00 00 00 00 00 00 90 00 5F [00:26:12]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:26:12]wFMCommunicate OK [00:26:12]SAM_PROTO_GetShiftState done [00:26:12]FM_GetShiftState done [00:26:12]req_shift_opened done [00:26:12]requested_item shift.open_date is exist - process it [00:26:12]req_shift_open_date [00:26:12]FM_GetShiftState [00:26:12]SAM_PROTO_GetShiftState [00:26:12]wFMCommunicate request_size=4 [00:26:12]MH_SAM_APDU [00:26:12]CAPDU: 80 13 01 00 [00:26:12]Write to MH i2c: E2 08 00 C1 17 80 13 01 00 00 00 00 00 55 [00:26:12]Write i2c OK [00:26:12]MH_I2C_Read... [00:26:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:26:12]Read from MH i2c: E2 [00:26:12]MH_I2C_Read... [00:26:12]Read from MH i2c: E2 0E 00 [00:26:12]MH_I2C_Read... [00:26:12]Read from MH i2c: E2 0E 00 C1 17 00 09 00 00 00 00 00 00 00 00 00 00 90 00 60 [00:26:12]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:26:12]wFMCommunicate OK [00:26:12]SAM_PROTO_GetShiftState done [00:26:12]FM_GetShiftState done [00:26:12]req_shift_open_date done [00:26:12]produce_requested_data done [00:26:12]produce_requested_data return {"kkm.sn":"0300000181","kkm.ver":"001","fm.sn":"0000000000965400","fd.num":68244,"shift.num":322,"shift.opened":0,"shift.open_date":0} [00:26:12]process_action_free get_value [00:26:12]json_value_free [00:26:12]json_value_free done [00:26:12]process_json_proto returns [00:26:12]Send response to host [00:26:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000181","kkm.ver":"001","fm.sn":"0000000000965400","fd.num":68244,"shift.num":322,"shift.opened":0,"shift.open_date":0}}} [00:26:12]free response buf [00:26:12]execute_script done [00:26:12]execute_script returns [00:26:12]free content buf [00:26:12]Sock 7.Close socket [00:26:12]Sock 7.Thread stoped [00:26:12]accept exits with 9 [00:26:12]New connection [00:26:12]New thread 3066543460 created [00:26:12]Thread 3066686820 joined [00:26:12]Waiting for new connection... [00:26:12] Sock 9.Parse request [00:26:12]Sock 9.Check first char [00:26:12]Sock 9.First char is OK [00:26:12]request: POST /json_proto HTTP/1.0 [00:26:12]Method: POST [00:26:12]URL: /json_proto [00:26:12]Method is POST - this is cgi request [00:26:12]url: /json_proto [00:26:12]query_string will be loaded in cgi processing [00:26:12]execute_cgi json_proto POST (null) [00:26:12]execute_cgi path=json_proto method=POST [00:26:12]POST find Content-Length [00:26:12]Host: 172.17.36.132:8080 [00:26:12]Content-Length: 331 [00:26:12]Content-Type: application/json [00:26:12] [00:26:12]POST finish read [00:26:12]Found Content-Length = 331 [00:26:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:26:12]execute_script... [00:26:12]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:26:12]POST & json_proto [00:26:12]process_json_proto [00:26:12]json parsed OK: [00:26:12]protocol is kg_v1.0 [00:26:12]action value=get_value [00:26:12]process_action get_value [00:26:12]cmd_get_value [00:26:12]process_action get_value done [00:26:12]requested_data is exist [00:26:12]produce_requested_data [00:26:12]requested_item fm.sale.total is exist - process it [00:26:12]SAM_PROTO_GetFMData [00:26:12]wFMCommunicate request_size=4 [00:26:12]MH_SAM_APDU [00:26:12]CAPDU: 80 13 03 00 [00:26:12]Write to MH i2c: E2 08 00 C2 17 80 13 03 00 00 00 00 00 58 [00:26:12]Write i2c OK [00:26:12]MH_I2C_Read... [00:26:13]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:26:13]Read from MH i2c: E2 [00:26:13]MH_I2C_Read... [00:26:13]Read from MH i2c: E2 FD 00 [00:26:13]MH_I2C_Read... [00:26:13]Read from MH i2c: E2 FD 00 C2 17 00 C5 04 85 04 C1 04 6E 04 04 00 0F 08 01 00 69 04 A3 00 6F 04 04 00 04 03 01 00 B1 04 05 00 73 D7 4B 38 01 70 04 05 00 6C E6 F0 0B 01 72 04 04 00 07 F1 5A 2C 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 80 A3 2C 21 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 08 9F C3 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 9C 00 6F 04 04 00 0B 05 00 00 B1 04 04 00 F0 67 BC 0E 70 04 04 00 F0 67 BC 0E 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 3E AA 90 01 EF 03 09 90 00 DD [00:26:13]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 0F 08 01 00 69 04 A3 00 6F 04 04 00 04 03 01 00 B1 04 05 00 73 D7 4B 38 01 70 04 05 00 6C E6 F0 0B 01 72 04 04 00 07 F1 5A 2C 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 80 A3 2C 21 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 08 9F C3 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 9C 00 6F 04 04 00 0B 05 00 00 B1 04 04 00 F0 67 BC 0E 70 04 04 00 F0 67 BC 0E 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 3E AA 90 01 EF 03 09 90 00 [00:26:13]wFMCommunicate OK [00:26:13]wFMCommunicate request_size=4 [00:26:13]MH_SAM_APDU [00:26:13]CAPDU: 80 17 00 00 [00:26:13]Write to MH i2c: E2 08 00 C3 17 80 17 00 00 00 00 00 00 5A [00:26:13]Write i2c OK [00:26:13]MH_I2C_Read... [00:26:13]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:26:13]Read from MH i2c: E2 [00:26:13]MH_I2C_Read... [00:26:13]Read from MH i2c: E2 FD 00 [00:26:13]MH_I2C_Read... [00:26:13]Read from MH i2c: E2 FD 00 C3 17 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 12 63 21 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 A6 [00:26:13]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 12 63 21 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 [00:26:13]wFMCommunicate OK [00:26:13]wFMCommunicate request_size=4 [00:26:13]MH_SAM_APDU [00:26:13]CAPDU: 80 17 00 00 [00:26:13]Write to MH i2c: E2 08 00 C4 17 80 17 00 00 00 00 00 00 5B [00:26:13]Write i2c OK [00:26:13]MH_I2C_Read... [00:26:13]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:26:13]Read from MH i2c: E2 [00:26:13]MH_I2C_Read... [00:26:13]Read from MH i2c: E2 FD 00 [00:26:13]MH_I2C_Read... [00:26:13]Read from MH i2c: E2 FD 00 C4 17 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 6D [00:26:13]RAPDU: 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:26:13]wFMCommunicate OK [00:26:13]wFMCommunicate request_size=4 [00:26:13]MH_SAM_APDU [00:26:13]CAPDU: 80 17 00 00 [00:26:13]Write to MH i2c: E2 08 00 C5 17 80 17 00 00 00 00 00 00 5C [00:26:13]Write i2c OK [00:26:13]MH_I2C_Read... [00:26:14]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:26:14]Read from MH i2c: E2 [00:26:14]MH_I2C_Read... [00:26:14]Read from MH i2c: E2 FD 00 [00:26:14]MH_I2C_Read... [00:26:14]Read from MH i2c: E2 FD 00 C5 17 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 E8 [00:26:14]RAPDU: 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:26:14]wFMCommunicate OK [00:26:14]wFMCommunicate request_size=4 [00:26:14]MH_SAM_APDU [00:26:14]CAPDU: 80 17 00 00 [00:26:14]Write to MH i2c: E2 08 00 C6 17 80 17 00 00 00 00 00 00 5D [00:26:14]Write i2c OK [00:26:14]MH_I2C_Read... [00:26:14]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [00:26:14]Read from MH i2c: E2 [00:26:14]MH_I2C_Read... [00:26:14]Read from MH i2c: E2 E2 00 [00:26:14]MH_I2C_Read... [00:26:14]Read from MH i2c: E2 E2 00 C6 17 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 3B [00:26:14]RAPDU: EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:26:14]wFMCommunicate OK [00:26:14]SAM_PROTO_GetFMData done [00:26:14]requested_item fm.sale_refund.total is exist - process it [00:26:14]requested_item fm.buy.total is exist - process it [00:26:14]requested_item shift.sale.total is exist - process it [00:26:14]SAM_PROTO_GetShiftData [00:26:14]wFMCommunicate request_size=4 [00:26:14]MH_SAM_APDU [00:26:14]CAPDU: 80 13 02 00 [00:26:14]Write to MH i2c: E2 08 00 C7 17 80 13 02 00 00 00 00 00 5C [00:26:14]Write i2c OK [00:26:14]MH_I2C_Read... [00:26:14]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:26:14]Read from MH i2c: E2 [00:26:14]MH_I2C_Read... [00:26:14]Read from MH i2c: E2 FD 00 [00:26:14]MH_I2C_Read... [00:26:14]Read from MH i2c: E2 FD 00 C7 17 00 BC 04 AA 04 B8 04 6E 04 04 00 02 01 00 00 69 04 9E 00 6F 04 04 00 FC 00 00 00 B1 04 04 00 ED F0 C9 01 70 04 04 00 BC 7E 8C 01 72 04 03 00 31 72 3D 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 82 A4 30 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 A2 0D 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 B8 E9 0D 70 04 03 00 B8 E9 0D 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 57 7A 01 EF 03 09 00 F6 03 01 00 00 F7 03 90 00 FA [00:26:14]RAPDU: BC 04 AA 04 B8 04 6E 04 04 00 02 01 00 00 69 04 9E 00 6F 04 04 00 FC 00 00 00 B1 04 04 00 ED F0 C9 01 70 04 04 00 BC 7E 8C 01 72 04 03 00 31 72 3D 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 82 A4 30 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 A2 0D 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 B8 E9 0D 70 04 03 00 B8 E9 0D 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 57 7A 01 EF 03 09 00 F6 03 01 00 00 F7 03 90 00 [00:26:14]wFMCommunicate OK [00:26:14]wFMCommunicate request_size=4 [00:26:14]MH_SAM_APDU [00:26:14]CAPDU: 80 17 00 00 [00:26:14]Write to MH i2c: E2 08 00 C8 17 80 17 00 00 00 00 00 00 5F [00:26:14]Write i2c OK [00:26:14]MH_I2C_Read... [00:26:15]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:26:15]Read from MH i2c: E2 [00:26:15]MH_I2C_Read... [00:26:15]Read from MH i2c: E2 FD 00 [00:26:15]MH_I2C_Read... [00:26:15]Read from MH i2c: E2 FD 00 C8 17 00 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 87 1F EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 AF [00:26:15]RAPDU: 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 87 1F EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:26:15]wFMCommunicate OK [00:26:15]wFMCommunicate request_size=4 [00:26:15]MH_SAM_APDU [00:26:15]CAPDU: 80 17 00 00 [00:26:15]Write to MH i2c: E2 08 00 C9 17 80 17 00 00 00 00 00 00 60 [00:26:15]Write i2c OK [00:26:15]MH_I2C_Read... [00:26:15]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:26:15]Read from MH i2c: E2 [00:26:15]MH_I2C_Read... [00:26:15]Read from MH i2c: E2 FD 00 [00:26:15]MH_I2C_Read... [00:26:15]Read from MH i2c: E2 FD 00 C9 17 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 89 [00:26:15]RAPDU: 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:26:15]wFMCommunicate OK [00:26:15]wFMCommunicate request_size=4 [00:26:15]MH_SAM_APDU [00:26:15]CAPDU: 80 17 00 00 [00:26:15]Write to MH i2c: E2 08 00 CA 17 80 17 00 00 00 00 00 00 61 [00:26:15]Write i2c OK [00:26:15]MH_I2C_Read... [00:26:15]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:26:15]Read from MH i2c: E2 [00:26:15]MH_I2C_Read... [00:26:15]Read from MH i2c: E2 FD 00 [00:26:15]MH_I2C_Read... [00:26:15]Read from MH i2c: E2 FD 00 CA 17 00 03 00 00 EF 03 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 90 00 E2 [00:26:15]RAPDU: 03 00 00 EF 03 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 90 00 [00:26:15]wFMCommunicate OK [00:26:15]wFMCommunicate request_size=4 [00:26:15]MH_SAM_APDU [00:26:15]CAPDU: 80 17 00 00 [00:26:15]Write to MH i2c: E2 08 00 CB 17 80 17 00 00 00 00 00 00 62 [00:26:15]Write i2c OK [00:26:15]MH_I2C_Read... [00:26:15]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 214! [00:26:15]Read from MH i2c: E2 [00:26:15]MH_I2C_Read... [00:26:15]Read from MH i2c: E2 D9 00 [00:26:15]MH_I2C_Read... [00:26:15]OFD Sender: No OFD packet to send [00:26:15]Read from MH i2c: E2 D9 00 CB 17 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 41 [00:26:15]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:26:15]wFMCommunicate OK [00:26:15]SAM_PROTO_GetShiftData done [00:26:15]requested_item shift.sale.total_cash is exist - process it [00:26:15]requested_item shift.sale_refund.total is exist - process it [00:26:15]requested_item shift.sale_refund.total_cash is exist - process it [00:26:15]requested_item shift.buy.total is exist - process it [00:26:15]requested_item shift.buy.total_cash is exist - process it [00:26:15]produce_requested_data done [00:26:15]produce_requested_data return {"fm.sale.total":52394617.47,"fm.sale_refund.total":2472284.00,"fm.buy.total":0.00,"shift.sale.total":300116.29,"shift.sale.total_cash":259847.00,"shift.sale_refund.total":9118.00,"shift.sale_refund.total_cash":9118.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [00:26:15]process_action_free get_value [00:26:15]json_value_free [00:26:15]json_value_free done [00:26:15]process_json_proto returns [00:26:15]Send response to host [00:26:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":52394617.47,"fm.sale_refund.total":2472284.00,"fm.buy.total":0.00,"shift.sale.total":300116.29,"shift.sale.total_cash":259847.00,"shift.sale_refund.total":9118.00,"shift.sale_refund.total_cash":9118.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [00:26:15]free response buf [00:26:15]execute_script done [00:26:15]execute_script returns [00:26:15]free content buf [00:26:15]Sock 9.Close socket [00:26:15]Sock 9.Thread stoped [00:26:15]accept exits with 7 [00:26:15]New connection [00:26:15]New thread 3066686820 created [00:26:15]Thread 3066543460 joined [00:26:15]Waiting for new connection... [00:26:15] Sock 7.Parse request [00:26:15]Sock 7.Check first char [00:26:15]Sock 7.First char is OK [00:26:15]request: POST /json_proto HTTP/1.0 [00:26:15]Method: POST [00:26:15]URL: /json_proto [00:26:15]Method is POST - this is cgi request [00:26:15]url: /json_proto [00:26:15]query_string will be loaded in cgi processing [00:26:15]execute_cgi json_proto POST (null) [00:26:15]execute_cgi path=json_proto method=POST [00:26:15]POST find Content-Length [00:26:15]Host: 172.17.36.132:8080 [00:26:15]Content-Length: 247 [00:26:15]Content-Type: application/json [00:26:15] [00:26:15]POST finish read [00:26:15]Found Content-Length = 247 [00:26:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "open_shift", "params" : { "operator" : "\u0411\u0430\u043B\u0430\u0435\u0432 \u0410. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:26:15]execute_script... [00:26:15]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "open_shift", "params" : { "operator" : "\u0411\u0430\u043B\u0430\u0435\u0432 \u0410. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:26:15]POST & json_proto [00:26:15]process_json_proto [00:26:15]json parsed OK: [00:26:15]protocol is kg_v1.0 [00:26:15]action value=open_shift [00:26:15]process_action open_shift [00:26:15]cmd_open_shift [00:26:15]MH_GetDate [00:26:15]Write to MH i2c: F0 00 00 CC 17 D2 [00:26:15]Write i2c OK [00:26:15]MH_I2C_Read... [00:26:15]Read from MH i2c: F0 [00:26:15]MH_I2C_Read... [00:26:15]Read from MH i2c: F0 09 00 [00:26:15]MH_I2C_Read... [00:26:15]Read from MH i2c: F0 09 00 CC 17 00 AA 0D 5D 66 B2 22 B0 64 3D [00:26:15]GetLastDocTimeStamp 1717373023 [00:26:15]current date 1717374378 [00:26:15]FM_GetShiftState [00:26:15]SAM_PROTO_GetShiftState [00:26:15]wFMCommunicate request_size=4 [00:26:15]MH_SAM_APDU [00:26:15]CAPDU: 80 13 01 00 [00:26:15]Write to MH i2c: E2 08 00 CD 17 80 13 01 00 00 00 00 00 61 [00:26:15]Write i2c OK [00:26:15]MH_I2C_Read... [00:26:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:26:16]Read from MH i2c: E2 [00:26:16]MH_I2C_Read... [00:26:16]Read from MH i2c: E2 0E 00 [00:26:16]MH_I2C_Read... [00:26:16]Read from MH i2c: E2 0E 00 CD 17 00 09 00 00 00 00 00 00 00 00 00 00 90 00 6C [00:26:16]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:26:16]wFMCommunicate OK [00:26:16]SAM_PROTO_GetShiftState done [00:26:16]FM_GetShiftState done [00:26:16]KKMCreateOpenShiftDocument [00:26:16]Load OK [00:26:16]Malloc new data [00:26:16]MH_GetDate [00:26:16]Write to MH i2c: F0 00 00 CE 17 D4 [00:26:16]Write i2c OK [00:26:16]MH_I2C_Read... [00:26:16]Read from MH i2c: F0 [00:26:16]MH_I2C_Read... [00:26:16]Read from MH i2c: F0 09 00 [00:26:16]MH_I2C_Read... [00:26:16]Read from MH i2c: F0 09 00 CE 17 00 AA 0D 5D 66 B2 22 B0 64 3F [00:26:16]Malloc new data [00:26:16]KKMCreateOpenShiftDocument OK [00:26:16]KKMSetOpenShiftData OK [00:26:16]ProcessDocumentItem done err = 0, tmpTLVsize=203 [00:26:16]tlvbuf is 003CFC10 [00:26:16]KKMLoadAndSignOpenShiftData [00:26:16]SAM_PROTO_ProcessDocument [00:26:16]wFMCommunicate request_size=9 [00:26:16]MH_SAM_APDU [00:26:16]CAPDU: 80 15 01 00 04 02 00 CB 00 [00:26:16]Write to MH i2c: E2 0C 00 CF 17 80 15 01 00 04 00 02 00 CB 00 00 00 3A [00:26:16]Write i2c OK [00:26:16]MH_I2C_Read... [00:26:16]*** iso7816_exchange 80 15 01 00... Resp OK rsp.len_out = 0! [00:26:16]Read from MH i2c: E2 [00:26:16]MH_I2C_Read... [00:26:16]Read from MH i2c: E2 03 00 [00:26:16]MH_I2C_Read... [00:26:16]Read from MH i2c: E2 03 00 CF 17 00 90 00 5A [00:26:16]RAPDU: 90 00 [00:26:16]wFMCommunicate OK [00:26:16]wFMCommunicate request_size=23 [00:26:16]MH_SAM_APDU [00:26:16]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:26:16]Write to MH i2c: E2 1A 00 D0 17 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 5C [00:26:16]Write i2c OK [00:26:16]MH_I2C_Read... [00:26:16]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:26:16]Read from MH i2c: E2 [00:26:16]MH_I2C_Read... [00:26:16]Read from MH i2c: E2 03 00 [00:26:16]MH_I2C_Read... [00:26:16]Read from MH i2c: E2 03 00 D0 17 00 90 00 5B [00:26:16]RAPDU: 90 00 [00:26:16]wFMCommunicate OK [00:26:16]wFMCommunicate request_size=26 [00:26:16]MH_SAM_APDU [00:26:16]CAPDU: 80 15 02 00 15 FD 03 11 00 D0 91 D0 B0 D0 BB D0 B0 D0 B5 D0 B2 20 D0 90 2E 20 [00:26:16]Write to MH i2c: E2 1D 00 D1 17 80 15 02 00 15 00 FD 03 11 00 D0 91 D0 B0 D0 BB D0 B0 D0 B5 D0 B2 20 D0 90 2E 20 00 00 64 [00:26:16]Write i2c OK [00:26:16]MH_I2C_Read... [00:26:16]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:26:16]Read from MH i2c: E2 [00:26:16]MH_I2C_Read... [00:26:16]Read from MH i2c: E2 03 00 [00:26:16]MH_I2C_Read... [00:26:16]Read from MH i2c: E2 03 00 D1 17 00 90 00 5C [00:26:16]RAPDU: 90 00 [00:26:16]wFMCommunicate OK [00:26:16]wFMCommunicate request_size=96 [00:26:16]MH_SAM_APDU [00:26:16]CAPDU: 80 15 02 00 5B F1 03 57 00 37 32 30 30 30 31 2C 20 D0 B3 2E 20 D0 91 D0 B0 D0 BB D1 8B D0 BA D1 87 D1 8B 2C 20 D1 83 D0 BB 2E 20 D0 90 D0 B1 D0 B4 D1 80 D0 B0 D1 85 D0 BC D0 B0 D0 BD D0 BE D0 B2 D0 B0 20 33 32 35 20 D0 91 2C 20 34 32 2E 34 36 32 37 36 31 2C 20 37 36 2E 32 31 34 39 33 31 [00:26:16]Write to MH i2c: E2 63 00 D2 17 80 15 02 00 5B 00 F1 03 57 00 37 32 30 30 30 31 2C 20 D0 B3 2E 20 D0 91 D0 B0 D0 BB D1 8B D0 BA D1 87 D1 8B 2C 20 D1 83 D0 BB 2E 20 D0 90 D0 B1 D0 B4 D1 80 D0 B0 D1 85 D0 BC D0 B0 D0 BD D0 BE D0 B2 D0 B0 20 33 32 35 20 D0 91 2C 20 34 32 2E 34 36 32 37 36 31 2C 20 37 36 2E 32 31 34 39 33 31 00 00 55 [00:26:16]Write i2c OK [00:26:16]MH_I2C_Read... [00:26:16]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:26:16]Read from MH i2c: E2 [00:26:16]MH_I2C_Read... [00:26:16]Read from MH i2c: E2 03 00 [00:26:16]MH_I2C_Read... [00:26:16]Read from MH i2c: E2 03 00 D2 17 00 90 00 5D [00:26:16]RAPDU: 90 00 [00:26:16]wFMCommunicate OK [00:26:16]wFMCommunicate request_size=50 [00:26:16]MH_SAM_APDU [00:26:16]CAPDU: 80 15 02 00 2D A3 04 29 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 36 32 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:26:16]Write to MH i2c: E2 35 00 D3 17 80 15 02 00 2D 00 A3 04 29 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 36 32 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 E1 [00:26:16]Write i2c OK [00:26:16]MH_I2C_Read... [00:26:16]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:26:16]Read from MH i2c: E2 [00:26:16]MH_I2C_Read... [00:26:16]Read from MH i2c: E2 03 00 [00:26:16]MH_I2C_Read... [00:26:16]Read from MH i2c: E2 03 00 D3 17 00 90 00 5E [00:26:16]RAPDU: 90 00 [00:26:16]wFMCommunicate OK [00:26:16]wFMCommunicate request_size=13 [00:26:16]MH_SAM_APDU [00:26:16]CAPDU: 80 15 02 00 08 F4 03 04 00 AA 0D 5D 66 [00:26:16]Write to MH i2c: E2 10 00 D4 17 80 15 02 00 08 00 F4 03 04 00 AA 0D 5D 66 00 00 F0 [00:26:16]Write i2c OK [00:26:16]MH_I2C_Read... [00:26:16]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:26:16]Read from MH i2c: E2 [00:26:16]MH_I2C_Read... [00:26:16]Read from MH i2c: E2 03 00 [00:26:16]MH_I2C_Read... [00:26:16]Read from MH i2c: E2 03 00 D4 17 00 90 00 5F [00:26:16]RAPDU: 90 00 [00:26:16]wFMCommunicate OK [00:26:16]wFMCommunicate request_size=25 [00:26:16]MH_SAM_APDU [00:26:16]CAPDU: 80 15 02 00 14 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 [00:26:16]Write to MH i2c: E2 1C 00 D5 17 80 15 02 00 14 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 00 00 D5 [00:26:16]Write i2c OK [00:26:16]MH_I2C_Read... [00:26:16]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:26:16]Read from MH i2c: E2 [00:26:16]MH_I2C_Read... [00:26:16]Read from MH i2c: E2 03 00 [00:26:16]MH_I2C_Read... [00:26:16]Read from MH i2c: E2 03 00 D5 17 00 90 00 60 [00:26:16]RAPDU: 90 00 [00:26:16]wFMCommunicate OK [00:26:16]wFMCommunicate request_size=4 [00:26:16]MH_SAM_APDU [00:26:16]CAPDU: 80 15 03 00 [00:26:16]Write to MH i2c: E2 08 00 D6 17 80 15 03 00 00 00 00 00 6E [00:26:16]Write i2c OK [00:26:16]MH_I2C_Read... [00:26:16]*** iso7816_exchange 80 15 03 00... Resp OK rsp.len_out = 53! [00:26:16]Read from MH i2c: E2 [00:26:16]MH_I2C_Read... [00:26:16]Read from MH i2c: E2 38 00 [00:26:16]MH_I2C_Read... [00:26:16]Read from MH i2c: E2 38 00 D6 17 00 33 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 95 0A 01 00 0E 04 04 00 43 01 00 00 35 04 06 00 CB E9 6A EE CF 7D 90 00 6E [00:26:16]RAPDU: 33 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 95 0A 01 00 0E 04 04 00 43 01 00 00 35 04 06 00 CB E9 6A EE CF 7D 90 00 [00:26:16]wFMCommunicate OK [00:26:16]SAM_PROTO_ProcessDocument answer len = 51 [00:26:16]SAM_PROTO_ProcessDocument done [00:26:16]SetTLVBufToDocument [00:26:16]Processing tag 1209 (04B9) [00:26:16]Malloc new data [00:26:16]Processing tag 1041 (0411) [00:26:16]Processing tag 1040 (0410) [00:26:16]Malloc new data [00:26:16]Processing tag 1038 (040E) [00:26:16]Malloc new data [00:26:16]Processing tag 1077 (0435) [00:26:16]Malloc new data [00:26:16]SetTLVBufToDocument err=0 [00:26:16]KKMLoadAndSignOpenShiftData store KKM data [00:26:16]KKMLoadAndSignOpenShiftData err=0 [00:26:16]Отчет об открытии смены ФФД: 1.0 ИНН: 02508201610067 Кассир: Балаев А. Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 Место: АЗС № 62 "Партнер Нефть" 03.06.2024 00:26 Смена: 323 РНМ: 0000000000098096 ЗНМ: 0300000181 ФД: 68245 ФМ: 0000000000965400 ФПД: 224203381854077 [00:26:16]StoreToDocumentArchive [00:26:16]shift 323 fd 68245 [00:26:16]Create dir for shift 0323 [00:26:16]save to /storage/0323/doc_00068245 [00:26:16]save last doc name /storage/0323/doc_00068245 to /storage/kkm_last_doc_name [00:26:16]save OK [00:26:16]Clear old archive folders... [00:26:16]Remove dir /storage/0322 [00:26:16]opendir ok [00:26:16]file . [00:26:16]file .. [00:26:16]file doc_00067985 [00:26:16]remove file /storage/0322/doc_00067985 [00:26:16]file doc_00067986 [00:26:16]remove file /storage/0322/doc_00067986 [00:26:16]file doc_00067987 [00:26:16]remove file /storage/0322/doc_00067987 [00:26:16]file doc_00067988 [00:26:16]remove file /storage/0322/doc_00067988 [00:26:16]file doc_00067989 [00:26:16]remove file /storage/0322/doc_00067989 [00:26:16]file doc_00067990 [00:26:16]remove file /storage/0322/doc_00067990 [00:26:16]file doc_00067991 [00:26:16]remove file /storage/0322/doc_00067991 [00:26:16]file doc_00067992 [00:26:16]remove file /storage/0322/doc_00067992 [00:26:16]file doc_00067993 [00:26:16]remove file /storage/0322/doc_00067993 [00:26:16]file doc_00067994 [00:26:16]remove file /storage/0322/doc_00067994 [00:26:16]file doc_00067995 [00:26:17]remove file /storage/0322/doc_00067995 [00:26:17]file doc_00067996 [00:26:17]remove file /storage/0322/doc_00067996 [00:26:17]file doc_00067997 [00:26:17]remove file /storage/0322/doc_00067997 [00:26:17]file doc_00067998 [00:26:17]remove file /storage/0322/doc_00067998 [00:26:17]file doc_00067999 [00:26:17]remove file /storage/0322/doc_00067999 [00:26:17]file doc_00068000 [00:26:17]remove file /storage/0322/doc_00068000 [00:26:17]file doc_00068001 [00:26:17]remove file /storage/0322/doc_00068001 [00:26:17]file doc_00068002 [00:26:17]remove file /storage/0322/doc_00068002 [00:26:17]file doc_00068003 [00:26:17]remove file /storage/0322/doc_00068003 [00:26:17]file doc_00068004 [00:26:17]remove file /storage/0322/doc_00068004 [00:26:17]file doc_00068005 [00:26:17]remove file /storage/0322/doc_00068005 [00:26:17]file doc_00068006 [00:26:17]remove file /storage/0322/doc_00068006 [00:26:17]file doc_00068007 [00:26:17]remove file /storage/0322/doc_00068007 [00:26:17]file doc_00068008 [00:26:17]remove file /storage/0322/doc_00068008 [00:26:17]file doc_00068009 [00:26:17]remove file /storage/0322/doc_00068009 [00:26:17]file doc_00068010 [00:26:17]remove file /storage/0322/doc_00068010 [00:26:17]file doc_00068011 [00:26:17]remove file /storage/0322/doc_00068011 [00:26:17]file doc_00068012 [00:26:17]remove file /storage/0322/doc_00068012 [00:26:17]file doc_00068013 [00:26:17]remove file /storage/0322/doc_00068013 [00:26:17]file doc_00068014 [00:26:17]remove file /storage/0322/doc_00068014 [00:26:17]file doc_00068015 [00:26:17]remove file /storage/0322/doc_00068015 [00:26:17]file doc_00068016 [00:26:17]remove file /storage/0322/doc_00068016 [00:26:17]file doc_00068017 [00:26:17]remove file /storage/0322/doc_00068017 [00:26:17]file doc_00068018 [00:26:17]remove file /storage/0322/doc_00068018 [00:26:17]file doc_00068019 [00:26:17]remove file /storage/0322/doc_00068019 [00:26:17]file doc_00068020 [00:26:17]remove file /storage/0322/doc_00068020 [00:26:17]file doc_00068021 [00:26:17]remove file /storage/0322/doc_00068021 [00:26:17]file doc_00068022 [00:26:17]remove file /storage/0322/doc_00068022 [00:26:17]file doc_00068023 [00:26:17]remove file /storage/0322/doc_00068023 [00:26:17]file doc_00068024 [00:26:17]remove file /storage/0322/doc_00068024 [00:26:17]file doc_00068025 [00:26:17]remove file /storage/0322/doc_00068025 [00:26:17]file doc_00068026 [00:26:17]remove file /storage/0322/doc_00068026 [00:26:17]file doc_00068027 [00:26:17]remove file /storage/0322/doc_00068027 [00:26:17]file doc_00068028 [00:26:17]remove file /storage/0322/doc_00068028 [00:26:17]file doc_00068029 [00:26:17]remove file /storage/0322/doc_00068029 [00:26:17]file doc_00068030 [00:26:17]remove file /storage/0322/doc_00068030 [00:26:17]file doc_00068031 [00:26:17]remove file /storage/0322/doc_00068031 [00:26:17]file doc_00068032 [00:26:17]remove file /storage/0322/doc_00068032 [00:26:17]file doc_00068033 [00:26:17]remove file /storage/0322/doc_00068033 [00:26:17]file doc_00068034 [00:26:17]remove file /storage/0322/doc_00068034 [00:26:17]file doc_00068035 [00:26:17]remove file /storage/0322/doc_00068035 [00:26:17]file doc_00068036 [00:26:17]remove file /storage/0322/doc_00068036 [00:26:17]file doc_00068037 [00:26:17]remove file /storage/0322/doc_00068037 [00:26:17]file doc_00068038 [00:26:17]remove file /storage/0322/doc_00068038 [00:26:17]file doc_00068039 [00:26:17]remove file /storage/0322/doc_00068039 [00:26:17]file doc_00068040 [00:26:17]remove file /storage/0322/doc_00068040 [00:26:17]file doc_00068041 [00:26:17]remove file /storage/0322/doc_00068041 [00:26:17]file doc_00068042 [00:26:17]remove file /storage/0322/doc_00068042 [00:26:17]file doc_00068043 [00:26:17]remove file /storage/0322/doc_00068043 [00:26:17]file doc_00068044 [00:26:17]remove file /storage/0322/doc_00068044 [00:26:17]file doc_00068045 [00:26:17]remove file /storage/0322/doc_00068045 [00:26:17]file doc_00068046 [00:26:17]remove file /storage/0322/doc_00068046 [00:26:17]file doc_00068047 [00:26:17]remove file /storage/0322/doc_00068047 [00:26:17]file doc_00068048 [00:26:17]remove file /storage/0322/doc_00068048 [00:26:17]file doc_00068049 [00:26:17]remove file /storage/0322/doc_00068049 [00:26:17]file doc_00068050 [00:26:17]remove file /storage/0322/doc_00068050 [00:26:17]file doc_00068051 [00:26:17]remove file /storage/0322/doc_00068051 [00:26:17]file doc_00068052 [00:26:17]remove file /storage/0322/doc_00068052 [00:26:17]file doc_00068053 [00:26:17]remove file /storage/0322/doc_00068053 [00:26:17]file doc_00068054 [00:26:17]remove file /storage/0322/doc_00068054 [00:26:17]file doc_00068055 [00:26:17]remove file /storage/0322/doc_00068055 [00:26:17]file doc_00068056 [00:26:17]remove file /storage/0322/doc_00068056 [00:26:17]file doc_00068057 [00:26:17]remove file /storage/0322/doc_00068057 [00:26:17]file doc_00068058 [00:26:17]remove file /storage/0322/doc_00068058 [00:26:17]file doc_00068059 [00:26:17]remove file /storage/0322/doc_00068059 [00:26:17]file doc_00068060 [00:26:17]remove file /storage/0322/doc_00068060 [00:26:17]file doc_00068061 [00:26:17]remove file /storage/0322/doc_00068061 [00:26:17]file doc_00068062 [00:26:17]remove file /storage/0322/doc_00068062 [00:26:17]file doc_00068063 [00:26:17]remove file /storage/0322/doc_00068063 [00:26:17]file doc_00068064 [00:26:17]remove file /storage/0322/doc_00068064 [00:26:17]file doc_00068065 [00:26:17]remove file /storage/0322/doc_00068065 [00:26:17]file doc_00068066 [00:26:17]remove file /storage/0322/doc_00068066 [00:26:17]file doc_00068067 [00:26:17]remove file /storage/0322/doc_00068067 [00:26:17]file doc_00068068 [00:26:17]remove file /storage/0322/doc_00068068 [00:26:17]file doc_00068069 [00:26:17]remove file /storage/0322/doc_00068069 [00:26:17]file doc_00068070 [00:26:17]remove file /storage/0322/doc_00068070 [00:26:17]file doc_00068071 [00:26:17]remove file /storage/0322/doc_00068071 [00:26:17]file doc_00068072 [00:26:17]remove file /storage/0322/doc_00068072 [00:26:17]file doc_00068073 [00:26:17]remove file /storage/0322/doc_00068073 [00:26:17]file doc_00068074 [00:26:17]remove file /storage/0322/doc_00068074 [00:26:17]file doc_00068075 [00:26:17]remove file /storage/0322/doc_00068075 [00:26:17]file doc_00068076 [00:26:17]remove file /storage/0322/doc_00068076 [00:26:17]file doc_00068077 [00:26:17]remove file /storage/0322/doc_00068077 [00:26:17]file doc_00068078 [00:26:17]remove file /storage/0322/doc_00068078 [00:26:17]file doc_00068079 [00:26:17]remove file /storage/0322/doc_00068079 [00:26:17]file doc_00068080 [00:26:17]remove file /storage/0322/doc_00068080 [00:26:17]file doc_00068081 [00:26:17]remove file /storage/0322/doc_00068081 [00:26:17]file doc_00068082 [00:26:17]remove file /storage/0322/doc_00068082 [00:26:17]file doc_00068083 [00:26:17]remove file /storage/0322/doc_00068083 [00:26:17]file doc_00068084 [00:26:17]remove file /storage/0322/doc_00068084 [00:26:17]file doc_00068085 [00:26:17]remove file /storage/0322/doc_00068085 [00:26:17]file doc_00068086 [00:26:17]remove file /storage/0322/doc_00068086 [00:26:17]file doc_00068087 [00:26:17]remove file /storage/0322/doc_00068087 [00:26:17]file doc_00068088 [00:26:17]remove file /storage/0322/doc_00068088 [00:26:17]file doc_00068089 [00:26:17]remove file /storage/0322/doc_00068089 [00:26:17]file doc_00068090 [00:26:17]remove file /storage/0322/doc_00068090 [00:26:17]file doc_00068091 [00:26:17]remove file /storage/0322/doc_00068091 [00:26:17]file doc_00068092 [00:26:17]remove file /storage/0322/doc_00068092 [00:26:17]file doc_00068093 [00:26:17]remove file /storage/0322/doc_00068093 [00:26:17]file doc_00068094 [00:26:17]remove file /storage/0322/doc_00068094 [00:26:17]file doc_00068095 [00:26:17]remove file /storage/0322/doc_00068095 [00:26:17]file doc_00068096 [00:26:17]remove file /storage/0322/doc_00068096 [00:26:17]file doc_00068097 [00:26:17]remove file /storage/0322/doc_00068097 [00:26:17]file doc_00068098 [00:26:17]remove file /storage/0322/doc_00068098 [00:26:17]file doc_00068099 [00:26:17]remove file /storage/0322/doc_00068099 [00:26:17]file doc_00068100 [00:26:17]remove file /storage/0322/doc_00068100 [00:26:17]file doc_00068101 [00:26:17]remove file /storage/0322/doc_00068101 [00:26:17]file doc_00068102 [00:26:17]remove file /storage/0322/doc_00068102 [00:26:17]file doc_00068103 [00:26:17]remove file /storage/0322/doc_00068103 [00:26:17]file doc_00068104 [00:26:17]remove file /storage/0322/doc_00068104 [00:26:17]file doc_00068105 [00:26:17]remove file /storage/0322/doc_00068105 [00:26:17]file doc_00068106 [00:26:17]remove file /storage/0322/doc_00068106 [00:26:17]file doc_00068107 [00:26:17]remove file /storage/0322/doc_00068107 [00:26:17]file doc_00068108 [00:26:17]remove file /storage/0322/doc_00068108 [00:26:17]file doc_00068109 [00:26:17]remove file /storage/0322/doc_00068109 [00:26:17]file doc_00068110 [00:26:17]remove file /storage/0322/doc_00068110 [00:26:17]file doc_00068111 [00:26:17]remove file /storage/0322/doc_00068111 [00:26:17]file doc_00068112 [00:26:17]remove file /storage/0322/doc_00068112 [00:26:17]file doc_00068113 [00:26:17]remove file /storage/0322/doc_00068113 [00:26:17]file doc_00068114 [00:26:17]remove file /storage/0322/doc_00068114 [00:26:17]file doc_00068115 [00:26:17]remove file /storage/0322/doc_00068115 [00:26:17]file doc_00068116 [00:26:17]remove file /storage/0322/doc_00068116 [00:26:17]file doc_00068117 [00:26:17]remove file /storage/0322/doc_00068117 [00:26:17]file doc_00068118 [00:26:17]remove file /storage/0322/doc_00068118 [00:26:17]file doc_00068119 [00:26:17]remove file /storage/0322/doc_00068119 [00:26:17]file doc_00068120 [00:26:17]remove file /storage/0322/doc_00068120 [00:26:17]file doc_00068121 [00:26:17]remove file /storage/0322/doc_00068121 [00:26:17]file doc_00068122 [00:26:17]remove file /storage/0322/doc_00068122 [00:26:17]file doc_00068123 [00:26:17]remove file /storage/0322/doc_00068123 [00:26:17]file doc_00068124 [00:26:17]remove file /storage/0322/doc_00068124 [00:26:17]file doc_00068125 [00:26:17]remove file /storage/0322/doc_00068125 [00:26:17]file doc_00068126 [00:26:17]remove file /storage/0322/doc_00068126 [00:26:17]file doc_00068127 [00:26:17]remove file /storage/0322/doc_00068127 [00:26:17]file doc_00068128 [00:26:17]remove file /storage/0322/doc_00068128 [00:26:17]file doc_00068129 [00:26:17]remove file /storage/0322/doc_00068129 [00:26:17]file doc_00068130 [00:26:17]remove file /storage/0322/doc_00068130 [00:26:17]file doc_00068131 [00:26:17]remove file /storage/0322/doc_00068131 [00:26:17]file doc_00068132 [00:26:17]remove file /storage/0322/doc_00068132 [00:26:17]file doc_00068133 [00:26:17]remove file /storage/0322/doc_00068133 [00:26:17]file doc_00068134 [00:26:17]remove file /storage/0322/doc_00068134 [00:26:17]file doc_00068135 [00:26:17]remove file /storage/0322/doc_00068135 [00:26:17]file doc_00068136 [00:26:17]remove file /storage/0322/doc_00068136 [00:26:17]file doc_00068137 [00:26:17]remove file /storage/0322/doc_00068137 [00:26:17]file doc_00068138 [00:26:17]remove file /storage/0322/doc_00068138 [00:26:17]file doc_00068139 [00:26:17]remove file /storage/0322/doc_00068139 [00:26:17]file doc_00068140 [00:26:17]remove file /storage/0322/doc_00068140 [00:26:17]file doc_00068141 [00:26:17]remove file /storage/0322/doc_00068141 [00:26:17]file doc_00068142 [00:26:17]remove file /storage/0322/doc_00068142 [00:26:17]file doc_00068143 [00:26:17]remove file /storage/0322/doc_00068143 [00:26:17]file doc_00068144 [00:26:17]remove file /storage/0322/doc_00068144 [00:26:17]file doc_00068145 [00:26:17]remove file /storage/0322/doc_00068145 [00:26:17]file doc_00068146 [00:26:17]remove file /storage/0322/doc_00068146 [00:26:17]file doc_00068147 [00:26:17]remove file /storage/0322/doc_00068147 [00:26:17]file doc_00068148 [00:26:17]remove file /storage/0322/doc_00068148 [00:26:17]file doc_00068149 [00:26:17]remove file /storage/0322/doc_00068149 [00:26:17]file doc_00068150 [00:26:17]remove file /storage/0322/doc_00068150 [00:26:17]file doc_00068151 [00:26:17]remove file /storage/0322/doc_00068151 [00:26:17]file doc_00068152 [00:26:17]remove file /storage/0322/doc_00068152 [00:26:18]file doc_00068153 [00:26:18]remove file /storage/0322/doc_00068153 [00:26:18]file doc_00068154 [00:26:18]remove file /storage/0322/doc_00068154 [00:26:18]file doc_00068155 [00:26:18]remove file /storage/0322/doc_00068155 [00:26:18]file doc_00068156 [00:26:18]remove file /storage/0322/doc_00068156 [00:26:18]file doc_00068157 [00:26:18]remove file /storage/0322/doc_00068157 [00:26:18]file doc_00068158 [00:26:18]remove file /storage/0322/doc_00068158 [00:26:18]file doc_00068159 [00:26:18]remove file /storage/0322/doc_00068159 [00:26:18]file doc_00068160 [00:26:18]remove file /storage/0322/doc_00068160 [00:26:18]file doc_00068161 [00:26:18]remove file /storage/0322/doc_00068161 [00:26:18]file doc_00068162 [00:26:18]remove file /storage/0322/doc_00068162 [00:26:18]file doc_00068163 [00:26:18]remove file /storage/0322/doc_00068163 [00:26:18]file doc_00068164 [00:26:18]remove file /storage/0322/doc_00068164 [00:26:18]file doc_00068165 [00:26:18]remove file /storage/0322/doc_00068165 [00:26:18]file doc_00068166 [00:26:18]remove file /storage/0322/doc_00068166 [00:26:18]file doc_00068167 [00:26:18]remove file /storage/0322/doc_00068167 [00:26:18]file doc_00068168 [00:26:18]remove file /storage/0322/doc_00068168 [00:26:18]file doc_00068169 [00:26:18]remove file /storage/0322/doc_00068169 [00:26:18]file doc_00068170 [00:26:18]remove file /storage/0322/doc_00068170 [00:26:18]file doc_00068171 [00:26:18]remove file /storage/0322/doc_00068171 [00:26:18]file doc_00068172 [00:26:18]remove file /storage/0322/doc_00068172 [00:26:18]file doc_00068173 [00:26:18]remove file /storage/0322/doc_00068173 [00:26:18]file doc_00068174 [00:26:18]remove file /storage/0322/doc_00068174 [00:26:18]file doc_00068175 [00:26:18]remove file /storage/0322/doc_00068175 [00:26:18]file doc_00068176 [00:26:18]remove file /storage/0322/doc_00068176 [00:26:18]file doc_00068177 [00:26:18]remove file /storage/0322/doc_00068177 [00:26:18]file doc_00068178 [00:26:18]remove file /storage/0322/doc_00068178 [00:26:18]file doc_00068179 [00:26:18]remove file /storage/0322/doc_00068179 [00:26:18]file doc_00068180 [00:26:18]remove file /storage/0322/doc_00068180 [00:26:18]file doc_00068181 [00:26:18]remove file /storage/0322/doc_00068181 [00:26:18]file doc_00068182 [00:26:18]remove file /storage/0322/doc_00068182 [00:26:18]file doc_00068183 [00:26:18]remove file /storage/0322/doc_00068183 [00:26:18]file doc_00068184 [00:26:18]remove file /storage/0322/doc_00068184 [00:26:18]file doc_00068185 [00:26:18]remove file /storage/0322/doc_00068185 [00:26:18]file doc_00068186 [00:26:18]remove file /storage/0322/doc_00068186 [00:26:18]file doc_00068187 [00:26:18]remove file /storage/0322/doc_00068187 [00:26:18]file doc_00068188 [00:26:18]remove file /storage/0322/doc_00068188 [00:26:18]file doc_00068189 [00:26:18]remove file /storage/0322/doc_00068189 [00:26:18]file doc_00068190 [00:26:18]remove file /storage/0322/doc_00068190 [00:26:18]file doc_00068191 [00:26:18]remove file /storage/0322/doc_00068191 [00:26:18]file doc_00068192 [00:26:18]remove file /storage/0322/doc_00068192 [00:26:18]file doc_00068193 [00:26:18]remove file /storage/0322/doc_00068193 [00:26:18]file doc_00068194 [00:26:18]remove file /storage/0322/doc_00068194 [00:26:18]file doc_00068195 [00:26:18]remove file /storage/0322/doc_00068195 [00:26:18]file doc_00068196 [00:26:18]remove file /storage/0322/doc_00068196 [00:26:18]file doc_00068197 [00:26:18]remove file /storage/0322/doc_00068197 [00:26:18]file doc_00068198 [00:26:18]remove file /storage/0322/doc_00068198 [00:26:18]file doc_00068199 [00:26:18]remove file /storage/0322/doc_00068199 [00:26:18]file doc_00068200 [00:26:18]remove file /storage/0322/doc_00068200 [00:26:18]file doc_00068201 [00:26:18]remove file /storage/0322/doc_00068201 [00:26:18]file doc_00068202 [00:26:18]remove file /storage/0322/doc_00068202 [00:26:18]file doc_00068203 [00:26:18]remove file /storage/0322/doc_00068203 [00:26:18]file doc_00068204 [00:26:18]remove file /storage/0322/doc_00068204 [00:26:18]file doc_00068205 [00:26:18]remove file /storage/0322/doc_00068205 [00:26:18]file doc_00068206 [00:26:18]remove file /storage/0322/doc_00068206 [00:26:18]file doc_00068207 [00:26:18]remove file /storage/0322/doc_00068207 [00:26:18]file doc_00068208 [00:26:18]remove file /storage/0322/doc_00068208 [00:26:18]file doc_00068209 [00:26:18]remove file /storage/0322/doc_00068209 [00:26:18]file doc_00068210 [00:26:18]remove file /storage/0322/doc_00068210 [00:26:18]file doc_00068211 [00:26:18]remove file /storage/0322/doc_00068211 [00:26:18]file doc_00068212 [00:26:18]remove file /storage/0322/doc_00068212 [00:26:18]file doc_00068213 [00:26:18]remove file /storage/0322/doc_00068213 [00:26:18]file doc_00068214 [00:26:18]remove file /storage/0322/doc_00068214 [00:26:18]file doc_00068215 [00:26:18]remove file /storage/0322/doc_00068215 [00:26:18]file doc_00068216 [00:26:18]remove file /storage/0322/doc_00068216 [00:26:18]file doc_00068217 [00:26:18]remove file /storage/0322/doc_00068217 [00:26:18]file doc_00068218 [00:26:18]remove file /storage/0322/doc_00068218 [00:26:18]file doc_00068219 [00:26:18]remove file /storage/0322/doc_00068219 [00:26:18]file doc_00068220 [00:26:18]remove file /storage/0322/doc_00068220 [00:26:18]file doc_00068221 [00:26:18]remove file /storage/0322/doc_00068221 [00:26:18]file doc_00068222 [00:26:18]remove file /storage/0322/doc_00068222 [00:26:18]file doc_00068223 [00:26:18]remove file /storage/0322/doc_00068223 [00:26:18]file doc_00068224 [00:26:18]remove file /storage/0322/doc_00068224 [00:26:18]file doc_00068225 [00:26:18]remove file /storage/0322/doc_00068225 [00:26:18]file doc_00068226 [00:26:18]remove file /storage/0322/doc_00068226 [00:26:18]file doc_00068227 [00:26:18]remove file /storage/0322/doc_00068227 [00:26:18]file doc_00068228 [00:26:18]remove file /storage/0322/doc_00068228 [00:26:18]file doc_00068229 [00:26:18]remove file /storage/0322/doc_00068229 [00:26:18]file doc_00068230 [00:26:18]remove file /storage/0322/doc_00068230 [00:26:18]file doc_00068231 [00:26:18]remove file /storage/0322/doc_00068231 [00:26:18]file doc_00068232 [00:26:18]remove file /storage/0322/doc_00068232 [00:26:18]file doc_00068233 [00:26:18]remove file /storage/0322/doc_00068233 [00:26:18]file doc_00068234 [00:26:18]remove file /storage/0322/doc_00068234 [00:26:18]file doc_00068235 [00:26:18]remove file /storage/0322/doc_00068235 [00:26:18]file doc_00068236 [00:26:18]remove file /storage/0322/doc_00068236 [00:26:18]file doc_00068237 [00:26:18]remove file /storage/0322/doc_00068237 [00:26:18]file doc_00068238 [00:26:18]remove file /storage/0322/doc_00068238 [00:26:18]file doc_00068239 [00:26:18]remove file /storage/0322/doc_00068239 [00:26:18]file doc_00068240 [00:26:18]remove file /storage/0322/doc_00068240 [00:26:18]file doc_00068241 [00:26:18]remove file /storage/0322/doc_00068241 [00:26:18]file doc_00068242 [00:26:18]remove file /storage/0322/doc_00068242 [00:26:18]file doc_00068243 [00:26:18]remove file /storage/0322/doc_00068243 [00:26:18]file doc_00068244 [00:26:18]remove file /storage/0322/doc_00068244 [00:26:18]remove dir /storage/0322 [00:26:18]ProcessDocumentItem done err = 0, tmpTLVsize=254 [00:26:18]tlvbuf is 001DB5B0 [00:26:18]SAM_PROTO_ClearQueue [00:26:18]wFMCommunicate request_size=4 [00:26:18]MH_SAM_APDU [00:26:18]CAPDU: 80 09 00 00 [00:26:18]Write to MH i2c: E2 08 00 D7 17 80 09 00 00 00 00 00 00 60 [00:26:18]Write i2c OK [00:26:18]MH_I2C_Read... [00:26:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:26:18]Read from MH i2c: E2 [00:26:18]MH_I2C_Read... [00:26:18]Read from MH i2c: E2 03 00 [00:26:18]MH_I2C_Read... [00:26:18]Read from MH i2c: E2 03 00 D7 17 00 90 00 62 [00:26:18]RAPDU: 90 00 [00:26:18]wFMCommunicate OK [00:26:18]SAM_PROTO_ClearQueue done [00:26:18]KKMCreateOFDPacket [00:26:18]OFDProtocolAddRootSTLVToBuf [00:26:18]FM_MakeSignedData [00:26:18]FM_MakeSignedData [00:26:18]SAM_PROTO_SignData [00:26:18]wFMCommunicate request_size=4 [00:26:18]MH_SAM_APDU [00:26:18]CAPDU: 80 0D 01 02 [00:26:18]Write to MH i2c: E2 08 00 D8 17 80 0D 01 02 00 00 00 00 68 [00:26:18]Write i2c OK [00:26:18]MH_I2C_Read... [00:26:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:26:18]Read from MH i2c: E2 [00:26:18]MH_I2C_Read... [00:26:18]Read from MH i2c: E2 03 00 [00:26:18]MH_I2C_Read... [00:26:18]Read from MH i2c: E2 03 00 D8 17 00 90 00 63 [00:26:18]RAPDU: 90 00 [00:26:18]wFMCommunicate OK [00:26:18]wFMCommunicate request_size=255 [00:26:18]MH_SAM_APDU [00:26:18]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 11 00 D0 91 D0 B0 D0 BB D0 B0 D0 B5 D0 B2 20 D0 90 2E 20 F1 03 57 00 37 32 30 30 30 31 2C 20 D0 B3 2E 20 D0 91 D0 B0 D0 BB D1 8B D0 BA D1 87 D1 8B 2C 20 D1 83 D0 BB 2E 20 D0 90 D0 B1 D0 B4 D1 80 D0 B0 D1 85 D0 BC D0 B0 D0 BD D0 BE D0 B2 D0 B0 20 33 32 35 20 D0 91 2C 20 34 32 2E 34 36 32 37 36 31 2C 20 37 36 2E 32 31 34 39 33 31 A3 04 29 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 36 32 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 AA 0D 5D 66 0E 04 04 00 43 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 95 0A 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 35 04 [00:26:18]Write to MH i2c: E2 02 01 D9 17 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 11 00 D0 91 D0 B0 D0 BB D0 B0 D0 B5 D0 B2 20 D0 90 2E 20 F1 03 57 00 37 32 30 30 30 31 2C 20 D0 B3 2E 20 D0 91 D0 B0 D0 BB D1 8B D0 BA D1 87 D1 8B 2C 20 D1 83 D0 BB 2E 20 D0 90 D0 B1 D0 B4 D1 80 D0 B0 D1 85 D0 BC D0 B0 D0 BD D0 BE D0 B2 D0 B0 20 33 32 35 20 D0 91 2C 20 34 32 2E 34 36 32 37 36 31 2C 20 37 36 2E 32 31 34 39 33 31 A3 04 29 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 36 32 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 AA 0D 5D 66 0E 04 04 00 43 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 95 0A 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 35 04 00 00 52 [00:26:18]Write i2c OK [00:26:18]MH_I2C_Read... [00:26:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:26:18]Read from MH i2c: E2 [00:26:18]MH_I2C_Read... [00:26:18]Read from MH i2c: E2 03 00 [00:26:18]MH_I2C_Read... [00:26:18]Read from MH i2c: E2 03 00 D9 17 00 90 00 64 [00:26:18]RAPDU: 90 00 [00:26:18]wFMCommunicate OK [00:26:18]wFMCommunicate request_size=13 [00:26:18]MH_SAM_APDU [00:26:18]CAPDU: 80 0D 02 02 08 06 00 CB E9 6A EE CF 7D [00:26:18]Write to MH i2c: E2 10 00 DA 17 80 0D 02 02 08 00 06 00 CB E9 6A EE CF 7D 00 00 D9 [00:26:18]Write i2c OK [00:26:18]MH_I2C_Read... [00:26:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:26:19]Read from MH i2c: E2 [00:26:19]MH_I2C_Read... [00:26:19]Read from MH i2c: E2 03 00 [00:26:19]MH_I2C_Read... [00:26:19]Read from MH i2c: E2 03 00 DA 17 00 90 00 65 [00:26:19]RAPDU: 90 00 [00:26:19]wFMCommunicate OK [00:26:19]wFMCommunicate request_size=4 [00:26:19]MH_SAM_APDU [00:26:19]CAPDU: 80 0D 03 02 [00:26:19]Write to MH i2c: E2 08 00 DB 17 80 0D 03 02 00 00 00 00 6D [00:26:19]Write i2c OK [00:26:19]MH_I2C_Read... [00:26:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:26:19]Read from MH i2c: E2 [00:26:19]MH_I2C_Read... [00:26:19]Read from MH i2c: E2 0B 00 [00:26:19]MH_I2C_Read... [00:26:19]Read from MH i2c: E2 0B 00 DB 17 00 2C E1 F5 C1 29 ED B5 60 90 00 5C [00:26:19]RAPDU: 2C E1 F5 C1 29 ED B5 60 90 00 [00:26:19]wFMCommunicate OK [00:26:19]SAM_PROTO_SignData done [00:26:19]FM_MakeSignedData done [00:26:19]CreateOFDProtocolMessage [00:26:19]wFMCommunicate request_size=4 [00:26:19]MH_SAM_APDU [00:26:19]CAPDU: 80 11 00 00 [00:26:19]Write to MH i2c: E2 08 00 DC 17 80 11 00 00 00 00 00 00 6D [00:26:19]Write i2c OK [00:26:19]MH_I2C_Read... [00:26:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:26:19]Read from MH i2c: E2 [00:26:19]MH_I2C_Read... [00:26:19]Read from MH i2c: E2 17 00 [00:26:19]MH_I2C_Read... [00:26:19]Read from MH i2c: E2 17 00 DC 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 B8 [00:26:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [00:26:19]wFMCommunicate OK [00:26:19]CreateOFDProtocolMessage done [00:26:19]OFDSenderStorePacket 68245 [00:26:19]StoreOFDPacket docnum=68245 [00:26:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 12 01 00 00 44 40 0A 01 5E BC 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 11 00 D0 91 D0 B0 D0 BB D0 B0 D0 B5 D0 B2 20 D0 90 2E 20 F1 03 57 00 37 32 30 30 30 31 2C 20 D0 B3 2E 20 D0 91 D0 B0 D0 BB D1 8B D0 BA D1 87 D1 8B 2C 20 D1 83 D0 BB 2E 20 D0 90 D0 B1 D0 B4 D1 80 D0 B0 D1 85 D0 BC D0 B0 D0 BD D0 BE D0 B2 D0 B0 20 33 32 35 20 D0 91 2C 20 34 32 2E 34 36 32 37 36 31 2C 20 37 36 2E 32 31 34 39 33 31 A3 04 29 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 36 32 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 AA 0D 5D 66 0E 04 04 00 43 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 95 0A 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 35 04 06 00 CB E9 6A EE CF 7D 2C E1 F5 C1 29 ED B5 60 [00:26:19]CheckFolder [00:26:19]dirname=/storage/ofd_packets [00:26:19]CheckFolder done [00:26:19]ProducePacketName [00:26:19]name=ofd_packets/00068245 [00:26:19]NVStorageSaveData ofd_packets/00068245 [00:26:19]File name is /storage/ofd_packets/00068245 [00:26:19]Write 304 bytes [00:26:19]NVStorageSaveData done [00:26:19]OFDSenderStorePacket done [00:26:19]KKMCreateOFDPacket done [00:26:19]NVStorageSaveData kkm_last_timestamp [00:26:19]File name is /storage/kkm_last_timestamp [00:26:19]Write 4 bytes [00:26:19]NVStorageSaveData done [00:26:19]ExternCall_PrintAddStr [00:26:19]wPrintStart [00:26:19]Write to MH i2c: 01 00 00 DD 17 F4 [00:26:19]Write i2c OK [00:26:19]MH_I2C_Read... [00:26:19]Read from MH i2c: 01 [00:26:19]MH_I2C_Read... [00:26:19]Read from MH i2c: 01 07 00 [00:26:19]MH_I2C_Read... [00:26:19]Read from MH i2c: 01 07 00 DD 17 00 00 00 00 00 FF 0F 09 [00:26:19]RasterBufferAndPrint [00:26:19]line Отчет об открытии смены [00:26:19]line ФФД: 1.0 [00:26:19]line ИНН: 02508201610067 [00:26:19]line Кассир: Балаев А. [00:26:19]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [00:26:19]line Место: АЗС № 62 "Партнер Нефть" [00:26:19]line 03.06.2024 00:26 [00:26:19]line Смена: 323 [00:26:19]line РНМ: 0000000000098096 [00:26:19]line ЗНМ: 0300000181 [00:26:19]line ФД: 68245 [00:26:19]line ФМ: 0000000000965400 [00:26:19]line ФПД: 224203381854077 [00:26:19]written 0, free lines is 4095 [00:26:19]OFD Sender: Processing packet 68245 [packets to send 26, broken 25] [00:26:19]ProducePacketName [00:26:19]name=ofd_packets/00068245 [00:26:19]OFD Sender: To server: pG, [00:26:19]CommunicateWithHost lk.salyk.kg:30040 [00:26:19]ConnectInit lk.salyk.kg [00:26:19]Connected sock=10 [00:26:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 12 01 00 00 44 40 0A 01 5E BC 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 11 00 D0 91 D0 B0 D0 BB D0 B0 D0 B5 D0 B2 20 D0 90 2E 20 F1 03 57 00 37 32 30 30 30 31 2C 20 D0 B3 2E 20 D0 91 D0 B0 D0 BB D1 8B D0 BA D1 87 D1 8B 2C 20 D1 83 D0 BB 2E 20 D0 90 D0 B1 D0 B4 D1 80 D0 B0 D1 85 D0 BC D0 B0 D0 BD D0 BE D0 B2 D0 B0 20 33 32 35 20 D0 91 2C 20 34 32 2E 34 36 32 37 36 31 2C 20 37 36 2E 32 31 34 39 33 31 A3 04 29 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 36 32 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 AA 0D 5D 66 0E 04 04 00 43 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 95 0A 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 35 04 06 00 CB E9 6A EE CF 7D 2C E1 F5 C1 29 ED B5 60 [00:26:19]Write to MH i2c: 01 00 00 EF 17 06 [00:26:19]Write i2c OK [00:26:19]MH_I2C_Read... [00:26:19]Read from MH i2c: 01 [00:26:19]MH_I2C_Read... [00:26:19]Read from MH i2c: 01 07 00 [00:26:19]MH_I2C_Read... [00:26:19]Read from MH i2c: 01 07 00 EF 17 00 00 00 00 00 63 0E 7E [00:26:19]RasterBufferAndPrint [00:26:19]line [00:26:19]line [00:26:19]line [00:26:19]line [00:26:19]line [00:26:19]written 0, free lines is 3700 [00:26:19]MH_Cut [00:26:19]Write to MH i2c: D1 01 00 F6 17 01 DF [00:26:19]Write i2c OK [00:26:19]MH_I2C_Read... [00:26:19]Read from MH i2c: D1 [00:26:19]MH_I2C_Read... [00:26:19]Read from MH i2c: D1 01 00 [00:26:19]MH_I2C_Read... [00:26:19]Read from MH i2c: D1 01 00 F6 17 00 DE [00:26:19]Write to MH i2c: 01 00 00 F7 17 0E [00:26:19]Write i2c OK [00:26:19]MH_I2C_Read... [00:26:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 6E 18 47 00 14 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 35 34 30 30 10 04 04 00 95 0A 01 00 F4 03 04 00 A9 B4 5C 66 B6 04 01 00 00 0D EC DF 44 0B D4 BD C2 [00:26:19]CommunicateWithHost err = 0 [00:26:19]CheckOFDResponse [00:26:19]1017 (14) - 77093643461234 [00:26:19]1041 (16) - 0000000000965400 [00:26:19]1040 (4) - 68245 [00:26:19]1012 (4) - 02.06.2024 18:06 [00:26:19]1206 (1) - 0 [00:26:19]OFD Sender: Remove packet 68245 [00:26:19]ProducePacketName [00:26:19]name=ofd_packets/00068245 [00:26:19]NVStorageDeleteData [00:26:19]*** Cut start [00:26:19]*** Partial cut [00:26:19]*** CUTSNS_PIN = 1 [00:26:19]*** CUTSNS_PIN = 0 [00:26:20]OFD Sender: No OFD packet to send [00:26:20]*** Brake cut motor [00:26:20]Read from MH i2c: 01 [00:26:20]MH_I2C_Read... [00:26:20]*** Stop cut motor [00:26:20]*** Cut end [00:26:20]Read from MH i2c: 01 07 00 [00:26:20]MH_I2C_Read... [00:26:20]Read from MH i2c: 01 07 00 F7 17 00 00 00 00 00 FF 0F 23 [00:26:20]process_action open_shift done [00:26:20]requested_data is exist [00:26:20]produce_requested_data [00:26:20]requested_item fd.num is exist - process it [00:26:20]SAM_PROTO_GetFieldsCounters [00:26:20]wFMCommunicate request_size=4 [00:26:20]MH_SAM_APDU [00:26:20]CAPDU: 80 13 00 00 [00:26:20]Write to MH i2c: E2 08 00 F8 17 80 13 00 00 00 00 00 00 8B [00:26:20]Write i2c OK [00:26:20]MH_I2C_Read... [00:26:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:26:20]Read from MH i2c: E2 [00:26:20]MH_I2C_Read... [00:26:20]Read from MH i2c: E2 62 00 [00:26:20]MH_I2C_Read... [00:26:20]Read from MH i2c: E2 62 00 F8 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 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 95 0A 01 00 0E 04 04 00 43 01 00 00 12 04 04 00 00 00 00 00 5E 04 04 00 00 00 00 00 57 04 04 00 01 00 00 00 19 04 04 00 00 00 00 00 90 00 8F [00:26: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 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 95 0A 01 00 0E 04 04 00 43 01 00 00 12 04 04 00 00 00 00 00 5E 04 04 00 00 00 00 00 57 04 04 00 01 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:26:20]wFMCommunicate OK [00:26:20]SAM_PROTO_GetFieldsCounters done [00:26:20]requested_item shift.num is exist - process it [00:26:20]requested_item shift.opened is exist - process it [00:26:20]req_shift_opened [00:26:20]FM_GetShiftState [00:26:20]SAM_PROTO_GetShiftState [00:26:20]wFMCommunicate request_size=4 [00:26:20]MH_SAM_APDU [00:26:20]CAPDU: 80 13 01 00 [00:26:20]Write to MH i2c: E2 08 00 F9 17 80 13 01 00 00 00 00 00 8D [00:26:20]Write i2c OK [00:26:20]MH_I2C_Read... [00:26:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:26:20]Read from MH i2c: E2 [00:26:20]MH_I2C_Read... [00:26:20]Read from MH i2c: E2 0E 00 [00:26:20]MH_I2C_Read... [00:26:20]Read from MH i2c: E2 0E 00 F9 17 00 09 00 01 AA 0D 5D 66 00 00 00 00 90 00 13 [00:26:20]RAPDU: 09 00 01 AA 0D 5D 66 00 00 00 00 90 00 [00:26:20]wFMCommunicate OK [00:26:20]SAM_PROTO_GetShiftState done [00:26:20]FM_GetShiftState done [00:26:20]req_shift_opened done [00:26:20]requested_item shift.open_date is exist - process it [00:26:20]req_shift_open_date [00:26:20]req_shift_open_date done [00:26:20]produce_requested_data done [00:26:20]produce_requested_data return {"fd.num":68245,"shift.num":323,"shift.opened":1,"shift.open_date":1717374378} [00:26:20]process_action_free open_shift [00:26:20]json_value_free [00:26:20]json_value_free done [00:26:20]process_json_proto returns [00:26:20]Send response to host [00:26:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":68245,"shift.num":323,"shift.opened":1,"shift.open_date":1717374378}}} [00:26:20]free response buf [00:26:20]execute_script done [00:26:20]execute_script returns [00:26:20]free content buf [00:26:20]Sock 7.Close socket [00:26:20]Sock 7.Thread stoped [00:26:20]accept exits with 9 [00:26:20]New connection [00:26:20]New thread 3066543460 created [00:26:20]Thread 3066686820 joined [00:26:20]Waiting for new connection... [00:26:20] Sock 9.Parse request [00:26:20]Sock 9.Check first char [00:26:20]Sock 9.First char is OK [00:26:20]request: POST /json_proto HTTP/1.0 [00:26:20]Method: POST [00:26:20]URL: /json_proto [00:26:20]Method is POST - this is cgi request [00:26:20]url: /json_proto [00:26:20]query_string will be loaded in cgi processing [00:26:20]execute_cgi json_proto POST (null) [00:26:20]execute_cgi path=json_proto method=POST [00:26:20]POST find Content-Length [00:26:20]Host: 172.17.36.132:8080 [00:26:20]Content-Length: 331 [00:26:20]Content-Type: application/json [00:26:20] [00:26:20]POST finish read [00:26:20]Found Content-Length = 331 [00:26: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:26:20]execute_script... [00:26: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:26:20]POST & json_proto [00:26:20]process_json_proto [00:26:20]json parsed OK: [00:26:20]protocol is kg_v1.0 [00:26:20]action value=get_value [00:26:20]process_action get_value [00:26:20]cmd_get_value [00:26:20]process_action get_value done [00:26:20]requested_data is exist [00:26:20]produce_requested_data [00:26:20]requested_item fm.sale.total is exist - process it [00:26:20]SAM_PROTO_GetFMData [00:26:20]wFMCommunicate request_size=4 [00:26:20]MH_SAM_APDU [00:26:20]CAPDU: 80 13 03 00 [00:26:20]Write to MH i2c: E2 08 00 FA 17 80 13 03 00 00 00 00 00 90 [00:26:20]Write i2c OK [00:26:20]MH_I2C_Read... [00:26:21]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:26:21]Read from MH i2c: E2 [00:26:21]MH_I2C_Read... [00:26:21]Read from MH i2c: E2 FD 00 [00:26:21]MH_I2C_Read... [00:26:21]Read from MH i2c: E2 FD 00 FA 17 00 C5 04 85 04 C1 04 6E 04 04 00 0F 08 01 00 69 04 A3 00 6F 04 04 00 04 03 01 00 B1 04 05 00 73 D7 4B 38 01 70 04 05 00 6C E6 F0 0B 01 72 04 04 00 07 F1 5A 2C 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 80 A3 2C 21 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 08 9F C3 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 9C 00 6F 04 04 00 0B 05 00 00 B1 04 04 00 F0 67 BC 0E 70 04 04 00 F0 67 BC 0E 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 3E AA 90 01 EF 03 09 90 00 15 [00:26:21]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 0F 08 01 00 69 04 A3 00 6F 04 04 00 04 03 01 00 B1 04 05 00 73 D7 4B 38 01 70 04 05 00 6C E6 F0 0B 01 72 04 04 00 07 F1 5A 2C 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 80 A3 2C 21 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 08 9F C3 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 9C 00 6F 04 04 00 0B 05 00 00 B1 04 04 00 F0 67 BC 0E 70 04 04 00 F0 67 BC 0E 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 3E AA 90 01 EF 03 09 90 00 [00:26:21]wFMCommunicate OK [00:26:21]wFMCommunicate request_size=4 [00:26:21]MH_SAM_APDU [00:26:21]CAPDU: 80 17 00 00 [00:26:21]Write to MH i2c: E2 08 00 FB 17 80 17 00 00 00 00 00 00 92 [00:26:21]Write i2c OK [00:26:21]MH_I2C_Read... [00:26:21]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:26:21]Read from MH i2c: E2 [00:26:21]MH_I2C_Read... [00:26:21]Read from MH i2c: E2 FD 00 [00:26:21]MH_I2C_Read... [00:26:21]Read from MH i2c: E2 FD 00 FB 17 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 12 63 21 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 DE [00:26:21]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 12 63 21 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 [00:26:21]wFMCommunicate OK [00:26:21]wFMCommunicate request_size=4 [00:26:21]MH_SAM_APDU [00:26:21]CAPDU: 80 17 00 00 [00:26:21]Write to MH i2c: E2 08 00 FC 17 80 17 00 00 00 00 00 00 93 [00:26:21]Write i2c OK [00:26:21]MH_I2C_Read... [00:26:22]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:26:22]Read from MH i2c: E2 [00:26:22]MH_I2C_Read... [00:26:22]Read from MH i2c: E2 FD 00 [00:26:22]MH_I2C_Read... [00:26:22]Read from MH i2c: E2 FD 00 FC 17 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 A5 [00:26:22]RAPDU: 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:26:22]wFMCommunicate OK [00:26:22]wFMCommunicate request_size=4 [00:26:22]MH_SAM_APDU [00:26:22]CAPDU: 80 17 00 00 [00:26:22]Write to MH i2c: E2 08 00 FD 17 80 17 00 00 00 00 00 00 94 [00:26:22]Write i2c OK [00:26:22]MH_I2C_Read... [00:26:22]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:26:22]Read from MH i2c: E2 [00:26:22]MH_I2C_Read... [00:26:22]Read from MH i2c: E2 FD 00 [00:26:22]MH_I2C_Read... [00:26:22]Read from MH i2c: E2 FD 00 FD 17 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 20 [00:26:22]RAPDU: 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:26:22]wFMCommunicate OK [00:26:22]wFMCommunicate request_size=4 [00:26:22]MH_SAM_APDU [00:26:22]CAPDU: 80 17 00 00 [00:26:22]Write to MH i2c: E2 08 00 FE 17 80 17 00 00 00 00 00 00 95 [00:26:22]Write i2c OK [00:26:22]MH_I2C_Read... [00:26:22]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [00:26:22]Read from MH i2c: E2 [00:26:22]MH_I2C_Read... [00:26:22]Read from MH i2c: E2 E2 00 [00:26:22]MH_I2C_Read... [00:26:22]Read from MH i2c: E2 E2 00 FE 17 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 73 [00:26:22]RAPDU: EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:26:23]wFMCommunicate OK [00:26:23]SAM_PROTO_GetFMData done [00:26:23]requested_item fm.sale_refund.total is exist - process it [00:26:23]requested_item fm.buy.total is exist - process it [00:26:23]requested_item shift.sale.total is exist - process it [00:26:23]SAM_PROTO_GetShiftData [00:26:23]wFMCommunicate request_size=4 [00:26:23]MH_SAM_APDU [00:26:23]CAPDU: 80 13 02 00 [00:26:23]Write to MH i2c: E2 08 00 FF 17 80 13 02 00 00 00 00 00 94 [00:26:23]Write i2c OK [00:26:23]MH_I2C_Read... [00:26:23]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:26:23]Read from MH i2c: E2 [00:26:23]MH_I2C_Read... [00:26:23]Read from MH i2c: E2 FD 00 [00:26:23]MH_I2C_Read... [00:26:23]Read from MH i2c: E2 FD 00 FF 17 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 07 [00:26:23]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:26:23]wFMCommunicate OK [00:26:23]wFMCommunicate request_size=4 [00:26:23]MH_SAM_APDU [00:26:23]CAPDU: 80 17 00 00 [00:26:23]Write to MH i2c: E2 08 00 00 18 80 17 00 00 00 00 00 00 98 [00:26:23]Write i2c OK [00:26:23]MH_I2C_Read... [00:26:23]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:26:23]Read from MH i2c: E2 [00:26:23]MH_I2C_Read... [00:26:23]Read from MH i2c: E2 FD 00 [00:26:23]MH_I2C_Read... [00:26:23]Read from MH i2c: E2 FD 00 00 18 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 A0 [00:26:24]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:26:24]wFMCommunicate OK [00:26:24]wFMCommunicate request_size=4 [00:26:24]MH_SAM_APDU [00:26:24]CAPDU: 80 17 00 00 [00:26:24]Write to MH i2c: E2 08 00 01 18 80 17 00 00 00 00 00 00 99 [00:26:24]Write i2c OK [00:26:24]MH_I2C_Read... [00:26:24]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:26:24]Read from MH i2c: E2 [00:26:24]MH_I2C_Read... [00:26:24]Read from MH i2c: E2 FD 00 [00:26:24]MH_I2C_Read... [00:26:24]Read from MH i2c: E2 FD 00 01 18 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 6B [00:26:24]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:26:24]wFMCommunicate OK [00:26:24]wFMCommunicate request_size=4 [00:26:24]MH_SAM_APDU [00:26:24]CAPDU: 80 17 00 00 [00:26:24]Write to MH i2c: E2 08 00 02 18 80 17 00 00 00 00 00 00 9A [00:26:24]Write i2c OK [00:26:24]MH_I2C_Read... [00:26:24]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:26:24]Read from MH i2c: E2 [00:26:24]MH_I2C_Read... [00:26:24]Read from MH i2c: E2 FD 00 [00:26:24]MH_I2C_Read... [00:26:24]Read from MH i2c: E2 FD 00 02 18 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 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 0C [00:26:25]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:26:25]wFMCommunicate OK [00:26:25]wFMCommunicate request_size=4 [00:26:25]MH_SAM_APDU [00:26:25]CAPDU: 80 17 00 00 [00:26:25]Write to MH i2c: E2 08 00 03 18 80 17 00 00 00 00 00 00 9B [00:26:25]Write i2c OK [00:26:25]MH_I2C_Read... [00:26:25]OFD Sender: No OFD packet to send [00:26:25]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 186! [00:26:25]Read from MH i2c: E2 [00:26:25]MH_I2C_Read... [00:26:25]Read from MH i2c: E2 BD 00 [00:26:25]MH_I2C_Read... [00:26:25]Read from MH i2c: E2 BD 00 03 18 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 81 [00:26:25]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:26:25]wFMCommunicate OK [00:26:25]SAM_PROTO_GetShiftData done [00:26:25]requested_item shift.sale.total_cash is exist - process it [00:26:25]requested_item shift.sale_refund.total is exist - process it [00:26:25]requested_item shift.sale_refund.total_cash is exist - process it [00:26:25]requested_item shift.buy.total is exist - process it [00:26:25]requested_item shift.buy.total_cash is exist - process it [00:26:25]produce_requested_data done [00:26:25]produce_requested_data return {"fm.sale.total":52394617.47,"fm.sale_refund.total":2472284.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:26:25]process_action_free get_value [00:26:25]json_value_free [00:26:25]json_value_free done [00:26:25]process_json_proto returns [00:26:25]Send response to host [00:26:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":52394617.47,"fm.sale_refund.total":2472284.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:26:25]free response buf [00:26:25]execute_script done [00:26:25]execute_script returns [00:26:25]free content buf [00:26:25]Sock 9.Close socket [00:26:25]Sock 9.Thread stoped [00:26:30]OFD Sender: No OFD packet to send [00:26:35]OFD Sender: No OFD packet to send [00:26:40]OFD Sender: No OFD packet to send [00:26:45]OFD Sender: No OFD packet to send [00:26:50]OFD Sender: No OFD packet to send [00:26:55]OFD Sender: No OFD packet to send [00:27:00]OFD Sender: No OFD packet to send [00:27:05]OFD Sender: No OFD packet to send [00:27:10]OFD Sender: No OFD packet to send [00:27:15]OFD Sender: No OFD packet to send [00:27:20]OFD Sender: No OFD packet to send [00:27:25]OFD Sender: No OFD packet to send [00:27:30]OFD Sender: No OFD packet to send [00:27:35]OFD Sender: No OFD packet to send [00:27:40]OFD Sender: No OFD packet to send [00:27:45]OFD Sender: No OFD packet to send [00:27:50]OFD Sender: No OFD packet to send [00:27:55]OFD Sender: No OFD packet to send [00:28:00]OFD Sender: No OFD packet to send [00:28:05]OFD Sender: No OFD packet to send [00:28:10]OFD Sender: No OFD packet to send [00:28:15]OFD Sender: No OFD packet to send [00:28:20]OFD Sender: No OFD packet to send [00:28:25]OFD Sender: No OFD packet to send [00:28:30]OFD Sender: No OFD packet to send [00:28:35]OFD Sender: No OFD packet to send [00:28:40]OFD Sender: No OFD packet to send [00:28:45]OFD Sender: No OFD packet to send [00:28:47]accept exits with 7 [00:28:47]New connection [00:28:47]New thread 3066686820 created [00:28:47]Thread 3066543460 joined [00:28:47]Waiting for new connection... [00:28:47] Sock 7.Parse request [00:28:47]Sock 7.Check first char [00:28:47]Sock 7.First char is OK [00:28:47]request: POST /json_proto HTTP/1.0 [00:28:47]Method: POST [00:28:47]URL: /json_proto [00:28:47]Method is POST - this is cgi request [00:28:47]url: /json_proto [00:28:47]query_string will be loaded in cgi processing [00:28:47]execute_cgi json_proto POST (null) [00:28:47]execute_cgi path=json_proto method=POST [00:28:47]POST find Content-Length [00:28:47]Host: 172.17.36.132:8080 [00:28:47]Content-Length: 675 [00:28:47]Content-Type: application/json [00:28:47] [00:28:47]POST finish read [00:28:47]Found Content-Length = 675 [00:28:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706317", "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" : 67.40, "quantity" : 14.840, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:28:47]execute_script... [00:28: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)706317", "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" : 67.40, "quantity" : 14.840, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:28:47]POST & json_proto [00:28:47]process_json_proto [00:28:47]json parsed OK: [00:28:47]protocol is kg_v1.0 [00:28:47]action value=close_receipt [00:28:47]process_action close_receipt [00:28:47]cmd_close_receipt [00:28:47]MH_GetDate [00:28:47]Write to MH i2c: F0 00 00 04 18 0B [00:28:47]Write i2c OK [00:28:47]MH_I2C_Read... [00:28:47]Read from MH i2c: F0 [00:28:47]MH_I2C_Read... [00:28:47]Read from MH i2c: F0 09 00 [00:28:47]MH_I2C_Read... [00:28:47]Read from MH i2c: F0 09 00 04 18 00 41 0E 5D 66 B2 22 B0 64 0E [00:28:47]GetLastDocTimeStamp 1717374378 [00:28:47]current date 1717374529 [00:28:47]FM_GetShiftState [00:28:47]SAM_PROTO_GetShiftState [00:28:47]wFMCommunicate request_size=4 [00:28:47]MH_SAM_APDU [00:28:47]CAPDU: 80 13 01 00 [00:28:47]Write to MH i2c: E2 08 00 05 18 80 13 01 00 00 00 00 00 9A [00:28:47]Write i2c OK [00:28:47]MH_I2C_Read... [00:28:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:28:47]Read from MH i2c: E2 [00:28:47]MH_I2C_Read... [00:28:47]Read from MH i2c: E2 0E 00 [00:28:47]MH_I2C_Read... [00:28:47]Read from MH i2c: E2 0E 00 05 18 00 09 00 01 AA 0D 5D 66 00 00 00 00 90 00 20 [00:28:47]RAPDU: 09 00 01 AA 0D 5D 66 00 00 00 00 90 00 [00:28:47]wFMCommunicate OK [00:28:47]SAM_PROTO_GetShiftState done [00:28:47]FM_GetShiftState done [00:28:47]opened in 1717374378 [00:28:47]opened+sec_in_day 1717460778 [00:28:47]quantity*price = 100021 [00:28:47]sum+1 = 100023 [00:28:47]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 1 03.06.2024 00:28 Смена: 323 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 ФМ: 0000000000965400 ФД: 68246 ФПД: 79763429766094 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T002849&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68246&fm=79763429766094&tin=02508201610067®Number=0000000000098096&sum=100000 [00:28:48]StoreToDocumentArchive [00:28:48]shift 323 fd 68246 [00:28:48]save to /storage/0323/doc_00068246 [00:28:48]save last doc name /storage/0323/doc_00068246 to /storage/kkm_last_doc_name [00:28:48]save OK [00:28:48]Clear old archive folders... [00:28:48]ProcessDocumentItem done err = 0, tmpTLVsize=252 [00:28:48]tlvbuf is 001B8FE0 [00:28:48]SAM_PROTO_ClearQueue [00:28:48]wFMCommunicate request_size=4 [00:28:48]MH_SAM_APDU [00:28:48]CAPDU: 80 09 00 00 [00:28:48]Write to MH i2c: E2 08 00 12 18 80 09 00 00 00 00 00 00 9C [00:28:48]Write i2c OK [00:28:48]MH_I2C_Read... [00:28:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:28:48]Read from MH i2c: E2 [00:28:48]MH_I2C_Read... [00:28:48]Read from MH i2c: E2 03 00 [00:28:48]MH_I2C_Read... [00:28:48]Read from MH i2c: E2 03 00 12 18 00 90 00 9E [00:28:48]RAPDU: 90 00 [00:28:48]wFMCommunicate OK [00:28:48]SAM_PROTO_ClearQueue done [00:28:48]KKMCreateOFDPacket [00:28:48]OFDProtocolAddRootSTLVToBuf [00:28:48]FM_MakeSignedData [00:28:48]FM_MakeSignedData [00:28:48]SAM_PROTO_SignData [00:28:48]wFMCommunicate request_size=4 [00:28:48]MH_SAM_APDU [00:28:48]CAPDU: 80 0D 01 02 [00:28:48]Write to MH i2c: E2 08 00 13 18 80 0D 01 02 00 00 00 00 A4 [00:28:48]Write i2c OK [00:28:48]MH_I2C_Read... [00:28:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:28:48]Read from MH i2c: E2 [00:28:48]MH_I2C_Read... [00:28:48]Read from MH i2c: E2 03 00 [00:28:48]MH_I2C_Read... [00:28:48]Read from MH i2c: E2 03 00 13 18 00 90 00 9F [00:28:48]RAPDU: 90 00 [00:28:48]wFMCommunicate OK [00:28:48]wFMCommunicate request_size=255 [00:28:48]MH_SAM_APDU [00:28:48]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F8 39 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 00 00 00 F4 03 04 00 41 0E 5D 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 96 0A 01 00 35 04 06 00 [00:28:48]Write to MH i2c: E2 02 01 14 18 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F8 39 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 00 00 00 F4 03 04 00 41 0E 5D 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 96 0A 01 00 35 04 06 00 00 00 18 [00:28:48]Write i2c OK [00:28:48]MH_I2C_Read... [00:28:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:28:49]Read from MH i2c: E2 [00:28:49]MH_I2C_Read... [00:28:49]Read from MH i2c: E2 03 00 [00:28:49]MH_I2C_Read... [00:28:49]Read from MH i2c: E2 03 00 14 18 00 90 00 A0 [00:28:49]RAPDU: 90 00 [00:28:49]wFMCommunicate OK [00:28:49]wFMCommunicate request_size=11 [00:28:49]MH_SAM_APDU [00:28:49]CAPDU: 80 0D 02 02 06 48 8B 5E E5 B3 CE [00:28:49]Write to MH i2c: E2 0E 00 15 18 80 0D 02 02 06 00 48 8B 5E E5 B3 CE 00 00 4A [00:28:49]Write i2c OK [00:28:49]MH_I2C_Read... [00:28:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:28:49]Read from MH i2c: E2 [00:28:49]MH_I2C_Read... [00:28:49]Read from MH i2c: E2 03 00 [00:28:49]MH_I2C_Read... [00:28:49]Read from MH i2c: E2 03 00 15 18 00 90 00 A1 [00:28:49]RAPDU: 90 00 [00:28:49]wFMCommunicate OK [00:28:49]wFMCommunicate request_size=4 [00:28:49]MH_SAM_APDU [00:28:49]CAPDU: 80 0D 03 02 [00:28:49]Write to MH i2c: E2 08 00 16 18 80 0D 03 02 00 00 00 00 A9 [00:28:49]Write i2c OK [00:28:49]MH_I2C_Read... [00:28:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:28:49]Read from MH i2c: E2 [00:28:49]MH_I2C_Read... [00:28:49]Read from MH i2c: E2 0B 00 [00:28:49]MH_I2C_Read... [00:28:49]Read from MH i2c: E2 0B 00 16 18 00 CB B9 0F 44 AF 88 2E D7 90 00 BD [00:28:49]RAPDU: CB B9 0F 44 AF 88 2E D7 90 00 [00:28:49]wFMCommunicate OK [00:28:49]SAM_PROTO_SignData done [00:28:49]FM_MakeSignedData done [00:28:49]CreateOFDProtocolMessage [00:28:49]wFMCommunicate request_size=4 [00:28:49]MH_SAM_APDU [00:28:49]CAPDU: 80 11 00 00 [00:28:49]Write to MH i2c: E2 08 00 17 18 80 11 00 00 00 00 00 00 A9 [00:28:49]Write i2c OK [00:28:49]MH_I2C_Read... [00:28:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:28:49]Read from MH i2c: E2 [00:28:49]MH_I2C_Read... [00:28:49]Read from MH i2c: E2 17 00 [00:28:49]MH_I2C_Read... [00:28:49]Read from MH i2c: E2 17 00 17 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 F4 [00:28:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [00:28:49]wFMCommunicate OK [00:28:49]CreateOFDProtocolMessage done [00:28:49]OFDSenderStorePacket 68246 [00:28:49]StoreOFDPacket docnum=68246 [00:28:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 01 00 00 2C 43 08 01 2E B4 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F8 39 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 00 00 00 F4 03 04 00 41 0E 5D 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 96 0A 01 00 35 04 06 00 48 8B 5E E5 B3 CE CB B9 0F 44 AF 88 2E D7 [00:28:49]CheckFolder [00:28:49]dirname=/storage/ofd_packets [00:28:49]CheckFolder done [00:28:49]ProducePacketName [00:28:49]name=ofd_packets/00068246 [00:28:49]NVStorageSaveData ofd_packets/00068246 [00:28:49]File name is /storage/ofd_packets/00068246 [00:28:49]Write 302 bytes [00:28:49]NVStorageSaveData done [00:28:49]OFDSenderStorePacket done [00:28:49]KKMCreateOFDPacket done [00:28:49]NVStorageSaveData kkm_last_timestamp [00:28:49]File name is /storage/kkm_last_timestamp [00:28:49]Write 4 bytes [00:28:49]NVStorageSaveData done [00:28:49]ExternCall_PrintAddStr [00:28:49]wPrintStart [00:28:49]Write to MH i2c: 01 00 00 18 18 30 [00:28:49]Write i2c OK [00:28:49]MH_I2C_Read... [00:28:49]Read from MH i2c: 01 [00:28:49]MH_I2C_Read... [00:28:49]Read from MH i2c: 01 07 00 [00:28:49]MH_I2C_Read... [00:28:49]Read from MH i2c: 01 07 00 18 18 00 00 00 00 00 FF 0F 45 [00:28:49]RasterBufferAndPrint [00:28:49]line Счет N : (1)706317 [00:28:49]line ИНН: 02508201610067 [00:28:49]line Контрольно-Кассовый Чек [00:28:49]line ПРОДАЖА [00:28:49]line ТРК (МРК, ГНК) : 31 [00:28:49]line Товар: 2710124130 [00:28:49]line Super-92-К-5 [00:28:49]line 14.840 * 67.40 [00:28:49]line = 1000.22 [00:28:49]line НДС 12% НСП 1% [00:28:49]line > о реализуемом товаре [00:28:49]line ОКРУГЛЕНИЕ: -0.22 [00:28:49]line ИТОГО: 1000.00 [00:28:49]line Внесено: 1000.00 [00:28:49]line СДАЧА: 0.00 [00:28:49]line НСП 1% : 8.85 [00:28:49]line НДС 12% : 106.22 [00:28:49]line Наличными: 1000.00 [00:28:49]line Безнал.: 0.00 [00:28:49]line Место: АЗС № 62 "Партнер Нефть" [00:28:49]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [00:28:49]line СНО: Общий режим [00:28:49]line Чек 1 03.06.2024 00:28 [00:28:49]line Смена: 323 ФФД: 1.0 [00:28:49]line ЗНМ: 0300000181 [00:28:49]line РНМ: 0000000000098096 [00:28:49]line Версия ККМ: 001 [00:28:49]line ФМ: 0000000000965400 [00:28:49]line ФД: 68246 [00:28:49]line ФПД: 79763429766094 [00:28:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T002849&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68246&fm=79763429766094&tin=02508201610067®Number=0000000000098096&sum=100000 [00:28:49]OFD Sender: Processing packet 68246 [packets to send 26, broken 25] [00:28:49]ProducePacketName [00:28:49]name=ofd_packets/00068246 [00:28:49]OFD Sender: To server: pG, [00:28:49]CommunicateWithHost lk.salyk.kg:30040 [00:28:49]ConnectInit lk.salyk.kg [00:28:49]written 0, free lines is 4095 [00:28:49]Connected sock=10 [00:28:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 01 00 00 2C 43 08 01 2E B4 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F8 39 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 00 00 00 F4 03 04 00 41 0E 5D 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 96 0A 01 00 35 04 06 00 48 8B 5E E5 B3 CE CB B9 0F 44 AF 88 2E D7 [00:28:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 C4 72 47 00 03 6E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 96 0A 01 00 F4 03 04 00 3F B5 5C 66 B6 04 01 00 00 CC 33 BB C5 89 E4 06 F4 [00:28:49]CommunicateWithHost err = 0 [00:28:49]CheckOFDResponse [00:28:49]1017 (14) - 77093643461234 [00:28:49]1041 (16) - 0000000000965400 [00:28:49]1040 (4) - 68246 [00:28:49]1012 (4) - 02.06.2024 18:09 [00:28:49]1206 (1) - 0 [00:28:49]OFD Sender: Remove packet 68246 [00:28:49]ProducePacketName [00:28:49]name=ofd_packets/00068246 [00:28:49]NVStorageDeleteData [00:28:50]Write to MH i2c: 01 00 00 43 18 5B [00:28:50]Write i2c OK [00:28:50]MH_I2C_Read... [00:28:50]Read from MH i2c: 01 [00:28:50]MH_I2C_Read... [00:28:50]Read from MH i2c: 01 07 00 [00:28:50]MH_I2C_Read... [00:28:50]Read from MH i2c: 01 07 00 43 18 00 00 00 00 00 E6 0C 54 [00:28:50]RasterBufferAndPrint [00:28:50]line [00:28:50]line [00:28:50]line [00:28:50]line [00:28:50]line [00:28:50]written 0, free lines is 3308 [00:28:50]MH_Cut [00:28:50]Write to MH i2c: D1 01 00 4A 18 01 34 [00:28:50]Write i2c OK [00:28:50]MH_I2C_Read... [00:28:50]Read from MH i2c: D1 [00:28:50]MH_I2C_Read... [00:28:50]Read from MH i2c: D1 01 00 [00:28:50]MH_I2C_Read... [00:28:50]Read from MH i2c: D1 01 00 4A 18 00 33 [00:28:50]Write to MH i2c: 01 00 00 4B 18 63 [00:28:50]Write i2c OK [00:28:50]MH_I2C_Read... [00:28:50]OFD Sender: No OFD packet to send [00:28:50]*** Cut start [00:28:50]*** Partial cut [00:28:50]*** CUTSNS_PIN = 1 [00:28:50]*** CUTSNS_PIN = 0 [00:28:51]*** Brake cut motor [00:28:51]Read from MH i2c: 01 [00:28:51]MH_I2C_Read... [00:28:51]*** Stop cut motor [00:28:51]*** Cut end [00:28:51]Read from MH i2c: 01 07 00 [00:28:51]MH_I2C_Read... [00:28:51]Read from MH i2c: 01 07 00 4B 18 00 00 00 00 00 FF 0F 78 [00:28:51]process_action close_receipt done [00:28:51]requested_data is exist [00:28:51]produce_requested_data [00:28:51]requested_item fm.sn is exist - process it [00:28:51]wFMCommunicate request_size=4 [00:28:51]MH_SAM_APDU [00:28:51]CAPDU: 80 11 00 00 [00:28:51]Write to MH i2c: E2 08 00 4C 18 80 11 00 00 00 00 00 00 DE [00:28:51]Write i2c OK [00:28:51]MH_I2C_Read... [00:28:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:28:51]Read from MH i2c: E2 [00:28:51]MH_I2C_Read... [00:28:51]Read from MH i2c: E2 17 00 [00:28:51]MH_I2C_Read... [00:28:51]Read from MH i2c: E2 17 00 4C 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 29 [00:28:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [00:28:51]wFMCommunicate OK [00:28:51]requested_item fd.num is exist - process it [00:28:51]SAM_PROTO_GetFieldsCounters [00:28:51]wFMCommunicate request_size=4 [00:28:51]MH_SAM_APDU [00:28:51]CAPDU: 80 13 00 00 [00:28:51]Write to MH i2c: E2 08 00 4D 18 80 13 00 00 00 00 00 00 E1 [00:28:51]Write i2c OK [00:28:51]MH_I2C_Read... [00:28:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:28:51]Read from MH i2c: E2 [00:28:51]MH_I2C_Read... [00:28:51]Read from MH i2c: E2 62 00 [00:28:51]MH_I2C_Read... [00:28:51]Read from MH i2c: E2 62 00 4D 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 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 96 0A 01 00 0E 04 04 00 43 01 00 00 12 04 04 00 01 00 00 00 5E 04 04 00 01 00 00 00 57 04 04 00 02 00 00 00 19 04 04 00 00 00 00 00 90 00 E9 [00:28: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 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 96 0A 01 00 0E 04 04 00 43 01 00 00 12 04 04 00 01 00 00 00 5E 04 04 00 01 00 00 00 57 04 04 00 02 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:28:51]wFMCommunicate OK [00:28:51]SAM_PROTO_GetFieldsCounters done [00:28:51]requested_item shift.num is exist - process it [00:28:51]requested_item shift.opened is exist - process it [00:28:51]req_shift_opened [00:28:51]FM_GetShiftState [00:28:51]SAM_PROTO_GetShiftState [00:28:51]wFMCommunicate request_size=4 [00:28:51]MH_SAM_APDU [00:28:51]CAPDU: 80 13 01 00 [00:28:51]Write to MH i2c: E2 08 00 4E 18 80 13 01 00 00 00 00 00 E3 [00:28:51]Write i2c OK [00:28:51]MH_I2C_Read... [00:28:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:28:51]Read from MH i2c: E2 [00:28:51]MH_I2C_Read... [00:28:51]Read from MH i2c: E2 0E 00 [00:28:51]MH_I2C_Read... [00:28:51]Read from MH i2c: E2 0E 00 4E 18 00 09 00 01 AA 0D 5D 66 00 00 00 00 90 00 69 [00:28:51]RAPDU: 09 00 01 AA 0D 5D 66 00 00 00 00 90 00 [00:28:51]wFMCommunicate OK [00:28:51]SAM_PROTO_GetShiftState done [00:28:51]FM_GetShiftState done [00:28:51]req_shift_opened done [00:28:51]requested_item shift.open_date is exist - process it [00:28:51]req_shift_open_date [00:28:51]req_shift_open_date done [00:28:51]produce_requested_data done [00:28:51]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68246,"shift.num":323,"shift.opened":1,"shift.open_date":1717374378} [00:28:51]process_action_free close_receipt [00:28:51]json_value_free [00:28:51]json_value_free done [00:28:51]process_json_proto returns [00:28:51]Send response to host [00:28:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68246,"shift.num":323,"shift.opened":1,"shift.open_date":1717374378}}} [00:28:51]free response buf [00:28:51]execute_script done [00:28:51]execute_script returns [00:28:51]free content buf [00:28:51]Sock 7.Close socket [00:28:51]Sock 7.Thread stoped [00:28:55]OFD Sender: No OFD packet to send [00:29:00]OFD Sender: No OFD packet to send [00:29:05]OFD Sender: No OFD packet to send [00:29:10]OFD Sender: No OFD packet to send [00:29:15]OFD Sender: No OFD packet to send [00:29:20]OFD Sender: No OFD packet to send [00:29:25]OFD Sender: No OFD packet to send [00:29:30]OFD Sender: No OFD packet to send [00:29:35]OFD Sender: No OFD packet to send [00:29:40]OFD Sender: No OFD packet to send [00:29:45]OFD Sender: No OFD packet to send [00:29:50]OFD Sender: No OFD packet to send [00:29:55]OFD Sender: No OFD packet to send [00:30:00]OFD Sender: No OFD packet to send [00:30:05]OFD Sender: No OFD packet to send [00:30:10]OFD Sender: No OFD packet to send [00:30:15]OFD Sender: No OFD packet to send [00:30:20]OFD Sender: No OFD packet to send [00:30:25]OFD Sender: No OFD packet to send [00:30:30]OFD Sender: No OFD packet to send [00:30:35]OFD Sender: No OFD packet to send [00:30:40]OFD Sender: No OFD packet to send [00:30:45]OFD Sender: No OFD packet to send [00:30:50]OFD Sender: No OFD packet to send [00:30:55]OFD Sender: No OFD packet to send [00:31:00]OFD Sender: No OFD packet to send [00:31:05]OFD Sender: No OFD packet to send [00:31:10]OFD Sender: No OFD packet to send [00:31:15]OFD Sender: No OFD packet to send [00:31:20]OFD Sender: No OFD packet to send [00:31:25]OFD Sender: No OFD packet to send [00:31:30]OFD Sender: No OFD packet to send [00:31:35]OFD Sender: No OFD packet to send [00:31:40]OFD Sender: No OFD packet to send [00:31:45]OFD Sender: No OFD packet to send [00:31:50]OFD Sender: No OFD packet to send [00:31:55]OFD Sender: No OFD packet to send [00:32:00]OFD Sender: No OFD packet to send [00:32:05]OFD Sender: No OFD packet to send [00:32:10]OFD Sender: No OFD packet to send [00:32:15]OFD Sender: No OFD packet to send [00:32:20]OFD Sender: No OFD packet to send [00:32:25]OFD Sender: No OFD packet to send [00:32:30]OFD Sender: No OFD packet to send [00:32:35]OFD Sender: No OFD packet to send [00:32:40]OFD Sender: No OFD packet to send [00:32:45]OFD Sender: No OFD packet to send [00:32:50]OFD Sender: No OFD packet to send [00:32:55]OFD Sender: No OFD packet to send [00:33:00]OFD Sender: No OFD packet to send [00:33:05]OFD Sender: No OFD packet to send [00:33:10]OFD Sender: No OFD packet to send [00:33:15]OFD Sender: No OFD packet to send [00:33:20]OFD Sender: No OFD packet to send [00:33:25]OFD Sender: No OFD packet to send [00:33:30]OFD Sender: No OFD packet to send [00:33:35]OFD Sender: No OFD packet to send [00:33:40]OFD Sender: No OFD packet to send [00:33:45]OFD Sender: No OFD packet to send [00:33:50]OFD Sender: No OFD packet to send [00:33:55]OFD Sender: No OFD packet to send [00:34:00]OFD Sender: No OFD packet to send [00:34:05]OFD Sender: No OFD packet to send [00:34:10]OFD Sender: No OFD packet to send [00:34:15]OFD Sender: No OFD packet to send [00:34:20]OFD Sender: No OFD packet to send [00:34:25]OFD Sender: No OFD packet to send [00:34:30]OFD Sender: No OFD packet to send [00:34:35]OFD Sender: No OFD packet to send [00:34:40]OFD Sender: No OFD packet to send [00:34:45]OFD Sender: No OFD packet to send [00:34:47]accept exits with 9 [00:34:47]New connection [00:34:47]New thread 3066543460 created [00:34:47]Thread 3066686820 joined [00:34:47]Waiting for new connection... [00:34:47] Sock 9.Parse request [00:34:47]Sock 9.Check first char [00:34:47]Sock 9.First char is OK [00:34:47]request: POST /json_proto HTTP/1.0 [00:34:47]Method: POST [00:34:47]URL: /json_proto [00:34:47]Method is POST - this is cgi request [00:34:47]url: /json_proto [00:34:47]query_string will be loaded in cgi processing [00:34:47]execute_cgi json_proto POST (null) [00:34:47]execute_cgi path=json_proto method=POST [00:34:47]POST find Content-Length [00:34:47]Host: 172.17.36.132:8080 [00:34:47]Content-Length: 677 [00:34:47]Content-Type: application/json [00:34:47] [00:34:47]POST finish read [00:34:47]Found Content-Length = 677 [00:34:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706318", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.40, "quantity" : 3.770, "sum" : 250.33, "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" ] } } [00:34:47]execute_script... [00:34: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)706318", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.40, "quantity" : 3.770, "sum" : 250.33, "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" ] } } [00:34:47]POST & json_proto [00:34:47]process_json_proto [00:34:47]json parsed OK: [00:34:47]protocol is kg_v1.0 [00:34:47]action value=close_receipt [00:34:47]process_action close_receipt [00:34:47]cmd_close_receipt [00:34:47]MH_GetDate [00:34:47]Write to MH i2c: F0 00 00 4F 18 56 [00:34:47]Write i2c OK [00:34:47]MH_I2C_Read... [00:34:47]Read from MH i2c: F0 [00:34:47]MH_I2C_Read... [00:34:47]Read from MH i2c: F0 09 00 [00:34:47]MH_I2C_Read... [00:34:47]Read from MH i2c: F0 09 00 4F 18 00 AA 0F 5D 66 B2 22 B0 64 C3 [00:34:47]GetLastDocTimeStamp 1717374529 [00:34:47]current date 1717374890 [00:34:47]FM_GetShiftState [00:34:47]SAM_PROTO_GetShiftState [00:34:47]wFMCommunicate request_size=4 [00:34:47]MH_SAM_APDU [00:34:47]CAPDU: 80 13 01 00 [00:34:47]Write to MH i2c: E2 08 00 50 18 80 13 01 00 00 00 00 00 E5 [00:34:47]Write i2c OK [00:34:47]MH_I2C_Read... [00:34:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:34:47]Read from MH i2c: E2 [00:34:47]MH_I2C_Read... [00:34:47]Read from MH i2c: E2 0E 00 [00:34:47]MH_I2C_Read... [00:34:47]Read from MH i2c: E2 0E 00 50 18 00 09 00 01 AA 0D 5D 66 00 00 00 00 90 00 6B [00:34:47]RAPDU: 09 00 01 AA 0D 5D 66 00 00 00 00 90 00 [00:34:47]wFMCommunicate OK [00:34:47]SAM_PROTO_GetShiftState done [00:34:47]FM_GetShiftState done [00:34:47]opened in 1717374378 [00:34:47]opened+sec_in_day 1717460778 [00:34:47]quantity*price = 25032 [00:34:47]sum+1 = 25034 [00:34:47]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.33 ИТОГО: 250.00 Внесено: 250.00 СДАЧА: 0.00 НСП 1% : 2.21 НДС 12% : 26.58 Наличными: 250.00 Безнал.: 0.00 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 2 03.06.2024 00:34 Смена: 323 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 ФМ: 0000000000965400 ФД: 68247 ФПД: 33476443977400 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T003450&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68247&fm=33476443977400&tin=02508201610067®Number=0000000000098096&sum=25000 [00:34:49]StoreToDocumentArchive [00:34:49]shift 323 fd 68247 [00:34:49]save to /storage/0323/doc_00068247 [00:34:49]save last doc name /storage/0323/doc_00068247 to /storage/kkm_last_doc_name [00:34:49]save OK [00:34:49]Clear old archive folders... [00:34:49]ProcessDocumentItem done err = 0, tmpTLVsize=251 [00:34:49]tlvbuf is 00467910 [00:34:49]SAM_PROTO_ClearQueue [00:34:49]wFMCommunicate request_size=4 [00:34:49]MH_SAM_APDU [00:34:49]CAPDU: 80 09 00 00 [00:34:49]Write to MH i2c: E2 08 00 5D 18 80 09 00 00 00 00 00 00 E7 [00:34:49]Write i2c OK [00:34:49]MH_I2C_Read... [00:34:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:34:49]Read from MH i2c: E2 [00:34:49]MH_I2C_Read... [00:34:49]Read from MH i2c: E2 03 00 [00:34:49]MH_I2C_Read... [00:34:49]Read from MH i2c: E2 03 00 5D 18 00 90 00 E9 [00:34:49]RAPDU: 90 00 [00:34:49]wFMCommunicate OK [00:34:49]SAM_PROTO_ClearQueue done [00:34:49]KKMCreateOFDPacket [00:34:49]OFDProtocolAddRootSTLVToBuf [00:34:49]FM_MakeSignedData [00:34:49]FM_MakeSignedData [00:34:49]SAM_PROTO_SignData [00:34:49]wFMCommunicate request_size=4 [00:34:49]MH_SAM_APDU [00:34:49]CAPDU: 80 0D 01 02 [00:34:49]Write to MH i2c: E2 08 00 5E 18 80 0D 01 02 00 00 00 00 EF [00:34:49]Write i2c OK [00:34:49]MH_I2C_Read... [00:34:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:34:49]Read from MH i2c: E2 [00:34:49]MH_I2C_Read... [00:34:49]Read from MH i2c: E2 03 00 [00:34:49]MH_I2C_Read... [00:34:49]Read from MH i2c: E2 03 00 5E 18 00 90 00 EA [00:34:49]RAPDU: 90 00 [00:34:49]wFMCommunicate OK [00:34:49]wFMCommunicate request_size=255 [00:34:49]MH_SAM_APDU [00:34: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 34 FF 03 08 00 03 BA 0E 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 C9 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 62 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 02 00 00 00 F4 03 04 00 AA 0F 5D 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 97 0A 01 00 35 04 06 00 1E [00:34:49]Write to MH i2c: E2 02 01 5F 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 34 FF 03 08 00 03 BA 0E 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 C9 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 62 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 02 00 00 00 F4 03 04 00 AA 0F 5D 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 97 0A 01 00 35 04 06 00 1E 00 00 CF [00:34:49]Write i2c OK [00:34:49]MH_I2C_Read... [00:34:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:34:49]Read from MH i2c: E2 [00:34:49]MH_I2C_Read... [00:34:49]Read from MH i2c: E2 03 00 [00:34:49]MH_I2C_Read... [00:34:49]Read from MH i2c: E2 03 00 5F 18 00 90 00 EB [00:34:49]RAPDU: 90 00 [00:34:49]wFMCommunicate OK [00:34:49]wFMCommunicate request_size=10 [00:34:49]MH_SAM_APDU [00:34:49]CAPDU: 80 0D 02 02 05 72 57 8D 36 B8 [00:34:49]Write to MH i2c: E2 0D 00 60 18 80 0D 02 02 05 00 72 57 8D 36 B8 00 00 40 [00:34:49]Write i2c OK [00:34:49]MH_I2C_Read... [00:34:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:34:49]Read from MH i2c: E2 [00:34:49]MH_I2C_Read... [00:34:49]Read from MH i2c: E2 03 00 [00:34:49]MH_I2C_Read... [00:34:49]Read from MH i2c: E2 03 00 60 18 00 90 00 EC [00:34:49]RAPDU: 90 00 [00:34:49]wFMCommunicate OK [00:34:49]wFMCommunicate request_size=4 [00:34:49]MH_SAM_APDU [00:34:49]CAPDU: 80 0D 03 02 [00:34:49]Write to MH i2c: E2 08 00 61 18 80 0D 03 02 00 00 00 00 F4 [00:34:49]Write i2c OK [00:34:49]MH_I2C_Read... [00:34:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:34:49]Read from MH i2c: E2 [00:34:49]MH_I2C_Read... [00:34:49]Read from MH i2c: E2 0B 00 [00:34:49]MH_I2C_Read... [00:34:49]Read from MH i2c: E2 0B 00 61 18 00 ED E7 8F 15 61 5B 8D 6B 90 00 21 [00:34:49]RAPDU: ED E7 8F 15 61 5B 8D 6B 90 00 [00:34:49]wFMCommunicate OK [00:34:49]SAM_PROTO_SignData done [00:34:49]FM_MakeSignedData done [00:34:49]CreateOFDProtocolMessage [00:34:49]wFMCommunicate request_size=4 [00:34:49]MH_SAM_APDU [00:34:49]CAPDU: 80 11 00 00 [00:34:49]Write to MH i2c: E2 08 00 62 18 80 11 00 00 00 00 00 00 F4 [00:34:49]Write i2c OK [00:34:49]MH_I2C_Read... [00:34:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:34:49]Read from MH i2c: E2 [00:34:49]MH_I2C_Read... [00:34:49]Read from MH i2c: E2 17 00 [00:34:49]MH_I2C_Read... [00:34:49]Read from MH i2c: E2 17 00 62 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 3F [00:34:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [00:34:49]wFMCommunicate OK [00:34:49]CreateOFDProtocolMessage done [00:34:49]OFDSenderStorePacket 68247 [00:34:49]StoreOFDPacket docnum=68247 [00:34:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 79 0F 07 01 B5 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 34 FF 03 08 00 03 BA 0E 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 C9 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 62 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 02 00 00 00 F4 03 04 00 AA 0F 5D 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 97 0A 01 00 35 04 06 00 1E 72 57 8D 36 B8 ED E7 8F 15 61 5B 8D 6B [00:34:49]CheckFolder [00:34:49]dirname=/storage/ofd_packets [00:34:49]CheckFolder done [00:34:49]ProducePacketName [00:34:49]name=ofd_packets/00068247 [00:34:49]NVStorageSaveData ofd_packets/00068247 [00:34:49]File name is /storage/ofd_packets/00068247 [00:34:49]Write 301 bytes [00:34:49]NVStorageSaveData done [00:34:49]OFDSenderStorePacket done [00:34:49]KKMCreateOFDPacket done [00:34:49]NVStorageSaveData kkm_last_timestamp [00:34:49]File name is /storage/kkm_last_timestamp [00:34:49]Write 4 bytes [00:34:49]NVStorageSaveData done [00:34:49]ExternCall_PrintAddStr [00:34:49]wPrintStart [00:34:49]Write to MH i2c: 01 00 00 63 18 7B [00:34:49]OFD Sender: Processing packet 68247 [packets to send 26, broken 25] [00:34:49]ProducePacketName [00:34:49]name=ofd_packets/00068247 [00:34:49]OFD Sender: To server: pG, [00:34:49]CommunicateWithHost lk.salyk.kg:30040 [00:34:49]ConnectInit lk.salyk.kg [00:34:49]Write i2c OK [00:34:49]MH_I2C_Read... [00:34:49]Read from MH i2c: 01 [00:34:49]MH_I2C_Read... [00:34:49]Read from MH i2c: 01 07 00 [00:34:49]MH_I2C_Read... [00:34:49]Read from MH i2c: 01 07 00 63 18 00 00 00 00 00 FF 0F 90 [00:34:49]RasterBufferAndPrint [00:34:49]line Счет N : (1)706318 [00:34:49]line ИНН: 02508201610067 [00:34:49]line Контрольно-Кассовый Чек [00:34:49]line ПРОДАЖА [00:34:49]line ТРК (МРК, ГНК) : 32 [00:34:49]line Товар: 2710124130 [00:34:49]line Аи-92-К-4 [00:34:49]line 3.770 * 66.40 [00:34:49]line = 250.33 [00:34:49]line НДС 12% НСП 1% [00:34:49]line > о реализуемом товаре [00:34:49]line ОКРУГЛЕНИЕ: -0.33 [00:34:49]line ИТОГО: 250.00 [00:34:49]line Внесено: 250.00 [00:34:49]line СДАЧА: 0.00 [00:34:49]line НСП 1% : 2.21 [00:34:49]line НДС 12% : 26.58 [00:34:49]line Наличными: 250.00 [00:34:49]line Безнал.: 0.00 [00:34:49]line Место: АЗС № 62 "Партнер Нефть" [00:34:49]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [00:34:49]line СНО: Общий режим [00:34:49]line Чек 2 03.06.2024 00:34 [00:34:49]line Смена: 323 ФФД: 1.0 [00:34:49]line ЗНМ: 0300000181 [00:34:49]line РНМ: 0000000000098096 [00:34:49]line Версия ККМ: 001 [00:34:49]line ФМ: 0000000000965400 [00:34:49]line ФД: 68247 [00:34:49]line ФПД: 33476443977400 [00:34:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T003450&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68247&fm=33476443977400&tin=02508201610067®Number=0000000000098096&sum=25000 [00:34:49]Connected sock=11 [00:34:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 79 0F 07 01 B5 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 34 FF 03 08 00 03 BA 0E 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 C9 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 62 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 02 00 00 00 F4 03 04 00 AA 0F 5D 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 97 0A 01 00 35 04 06 00 1E 72 57 8D 36 B8 ED E7 8F 15 61 5B 8D 6B [00:34:49]written 0, free lines is 4095 [00:34:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 92 A5 47 00 E2 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 35 34 30 30 10 04 04 00 97 0A 01 00 F4 03 04 00 A7 B6 5C 66 B6 04 01 00 00 E5 A0 74 60 53 5B F2 91 [00:34:50]CommunicateWithHost err = 0 [00:34:50]CheckOFDResponse [00:34:50]1017 (14) - 77093643461234 [00:34:50]1041 (16) - 0000000000965400 [00:34:50]1040 (4) - 68247 [00:34:50]1012 (4) - 02.06.2024 18:15 [00:34:50]1206 (1) - 0 [00:34:50]OFD Sender: Remove packet 68247 [00:34:50]ProducePacketName [00:34:50]name=ofd_packets/00068247 [00:34:50]NVStorageDeleteData [00:34:50]Write to MH i2c: 01 00 00 8E 18 A6 [00:34:50]Write i2c OK [00:34:50]MH_I2C_Read... [00:34:50]Read from MH i2c: 01 [00:34:50]MH_I2C_Read... [00:34:50]Read from MH i2c: 01 07 00 [00:34:50]MH_I2C_Read... [00:34:50]Read from MH i2c: 01 07 00 8E 18 00 00 00 00 00 DD 0C 96 [00:34:50]RasterBufferAndPrint [00:34:50]line [00:34:50]line [00:34:50]line [00:34:50]line [00:34:50]line [00:34:50]written 0, free lines is 3299 [00:34:50]MH_Cut [00:34:50]Write to MH i2c: D1 01 00 95 18 01 7F [00:34:50]Write i2c OK [00:34:50]MH_I2C_Read... [00:34:50]Read from MH i2c: D1 [00:34:50]MH_I2C_Read... [00:34:50]Read from MH i2c: D1 01 00 [00:34:50]MH_I2C_Read... [00:34:50]Read from MH i2c: D1 01 00 95 18 00 7E [00:34:50]Write to MH i2c: 01 00 00 96 18 AE [00:34:50]Write i2c OK [00:34:50]MH_I2C_Read... [00:34:50]OFD Sender: No OFD packet to send [00:34:51]*** Cut start [00:34:51]*** Partial cut [00:34:51]*** CUTSNS_PIN = 1 [00:34:51]*** CUTSNS_PIN = 0 [00:34:51]*** Brake cut motor [00:34:51]Read from MH i2c: 01 [00:34:51]MH_I2C_Read... [00:34:51]*** Stop cut motor [00:34:51]*** Cut end [00:34:51]Read from MH i2c: 01 07 00 [00:34:51]MH_I2C_Read... [00:34:51]Read from MH i2c: 01 07 00 96 18 00 00 00 00 00 FF 0F C3 [00:34:51]process_action close_receipt done [00:34:51]requested_data is exist [00:34:51]produce_requested_data [00:34:51]requested_item fm.sn is exist - process it [00:34:51]wFMCommunicate request_size=4 [00:34:51]MH_SAM_APDU [00:34:51]CAPDU: 80 11 00 00 [00:34:51]Write to MH i2c: E2 08 00 97 18 80 11 00 00 00 00 00 00 29 [00:34:51]Write i2c OK [00:34:51]MH_I2C_Read... [00:34:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:34:51]Read from MH i2c: E2 [00:34:51]MH_I2C_Read... [00:34:51]Read from MH i2c: E2 17 00 [00:34:51]MH_I2C_Read... [00:34:51]Read from MH i2c: E2 17 00 97 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 74 [00:34:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [00:34:51]wFMCommunicate OK [00:34:51]requested_item fd.num is exist - process it [00:34:51]SAM_PROTO_GetFieldsCounters [00:34:51]wFMCommunicate request_size=4 [00:34:51]MH_SAM_APDU [00:34:51]CAPDU: 80 13 00 00 [00:34:51]Write to MH i2c: E2 08 00 98 18 80 13 00 00 00 00 00 00 2C [00:34:51]Write i2c OK [00:34:51]MH_I2C_Read... [00:34:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:34:51]Read from MH i2c: E2 [00:34:51]MH_I2C_Read... [00:34:51]Read from MH i2c: E2 62 00 [00:34:51]MH_I2C_Read... [00:34:52]Read from MH i2c: E2 62 00 98 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 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 97 0A 01 00 0E 04 04 00 43 01 00 00 12 04 04 00 02 00 00 00 5E 04 04 00 02 00 00 00 57 04 04 00 03 00 00 00 19 04 04 00 00 00 00 00 90 00 38 [00: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 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 97 0A 01 00 0E 04 04 00 43 01 00 00 12 04 04 00 02 00 00 00 5E 04 04 00 02 00 00 00 57 04 04 00 03 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:34:52]wFMCommunicate OK [00:34:52]SAM_PROTO_GetFieldsCounters done [00:34:52]requested_item shift.num is exist - process it [00:34:52]requested_item shift.opened is exist - process it [00:34:52]req_shift_opened [00:34:52]FM_GetShiftState [00:34:52]SAM_PROTO_GetShiftState [00:34:52]wFMCommunicate request_size=4 [00:34:52]MH_SAM_APDU [00:34:52]CAPDU: 80 13 01 00 [00:34:52]Write to MH i2c: E2 08 00 99 18 80 13 01 00 00 00 00 00 2E [00:34:52]Write i2c OK [00:34:52]MH_I2C_Read... [00:34:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:34:52]Read from MH i2c: E2 [00:34:52]MH_I2C_Read... [00:34:52]Read from MH i2c: E2 0E 00 [00:34:52]MH_I2C_Read... [00:34:52]Read from MH i2c: E2 0E 00 99 18 00 09 00 01 AA 0D 5D 66 00 00 00 00 90 00 B4 [00:34:52]RAPDU: 09 00 01 AA 0D 5D 66 00 00 00 00 90 00 [00:34:52]wFMCommunicate OK [00:34:52]SAM_PROTO_GetShiftState done [00:34:52]FM_GetShiftState done [00:34:52]req_shift_opened done [00:34:52]requested_item shift.open_date is exist - process it [00:34:52]req_shift_open_date [00:34:52]req_shift_open_date done [00:34:52]produce_requested_data done [00:34:52]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68247,"shift.num":323,"shift.opened":1,"shift.open_date":1717374378} [00:34:52]process_action_free close_receipt [00:34:52]json_value_free [00:34:52]json_value_free done [00:34:52]process_json_proto returns [00:34:52]Send response to host [00:34:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68247,"shift.num":323,"shift.opened":1,"shift.open_date":1717374378}}} [00:34:52]free response buf [00:34:52]execute_script done [00:34:52]execute_script returns [00:34:52]free content buf [00:34:52]Sock 9.Close socket [00:34:52]Sock 9.Thread stoped [00:34:55]OFD Sender: No OFD packet to send [00:35:00]OFD Sender: No OFD packet to send [00:35:05]OFD Sender: No OFD packet to send [00:35:10]OFD Sender: No OFD packet to send [00:35:15]OFD Sender: No OFD packet to send [00:35:20]OFD Sender: No OFD packet to send [00:35:25]OFD Sender: No OFD packet to send [00:35:30]OFD Sender: No OFD packet to send [00:35:35]OFD Sender: No OFD packet to send [00:35:40]OFD Sender: No OFD packet to send [00:35:45]OFD Sender: No OFD packet to send [00:35:50]OFD Sender: No OFD packet to send [00:35:55]OFD Sender: No OFD packet to send [00:36:00]OFD Sender: No OFD packet to send [00:36:05]OFD Sender: No OFD packet to send [00:36:10]OFD Sender: No OFD packet to send [00:36:15]OFD Sender: No OFD packet to send [00:36:20]OFD Sender: No OFD packet to send [00:36:25]OFD Sender: No OFD packet to send [00:36:30]OFD Sender: No OFD packet to send [00:36:35]OFD Sender: No OFD packet to send [00:36:40]OFD Sender: No OFD packet to send [00:36:45]OFD Sender: No OFD packet to send [00:36:50]OFD Sender: No OFD packet to send [00:36:55]OFD Sender: No OFD packet to send [00:37:00]OFD Sender: No OFD packet to send [00:37:05]OFD Sender: No OFD packet to send [00:37:10]OFD Sender: No OFD packet to send [00:37:15]OFD Sender: No OFD packet to send [00:37:20]OFD Sender: No OFD packet to send [00:37:25]OFD Sender: No OFD packet to send [00:37:30]OFD Sender: No OFD packet to send [00:37:35]OFD Sender: No OFD packet to send [00:37:40]OFD Sender: No OFD packet to send [00:37:45]OFD Sender: No OFD packet to send [00:37:50]OFD Sender: No OFD packet to send [00:37:55]OFD Sender: No OFD packet to send [00:38:00]OFD Sender: No OFD packet to send [00:38:05]OFD Sender: No OFD packet to send [00:38:10]OFD Sender: No OFD packet to send [00:38:15]OFD Sender: No OFD packet to send [00:38:20]OFD Sender: No OFD packet to send [00:38:25]OFD Sender: No OFD packet to send [00:38:30]OFD Sender: No OFD packet to send [00:38:35]OFD Sender: No OFD packet to send [00:38:40]OFD Sender: No OFD packet to send [00:38:45]OFD Sender: No OFD packet to send [00:38:50]OFD Sender: No OFD packet to send [00:38:55]OFD Sender: No OFD packet to send [00:39:00]OFD Sender: No OFD packet to send [00:39:05]OFD Sender: No OFD packet to send [00:39:10]OFD Sender: No OFD packet to send [00:39:15]OFD Sender: No OFD packet to send [00:39:20]OFD Sender: No OFD packet to send [00:39:25]OFD Sender: No OFD packet to send [00:39:30]OFD Sender: No OFD packet to send [00:39:35]OFD Sender: No OFD packet to send [00:39:40]OFD Sender: No OFD packet to send [00:39:45]OFD Sender: No OFD packet to send [00:39:50]OFD Sender: No OFD packet to send [00:39:55]OFD Sender: No OFD packet to send [00:40:00]OFD Sender: No OFD packet to send [00:40:05]OFD Sender: No OFD packet to send [00:40:10]OFD Sender: No OFD packet to send [00:40:15]OFD Sender: No OFD packet to send [00:40:20]OFD Sender: No OFD packet to send [00:40:25]OFD Sender: No OFD packet to send [00:40:30]OFD Sender: No OFD packet to send [00:40:35]OFD Sender: No OFD packet to send [00:40:40]OFD Sender: No OFD packet to send [00:40:45]OFD Sender: No OFD packet to send [00:40:50]OFD Sender: No OFD packet to send [00:40:55]OFD Sender: No OFD packet to send [00:41:00]OFD Sender: No OFD packet to send [00:41:05]OFD Sender: No OFD packet to send [00:41:10]OFD Sender: No OFD packet to send [00:41:15]OFD Sender: No OFD packet to send [00:41:20]OFD Sender: No OFD packet to send [00:41:25]OFD Sender: No OFD packet to send [00:41:30]OFD Sender: No OFD packet to send [00:41:35]OFD Sender: No OFD packet to send [00:41:40]OFD Sender: No OFD packet to send [00:41:45]OFD Sender: No OFD packet to send [00:41:50]OFD Sender: No OFD packet to send [00:41:55]OFD Sender: No OFD packet to send [00:42:00]OFD Sender: No OFD packet to send [00:42:05]OFD Sender: No OFD packet to send [00:42:10]OFD Sender: No OFD packet to send [00:42:15]OFD Sender: No OFD packet to send [00:42:20]OFD Sender: No OFD packet to send [00:42:25]OFD Sender: No OFD packet to send [00:42:31]OFD Sender: No OFD packet to send [00:42:36]OFD Sender: No OFD packet to send [00:42:41]OFD Sender: No OFD packet to send [00:42:46]OFD Sender: No OFD packet to send [00:42:51]OFD Sender: No OFD packet to send [00:42:56]OFD Sender: No OFD packet to send [00:43:01]OFD Sender: No OFD packet to send [00:43:06]OFD Sender: No OFD packet to send [00:43:11]OFD Sender: No OFD packet to send [00:43:16]OFD Sender: No OFD packet to send [00:43:21]OFD Sender: No OFD packet to send [00:43:26]OFD Sender: No OFD packet to send [00:43:29]accept exits with 7 [00:43:29]New connection [00:43:29]New thread 3066686820 created [00:43:29]Thread 3066543460 joined [00:43:29]Waiting for new connection... [00:43:29] Sock 7.Parse request [00:43:29]Sock 7.Check first char [00:43:29]Sock 7.First char is OK [00:43:29]request: POST /json_proto HTTP/1.0 [00:43:29]Method: POST [00:43:29]URL: /json_proto [00:43:29]Method is POST - this is cgi request [00:43:29]url: /json_proto [00:43:29]query_string will be loaded in cgi processing [00:43:29]execute_cgi json_proto POST (null) [00:43:29]execute_cgi path=json_proto method=POST [00:43:29]POST find Content-Length [00:43:29]Host: 172.17.36.132:8080 [00:43:29]Content-Length: 670 [00:43:29]Content-Type: application/json [00:43:29] [00:43:29]POST finish read [00:43:29]Found Content-Length = 670 [00:43:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706319", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "Super-92-\u041A-5", "price" : 67.40, "quantity" : 7.420, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:43:29]execute_script... [00:43: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)706319", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "Super-92-\u041A-5", "price" : 67.40, "quantity" : 7.420, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:43:29]POST & json_proto [00:43:29]process_json_proto [00:43:29]json parsed OK: [00:43:29]protocol is kg_v1.0 [00:43:29]action value=close_receipt [00:43:29]process_action close_receipt [00:43:29]cmd_close_receipt [00:43:29]MH_GetDate [00:43:29]Write to MH i2c: F0 00 00 9A 18 A1 [00:43:29]Write i2c OK [00:43:29]MH_I2C_Read... [00:43:29]Read from MH i2c: F0 [00:43:29]MH_I2C_Read... [00:43:29]Read from MH i2c: F0 09 00 [00:43:29]MH_I2C_Read... [00:43:29]Read from MH i2c: F0 09 00 9A 18 00 B3 11 5D 66 B2 22 B0 64 19 [00:43:29]GetLastDocTimeStamp 1717374890 [00:43:29]current date 1717375411 [00:43:29]FM_GetShiftState [00:43:29]SAM_PROTO_GetShiftState [00:43:29]wFMCommunicate request_size=4 [00:43:29]MH_SAM_APDU [00:43:29]CAPDU: 80 13 01 00 [00:43:29]Write to MH i2c: E2 08 00 9B 18 80 13 01 00 00 00 00 00 30 [00:43:29]Write i2c OK [00:43:29]MH_I2C_Read... [00:43:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:43:29]Read from MH i2c: E2 [00:43:29]MH_I2C_Read... [00:43:29]Read from MH i2c: E2 0E 00 [00:43:29]MH_I2C_Read... [00:43:29]Read from MH i2c: E2 0E 00 9B 18 00 09 00 01 AA 0D 5D 66 00 00 00 00 90 00 B6 [00:43:29]RAPDU: 09 00 01 AA 0D 5D 66 00 00 00 00 90 00 [00:43:29]wFMCommunicate OK [00:43:29]SAM_PROTO_GetShiftState done [00:43:29]FM_GetShiftState done [00:43:29]opened in 1717374378 [00:43:29]opened+sec_in_day 1717460778 [00:43:29]quantity*price = 50010 [00:43:29]sum+1 = 50012 [00:43:29]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 3 03.06.2024 00:43 Смена: 323 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 ФМ: 0000000000965400 ФД: 68248 ФПД: 86627850450822 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T004331&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68248&fm=86627850450822&tin=02508201610067®Number=0000000000098096&sum=50000 [00:43:30]StoreToDocumentArchive [00:43:30]shift 323 fd 68248 [00:43:30]save to /storage/0323/doc_00068248 [00:43:30]save last doc name /storage/0323/doc_00068248 to /storage/kkm_last_doc_name [00:43:30]save OK [00:43:30]Clear old archive folders... [00:43:30]ProcessDocumentItem done err = 0, tmpTLVsize=252 [00:43:30]tlvbuf is 00466AC0 [00:43:30]SAM_PROTO_ClearQueue [00:43:30]wFMCommunicate request_size=4 [00:43:30]MH_SAM_APDU [00:43:30]CAPDU: 80 09 00 00 [00:43:30]Write to MH i2c: E2 08 00 A8 18 80 09 00 00 00 00 00 00 32 [00:43:30]Write i2c OK [00:43:30]MH_I2C_Read... [00:43:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:43:30]Read from MH i2c: E2 [00:43:30]MH_I2C_Read... [00:43:30]Read from MH i2c: E2 03 00 [00:43:30]MH_I2C_Read... [00:43:30]Read from MH i2c: E2 03 00 A8 18 00 90 00 34 [00:43:30]RAPDU: 90 00 [00:43:30]wFMCommunicate OK [00:43:30]SAM_PROTO_ClearQueue done [00:43:30]KKMCreateOFDPacket [00:43:30]OFDProtocolAddRootSTLVToBuf [00:43:30]FM_MakeSignedData [00:43:30]FM_MakeSignedData [00:43:30]SAM_PROTO_SignData [00:43:30]wFMCommunicate request_size=4 [00:43:30]MH_SAM_APDU [00:43:30]CAPDU: 80 0D 01 02 [00:43:30]Write to MH i2c: E2 08 00 A9 18 80 0D 01 02 00 00 00 00 3A [00:43:30]Write i2c OK [00:43:30]MH_I2C_Read... [00:43:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:43:30]Read from MH i2c: E2 [00:43:30]MH_I2C_Read... [00:43:30]Read from MH i2c: E2 03 00 [00:43:30]MH_I2C_Read... [00:43:30]Read from MH i2c: E2 03 00 A9 18 00 90 00 35 [00:43:30]RAPDU: 90 00 [00:43:30]wFMCommunicate OK [00:43:30]wFMCommunicate request_size=255 [00:43:30]MH_SAM_APDU [00:43:30]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 FC 1C 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 00 00 00 F4 03 04 00 B3 11 5D 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 98 0A 01 00 35 04 06 00 [00:43:30]Write to MH i2c: E2 02 01 AA 18 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 FC 1C 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 00 00 00 F4 03 04 00 B3 11 5D 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 98 0A 01 00 35 04 06 00 00 00 37 [00:43:30]Write i2c OK [00:43:30]MH_I2C_Read... [00:43:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:43:30]Read from MH i2c: E2 [00:43:30]MH_I2C_Read... [00:43:30]Read from MH i2c: E2 03 00 [00:43:30]MH_I2C_Read... [00:43:30]Read from MH i2c: E2 03 00 AA 18 00 90 00 36 [00:43:30]RAPDU: 90 00 [00:43:30]wFMCommunicate OK [00:43:30]wFMCommunicate request_size=11 [00:43:30]MH_SAM_APDU [00:43:30]CAPDU: 80 0D 02 02 06 4E C9 9E 40 F7 86 [00:43:30]Write to MH i2c: E2 0E 00 AB 18 80 0D 02 02 06 00 4E C9 9E 40 F7 86 00 00 BB [00:43:30]Write i2c OK [00:43:30]MH_I2C_Read... [00:43:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:43:30]Read from MH i2c: E2 [00:43:30]MH_I2C_Read... [00:43:30]Read from MH i2c: E2 03 00 [00:43:30]MH_I2C_Read... [00:43:30]Read from MH i2c: E2 03 00 AB 18 00 90 00 37 [00:43:30]RAPDU: 90 00 [00:43:30]wFMCommunicate OK [00:43:30]wFMCommunicate request_size=4 [00:43:30]MH_SAM_APDU [00:43:30]CAPDU: 80 0D 03 02 [00:43:30]Write to MH i2c: E2 08 00 AC 18 80 0D 03 02 00 00 00 00 3F [00:43:30]Write i2c OK [00:43:30]MH_I2C_Read... [00:43:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:43:30]Read from MH i2c: E2 [00:43:30]MH_I2C_Read... [00:43:30]Read from MH i2c: E2 0B 00 [00:43:30]MH_I2C_Read... [00:43:30]Read from MH i2c: E2 0B 00 AC 18 00 12 C5 23 D0 6B CF 8E A5 90 00 77 [00:43:30]RAPDU: 12 C5 23 D0 6B CF 8E A5 90 00 [00:43:30]wFMCommunicate OK [00:43:30]SAM_PROTO_SignData done [00:43:30]FM_MakeSignedData done [00:43:30]CreateOFDProtocolMessage [00:43:30]wFMCommunicate request_size=4 [00:43:30]MH_SAM_APDU [00:43:30]CAPDU: 80 11 00 00 [00:43:30]Write to MH i2c: E2 08 00 AD 18 80 11 00 00 00 00 00 00 3F [00:43:30]Write i2c OK [00:43:30]MH_I2C_Read... [00:43:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:43:30]Read from MH i2c: E2 [00:43:30]MH_I2C_Read... [00:43:30]Read from MH i2c: E2 17 00 [00:43:30]MH_I2C_Read... [00:43:30]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 35 34 30 30 90 00 8A [00:43:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [00:43:30]wFMCommunicate OK [00:43:30]CreateOFDProtocolMessage done [00:43:30]OFDSenderStorePacket 68248 [00:43:30]StoreOFDPacket docnum=68248 [00:43:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 01 00 00 4C 7C 08 01 1E E3 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 FC 1C 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 00 00 00 F4 03 04 00 B3 11 5D 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 98 0A 01 00 35 04 06 00 4E C9 9E 40 F7 86 12 C5 23 D0 6B CF 8E A5 [00:43:30]CheckFolder [00:43:30]dirname=/storage/ofd_packets [00:43:30]CheckFolder done [00:43:30]ProducePacketName [00:43:30]name=ofd_packets/00068248 [00:43:30]NVStorageSaveData ofd_packets/00068248 [00:43:30]File name is /storage/ofd_packets/00068248 [00:43:30]Write 302 bytes [00:43:30]NVStorageSaveData done [00:43:30]OFDSenderStorePacket done [00:43:30]KKMCreateOFDPacket done [00:43:30]NVStorageSaveData kkm_last_timestamp [00:43:30]File name is /storage/kkm_last_timestamp [00:43:30]Write 4 bytes [00:43:30]NVStorageSaveData done [00:43:30]ExternCall_PrintAddStr [00:43:30]wPrintStart [00:43:30]Write to MH i2c: 01 00 00 AE 18 C6 [00:43:30]Write i2c OK [00:43:30]MH_I2C_Read... [00:43:30]Read from MH i2c: 01 [00:43:30]MH_I2C_Read... [00:43:30]Read from MH i2c: 01 07 00 [00:43:30]MH_I2C_Read... [00:43:30]Read from MH i2c: 01 07 00 AE 18 00 00 00 00 00 FF 0F DB [00:43:30]RasterBufferAndPrint [00:43:30]line Счет N : (1)706319 [00:43:30]line ИНН: 02508201610067 [00:43:30]line Контрольно-Кассовый Чек [00:43:30]line ПРОДАЖА [00:43:30]line ТРК (МРК, ГНК) : 52 [00:43:30]line Товар: 2710124130 [00:43:30]line Super-92-К-5 [00:43:30]line 7.420 * 67.40 [00:43:30]line = 500.11 [00:43:30]line НДС 12% НСП 1% [00:43:30]line > о реализуемом товаре [00:43:30]line ОКРУГЛЕНИЕ: -0.11 [00:43:30]line ИТОГО: 500.00 [00:43:30]line Внесено: 500.00 [00:43:30]line СДАЧА: 0.00 [00:43:30]line НСП 1% : 4.43 [00:43:30]line НДС 12% : 53.11 [00:43:30]line Наличными: 500.00 [00:43:30]line Безнал.: 0.00 [00:43:30]line Место: АЗС № 62 "Партнер Нефть" [00:43:30]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [00:43:30]line СНО: Общий режим [00:43:30]line Чек 3 03.06.2024 00:43 [00:43:30]line Смена: 323 ФФД: 1.0 [00:43:30]line ЗНМ: 0300000181 [00:43:30]line РНМ: 0000000000098096 [00:43:30]line Версия ККМ: 001 [00:43:30]line ФМ: 0000000000965400 [00:43:30]line ФД: 68248 [00:43:30]line ФПД: 86627850450822 [00:43:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T004331&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68248&fm=86627850450822&tin=02508201610067®Number=0000000000098096&sum=50000 [00:43:31]OFD Sender: Processing packet 68248 [packets to send 26, broken 25] [00:43:31]ProducePacketName [00:43:31]name=ofd_packets/00068248 [00:43:31]OFD Sender: To server: pG, [00:43:31]CommunicateWithHost lk.salyk.kg:30040 [00:43:31]ConnectInit lk.salyk.kg [00:43:31]written 0, free lines is 4095 [00:43:31]Connected sock=9 [00:43:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 01 00 00 4C 7C 08 01 1E E3 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 FC 1C 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 00 00 00 F4 03 04 00 B3 11 5D 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 98 0A 01 00 35 04 06 00 4E C9 9E 40 F7 86 12 C5 23 D0 6B CF 8E A5 [00:43:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 2D FB 47 00 8B 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 35 34 30 30 10 04 04 00 98 0A 01 00 F4 03 04 00 B1 B8 5C 66 B6 04 01 00 00 2B B5 05 7D 32 2B E1 ED [00:43:31]CommunicateWithHost err = 0 [00:43:31]CheckOFDResponse [00:43:31]1017 (14) - 77093643461234 [00:43:31]1041 (16) - 0000000000965400 [00:43:31]1040 (4) - 68248 [00:43:31]1012 (4) - 02.06.2024 18:23 [00:43:31]1206 (1) - 0 [00:43:31]OFD Sender: Remove packet 68248 [00:43:31]ProducePacketName [00:43:31]name=ofd_packets/00068248 [00:43:31]NVStorageDeleteData [00:43:31]Write to MH i2c: 01 00 00 D9 18 F1 [00:43:31]Write i2c OK [00:43:31]MH_I2C_Read... [00:43:31]Read from MH i2c: 01 [00:43:31]MH_I2C_Read... [00:43:31]Read from MH i2c: 01 07 00 [00:43:31]MH_I2C_Read... [00:43:31]Read from MH i2c: 01 07 00 D9 18 00 00 00 00 00 CF 0C D3 [00:43:31]RasterBufferAndPrint [00:43:31]line [00:43:31]line [00:43:31]line [00:43:31]line [00:43:31]line [00:43:31]written 0, free lines is 3287 [00:43:31]MH_Cut [00:43:31]Write to MH i2c: D1 01 00 E0 18 01 CA [00:43:31]Write i2c OK [00:43:31]MH_I2C_Read... [00:43:31]Read from MH i2c: D1 [00:43:31]MH_I2C_Read... [00:43:31]Read from MH i2c: D1 01 00 [00:43:31]MH_I2C_Read... [00:43:31]Read from MH i2c: D1 01 00 E0 18 00 C9 [00:43:31]Write to MH i2c: 01 00 00 E1 18 F9 [00:43:31]Write i2c OK [00:43:31]MH_I2C_Read... [00:43:32]OFD Sender: No OFD packet to send [00:43:32]*** Cut start [00:43:32]*** Partial cut [00:43:32]*** CUTSNS_PIN = 1 [00:43:32]*** CUTSNS_PIN = 0 [00:43:32]*** Brake cut motor [00:43:33]Read from MH i2c: 01 [00:43:33]MH_I2C_Read... [00:43:33]*** Stop cut motor [00:43:33]*** Cut end [00:43:33]Read from MH i2c: 01 07 00 [00:43:33]MH_I2C_Read... [00:43:33]Read from MH i2c: 01 07 00 E1 18 00 00 00 00 00 FF 0F 0E [00:43:33]process_action close_receipt done [00:43:33]requested_data is exist [00:43:33]produce_requested_data [00:43:33]requested_item fm.sn is exist - process it [00:43:33]wFMCommunicate request_size=4 [00:43:33]MH_SAM_APDU [00:43:33]CAPDU: 80 11 00 00 [00:43:33]Write to MH i2c: E2 08 00 E2 18 80 11 00 00 00 00 00 00 74 [00:43:33]Write i2c OK [00:43:33]MH_I2C_Read... [00:43:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:43:33]Read from MH i2c: E2 [00:43:33]MH_I2C_Read... [00:43:33]Read from MH i2c: E2 17 00 [00:43:33]MH_I2C_Read... [00:43:33]Read from MH i2c: E2 17 00 E2 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 BF [00:43:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [00:43:33]wFMCommunicate OK [00:43:33]requested_item fd.num is exist - process it [00:43:33]SAM_PROTO_GetFieldsCounters [00:43:33]wFMCommunicate request_size=4 [00:43:33]MH_SAM_APDU [00:43:33]CAPDU: 80 13 00 00 [00:43:33]Write to MH i2c: E2 08 00 E3 18 80 13 00 00 00 00 00 00 77 [00:43:33]Write i2c OK [00:43:33]MH_I2C_Read... [00:43:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:43:33]Read from MH i2c: E2 [00:43:33]MH_I2C_Read... [00:43:33]Read from MH i2c: E2 62 00 [00:43:33]MH_I2C_Read... [00:43:33]Read from MH i2c: E2 62 00 E3 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 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 98 0A 01 00 0E 04 04 00 43 01 00 00 12 04 04 00 03 00 00 00 5E 04 04 00 03 00 00 00 57 04 04 00 04 00 00 00 19 04 04 00 00 00 00 00 90 00 87 [00:43: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 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 98 0A 01 00 0E 04 04 00 43 01 00 00 12 04 04 00 03 00 00 00 5E 04 04 00 03 00 00 00 57 04 04 00 04 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:43:33]wFMCommunicate OK [00:43:33]SAM_PROTO_GetFieldsCounters done [00:43:33]requested_item shift.num is exist - process it [00:43:33]requested_item shift.opened is exist - process it [00:43:33]req_shift_opened [00:43:33]FM_GetShiftState [00:43:33]SAM_PROTO_GetShiftState [00:43:33]wFMCommunicate request_size=4 [00:43:33]MH_SAM_APDU [00:43:33]CAPDU: 80 13 01 00 [00:43:33]Write to MH i2c: E2 08 00 E4 18 80 13 01 00 00 00 00 00 79 [00:43:33]Write i2c OK [00:43:33]MH_I2C_Read... [00:43:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:43:33]Read from MH i2c: E2 [00:43:33]MH_I2C_Read... [00:43:33]Read from MH i2c: E2 0E 00 [00:43:33]MH_I2C_Read... [00:43:33]Read from MH i2c: E2 0E 00 E4 18 00 09 00 01 AA 0D 5D 66 00 00 00 00 90 00 FF [00:43:33]RAPDU: 09 00 01 AA 0D 5D 66 00 00 00 00 90 00 [00:43:33]wFMCommunicate OK [00:43:33]SAM_PROTO_GetShiftState done [00:43:33]FM_GetShiftState done [00:43:33]req_shift_opened done [00:43:33]requested_item shift.open_date is exist - process it [00:43:33]req_shift_open_date [00:43:33]req_shift_open_date done [00:43:33]produce_requested_data done [00:43:33]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68248,"shift.num":323,"shift.opened":1,"shift.open_date":1717374378} [00:43:33]process_action_free close_receipt [00:43:33]json_value_free [00:43:33]json_value_free done [00:43:33]process_json_proto returns [00:43:33]Send response to host [00:43:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68248,"shift.num":323,"shift.opened":1,"shift.open_date":1717374378}}} [00:43:33]free response buf [00:43:33]execute_script done [00:43:33]execute_script returns [00:43:33]free content buf [00:43:33]Sock 7.Close socket [00:43:33]Sock 7.Thread stoped [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:32]OFD Sender: No OFD packet to send [00:49:37]OFD Sender: No OFD packet to send [00:49:39]accept exits with 10 [00:49:39]New connection [00:49:39]New thread 3066543460 created [00:49:39]Thread 3066686820 joined [00:49:39]Waiting for new connection... [00:49:39] Sock 10.Parse request [00:49:39]Sock 10.Check first char [00:49:39]Sock 10.First char is OK [00:49:39]request: POST /json_proto HTTP/1.0 [00:49:39]Method: POST [00:49:39]URL: /json_proto [00:49:39]Method is POST - this is cgi request [00:49:39]url: /json_proto [00:49:39]query_string will be loaded in cgi processing [00:49:39]execute_cgi json_proto POST (null) [00:49:39]execute_cgi path=json_proto method=POST [00:49:39]POST find Content-Length [00:49:39]Host: 172.17.36.132:8080 [00:49:39]Content-Length: 677 [00:49:39]Content-Type: application/json [00:49:39] [00:49:39]POST finish read [00:49:39]Found Content-Length = 677 [00:49:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706320", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:49:39]execute_script... [00:49: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)706320", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:49:39]POST & json_proto [00:49:39]process_json_proto [00:49:39]json parsed OK: [00:49:39]protocol is kg_v1.0 [00:49:39]action value=close_receipt [00:49:39]process_action close_receipt [00:49:39]cmd_close_receipt [00:49:39]MH_GetDate [00:49:39]Write to MH i2c: F0 00 00 E5 18 EC [00:49:39]Write i2c OK [00:49:39]MH_I2C_Read... [00:49:39]Read from MH i2c: F0 [00:49:39]MH_I2C_Read... [00:49:39]Read from MH i2c: F0 09 00 [00:49:39]MH_I2C_Read... [00:49:39]Read from MH i2c: F0 09 00 E5 18 00 26 13 5D 66 B2 22 B0 64 D9 [00:49:39]GetLastDocTimeStamp 1717375411 [00:49:39]current date 1717375782 [00:49:39]FM_GetShiftState [00:49:39]SAM_PROTO_GetShiftState [00:49:39]wFMCommunicate request_size=4 [00:49:39]MH_SAM_APDU [00:49:39]CAPDU: 80 13 01 00 [00:49:39]Write to MH i2c: E2 08 00 E6 18 80 13 01 00 00 00 00 00 7B [00:49:39]Write i2c OK [00:49:39]MH_I2C_Read... [00:49:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:49:39]Read from MH i2c: E2 [00:49:39]MH_I2C_Read... [00:49:39]Read from MH i2c: E2 0E 00 [00:49:39]MH_I2C_Read... [00:49:39]Read from MH i2c: E2 0E 00 E6 18 00 09 00 01 AA 0D 5D 66 00 00 00 00 90 00 01 [00:49:39]RAPDU: 09 00 01 AA 0D 5D 66 00 00 00 00 90 00 [00:49:39]wFMCommunicate OK [00:49:39]SAM_PROTO_GetShiftState done [00:49:39]FM_GetShiftState done [00:49:39]opened in 1717374378 [00:49:39]opened+sec_in_day 1717460778 [00:49:39]quantity*price = 50065 [00:49:39]sum+1 = 50067 [00:49:39]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.66 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.17 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 4 03.06.2024 00:49 Смена: 323 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 ФМ: 0000000000965400 ФД: 68249 ФПД: 52578632096881 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T004942&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68249&fm=52578632096881&tin=02508201610067®Number=0000000000098096&sum=50000 [00:49:41]StoreToDocumentArchive [00:49:41]shift 323 fd 68249 [00:49:41]save to /storage/0323/doc_00068249 [00:49:41]save last doc name /storage/0323/doc_00068249 to /storage/kkm_last_doc_name [00:49:41]save OK [00:49:41]Clear old archive folders... [00:49:41]ProcessDocumentItem done err = 0, tmpTLVsize=251 [00:49:41]tlvbuf is 00281500 [00:49:41]SAM_PROTO_ClearQueue [00:49:41]wFMCommunicate request_size=4 [00:49:41]MH_SAM_APDU [00:49:41]CAPDU: 80 09 00 00 [00:49:41]Write to MH i2c: E2 08 00 F3 18 80 09 00 00 00 00 00 00 7D [00:49:41]Write i2c OK [00:49:41]MH_I2C_Read... [00:49:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:49:41]Read from MH i2c: E2 [00:49:41]MH_I2C_Read... [00:49:41]Read from MH i2c: E2 03 00 [00:49:41]MH_I2C_Read... [00:49:41]Read from MH i2c: E2 03 00 F3 18 00 90 00 7F [00:49:41]RAPDU: 90 00 [00:49:41]wFMCommunicate OK [00:49:41]SAM_PROTO_ClearQueue done [00:49:41]KKMCreateOFDPacket [00:49:41]OFDProtocolAddRootSTLVToBuf [00:49:41]FM_MakeSignedData [00:49:41]FM_MakeSignedData [00:49:41]SAM_PROTO_SignData [00:49:41]wFMCommunicate request_size=4 [00:49:41]MH_SAM_APDU [00:49:41]CAPDU: 80 0D 01 02 [00:49:41]Write to MH i2c: E2 08 00 F4 18 80 0D 01 02 00 00 00 00 85 [00:49:41]Write i2c OK [00:49:41]MH_I2C_Read... [00:49:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:49:41]Read from MH i2c: E2 [00:49:41]MH_I2C_Read... [00:49:41]Read from MH i2c: E2 03 00 [00:49:41]MH_I2C_Read... [00:49:41]Read from MH i2c: E2 03 00 F4 18 00 90 00 80 [00:49:41]RAPDU: 90 00 [00:49:41]wFMCommunicate OK [00:49:41]wFMCommunicate request_size=255 [00:49:41]MH_SAM_APDU [00:49:41]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 00 00 00 F4 03 04 00 26 13 5D 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 99 0A 01 00 35 04 06 00 2F [00:49:41]Write to MH i2c: E2 02 01 F5 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 34 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 00 00 00 F4 03 04 00 26 13 5D 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 99 0A 01 00 35 04 06 00 2F 00 00 4E [00:49:41]Write i2c OK [00:49:41]MH_I2C_Read... [00:49:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:49:41]Read from MH i2c: E2 [00:49:41]MH_I2C_Read... [00:49:41]Read from MH i2c: E2 03 00 [00:49:41]MH_I2C_Read... [00:49:41]Read from MH i2c: E2 03 00 F5 18 00 90 00 81 [00:49:41]RAPDU: 90 00 [00:49:41]wFMCommunicate OK [00:49:41]wFMCommunicate request_size=10 [00:49:41]MH_SAM_APDU [00:49:41]CAPDU: 80 0D 02 02 05 D1 EA B0 5C 71 [00:49:41]Write to MH i2c: E2 0D 00 F6 18 80 0D 02 02 05 00 D1 EA B0 5C 71 00 00 CA [00:49:41]Write i2c OK [00:49:41]MH_I2C_Read... [00:49:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:49:41]Read from MH i2c: E2 [00:49:41]MH_I2C_Read... [00:49:41]Read from MH i2c: E2 03 00 [00:49:41]MH_I2C_Read... [00:49:41]Read from MH i2c: E2 03 00 F6 18 00 90 00 82 [00:49:41]RAPDU: 90 00 [00:49:41]wFMCommunicate OK [00:49:41]wFMCommunicate request_size=4 [00:49:41]MH_SAM_APDU [00:49:41]CAPDU: 80 0D 03 02 [00:49:41]Write to MH i2c: E2 08 00 F7 18 80 0D 03 02 00 00 00 00 8A [00:49:41]Write i2c OK [00:49:41]MH_I2C_Read... [00:49:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:49:41]Read from MH i2c: E2 [00:49:41]MH_I2C_Read... [00:49:41]Read from MH i2c: E2 0B 00 [00:49:41]MH_I2C_Read... [00:49:41]Read from MH i2c: E2 0B 00 F7 18 00 CD 7C BB DA 96 26 96 31 90 00 EC [00:49:41]RAPDU: CD 7C BB DA 96 26 96 31 90 00 [00:49:41]wFMCommunicate OK [00:49:41]SAM_PROTO_SignData done [00:49:41]FM_MakeSignedData done [00:49:41]CreateOFDProtocolMessage [00:49:41]wFMCommunicate request_size=4 [00:49:41]MH_SAM_APDU [00:49:41]CAPDU: 80 11 00 00 [00:49:41]Write to MH i2c: E2 08 00 F8 18 80 11 00 00 00 00 00 00 8A [00:49:41]Write i2c OK [00:49:41]MH_I2C_Read... [00:49:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:49:41]Read from MH i2c: E2 [00:49:41]MH_I2C_Read... [00:49:41]Read from MH i2c: E2 17 00 [00:49:41]MH_I2C_Read... [00:49:41]Read from MH i2c: E2 17 00 F8 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 D5 [00:49:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [00:49:41]wFMCommunicate OK [00:49:41]CreateOFDProtocolMessage done [00:49:41]OFDSenderStorePacket 68249 [00:49:41]StoreOFDPacket docnum=68249 [00:49:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 F1 6C 07 01 AB F3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 00 00 00 F4 03 04 00 26 13 5D 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 99 0A 01 00 35 04 06 00 2F D1 EA B0 5C 71 CD 7C BB DA 96 26 96 31 [00:49:41]CheckFolder [00:49:41]dirname=/storage/ofd_packets [00:49:41]CheckFolder done [00:49:41]ProducePacketName [00:49:41]name=ofd_packets/00068249 [00:49:41]NVStorageSaveData ofd_packets/00068249 [00:49:41]File name is /storage/ofd_packets/00068249 [00:49:41]Write 301 bytes [00:49:41]NVStorageSaveData done [00:49:41]OFDSenderStorePacket done [00:49:41]KKMCreateOFDPacket done [00:49:41]NVStorageSaveData kkm_last_timestamp [00:49:41]File name is /storage/kkm_last_timestamp [00:49:41]Write 4 bytes [00:49:41]NVStorageSaveData done [00:49:41]ExternCall_PrintAddStr [00:49:41]wPrintStart [00:49:41]Write to MH i2c: 01 00 00 F9 18 11 [00:49:41]Write i2c OK [00:49:41]MH_I2C_Read... [00:49:41]Read from MH i2c: 01 [00:49:41]MH_I2C_Read... [00:49:41]Read from MH i2c: 01 07 00 [00:49:41]MH_I2C_Read... [00:49:41]Read from MH i2c: 01 07 00 F9 18 00 00 00 00 00 FF 0F 26 [00:49:41]RasterBufferAndPrint [00:49:41]line Счет N : (1)706320 [00:49:41]line ИНН: 02508201610067 [00:49:41]line Контрольно-Кассовый Чек [00:49:41]line ПРОДАЖА [00:49:41]line ТРК (МРК, ГНК) : 53 [00:49:41]line Товар: 2710124130 [00:49:41]line Аи-92-К-4 [00:49:41]line 7.540 * 66.40 [00:49:41]line = 500.66 [00:49:41]line НДС 12% НСП 1% [00:49:41]line > о реализуемом товаре [00:49:41]line ОКРУГЛЕНИЕ: -0.66 [00:49:41]line ИТОГО: 500.00 [00:49:41]line Внесено: 500.00 [00:49:41]line СДАЧА: 0.00 [00:49:41]line НСП 1% : 4.43 [00:49:41]line НДС 12% : 53.17 [00:49:41]line Наличными: 500.00 [00:49:41]line Безнал.: 0.00 [00:49:41]line Место: АЗС № 62 "Партнер Нефть" [00:49:41]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [00:49:41]line СНО: Общий режим [00:49:41]line Чек 4 03.06.2024 00:49 [00:49:41]line Смена: 323 ФФД: 1.0 [00:49:41]line ЗНМ: 0300000181 [00:49:41]line РНМ: 0000000000098096 [00:49:41]line Версия ККМ: 001 [00:49:41]line ФМ: 0000000000965400 [00:49:41]line ФД: 68249 [00:49:41]line ФПД: 52578632096881 [00:49:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T004942&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68249&fm=52578632096881&tin=02508201610067®Number=0000000000098096&sum=50000 [00:49:41]OFD Sender: Processing packet 68249 [packets to send 26, broken 25] [00:49:41]ProducePacketName [00:49:41]name=ofd_packets/00068249 [00:49:41]OFD Sender: To server: pG, [00:49:41]CommunicateWithHost lk.salyk.kg:30040 [00:49:41]ConnectInit lk.salyk.kg [00:49:41]written 0, free lines is 4095 [00:49:42]Write to MH i2c: 01 00 00 24 19 3D [00:49:42]Write i2c OK [00:49:42]MH_I2C_Read... [00:49:42]Read from MH i2c: 01 [00:49:42]MH_I2C_Read... [00:49:42]Read from MH i2c: 01 07 00 [00:49:42]MH_I2C_Read... [00:49:42]Read from MH i2c: 01 07 00 24 19 00 00 00 00 00 D6 0C 26 [00:49:42]RasterBufferAndPrint [00:49:42]line [00:49:42]line [00:49:42]line [00:49:42]line [00:49:42]line [00:49:42]written 0, free lines is 3289 [00:49:42]MH_Cut [00:49:42]Write to MH i2c: D1 01 00 2B 19 01 16 [00:49:42]Write i2c OK [00:49:42]MH_I2C_Read... [00:49:42]Read from MH i2c: D1 [00:49:42]MH_I2C_Read... [00:49:42]Read from MH i2c: D1 01 00 [00:49:42]MH_I2C_Read... [00:49:42]Read from MH i2c: D1 01 00 2B 19 00 15 [00:49:42]Write to MH i2c: 01 00 00 2C 19 45 [00:49:42]Write i2c OK [00:49:42]MH_I2C_Read... [00:49:43]*** Cut start [00:49:43]*** Partial cut [00:49:43]*** CUTSNS_PIN = 1 [00:49:43]*** CUTSNS_PIN = 0 [00:49:43]*** Brake cut motor [00:49:43]Read from MH i2c: 01 [00:49:43]MH_I2C_Read... [00:49:43]*** Stop cut motor [00:49:43]*** Cut end [00:49:43]Read from MH i2c: 01 07 00 [00:49:43]MH_I2C_Read... [00:49:43]Read from MH i2c: 01 07 00 2C 19 00 00 00 00 00 FF 0F 5A [00:49:43]process_action close_receipt done [00:49:43]requested_data is exist [00:49:43]produce_requested_data [00:49:43]requested_item fm.sn is exist - process it [00:49:43]wFMCommunicate request_size=4 [00:49:43]MH_SAM_APDU [00:49:43]CAPDU: 80 11 00 00 [00:49:43]Write to MH i2c: E2 08 00 2D 19 80 11 00 00 00 00 00 00 C0 [00:49:43]Write i2c OK [00:49:43]MH_I2C_Read... [00:49:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:49:43]Read from MH i2c: E2 [00:49:43]MH_I2C_Read... [00:49:43]Read from MH i2c: E2 17 00 [00:49:43]MH_I2C_Read... [00:49:43]Read from MH i2c: E2 17 00 2D 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 0B [00:49:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [00:49:43]wFMCommunicate OK [00:49:43]requested_item fd.num is exist - process it [00:49:43]SAM_PROTO_GetFieldsCounters [00:49:43]wFMCommunicate request_size=4 [00:49:43]MH_SAM_APDU [00:49:43]CAPDU: 80 13 00 00 [00:49:43]Write to MH i2c: E2 08 00 2E 19 80 13 00 00 00 00 00 00 C3 [00:49:43]Write i2c OK [00:49:43]MH_I2C_Read... [00:49:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:49:43]Read from MH i2c: E2 [00:49:43]MH_I2C_Read... [00:49:43]Read from MH i2c: E2 62 00 [00:49:43]MH_I2C_Read... [00:49:43]Read from MH i2c: E2 62 00 2E 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 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 99 0A 01 00 0E 04 04 00 43 01 00 00 12 04 04 00 04 00 00 00 5E 04 04 00 04 00 00 00 57 04 04 00 05 00 00 00 19 04 04 00 00 00 00 00 90 00 D7 [00:49: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 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 99 0A 01 00 0E 04 04 00 43 01 00 00 12 04 04 00 04 00 00 00 5E 04 04 00 04 00 00 00 57 04 04 00 05 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:49:43]wFMCommunicate OK [00:49:43]SAM_PROTO_GetFieldsCounters done [00:49:43]requested_item shift.num is exist - process it [00:49:43]requested_item shift.opened is exist - process it [00:49:43]req_shift_opened [00:49:43]FM_GetShiftState [00:49:43]SAM_PROTO_GetShiftState [00:49:43]wFMCommunicate request_size=4 [00:49:43]MH_SAM_APDU [00:49:43]CAPDU: 80 13 01 00 [00:49:43]Write to MH i2c: E2 08 00 2F 19 80 13 01 00 00 00 00 00 C5 [00:49:43]Write i2c OK [00:49:43]MH_I2C_Read... [00:49:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:49:44]Read from MH i2c: E2 [00:49:44]MH_I2C_Read... [00:49:44]Read from MH i2c: E2 0E 00 [00:49:44]MH_I2C_Read... [00:49:44]Read from MH i2c: E2 0E 00 2F 19 00 09 00 01 AA 0D 5D 66 00 00 00 00 90 00 4B [00:49:44]RAPDU: 09 00 01 AA 0D 5D 66 00 00 00 00 90 00 [00:49:44]wFMCommunicate OK [00:49:44]SAM_PROTO_GetShiftState done [00:49:44]FM_GetShiftState done [00:49:44]req_shift_opened done [00:49:44]requested_item shift.open_date is exist - process it [00:49:44]req_shift_open_date [00:49:44]req_shift_open_date done [00:49:44]produce_requested_data done [00:49:44]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68249,"shift.num":323,"shift.opened":1,"shift.open_date":1717374378} [00:49:44]process_action_free close_receipt [00:49:44]json_value_free [00:49:44]json_value_free done [00:49:44]process_json_proto returns [00:49:44]Send response to host [00:49:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68249,"shift.num":323,"shift.opened":1,"shift.open_date":1717374378}}} [00:49:44]free response buf [00:49:44]execute_script done [00:49:44]execute_script returns [00:49:44]free content buf [00:49:44]Sock 10.Close socket [00:49:44]Sock 10.Thread stoped [00:51:52]ConnectInit Can't connect to host [00:51:52]CommunicateWithHost connect error [00:51:52]CommunicateWithHost err = -1 [00:51:52]OFD Sender: Server communicate error [00:51:57]OFD Sender: Processing packet 68249 [packets to send 26, broken 25] [00:51:57]ProducePacketName [00:51:57]name=ofd_packets/00068249 [00:51:57]OFD Sender: To server: pG, [00:51:57]CommunicateWithHost lk.salyk.kg:30040 [00:51:57]ConnectInit lk.salyk.kg [00:51:57]Connected sock=10 [00:51:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 F1 6C 07 01 AB F3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 00 00 00 F4 03 04 00 26 13 5D 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 99 0A 01 00 35 04 06 00 2F D1 EA B0 5C 71 CD 7C BB DA 96 26 96 31 [00:51:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 31 56 47 00 EE 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 35 34 30 30 10 04 04 00 99 0A 01 00 F4 03 04 00 AB BA 5C 66 B6 04 01 00 00 04 C2 B9 0D 1E A8 E6 6F [00:51:58]CommunicateWithHost err = 0 [00:51:58]CheckOFDResponse [00:51:58]1017 (14) - 77093643461234 [00:51:58]1041 (16) - 0000000000965400 [00:51:58]1040 (4) - 68249 [00:51:58]1012 (4) - 02.06.2024 18:32 [00:51:58]1206 (1) - 0 [00:51:58]OFD Sender: Remove packet 68249 [00:51:58]ProducePacketName [00:51:58]name=ofd_packets/00068249 [00:51:58]NVStorageDeleteData [00:51:58]OFD Sender: No OFD packet to send [00:52:03]OFD Sender: No OFD packet to send [00:52:08]OFD Sender: No OFD packet to send [00:52:13]OFD Sender: No OFD packet to send [00:52:18]OFD Sender: No OFD packet to send [00:52:23]OFD Sender: No OFD packet to send [00:52:28]OFD Sender: No OFD packet to send [00:52:33]OFD Sender: No OFD packet to send [00:52:38]OFD Sender: No OFD packet to send [00:52:43]OFD Sender: No OFD packet to send [00:52:48]OFD Sender: No OFD packet to send [00:52:53]OFD Sender: No OFD packet to send [00:52:58]OFD Sender: No OFD packet to send [00:53:03]OFD Sender: No OFD packet to send [00:53:08]OFD Sender: No OFD packet to send [00:53:13]OFD Sender: No OFD packet to send [00:53:18]OFD Sender: No OFD packet to send [00:53:23]OFD Sender: No OFD packet to send [00:53:28]OFD Sender: No OFD packet to send [00:53:33]OFD Sender: No OFD packet to send [00:53:38]OFD Sender: No OFD packet to send [00:53:43]OFD Sender: No OFD packet to send [00:53:48]OFD Sender: No OFD packet to send [00:53:53]OFD Sender: No OFD packet to send [00:53:58]OFD Sender: No OFD packet to send [00:54:03]OFD Sender: No OFD packet to send [00:54:08]OFD Sender: No OFD packet to send [00:54:13]OFD Sender: No OFD packet to send [00:54:18]OFD Sender: No OFD packet to send [00:54:23]OFD Sender: No OFD packet to send [00:54:28]OFD Sender: No OFD packet to send [00:54:33]OFD Sender: No OFD packet to send [00:54:38]OFD Sender: No OFD packet to send [00:54:43]OFD Sender: No OFD packet to send [00:54:48]OFD Sender: No OFD packet to send [00:54:53]OFD Sender: No OFD packet to send [00:54:58]OFD Sender: No OFD packet to send [00:54:58]accept exits with 7 [00:54:58]New connection [00:54:58]New thread 3066686820 created [00:54:58]Thread 3066543460 joined [00:54:58]Waiting for new connection... [00:54:58] Sock 7.Parse request [00:54:58]Sock 7.Check first char [00:54:58]Sock 7.First char is OK [00:54:58]request: POST /json_proto HTTP/1.0 [00:54:58]Method: POST [00:54:58]URL: /json_proto [00:54:58]Method is POST - this is cgi request [00:54:58]url: /json_proto [00:54:58]query_string will be loaded in cgi processing [00:54:58]execute_cgi json_proto POST (null) [00:54:58]execute_cgi path=json_proto method=POST [00:54:58]POST find Content-Length [00:54:58]Host: 172.17.36.132:8080 [00:54:58]Content-Length: 678 [00:54:58]Content-Type: application/json [00:54:58] [00:54:58]POST finish read [00:54:58]Found Content-Length = 678 [00:54:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706321", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.40, "quantity" : 12.050, "sum" : 800.12, "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" ] } } [00:54:58]execute_script... [00: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)706321", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.40, "quantity" : 12.050, "sum" : 800.12, "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" ] } } [00:54:58]POST & json_proto [00:54:58]process_json_proto [00:54:58]json parsed OK: [00:54:58]protocol is kg_v1.0 [00:54:58]action value=close_receipt [00:54:58]process_action close_receipt [00:54:58]cmd_close_receipt [00:54:58]MH_GetDate [00:54:58]Write to MH i2c: F0 00 00 30 19 38 [00:54:58]Write i2c OK [00:54:58]MH_I2C_Read... [00:54:58]Read from MH i2c: F0 [00:54:58]MH_I2C_Read... [00:54:58]Read from MH i2c: F0 09 00 [00:54:58]MH_I2C_Read... [00:54:58]Read from MH i2c: F0 09 00 30 19 00 65 14 5D 66 B2 22 B0 64 65 [00:54:58]GetLastDocTimeStamp 1717375782 [00:54:58]current date 1717376101 [00:54:58]FM_GetShiftState [00:54:58]SAM_PROTO_GetShiftState [00:54:58]wFMCommunicate request_size=4 [00:54:58]MH_SAM_APDU [00:54:58]CAPDU: 80 13 01 00 [00:54:58]Write to MH i2c: E2 08 00 31 19 80 13 01 00 00 00 00 00 C7 [00:54:58]Write i2c OK [00:54:58]MH_I2C_Read... [00:54:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:54:58]Read from MH i2c: E2 [00:54:58]MH_I2C_Read... [00:54:58]Read from MH i2c: E2 0E 00 [00:54:58]MH_I2C_Read... [00:54:58]Read from MH i2c: E2 0E 00 31 19 00 09 00 01 AA 0D 5D 66 00 00 00 00 90 00 4D [00:54:58]RAPDU: 09 00 01 AA 0D 5D 66 00 00 00 00 90 00 [00:54:58]wFMCommunicate OK [00:54:58]SAM_PROTO_GetShiftState done [00:54:58]FM_GetShiftState done [00:54:58]opened in 1717374378 [00:54:58]opened+sec_in_day 1717460778 [00:54:58]quantity*price = 80012 [00:54:58]sum+1 = 80013 [00:54:58]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 84.97 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 5 03.06.2024 00:55 Смена: 323 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 ФМ: 0000000000965400 ФД: 68250 ФПД: 217242330658094 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T005501&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68250&fm=217242330658094&tin=02508201610067®Number=0000000000098096&sum=80000 [00:55:00]StoreToDocumentArchive [00:55:00]shift 323 fd 68250 [00:55:00]save to /storage/0323/doc_00068250 [00:55:00]save last doc name /storage/0323/doc_00068250 to /storage/kkm_last_doc_name [00:55:00]save OK [00:55:00]Clear old archive folders... [00:55:00]ProcessDocumentItem done err = 0, tmpTLVsize=251 [00:55:00]tlvbuf is 001B8FE0 [00:55:00]SAM_PROTO_ClearQueue [00:55:00]wFMCommunicate request_size=4 [00:55:00]MH_SAM_APDU [00:55:00]CAPDU: 80 09 00 00 [00:55:00]Write to MH i2c: E2 08 00 3E 19 80 09 00 00 00 00 00 00 C9 [00:55:00]Write i2c OK [00:55:00]MH_I2C_Read... [00:55:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:55:00]Read from MH i2c: E2 [00:55:00]MH_I2C_Read... [00:55:00]Read from MH i2c: E2 03 00 [00:55:00]MH_I2C_Read... [00:55:00]Read from MH i2c: E2 03 00 3E 19 00 90 00 CB [00:55:00]RAPDU: 90 00 [00:55:00]wFMCommunicate OK [00:55:00]SAM_PROTO_ClearQueue done [00:55:00]KKMCreateOFDPacket [00:55:00]OFDProtocolAddRootSTLVToBuf [00:55:00]FM_MakeSignedData [00:55:00]FM_MakeSignedData [00:55:00]SAM_PROTO_SignData [00:55:00]wFMCommunicate request_size=4 [00:55:00]MH_SAM_APDU [00:55:00]CAPDU: 80 0D 01 02 [00:55:00]Write to MH i2c: E2 08 00 3F 19 80 0D 01 02 00 00 00 00 D1 [00:55:00]Write i2c OK [00:55:00]MH_I2C_Read... [00:55:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:55:00]Read from MH i2c: E2 [00:55:00]MH_I2C_Read... [00:55:00]Read from MH i2c: E2 03 00 [00:55:00]MH_I2C_Read... [00:55:00]Read from MH i2c: E2 03 00 3F 19 00 90 00 CC [00:55:00]RAPDU: 90 00 [00:55:00]wFMCommunicate OK [00:55:00]wFMCommunicate request_size=255 [00:55:00]MH_SAM_APDU [00:55: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 34 FF 03 08 00 03 12 2F 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 8C 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 05 00 00 00 F4 03 04 00 65 14 5D 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 9A 0A 01 00 35 04 06 00 C5 [00:55:00]Write to MH i2c: E2 02 01 40 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 34 FF 03 08 00 03 12 2F 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 8C 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 05 00 00 00 F4 03 04 00 65 14 5D 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 9A 0A 01 00 35 04 06 00 C5 00 00 61 [00:55:00]Write i2c OK [00:55:00]MH_I2C_Read... [00:55:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:55:00]Read from MH i2c: E2 [00:55:00]MH_I2C_Read... [00:55:00]Read from MH i2c: E2 03 00 [00:55:00]MH_I2C_Read... [00:55:00]Read from MH i2c: E2 03 00 40 19 00 90 00 CD [00:55:00]RAPDU: 90 00 [00:55:00]wFMCommunicate OK [00:55:00]wFMCommunicate request_size=10 [00:55:00]MH_SAM_APDU [00:55:00]CAPDU: 80 0D 02 02 05 94 AB F2 F5 2E [00:55:00]Write to MH i2c: E2 0D 00 41 19 80 0D 02 02 05 00 94 AB F2 F5 2E 00 00 32 [00:55:00]Write i2c OK [00:55:00]MH_I2C_Read... [00:55:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:55:00]Read from MH i2c: E2 [00:55:00]MH_I2C_Read... [00:55:00]Read from MH i2c: E2 03 00 [00:55:00]MH_I2C_Read... [00:55:00]Read from MH i2c: E2 03 00 41 19 00 90 00 CE [00:55:00]RAPDU: 90 00 [00:55:00]wFMCommunicate OK [00:55:00]wFMCommunicate request_size=4 [00:55:00]MH_SAM_APDU [00:55:00]CAPDU: 80 0D 03 02 [00:55:00]Write to MH i2c: E2 08 00 42 19 80 0D 03 02 00 00 00 00 D6 [00:55:00]Write i2c OK [00:55:00]MH_I2C_Read... [00:55:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:55:00]Read from MH i2c: E2 [00:55:00]MH_I2C_Read... [00:55:00]Read from MH i2c: E2 0B 00 [00:55:00]MH_I2C_Read... [00:55:00]Read from MH i2c: E2 0B 00 42 19 00 84 93 B6 C3 BF 55 9A 94 90 00 A9 [00:55:00]RAPDU: 84 93 B6 C3 BF 55 9A 94 90 00 [00:55:00]wFMCommunicate OK [00:55:00]SAM_PROTO_SignData done [00:55:00]FM_MakeSignedData done [00:55:00]CreateOFDProtocolMessage [00:55:00]wFMCommunicate request_size=4 [00:55:00]MH_SAM_APDU [00:55:00]CAPDU: 80 11 00 00 [00:55:00]Write to MH i2c: E2 08 00 43 19 80 11 00 00 00 00 00 00 D6 [00:55:00]Write i2c OK [00:55:00]MH_I2C_Read... [00:55:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:55:00]Read from MH i2c: E2 [00:55:00]MH_I2C_Read... [00:55:00]Read from MH i2c: E2 17 00 [00:55:00]MH_I2C_Read... [00:55:00]Read from MH i2c: E2 17 00 43 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 21 [00:55:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [00:55:00]wFMCommunicate OK [00:55:00]CreateOFDProtocolMessage done [00:55:00]OFDSenderStorePacket 68250 [00:55:00]StoreOFDPacket docnum=68250 [00:55:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 51 B7 07 01 53 79 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 12 2F 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 8C 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 05 00 00 00 F4 03 04 00 65 14 5D 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 9A 0A 01 00 35 04 06 00 C5 94 AB F2 F5 2E 84 93 B6 C3 BF 55 9A 94 [00:55:00]CheckFolder [00:55:00]dirname=/storage/ofd_packets [00:55:00]CheckFolder done [00:55:00]ProducePacketName [00:55:00]name=ofd_packets/00068250 [00:55:00]NVStorageSaveData ofd_packets/00068250 [00:55:00]File name is /storage/ofd_packets/00068250 [00:55:00]Write 301 bytes [00:55:00]NVStorageSaveData done [00:55:00]OFDSenderStorePacket done [00:55:00]KKMCreateOFDPacket done [00:55:00]NVStorageSaveData kkm_last_timestamp [00:55:00]File name is /storage/kkm_last_timestamp [00:55:00]Write 4 bytes [00:55:00]NVStorageSaveData done [00:55:00]ExternCall_PrintAddStr [00:55:00]wPrintStart [00:55:00]Write to MH i2c: 01 00 00 44 19 5D [00:55:00]Write i2c OK [00:55:00]MH_I2C_Read... [00:55:00]Read from MH i2c: 01 [00:55:00]MH_I2C_Read... [00:55:00]Read from MH i2c: 01 07 00 [00:55:00]MH_I2C_Read... [00:55:00]Read from MH i2c: 01 07 00 44 19 00 00 00 00 00 FF 0F 72 [00:55:00]RasterBufferAndPrint [00:55:00]line Счет N : (1)706321 [00:55:00]line ИНН: 02508201610067 [00:55:00]line Контрольно-Кассовый Чек [00:55:00]line ПРОДАЖА [00:55:00]line ТРК (МРК, ГНК) : 53 [00:55:00]line Товар: 2710124130 [00:55:00]line Аи-92-К-4 [00:55:00]line 12.050 * 66.40 [00:55:00]line = 800.12 [00:55:00]line НДС 12% НСП 1% [00:55:00]line > о реализуемом товаре [00:55:00]line ОКРУГЛЕНИЕ: -0.12 [00:55:00]line ИТОГО: 800.00 [00:55:00]line Внесено: 800.00 [00:55:00]line СДАЧА: 0.00 [00:55:00]line НСП 1% : 7.08 [00:55:00]line НДС 12% : 84.97 [00:55:00]line Наличными: 800.00 [00:55:00]line Безнал.: 0.00 [00:55:00]line Место: АЗС № 62 "Партнер Нефть" [00:55:00]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [00:55:00]line СНО: Общий режим [00:55:00]line Чек 5 03.06.2024 00:55 [00:55:00]line Смена: 323 ФФД: 1.0 [00:55:00]line ЗНМ: 0300000181 [00:55:00]line РНМ: 0000000000098096 [00:55:00]line Версия ККМ: 001 [00:55:00]line ФМ: 0000000000965400 [00:55:00]line ФД: 68250 [00:55:00]line ФПД: 217242330658094 [00:55:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T005501&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68250&fm=217242330658094&tin=02508201610067®Number=0000000000098096&sum=80000 [00:55:00]OFD Sender: Processing packet 68250 [packets to send 26, broken 25] [00:55:00]ProducePacketName [00:55:00]name=ofd_packets/00068250 [00:55:00]OFD Sender: To server: pG, [00:55:00]CommunicateWithHost lk.salyk.kg:30040 [00:55:00]ConnectInit lk.salyk.kg [00:55:00]written 0, free lines is 4095 [00:55:00]Connected sock=10 [00:55:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 51 B7 07 01 53 79 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 12 2F 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 8C 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 05 00 00 00 F4 03 04 00 65 14 5D 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 9A 0A 01 00 35 04 06 00 C5 94 AB F2 F5 2E 84 93 B6 C3 BF 55 9A 94 [00:55:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 3A A2 47 00 81 CD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 9A 0A 01 00 F4 03 04 00 62 BB 5C 66 B6 04 01 00 00 68 8A A7 2C 86 D3 A5 53 [00:55:01]CommunicateWithHost err = 0 [00:55:01]CheckOFDResponse [00:55:01]1017 (14) - 77093643461234 [00:55:01]1041 (16) - 0000000000965400 [00:55:01]1040 (4) - 68250 [00:55:01]1012 (4) - 02.06.2024 18:35 [00:55:01]1206 (1) - 0 [00:55:01]OFD Sender: Remove packet 68250 [00:55:01]ProducePacketName [00:55:01]name=ofd_packets/00068250 [00:55:01]NVStorageDeleteData [00:55:01]Write to MH i2c: 01 00 00 6F 19 88 [00:55:01]Write i2c OK [00:55:01]MH_I2C_Read... [00:55:01]Read from MH i2c: 01 [00:55:01]MH_I2C_Read... [00:55:01]Read from MH i2c: 01 07 00 [00:55:01]MH_I2C_Read... [00:55:01]Read from MH i2c: 01 07 00 6F 19 00 00 00 00 00 D9 0C 74 [00:55:01]RasterBufferAndPrint [00:55:01]line [00:55:01]line [00:55:01]line [00:55:01]line [00:55:01]line [00:55:01]written 0, free lines is 3296 [00:55:01]MH_Cut [00:55:01]Write to MH i2c: D1 01 00 76 19 01 61 [00:55:01]Write i2c OK [00:55:01]MH_I2C_Read... [00:55:01]Read from MH i2c: D1 [00:55:01]MH_I2C_Read... [00:55:01]Read from MH i2c: D1 01 00 [00:55:01]MH_I2C_Read... [00:55:01]Read from MH i2c: D1 01 00 76 19 00 60 [00:55:01]Write to MH i2c: 01 00 00 77 19 90 [00:55:01]Write i2c OK [00:55:01]MH_I2C_Read... [00:55:01]OFD Sender: No OFD packet to send [00:55:02]*** Cut start [00:55:02]*** Partial cut [00:55:02]*** CUTSNS_PIN = 1 [00:55:02]*** CUTSNS_PIN = 0 [00:55:02]*** Brake cut motor [00:55:02]Read from MH i2c: 01 [00:55:02]MH_I2C_Read... [00:55:02]*** Stop cut motor [00:55:02]*** Cut end [00:55:02]Read from MH i2c: 01 07 00 [00:55:02]MH_I2C_Read... [00:55:02]Read from MH i2c: 01 07 00 77 19 00 00 00 00 00 FF 0F A5 [00:55:02]process_action close_receipt done [00:55:02]requested_data is exist [00:55:02]produce_requested_data [00:55:02]requested_item fm.sn is exist - process it [00:55:02]wFMCommunicate request_size=4 [00:55:02]MH_SAM_APDU [00:55:02]CAPDU: 80 11 00 00 [00:55:02]Write to MH i2c: E2 08 00 78 19 80 11 00 00 00 00 00 00 0B [00:55:02]Write i2c OK [00:55:02]MH_I2C_Read... [00:55:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:55:02]Read from MH i2c: E2 [00:55:02]MH_I2C_Read... [00:55:02]Read from MH i2c: E2 17 00 [00:55:02]MH_I2C_Read... [00:55:02]Read from MH i2c: E2 17 00 78 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 56 [00:55:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [00:55:02]wFMCommunicate OK [00:55:02]requested_item fd.num is exist - process it [00:55:02]SAM_PROTO_GetFieldsCounters [00:55:02]wFMCommunicate request_size=4 [00:55:02]MH_SAM_APDU [00:55:02]CAPDU: 80 13 00 00 [00:55:02]Write to MH i2c: E2 08 00 79 19 80 13 00 00 00 00 00 00 0E [00:55:02]Write i2c OK [00:55:02]MH_I2C_Read... [00:55:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:55:02]Read from MH i2c: E2 [00:55:02]MH_I2C_Read... [00:55:02]Read from MH i2c: E2 62 00 [00:55:02]MH_I2C_Read... [00:55:02]Read from MH i2c: E2 62 00 79 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 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 9A 0A 01 00 0E 04 04 00 43 01 00 00 12 04 04 00 05 00 00 00 5E 04 04 00 05 00 00 00 57 04 04 00 06 00 00 00 19 04 04 00 00 00 00 00 90 00 26 [00:55: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 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 9A 0A 01 00 0E 04 04 00 43 01 00 00 12 04 04 00 05 00 00 00 5E 04 04 00 05 00 00 00 57 04 04 00 06 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:55:02]wFMCommunicate OK [00:55:02]SAM_PROTO_GetFieldsCounters done [00:55:02]requested_item shift.num is exist - process it [00:55:02]requested_item shift.opened is exist - process it [00:55:02]req_shift_opened [00:55:02]FM_GetShiftState [00:55:02]SAM_PROTO_GetShiftState [00:55:02]wFMCommunicate request_size=4 [00:55:02]MH_SAM_APDU [00:55:02]CAPDU: 80 13 01 00 [00:55:02]Write to MH i2c: E2 08 00 7A 19 80 13 01 00 00 00 00 00 10 [00:55:02]Write i2c OK [00:55:02]MH_I2C_Read... [00:55:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:55:03]Read from MH i2c: E2 [00:55:03]MH_I2C_Read... [00:55:03]Read from MH i2c: E2 0E 00 [00:55:03]MH_I2C_Read... [00:55:03]Read from MH i2c: E2 0E 00 7A 19 00 09 00 01 AA 0D 5D 66 00 00 00 00 90 00 96 [00:55:03]RAPDU: 09 00 01 AA 0D 5D 66 00 00 00 00 90 00 [00:55:03]wFMCommunicate OK [00:55:03]SAM_PROTO_GetShiftState done [00:55:03]FM_GetShiftState done [00:55:03]req_shift_opened done [00:55:03]requested_item shift.open_date is exist - process it [00:55:03]req_shift_open_date [00:55:03]req_shift_open_date done [00:55:03]produce_requested_data done [00:55:03]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68250,"shift.num":323,"shift.opened":1,"shift.open_date":1717374378} [00:55:03]process_action_free close_receipt [00:55:03]json_value_free [00:55:03]json_value_free done [00:55:03]process_json_proto returns [00:55:03]Send response to host [00:55:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68250,"shift.num":323,"shift.opened":1,"shift.open_date":1717374378}}} [00:55:03]free response buf [00:55:03]execute_script done [00:55:03]execute_script returns [00:55:03]free content buf [00:55:03]Sock 7.Close socket [00:55:03]Sock 7.Thread stoped [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:29]accept exits with 9 [00:56:29]New connection [00:56:29]New thread 3066543460 created [00:56:29]Thread 3066686820 joined [00:56:29]Waiting for new connection... [00:56:29] Sock 9.Parse request [00:56:29]Sock 9.Check first char [00:56:29]Sock 9.First char is OK [00:56:29]request: POST /json_proto HTTP/1.0 [00:56:29]Method: POST [00:56:29]URL: /json_proto [00:56:29]Method is POST - this is cgi request [00:56:29]url: /json_proto [00:56:29]query_string will be loaded in cgi processing [00:56:29]execute_cgi json_proto POST (null) [00:56:29]execute_cgi path=json_proto method=POST [00:56:29]POST find Content-Length [00:56:29]Host: 172.17.36.132:8080 [00:56:29]Content-Length: 840 [00:56:29]Content-Type: application/json [00:56:29] [00:56:29]POST finish read [00:56:29]Found Content-Length = 840 [00:56:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706322", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.40, "quantity" : 6.030, "sum" : 400.39, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 400.39 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:56:29]execute_script... [00:56: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)706322", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.40, "quantity" : 6.030, "sum" : 400.39, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 400.39 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:56:29]POST & json_proto [00:56:29]process_json_proto [00:56:29]json parsed OK: [00:56:29]protocol is kg_v1.0 [00:56:29]action value=close_receipt [00:56:29]process_action close_receipt [00:56:29]cmd_close_receipt [00:56:29]MH_GetDate [00:56:29]Write to MH i2c: F0 00 00 7B 19 83 [00:56:29]Write i2c OK [00:56:29]MH_I2C_Read... [00:56:29]Read from MH i2c: F0 [00:56:29]MH_I2C_Read... [00:56:29]Read from MH i2c: F0 09 00 [00:56:29]MH_I2C_Read... [00:56:29]Read from MH i2c: F0 09 00 7B 19 00 BF 14 5D 66 B2 22 B0 64 0A [00:56:29]GetLastDocTimeStamp 1717376101 [00:56:29]current date 1717376191 [00:56:29]FM_GetShiftState [00:56:29]SAM_PROTO_GetShiftState [00:56:29]wFMCommunicate request_size=4 [00:56:29]MH_SAM_APDU [00:56:29]CAPDU: 80 13 01 00 [00:56:29]Write to MH i2c: E2 08 00 7C 19 80 13 01 00 00 00 00 00 12 [00:56:29]Write i2c OK [00:56:29]MH_I2C_Read... [00:56:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:56:29]Read from MH i2c: E2 [00:56:29]MH_I2C_Read... [00:56:29]Read from MH i2c: E2 0E 00 [00:56:29]MH_I2C_Read... [00:56:29]Read from MH i2c: E2 0E 00 7C 19 00 09 00 01 AA 0D 5D 66 00 00 00 00 90 00 98 [00:56:29]RAPDU: 09 00 01 AA 0D 5D 66 00 00 00 00 90 00 [00:56:29]wFMCommunicate OK [00:56:29]SAM_PROTO_GetShiftState done [00:56:29]FM_GetShiftState done [00:56:29]opened in 1717374378 [00:56:29]opened+sec_in_day 1717460778 [00:56:29]quantity*price = 40039 [00:56:29]sum+1 = 40040 [00:56:29]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 400.39 НСП 1% : 3.54 НДС 12% : 42.52 Наличными: 0.00 Безнал.: 400.39 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 6 03.06.2024 00:56 Смена: 323 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000965400 ФД: 68251 ФПД: 162641889152847 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T005631&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68251&fm=162641889152847&tin=02508201610067®Number=0000000000098096&sum=40039 [00:56:30]StoreToDocumentArchive [00:56:30]shift 323 fd 68251 [00:56:30]save to /storage/0323/doc_00068251 [00:56:30]save last doc name /storage/0323/doc_00068251 to /storage/kkm_last_doc_name [00:56:30]save OK [00:56:30]Clear old archive folders... [00:56:30]ProcessDocumentItem done err = 0, tmpTLVsize=251 [00:56:30]tlvbuf is 001FF120 [00:56:30]SAM_PROTO_ClearQueue [00:56:30]wFMCommunicate request_size=4 [00:56:30]MH_SAM_APDU [00:56:30]CAPDU: 80 09 00 00 [00:56:30]Write to MH i2c: E2 08 00 89 19 80 09 00 00 00 00 00 00 14 [00:56:30]Write i2c OK [00:56:30]MH_I2C_Read... [00:56:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:56:30]Read from MH i2c: E2 [00:56:30]MH_I2C_Read... [00:56:30]Read from MH i2c: E2 03 00 [00:56:30]MH_I2C_Read... [00:56:30]Read from MH i2c: E2 03 00 89 19 00 90 00 16 [00:56:30]RAPDU: 90 00 [00:56:30]wFMCommunicate OK [00:56:30]SAM_PROTO_ClearQueue done [00:56:30]KKMCreateOFDPacket [00:56:30]OFDProtocolAddRootSTLVToBuf [00:56:30]FM_MakeSignedData [00:56:30]FM_MakeSignedData [00:56:30]SAM_PROTO_SignData [00:56:30]wFMCommunicate request_size=4 [00:56:30]MH_SAM_APDU [00:56:30]CAPDU: 80 0D 01 02 [00:56:30]Write to MH i2c: E2 08 00 8A 19 80 0D 01 02 00 00 00 00 1C [00:56:30]Write i2c OK [00:56:30]MH_I2C_Read... [00:56:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:56:30]Read from MH i2c: E2 [00:56:30]MH_I2C_Read... [00:56:30]Read from MH i2c: E2 03 00 [00:56:30]MH_I2C_Read... [00:56:30]Read from MH i2c: E2 03 00 8A 19 00 90 00 17 [00:56:30]RAPDU: 90 00 [00:56:30]wFMCommunicate OK [00:56:30]wFMCommunicate request_size=255 [00:56:30]MH_SAM_APDU [00:56: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 34 FF 03 08 00 03 8E 17 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 67 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 67 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 67 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 00 00 00 F4 03 04 00 BF 14 5D 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 9B 0A 01 00 35 04 06 00 93 [00:56:30]Write to MH i2c: E2 02 01 8B 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 34 FF 03 08 00 03 8E 17 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 67 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 67 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 67 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 00 00 00 F4 03 04 00 BF 14 5D 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 9B 0A 01 00 35 04 06 00 93 00 00 03 [00:56:30]Write i2c OK [00:56:30]MH_I2C_Read... [00:56:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:56:30]Read from MH i2c: E2 [00:56:30]MH_I2C_Read... [00:56:30]Read from MH i2c: E2 03 00 [00:56:30]MH_I2C_Read... [00:56:30]Read from MH i2c: E2 03 00 8B 19 00 90 00 18 [00:56:30]RAPDU: 90 00 [00:56:30]wFMCommunicate OK [00:56:30]wFMCommunicate request_size=10 [00:56:30]MH_SAM_APDU [00:56:30]CAPDU: 80 0D 02 02 05 EC 04 07 4F 4F [00:56:30]Write to MH i2c: E2 0D 00 8C 19 80 0D 02 02 05 00 EC 04 07 4F 4F 00 00 BE [00:56:30]Write i2c OK [00:56:30]MH_I2C_Read... [00:56:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:56:30]Read from MH i2c: E2 [00:56:30]MH_I2C_Read... [00:56:30]Read from MH i2c: E2 03 00 [00:56:30]MH_I2C_Read... [00:56:30]Read from MH i2c: E2 03 00 8C 19 00 90 00 19 [00:56:30]RAPDU: 90 00 [00:56:30]wFMCommunicate OK [00:56:30]wFMCommunicate request_size=4 [00:56:30]MH_SAM_APDU [00:56:30]CAPDU: 80 0D 03 02 [00:56:30]Write to MH i2c: E2 08 00 8D 19 80 0D 03 02 00 00 00 00 21 [00:56:30]Write i2c OK [00:56:30]MH_I2C_Read... [00:56:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:56:30]Read from MH i2c: E2 [00:56:30]MH_I2C_Read... [00:56:30]Read from MH i2c: E2 0B 00 [00:56:30]MH_I2C_Read... [00:56:30]Read from MH i2c: E2 0B 00 8D 19 00 F9 A8 DC 66 21 4A EA 0C 90 00 66 [00:56:30]RAPDU: F9 A8 DC 66 21 4A EA 0C 90 00 [00:56:30]wFMCommunicate OK [00:56:30]SAM_PROTO_SignData done [00:56:30]FM_MakeSignedData done [00:56:30]CreateOFDProtocolMessage [00:56:30]wFMCommunicate request_size=4 [00:56:30]MH_SAM_APDU [00:56:30]CAPDU: 80 11 00 00 [00:56:30]Write to MH i2c: E2 08 00 8E 19 80 11 00 00 00 00 00 00 21 [00:56:30]Write i2c OK [00:56:30]MH_I2C_Read... [00:56:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:56:30]Read from MH i2c: E2 [00:56:30]MH_I2C_Read... [00:56:30]Read from MH i2c: E2 17 00 [00:56:30]MH_I2C_Read... [00:56:30]Read from MH i2c: E2 17 00 8E 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 6C [00:56:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [00:56:30]wFMCommunicate OK [00:56:30]CreateOFDProtocolMessage done [00:56:30]OFDSenderStorePacket 68251 [00:56:30]StoreOFDPacket docnum=68251 [00:56:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 EF B2 07 01 00 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 34 FF 03 08 00 03 8E 17 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 67 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 67 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 67 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 00 00 00 F4 03 04 00 BF 14 5D 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 9B 0A 01 00 35 04 06 00 93 EC 04 07 4F 4F F9 A8 DC 66 21 4A EA 0C [00:56:30]CheckFolder [00:56:30]dirname=/storage/ofd_packets [00:56:30]CheckFolder done [00:56:30]ProducePacketName [00:56:30]name=ofd_packets/00068251 [00:56:30]NVStorageSaveData ofd_packets/00068251 [00:56:30]File name is /storage/ofd_packets/00068251 [00:56:30]Write 301 bytes [00:56:30]NVStorageSaveData done [00:56:30]OFDSenderStorePacket done [00:56:30]KKMCreateOFDPacket done [00:56:30]NVStorageSaveData kkm_last_timestamp [00:56:30]File name is /storage/kkm_last_timestamp [00:56:30]Write 4 bytes [00:56:30]NVStorageSaveData done [00:56:30]ExternCall_PrintAddStr [00:56:30]wPrintStart [00:56:30]Write to MH i2c: 01 00 00 8F 19 A8 [00:56:30]Write i2c OK [00:56:30]MH_I2C_Read... [00:56:30]Read from MH i2c: 01 [00:56:30]MH_I2C_Read... [00:56:30]Read from MH i2c: 01 07 00 [00:56:30]MH_I2C_Read... [00:56:30]Read from MH i2c: 01 07 00 8F 19 00 00 00 00 00 FF 0F BD [00:56:30]RasterBufferAndPrint [00:56:30]line Счет N : (1)706322 [00:56:30]line ИНН: 02508201610067 [00:56:30]line Контрольно-Кассовый Чек [00:56:30]line ПРОДАЖА [00:56:30]line ТРК (МРК, ГНК) : 63 [00:56:30]line Товар: 2710124130 [00:56:30]line Аи-92-К-4 [00:56:30]line 6.030 * 66.40 [00:56:30]line = 400.39 [00:56:30]line НДС 12% НСП 1% [00:56:30]line > о реализуемом товаре [00:56:30]line ИТОГО: 400.39 [00:56:30]line НСП 1% : 3.54 [00:56:30]line НДС 12% : 42.52 [00:56:30]line Наличными: 0.00 [00:56:30]line Безнал.: 400.39 [00:56:30]line Место: АЗС № 62 "Партнер Нефть" [00:56:30]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [00:56:30]line СНО: Общий режим [00:56:30]line Чек 6 03.06.2024 00:56 [00:56:30]line Смена: 323 ФФД: 1.0 [00:56:30]line ЗНМ: 0300000181 [00:56:30]line РНМ: 0000000000098096 [00:56:30]line Версия ККМ: 001 [00:56:30]line Платежная система: АКБ Кыргызстан [00:56:30]line ФМ: 0000000000965400 [00:56:30]line ФД: 68251 [00:56:30]line ФПД: 162641889152847 [00:56:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T005631&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68251&fm=162641889152847&tin=02508201610067®Number=0000000000098096&sum=40039 [00:56:31]OFD Sender: Processing packet 68251 [packets to send 26, broken 25] [00:56:31]ProducePacketName [00:56:31]name=ofd_packets/00068251 [00:56:31]OFD Sender: To server: pG, [00:56:31]CommunicateWithHost lk.salyk.kg:30040 [00:56:31]ConnectInit lk.salyk.kg [00:56:31]written 0, free lines is 4095 [00:56:31]Connected sock=10 [00:56:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 EF B2 07 01 00 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 34 FF 03 08 00 03 8E 17 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 67 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 67 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 67 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 00 00 00 F4 03 04 00 BF 14 5D 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 9B 0A 01 00 35 04 06 00 93 EC 04 07 4F 4F F9 A8 DC 66 21 4A EA 0C [00:56:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 83 60 47 00 BF 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 35 34 30 30 10 04 04 00 9B 0A 01 00 F4 03 04 00 BD BB 5C 66 B6 04 01 00 00 56 D2 97 B0 33 90 51 3A [00:56:31]CommunicateWithHost err = 0 [00:56:31]CheckOFDResponse [00:56:31]1017 (14) - 77093643461234 [00:56:31]1041 (16) - 0000000000965400 [00:56:31]1040 (4) - 68251 [00:56:31]1012 (4) - 02.06.2024 18:36 [00:56:31]1206 (1) - 0 [00:56:31]OFD Sender: Remove packet 68251 [00:56:31]ProducePacketName [00:56:31]name=ofd_packets/00068251 [00:56:31]NVStorageDeleteData [00:56:31]Write to MH i2c: 01 00 00 B9 19 D2 [00:56:31]Write i2c OK [00:56:31]MH_I2C_Read... [00:56:31]Read from MH i2c: 01 [00:56:31]MH_I2C_Read... [00:56:31]Read from MH i2c: 01 07 00 [00:56:31]MH_I2C_Read... [00:56:31]Read from MH i2c: 01 07 00 B9 19 00 00 00 00 00 EA 0C CF [00:56:31]RasterBufferAndPrint [00:56:31]line [00:56:31]line [00:56:31]line [00:56:31]line [00:56:31]line [00:56:31]written 0, free lines is 3312 [00:56:31]MH_Cut [00:56:31]Write to MH i2c: D1 01 00 C0 19 01 AB [00:56:31]Write i2c OK [00:56:31]MH_I2C_Read... [00:56:31]Read from MH i2c: D1 [00:56:31]MH_I2C_Read... [00:56:31]Read from MH i2c: D1 01 00 [00:56:31]MH_I2C_Read... [00:56:31]Read from MH i2c: D1 01 00 C0 19 00 AA [00:56:31]Write to MH i2c: 01 00 00 C1 19 DA [00:56:31]Write i2c OK [00:56:31]MH_I2C_Read... [00:56:31]OFD Sender: No OFD packet to send [00:56:32]*** Cut start [00:56:32]*** Partial cut [00:56:32]*** CUTSNS_PIN = 1 [00:56:32]*** CUTSNS_PIN = 0 [00:56:32]*** Brake cut motor [00:56:32]Read from MH i2c: 01 [00:56:32]MH_I2C_Read... [00:56:33]*** Stop cut motor [00:56:33]*** Cut end [00:56:33]Read from MH i2c: 01 07 00 [00:56:33]MH_I2C_Read... [00:56:33]Read from MH i2c: 01 07 00 C1 19 00 00 00 00 00 FF 0F EF [00:56:33]process_action close_receipt done [00:56:33]requested_data is exist [00:56:33]produce_requested_data [00:56:33]requested_item fm.sn is exist - process it [00:56:33]wFMCommunicate request_size=4 [00:56:33]MH_SAM_APDU [00:56:33]CAPDU: 80 11 00 00 [00:56:33]Write to MH i2c: E2 08 00 C2 19 80 11 00 00 00 00 00 00 55 [00:56:33]Write i2c OK [00:56:33]MH_I2C_Read... [00:56:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:56:33]Read from MH i2c: E2 [00:56:33]MH_I2C_Read... [00:56:33]Read from MH i2c: E2 17 00 [00:56:33]MH_I2C_Read... [00:56:33]Read from MH i2c: E2 17 00 C2 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 A0 [00:56:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [00:56:33]wFMCommunicate OK [00:56:33]requested_item fd.num is exist - process it [00:56:33]SAM_PROTO_GetFieldsCounters [00:56:33]wFMCommunicate request_size=4 [00:56:33]MH_SAM_APDU [00:56:33]CAPDU: 80 13 00 00 [00:56:33]Write to MH i2c: E2 08 00 C3 19 80 13 00 00 00 00 00 00 58 [00:56:33]Write i2c OK [00:56:33]MH_I2C_Read... [00:56:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:56:33]Read from MH i2c: E2 [00:56:33]MH_I2C_Read... [00:56:33]Read from MH i2c: E2 62 00 [00:56:33]MH_I2C_Read... [00:56:33]Read from MH i2c: E2 62 00 C3 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 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 9B 0A 01 00 0E 04 04 00 43 01 00 00 12 04 04 00 06 00 00 00 5E 04 04 00 06 00 00 00 57 04 04 00 07 00 00 00 19 04 04 00 00 00 00 00 90 00 74 [00:56: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 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 9B 0A 01 00 0E 04 04 00 43 01 00 00 12 04 04 00 06 00 00 00 5E 04 04 00 06 00 00 00 57 04 04 00 07 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:56:33]wFMCommunicate OK [00:56:33]SAM_PROTO_GetFieldsCounters done [00:56:33]requested_item shift.num is exist - process it [00:56:33]requested_item shift.opened is exist - process it [00:56:33]req_shift_opened [00:56:33]FM_GetShiftState [00:56:33]SAM_PROTO_GetShiftState [00:56:33]wFMCommunicate request_size=4 [00:56:33]MH_SAM_APDU [00:56:33]CAPDU: 80 13 01 00 [00:56:33]Write to MH i2c: E2 08 00 C4 19 80 13 01 00 00 00 00 00 5A [00:56:33]Write i2c OK [00:56:33]MH_I2C_Read... [00:56:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:56:33]Read from MH i2c: E2 [00:56:33]MH_I2C_Read... [00:56:33]Read from MH i2c: E2 0E 00 [00:56:33]MH_I2C_Read... [00:56:33]Read from MH i2c: E2 0E 00 C4 19 00 09 00 01 AA 0D 5D 66 00 00 00 00 90 00 E0 [00:56:33]RAPDU: 09 00 01 AA 0D 5D 66 00 00 00 00 90 00 [00:56:33]wFMCommunicate OK [00:56:33]SAM_PROTO_GetShiftState done [00:56:33]FM_GetShiftState done [00:56:33]req_shift_opened done [00:56:33]requested_item shift.open_date is exist - process it [00:56:33]req_shift_open_date [00:56:33]req_shift_open_date done [00:56:33]produce_requested_data done [00:56:33]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68251,"shift.num":323,"shift.opened":1,"shift.open_date":1717374378} [00:56:33]process_action_free close_receipt [00:56:33]json_value_free [00:56:33]json_value_free done [00:56:33]process_json_proto returns [00:56:33]Send response to host [00:56:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68251,"shift.num":323,"shift.opened":1,"shift.open_date":1717374378}}} [00:56:33]free response buf [00:56:33]execute_script done [00:56:33]execute_script returns [00:56:33]free content buf [00:56:33]Sock 9.Close socket [00:56:33]Sock 9.Thread stoped [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:12]OFD Sender: No OFD packet to send [00:57:17]OFD Sender: No OFD packet to send [00:57:22]OFD Sender: No OFD packet to send [00:57:27]OFD Sender: No OFD packet to send [00:57:32]OFD Sender: No OFD packet to send [00:57:37]OFD Sender: No OFD packet to send [00:57:42]OFD Sender: No OFD packet to send [00:57:47]OFD Sender: No OFD packet to send [00:57:52]OFD Sender: No OFD packet to send [00:57:57]OFD Sender: No OFD packet to send [00:58:02]OFD Sender: No OFD packet to send [00:58:07]OFD Sender: No OFD packet to send [00:58:12]OFD Sender: No OFD packet to send [00:58:17]OFD Sender: No OFD packet to send [00:58:22]OFD Sender: No OFD packet to send [00:58:27]OFD Sender: No OFD packet to send [00:58:32]OFD Sender: No OFD packet to send [00:58:37]OFD Sender: No OFD packet to send [00:58:42]OFD Sender: No OFD packet to send [00:58:47]OFD Sender: No OFD packet to send [00:58:52]OFD Sender: No OFD packet to send [00:58:57]OFD Sender: No OFD packet to send [00:59:02]OFD Sender: No OFD packet to send [00:59:07]OFD Sender: No OFD packet to send [00:59:12]OFD Sender: No OFD packet to send [00:59:17]OFD Sender: No OFD packet to send [00:59:22]OFD Sender: No OFD packet to send [00:59:27]OFD Sender: No OFD packet to send [00:59:32]OFD Sender: No OFD packet to send [00:59:37]OFD Sender: No OFD packet to send [00:59:42]OFD Sender: No OFD packet to send [00:59:47]OFD Sender: No OFD packet to send [00:59:52]OFD Sender: No OFD packet to send [00:59:57]OFD Sender: No OFD packet to send [01:00:02]OFD Sender: No OFD packet to send [01:00:07]OFD Sender: No OFD packet to send [01:00:12]OFD Sender: No OFD packet to send [01:00:17]OFD Sender: No OFD packet to send [01:00:22]OFD Sender: No OFD packet to send [01:00:27]OFD Sender: No OFD packet to send [01:00:32]OFD Sender: No OFD packet to send [01:00:37]OFD Sender: No OFD packet to send [01:00:42]OFD Sender: No OFD packet to send [01:00:47]OFD Sender: No OFD packet to send [01:00:52]OFD Sender: No OFD packet to send [01:00:57]OFD Sender: No OFD packet to send [01:01:02]OFD Sender: No OFD packet to send [01:01:07]OFD Sender: No OFD packet to send [01:01:12]OFD Sender: No OFD packet to send [01:01:17]OFD Sender: No OFD packet to send [01:01:22]OFD Sender: No OFD packet to send [01:01:27]OFD Sender: No OFD packet to send [01:01:32]OFD Sender: No OFD packet to send [01:01:37]OFD Sender: No OFD packet to send [01:01:42]OFD Sender: No OFD packet to send [01:01:47]OFD Sender: No OFD packet to send [01:01:52]OFD Sender: No OFD packet to send [01:01:57]OFD Sender: No OFD packet to send [01:02:02]OFD Sender: No OFD packet to send [01:02:07]OFD Sender: No OFD packet to send [01:02:12]OFD Sender: No OFD packet to send [01:02:17]OFD Sender: No OFD packet to send [01:02:22]OFD Sender: No OFD packet to send [01:02:27]OFD Sender: No OFD packet to send [01:02:32]OFD Sender: No OFD packet to send [01:02:37]OFD Sender: No OFD packet to send [01:02:42]OFD Sender: No OFD packet to send [01:02:47]OFD Sender: No OFD packet to send [01:02:52]OFD Sender: No OFD packet to send [01:02:57]OFD Sender: No OFD packet to send [01:03:02]OFD Sender: No OFD packet to send [01:03:07]OFD Sender: No OFD packet to send [01:03:12]OFD Sender: No OFD packet to send [01:03:16]accept exits with 7 [01:03:16]New connection [01:03:16]New thread 3066686820 created [01:03:16]Thread 3066543460 joined [01:03:16]Waiting for new connection... [01:03:16] Sock 7.Parse request [01:03:16]Sock 7.Check first char [01:03:16]Sock 7.First char is OK [01:03:16]request: POST /json_proto HTTP/1.0 [01:03:16]Method: POST [01:03:16]URL: /json_proto [01:03:16]Method is POST - this is cgi request [01:03:16]url: /json_proto [01:03:16]query_string will be loaded in cgi processing [01:03:16]execute_cgi json_proto POST (null) [01:03:16]execute_cgi path=json_proto method=POST [01:03:16]POST find Content-Length [01:03:16]Host: 172.17.36.132:8080 [01:03:16]Content-Length: 678 [01:03:16]Content-Type: application/json [01:03:16] [01:03:16]POST finish read [01:03:16]Found Content-Length = 678 [01:03:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706323", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.40, "quantity" : 10.550, "sum" : 700.52, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:03:16]execute_script... [01:03: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)706323", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.40, "quantity" : 10.550, "sum" : 700.52, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:03:16]POST & json_proto [01:03:16]process_json_proto [01:03:16]json parsed OK: [01:03:16]protocol is kg_v1.0 [01:03:16]action value=close_receipt [01:03:16]process_action close_receipt [01:03:16]cmd_close_receipt [01:03:16]MH_GetDate [01:03:16]Write to MH i2c: F0 00 00 C5 19 CD [01:03:16]Write i2c OK [01:03:16]MH_I2C_Read... [01:03:16]Read from MH i2c: F0 [01:03:16]MH_I2C_Read... [01:03:16]Read from MH i2c: F0 09 00 [01:03:16]MH_I2C_Read... [01:03:16]Read from MH i2c: F0 09 00 C5 19 00 56 16 5D 66 B2 22 B0 64 ED [01:03:16]GetLastDocTimeStamp 1717376191 [01:03:16]current date 1717376598 [01:03:16]FM_GetShiftState [01:03:16]SAM_PROTO_GetShiftState [01:03:16]wFMCommunicate request_size=4 [01:03:16]MH_SAM_APDU [01:03:16]CAPDU: 80 13 01 00 [01:03:16]Write to MH i2c: E2 08 00 C6 19 80 13 01 00 00 00 00 00 5C [01:03:16]Write i2c OK [01:03:16]MH_I2C_Read... [01:03:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:03:16]Read from MH i2c: E2 [01:03:16]MH_I2C_Read... [01:03:16]Read from MH i2c: E2 0E 00 [01:03:16]MH_I2C_Read... [01:03:16]Read from MH i2c: E2 0E 00 C6 19 00 09 00 01 AA 0D 5D 66 00 00 00 00 90 00 E2 [01:03:16]RAPDU: 09 00 01 AA 0D 5D 66 00 00 00 00 90 00 [01:03:16]wFMCommunicate OK [01:03:16]SAM_PROTO_GetShiftState done [01:03:16]FM_GetShiftState done [01:03:16]opened in 1717374378 [01:03:16]opened+sec_in_day 1717460778 [01:03:16]quantity*price = 70052 [01:03:16]sum+1 = 70053 [01:03:16]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.52 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.39 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 7 03.06.2024 01:03 Смена: 323 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 ФМ: 0000000000965400 ФД: 68252 ФПД: 187980905233911 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T010318&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68252&fm=187980905233911&tin=02508201610067®Number=0000000000098096&sum=70000 [01:03:17]StoreToDocumentArchive [01:03:17]shift 323 fd 68252 [01:03:17]save to /storage/0323/doc_00068252 [01:03:17]save last doc name /storage/0323/doc_00068252 to /storage/kkm_last_doc_name [01:03:17]save OK [01:03:17]Clear old archive folders... [01:03:17]ProcessDocumentItem done err = 0, tmpTLVsize=251 [01:03:17]tlvbuf is 001FF150 [01:03:17]SAM_PROTO_ClearQueue [01:03:17]wFMCommunicate request_size=4 [01:03:17]MH_SAM_APDU [01:03:17]CAPDU: 80 09 00 00 [01:03:17]Write to MH i2c: E2 08 00 D3 19 80 09 00 00 00 00 00 00 5E [01:03:17]Write i2c OK [01:03:17]MH_I2C_Read... [01:03:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:03:17]Read from MH i2c: E2 [01:03:17]MH_I2C_Read... [01:03:17]Read from MH i2c: E2 03 00 [01:03:17]MH_I2C_Read... [01:03:17]Read from MH i2c: E2 03 00 D3 19 00 90 00 60 [01:03:17]RAPDU: 90 00 [01:03:17]wFMCommunicate OK [01:03:17]SAM_PROTO_ClearQueue done [01:03:17]KKMCreateOFDPacket [01:03:17]OFDProtocolAddRootSTLVToBuf [01:03:17]FM_MakeSignedData [01:03:17]FM_MakeSignedData [01:03:17]SAM_PROTO_SignData [01:03:17]wFMCommunicate request_size=4 [01:03:17]MH_SAM_APDU [01:03:17]CAPDU: 80 0D 01 02 [01:03:17]Write to MH i2c: E2 08 00 D4 19 80 0D 01 02 00 00 00 00 66 [01:03:17]Write i2c OK [01:03:17]MH_I2C_Read... [01:03:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:03:17]Read from MH i2c: E2 [01:03:17]MH_I2C_Read... [01:03:17]Read from MH i2c: E2 03 00 [01:03:17]MH_I2C_Read... [01:03:17]Read from MH i2c: E2 03 00 D4 19 00 90 00 61 [01:03:17]RAPDU: 90 00 [01:03:17]wFMCommunicate OK [01:03:17]wFMCommunicate request_size=255 [01:03:17]MH_SAM_APDU [01:03:17]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 36 29 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A4 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 07 00 00 00 F4 03 04 00 56 16 5D 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 9C 0A 01 00 35 04 06 00 AA [01:03:17]Write to MH i2c: E2 02 01 D5 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 34 FF 03 08 00 03 36 29 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A4 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 07 00 00 00 F4 03 04 00 56 16 5D 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 9C 0A 01 00 35 04 06 00 AA 00 00 F5 [01:03:17]Write i2c OK [01:03:17]MH_I2C_Read... [01:03:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:03:17]Read from MH i2c: E2 [01:03:17]MH_I2C_Read... [01:03:17]Read from MH i2c: E2 03 00 [01:03:17]MH_I2C_Read... [01:03:17]Read from MH i2c: E2 03 00 D5 19 00 90 00 62 [01:03:17]RAPDU: 90 00 [01:03:17]wFMCommunicate OK [01:03:17]wFMCommunicate request_size=10 [01:03:17]MH_SAM_APDU [01:03:17]CAPDU: 80 0D 02 02 05 F7 B7 14 BD F7 [01:03:17]Write to MH i2c: E2 0D 00 D6 19 80 0D 02 02 05 00 F7 B7 14 BD F7 00 00 E9 [01:03:17]Write i2c OK [01:03:17]MH_I2C_Read... [01:03:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:03:17]Read from MH i2c: E2 [01:03:17]MH_I2C_Read... [01:03:17]Read from MH i2c: E2 03 00 [01:03:17]MH_I2C_Read... [01:03:17]Read from MH i2c: E2 03 00 D6 19 00 90 00 63 [01:03:17]RAPDU: 90 00 [01:03:17]wFMCommunicate OK [01:03:17]wFMCommunicate request_size=4 [01:03:17]MH_SAM_APDU [01:03:17]CAPDU: 80 0D 03 02 [01:03:17]Write to MH i2c: E2 08 00 D7 19 80 0D 03 02 00 00 00 00 6B [01:03:17]Write i2c OK [01:03:17]MH_I2C_Read... [01:03:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:03:17]Read from MH i2c: E2 [01:03:17]MH_I2C_Read... [01:03:17]Read from MH i2c: E2 0B 00 [01:03:17]MH_I2C_Read... [01:03:17]Read from MH i2c: E2 0B 00 D7 19 00 41 46 63 11 5C E9 51 CE 90 00 CB [01:03:17]RAPDU: 41 46 63 11 5C E9 51 CE 90 00 [01:03:17]wFMCommunicate OK [01:03:17]SAM_PROTO_SignData done [01:03:17]FM_MakeSignedData done [01:03:17]CreateOFDProtocolMessage [01:03:17]wFMCommunicate request_size=4 [01:03:17]MH_SAM_APDU [01:03:17]CAPDU: 80 11 00 00 [01:03:17]Write to MH i2c: E2 08 00 D8 19 80 11 00 00 00 00 00 00 6B [01:03:17]Write i2c OK [01:03:17]MH_I2C_Read... [01:03:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:03:17]Read from MH i2c: E2 [01:03:17]MH_I2C_Read... [01:03:17]Read from MH i2c: E2 17 00 [01:03:17]MH_I2C_Read... [01:03:17]Read from MH i2c: E2 17 00 D8 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 B6 [01:03:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [01:03:17]wFMCommunicate OK [01:03:17]CreateOFDProtocolMessage done [01:03:17]OFDSenderStorePacket 68252 [01:03:17]StoreOFDPacket docnum=68252 [01:03:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 CC 97 07 01 01 2F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 36 29 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A4 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 07 00 00 00 F4 03 04 00 56 16 5D 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 9C 0A 01 00 35 04 06 00 AA F7 B7 14 BD F7 41 46 63 11 5C E9 51 CE [01:03:17]CheckFolder [01:03:17]dirname=/storage/ofd_packets [01:03:17]CheckFolder done [01:03:17]ProducePacketName [01:03:17]name=ofd_packets/00068252 [01:03:17]NVStorageSaveData ofd_packets/00068252 [01:03:17]File name is /storage/ofd_packets/00068252 [01:03:17]Write 301 bytes [01:03:17]NVStorageSaveData done [01:03:17]OFDSenderStorePacket done [01:03:17]KKMCreateOFDPacket done [01:03:17]NVStorageSaveData kkm_last_timestamp [01:03:17]File name is /storage/kkm_last_timestamp [01:03:17]Write 4 bytes [01:03:17]NVStorageSaveData done [01:03:17]ExternCall_PrintAddStr [01:03:17]wPrintStart [01:03:17]Write to MH i2c: 01 00 00 D9 19 F2 [01:03:17]Write i2c OK [01:03:17]MH_I2C_Read... [01:03:17]Read from MH i2c: 01 [01:03:17]MH_I2C_Read... [01:03:17]Read from MH i2c: 01 07 00 [01:03:17]MH_I2C_Read... [01:03:17]Read from MH i2c: 01 07 00 D9 19 00 00 00 00 00 FF 0F 07 [01:03:17]RasterBufferAndPrint [01:03:17]line Счет N : (1)706323 [01:03:17]line ИНН: 02508201610067 [01:03:17]line Контрольно-Кассовый Чек [01:03:17]line ПРОДАЖА [01:03:17]line ТРК (МРК, ГНК) : 32 [01:03:17]line Товар: 2710124130 [01:03:17]line Аи-92-К-4 [01:03:17]line 10.550 * 66.40 [01:03:17]line = 700.52 [01:03:17]line НДС 12% НСП 1% [01:03:17]line > о реализуемом товаре [01:03:17]line ОКРУГЛЕНИЕ: -0.52 [01:03:17]line ИТОГО: 700.00 [01:03:17]line Внесено: 700.00 [01:03:17]line СДАЧА: 0.00 [01:03:17]line НСП 1% : 6.20 [01:03:17]line НДС 12% : 74.39 [01:03:17]line Наличными: 700.00 [01:03:17]line Безнал.: 0.00 [01:03:17]line Место: АЗС № 62 "Партнер Нефть" [01:03:17]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [01:03:17]line СНО: Общий режим [01:03:17]line Чек 7 03.06.2024 01:03 [01:03:17]line Смена: 323 ФФД: 1.0 [01:03:17]line ЗНМ: 0300000181 [01:03:17]line РНМ: 0000000000098096 [01:03:17]line Версия ККМ: 001 [01:03:17]line ФМ: 0000000000965400 [01:03:17]line ФД: 68252 [01:03:17]line ФПД: 187980905233911 [01:03:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T010318&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68252&fm=187980905233911&tin=02508201610067®Number=0000000000098096&sum=70000 [01:03:18]OFD Sender: Processing packet 68252 [packets to send 26, broken 25] [01:03:18]ProducePacketName [01:03:18]name=ofd_packets/00068252 [01:03:18]OFD Sender: To server: pG, [01:03:18]CommunicateWithHost lk.salyk.kg:30040 [01:03:18]ConnectInit lk.salyk.kg [01:03:18]written 0, free lines is 4095 [01:03:18]Connected sock=10 [01:03:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 CC 97 07 01 01 2F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 36 29 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A4 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 07 00 00 00 F4 03 04 00 56 16 5D 66 0E 04 04 00 43 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 9C 0A 01 00 35 04 06 00 AA F7 B7 14 BD F7 41 46 63 11 5C E9 51 CE [01:03:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 50 16 47 00 E6 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 35 34 30 30 10 04 04 00 9C 0A 01 00 F4 03 04 00 54 BD 5C 66 B6 04 01 00 00 D7 BA 54 4E 51 67 CD F0 [01:03:18]CommunicateWithHost err = 0 [01:03:18]CheckOFDResponse [01:03:18]1017 (14) - 77093643461234 [01:03:18]1041 (16) - 0000000000965400 [01:03:18]1040 (4) - 68252 [01:03:18]1012 (4) - 02.06.2024 18:43 [01:03:18]1206 (1) - 0 [01:03:18]OFD Sender: Remove packet 68252 [01:03:18]ProducePacketName [01:03:18]name=ofd_packets/00068252 [01:03:18]NVStorageDeleteData [01:03:18]Write to MH i2c: 01 00 00 04 1A 1E [01:03:18]Write i2c OK [01:03:18]MH_I2C_Read... [01:03:18]Read from MH i2c: 01 [01:03:18]MH_I2C_Read... [01:03:18]Read from MH i2c: 01 07 00 [01:03:18]MH_I2C_Read... [01:03:18]Read from MH i2c: 01 07 00 04 1A 00 00 00 00 00 DE 0C 0F [01:03:18]RasterBufferAndPrint [01:03:18]line [01:03:18]line [01:03:18]line [01:03:18]line [01:03:18]line [01:03:18]written 0, free lines is 3303 [01:03:18]MH_Cut [01:03:18]Write to MH i2c: D1 01 00 0B 1A 01 F7 [01:03:18]Write i2c OK [01:03:18]MH_I2C_Read... [01:03:18]Read from MH i2c: D1 [01:03:18]MH_I2C_Read... [01:03:18]Read from MH i2c: D1 01 00 [01:03:18]MH_I2C_Read... [01:03:18]Read from MH i2c: D1 01 00 0B 1A 00 F6 [01:03:18]Write to MH i2c: 01 00 00 0C 1A 26 [01:03:18]Write i2c OK [01:03:18]MH_I2C_Read... [01:03:19]OFD Sender: No OFD packet to send [01:03:19]*** Cut start [01:03:19]*** Partial cut [01:03:19]*** CUTSNS_PIN = 1 [01:03:19]*** CUTSNS_PIN = 0 [01:03:19]*** Brake cut motor [01:03:20]Read from MH i2c: 01 [01:03:20]MH_I2C_Read... [01:03:20]*** Stop cut motor [01:03:20]*** Cut end [01:03:20]Read from MH i2c: 01 07 00 [01:03:20]MH_I2C_Read... [01:03:20]Read from MH i2c: 01 07 00 0C 1A 00 00 00 00 00 FF 0F 3B [01:03:20]process_action close_receipt done [01:03:20]requested_data is exist [01:03:20]produce_requested_data [01:03:20]requested_item fm.sn is exist - process it [01:03:20]wFMCommunicate request_size=4 [01:03:20]MH_SAM_APDU [01:03:20]CAPDU: 80 11 00 00 [01:03:20]Write to MH i2c: E2 08 00 0D 1A 80 11 00 00 00 00 00 00 A1 [01:03:20]Write i2c OK [01:03:20]MH_I2C_Read... [01:03:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:03:20]Read from MH i2c: E2 [01:03:20]MH_I2C_Read... [01:03:20]Read from MH i2c: E2 17 00 [01:03:20]MH_I2C_Read... [01:03:20]Read from MH i2c: E2 17 00 0D 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 EC [01:03:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [01:03:20]wFMCommunicate OK [01:03:20]requested_item fd.num is exist - process it [01:03:20]SAM_PROTO_GetFieldsCounters [01:03:20]wFMCommunicate request_size=4 [01:03:20]MH_SAM_APDU [01:03:20]CAPDU: 80 13 00 00 [01:03:20]Write to MH i2c: E2 08 00 0E 1A 80 13 00 00 00 00 00 00 A4 [01:03:20]Write i2c OK [01:03:20]MH_I2C_Read... [01:03:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:03:20]Read from MH i2c: E2 [01:03:20]MH_I2C_Read... [01:03:20]Read from MH i2c: E2 62 00 [01:03:20]MH_I2C_Read... [01:03:20]Read from MH i2c: E2 62 00 0E 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 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 9C 0A 01 00 0E 04 04 00 43 01 00 00 12 04 04 00 07 00 00 00 5E 04 04 00 07 00 00 00 57 04 04 00 08 00 00 00 19 04 04 00 00 00 00 00 90 00 C4 [01: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 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 9C 0A 01 00 0E 04 04 00 43 01 00 00 12 04 04 00 07 00 00 00 5E 04 04 00 07 00 00 00 57 04 04 00 08 00 00 00 19 04 04 00 00 00 00 00 90 00 [01:03:20]wFMCommunicate OK [01:03:20]SAM_PROTO_GetFieldsCounters done [01:03:20]requested_item shift.num is exist - process it [01:03:20]requested_item shift.opened is exist - process it [01:03:20]req_shift_opened [01:03:20]FM_GetShiftState [01:03:20]SAM_PROTO_GetShiftState [01:03:20]wFMCommunicate request_size=4 [01:03:20]MH_SAM_APDU [01:03:20]CAPDU: 80 13 01 00 [01:03:20]Write to MH i2c: E2 08 00 0F 1A 80 13 01 00 00 00 00 00 A6 [01:03:20]Write i2c OK [01:03:20]MH_I2C_Read... [01:03:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:03:20]Read from MH i2c: E2 [01:03:20]MH_I2C_Read... [01:03:20]Read from MH i2c: E2 0E 00 [01:03:20]MH_I2C_Read... [01:03:20]Read from MH i2c: E2 0E 00 0F 1A 00 09 00 01 AA 0D 5D 66 00 00 00 00 90 00 2C [01:03:20]RAPDU: 09 00 01 AA 0D 5D 66 00 00 00 00 90 00 [01:03:20]wFMCommunicate OK [01:03:20]SAM_PROTO_GetShiftState done [01:03:20]FM_GetShiftState done [01:03:20]req_shift_opened done [01:03:20]requested_item shift.open_date is exist - process it [01:03:20]req_shift_open_date [01:03:20]req_shift_open_date done [01:03:20]produce_requested_data done [01:03:20]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68252,"shift.num":323,"shift.opened":1,"shift.open_date":1717374378} [01:03:20]process_action_free close_receipt [01:03:20]json_value_free [01:03:20]json_value_free done [01:03:20]process_json_proto returns [01:03:20]Send response to host [01:03:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68252,"shift.num":323,"shift.opened":1,"shift.open_date":1717374378}}} [01:03:20]free response buf [01:03:20]execute_script done [01:03:20]execute_script returns [01:03:20]free content buf [01:03:20]Sock 7.Close socket [01:03:20]Sock 7.Thread stoped [01:03:24]OFD Sender: No OFD packet to send [01:03:29]OFD Sender: No OFD packet to send [01:03:34]OFD Sender: No OFD packet to send [01:03:39]OFD Sender: No OFD packet to send [01:03:44]OFD Sender: No OFD packet to send [01:03:49]OFD Sender: No OFD packet to send [01:03:54]OFD Sender: No OFD packet to send [01:03:59]OFD Sender: No OFD packet to send [01:04:04]OFD Sender: No OFD packet to send [01:04:09]OFD Sender: No OFD packet to send [01:04:14]OFD Sender: No OFD packet to send [01:04:19]OFD Sender: No OFD packet to send [01:04:24]OFD Sender: No OFD packet to send [01:04:29]OFD Sender: No OFD packet to send [01:04:34]OFD Sender: No OFD packet to send [01:04:39]OFD Sender: No OFD packet to send [01:04:44]OFD Sender: No OFD packet to send [01:04:49]OFD Sender: No OFD packet to send [01:04:54]OFD Sender: No OFD packet to send [01:04:59]OFD Sender: No OFD packet to send [01:05:04]OFD Sender: No OFD packet to send [01:05:09]OFD Sender: No OFD packet to send [01:05:14]OFD Sender: No OFD packet to send [01:05:19]OFD Sender: No OFD packet to send [01:05:24]OFD Sender: No OFD packet to send [01:05:29]OFD Sender: No OFD packet to send [01:05:34]OFD Sender: No OFD packet to send [01:05:39]OFD Sender: No OFD packet to send [01:05:44]OFD Sender: No OFD packet to send [01:05:49]OFD Sender: No OFD packet to send [01:05:54]OFD Sender: No OFD packet to send [01:05:59]OFD Sender: No OFD packet to send [01:06:04]OFD Sender: No OFD packet to send [01:06:09]OFD Sender: No OFD packet to send [01:06:14]OFD Sender: No OFD packet to send [01:06:19]OFD Sender: No OFD packet to send [01:06:24]OFD Sender: No OFD packet to send [01:06:29]OFD Sender: No OFD packet to send [01:06:34]OFD Sender: No OFD packet to send [01:06:39]OFD Sender: No OFD packet to send [01:06:44]OFD Sender: No OFD packet to send [01:06:49]OFD Sender: No OFD packet to send [01:06:54]OFD Sender: No OFD packet to send [01:06:59]OFD Sender: No OFD packet to send [01:07:04]OFD Sender: No OFD packet to send [01:07:09]OFD Sender: No OFD packet to send [01:07:14]OFD Sender: No OFD packet to send [01:07:19]OFD Sender: No OFD packet to send [01:07:24]OFD Sender: No OFD packet to send [01:07:29]OFD Sender: No OFD packet to send [01:07:34]OFD Sender: No OFD packet to send [01:07:39]OFD Sender: No OFD packet to send [01:07:44]OFD Sender: No OFD packet to send [01:07:49]OFD Sender: No OFD packet to send [01:07:54]OFD Sender: No OFD packet to send [01:07:59]OFD Sender: No OFD packet to send [01:08:04]OFD Sender: No OFD packet to send [01:08:09]OFD Sender: No OFD packet to send [01:08:14]OFD Sender: No OFD packet to send [01:08:19]OFD Sender: No OFD packet to send [01:08:24]OFD Sender: No OFD packet to send [01:08:29]OFD Sender: No OFD packet to send [01:08:34]OFD Sender: No OFD packet to send [01:08:39]OFD Sender: No OFD packet to send [01:08:44]OFD Sender: No OFD packet to send [01:08:49]OFD Sender: No OFD packet to send [01:08:54]OFD Sender: No OFD packet to send [01:08:59]OFD Sender: No OFD packet to send [01:09:04]OFD Sender: No OFD packet to send [01:09:09]OFD Sender: No OFD packet to send [01:09:14]OFD Sender: No OFD packet to send [01:09:19]OFD Sender: No OFD packet to send [01:09:24]OFD Sender: No OFD packet to send [01:09:29]OFD Sender: No OFD packet to send [01:09:34]OFD Sender: No OFD packet to send [01:09:39]OFD Sender: No OFD packet to send [01:09:44]OFD Sender: No OFD packet to send [01:09:49]OFD Sender: No OFD packet to send [01:09:54]OFD Sender: No OFD packet to send [01:09:59]OFD Sender: No OFD packet to send [01:10:04]OFD Sender: No OFD packet to send [01:10:09]OFD Sender: No OFD packet to send [01:10:14]OFD Sender: No OFD packet to send [01:10:19]OFD Sender: No OFD packet to send [01:10:24]OFD Sender: No OFD packet to send [01:10:29]OFD Sender: No OFD packet to send [01:10:34]OFD Sender: No OFD packet to send [01:10:39]OFD Sender: No OFD packet to send [01:10:44]OFD Sender: No OFD packet to send [01:10:49]OFD Sender: No OFD packet to send [01:10:54]OFD Sender: No OFD packet to send [01:10:59]OFD Sender: No OFD packet to send [01:11:04]OFD Sender: No OFD packet to send [01:11:09]OFD Sender: No OFD packet to send [01:11:14]OFD Sender: No OFD packet to send [01:11:19]OFD Sender: No OFD packet to send [01:11:24]OFD Sender: No OFD packet to send [01:11:29]OFD Sender: No OFD packet to send [01:11:34]OFD Sender: No OFD packet to send [01:11:39]OFD Sender: No OFD packet to send [01:11:44]OFD Sender: No OFD packet to send [01:11:49]OFD Sender: No OFD packet to send [01:11:54]OFD Sender: No OFD packet to send [01:11:59]OFD Sender: No OFD packet to send [01:12:04]OFD Sender: No OFD packet to send [01:12:09]OFD Sender: No OFD packet to send [01:12:14]OFD Sender: No OFD packet to send [01:12:19]OFD Sender: No OFD packet to send [01:12:24]OFD Sender: No OFD packet to send [01:12:29]OFD Sender: No OFD packet to send [01:12:34]OFD Sender: No OFD packet to send [01:12:39]OFD Sender: No OFD packet to send [01:12:44]OFD Sender: No OFD packet to send [01:12:49]OFD Sender: No OFD packet to send [01:12:54]OFD Sender: No OFD packet to send [01:12:59]OFD Sender: No OFD packet to send [01:13:04]OFD Sender: No OFD packet to send [01:13:09]OFD Sender: No OFD packet to send [01:13:14]OFD Sender: No OFD packet to send [01:13:19]OFD Sender: No OFD packet to send [01:13:24]OFD Sender: No OFD packet to send [01:13:29]OFD Sender: No OFD packet to send [01:13:34]OFD Sender: No OFD packet to send [01:13:39]OFD Sender: No OFD packet to send [01:13:44]OFD Sender: No OFD packet to send [01:13:49]OFD Sender: No OFD packet to send [01:13:54]OFD Sender: No OFD packet to send [01:13:59]OFD Sender: No OFD packet to send [01:14:04]OFD Sender: No OFD packet to send [01:14:09]OFD Sender: No OFD packet to send [01:14:14]OFD Sender: No OFD packet to send [01:14:19]OFD Sender: No OFD packet to send [01:14:24]OFD Sender: No OFD packet to send [01:14:29]OFD Sender: No OFD packet to send [01:14:34]OFD Sender: No OFD packet to send [01:14:39]OFD Sender: No OFD packet to send [01:14:44]OFD Sender: No OFD packet to send [01:14:49]OFD Sender: No OFD packet to send [01:14:54]OFD Sender: No OFD packet to send [01:14:59]OFD Sender: No OFD packet to send [01:15:04]OFD Sender: No OFD packet to send [01:15:09]OFD Sender: No OFD packet to send [01:15:14]OFD Sender: No OFD packet to send [01:15:19]OFD Sender: No OFD packet to send [01:15:24]OFD Sender: No OFD packet to send [01:15:29]OFD Sender: No OFD packet to send [01:15:34]OFD Sender: No OFD packet to send [01:15:39]OFD Sender: No OFD packet to send [01:15:44]OFD Sender: No OFD packet to send [01:15:49]OFD Sender: No OFD packet to send [01:15:54]OFD Sender: No OFD packet to send [01:15:59]OFD Sender: No OFD packet to send [01:16:04]OFD Sender: No OFD packet to send [01:16:09]OFD Sender: No OFD packet to send [01:16:14]OFD Sender: No OFD packet to send [01:16:19]OFD Sender: No OFD packet to send [01:16:24]OFD Sender: No OFD packet to send [01:16:29]OFD Sender: No OFD packet to send [01:16:34]OFD Sender: No OFD packet to send [01:16:39]OFD Sender: No OFD packet to send [01:16:44]OFD Sender: No OFD packet to send [01:16:49]OFD Sender: No OFD packet to send [01:16:54]OFD Sender: No OFD packet to send [01:16:59]OFD Sender: No OFD packet to send [01:17:04]OFD Sender: No OFD packet to send [01:17:09]OFD Sender: No OFD packet to send [01:17:14]OFD Sender: No OFD packet to send [01:17:19]OFD Sender: No OFD packet to send [01:17:24]OFD Sender: No OFD packet to send [01:17:29]OFD Sender: No OFD packet to send [01:17:34]OFD Sender: No OFD packet to send [01:17:39]OFD Sender: No OFD packet to send [01:17:44]OFD Sender: No OFD packet to send [01:17:49]OFD Sender: No OFD packet to send [01:17:54]OFD Sender: No OFD packet to send [01:17:59]OFD Sender: No OFD packet to send [01:18:04]OFD Sender: No OFD packet to send [01:18:09]OFD Sender: No OFD packet to send [01:18:14]OFD Sender: No OFD packet to send [01:18:19]OFD Sender: No OFD packet to send [01:18:24]OFD Sender: No OFD packet to send [01:18:29]OFD Sender: No OFD packet to send [01:18:34]OFD Sender: No OFD packet to send [01:18:39]OFD Sender: No OFD packet to send [01:18:44]OFD Sender: No OFD packet to send [01:18:49]OFD Sender: No OFD packet to send [01:18:54]OFD Sender: No OFD packet to send [01:18:59]OFD Sender: No OFD packet to send [01:19:04]OFD Sender: No OFD packet to send [01:19:09]OFD Sender: No OFD packet to send [01:19:14]OFD Sender: No OFD packet to send [01:19:19]OFD Sender: No OFD packet to send [01:19:21]accept exits with 9 [01:19:21]New connection [01:19:21]New thread 3066543460 created [01:19:21]Thread 3066686820 joined [01:19:21]Waiting for new connection... [01:19:21] Sock 9.Parse request [01:19:21]Sock 9.Check first char [01:19:21]Sock 9.First char is OK [01:19:21]request: POST /json_proto HTTP/1.0 [01:19:21]Method: POST [01:19:21]URL: /json_proto [01:19:21]Method is POST - this is cgi request [01:19:21]url: /json_proto [01:19:21]query_string will be loaded in cgi processing [01:19:21]execute_cgi json_proto POST (null) [01:19:21]execute_cgi path=json_proto method=POST [01:19:21]POST find Content-Length [01:19:21]Host: 172.17.36.132:8080 [01:19:21]Content-Length: 215 [01:19:21]Content-Type: application/json [01:19:21] [01:19:21]POST finish read [01:19:21]Found Content-Length = 215 [01:19:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:19:21]execute_script... [01:19:21]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:19:21]POST & json_proto [01:19:21]process_json_proto [01:19:21]json parsed OK: [01:19:21]protocol is kg_v1.0 [01:19:21]action value=get_value [01:19:21]process_action get_value [01:19:21]cmd_get_value [01:19:21]process_action get_value done [01:19:21]requested_data is exist [01:19:21]produce_requested_data [01:19:21]requested_item kkm.sn is exist - process it [01:19:21]requested_item kkm.ver is exist - process it [01:19:21]requested_item fm.sn is exist - process it [01:19:21]wFMCommunicate request_size=4 [01:19:21]MH_SAM_APDU [01:19:21]CAPDU: 80 11 00 00 [01:19:21]Write to MH i2c: E2 08 00 10 1A 80 11 00 00 00 00 00 00 A4 [01:19:21]Write i2c OK [01:19:21]MH_I2C_Read... [01:19:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:19:21]Read from MH i2c: E2 [01:19:21]MH_I2C_Read... [01:19:21]Read from MH i2c: E2 17 00 [01:19:21]MH_I2C_Read... [01:19:21]Read from MH i2c: E2 17 00 10 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 EF [01:19:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [01:19:21]wFMCommunicate OK [01:19:21]requested_item fd.num is exist - process it [01:19:21]SAM_PROTO_GetFieldsCounters [01:19:21]wFMCommunicate request_size=4 [01:19:21]MH_SAM_APDU [01:19:21]CAPDU: 80 13 00 00 [01:19:21]Write to MH i2c: E2 08 00 11 1A 80 13 00 00 00 00 00 00 A7 [01:19:21]Write i2c OK [01:19:21]MH_I2C_Read... [01:19:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:19:21]Read from MH i2c: E2 [01:19:21]MH_I2C_Read... [01:19:21]Read from MH i2c: E2 62 00 [01:19:21]MH_I2C_Read... [01:19:21]Read from MH i2c: E2 62 00 11 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 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 9C 0A 01 00 0E 04 04 00 43 01 00 00 12 04 04 00 07 00 00 00 5E 04 04 00 07 00 00 00 57 04 04 00 08 00 00 00 19 04 04 00 00 00 00 00 90 00 C7 [01: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 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 9C 0A 01 00 0E 04 04 00 43 01 00 00 12 04 04 00 07 00 00 00 5E 04 04 00 07 00 00 00 57 04 04 00 08 00 00 00 19 04 04 00 00 00 00 00 90 00 [01:19:21]wFMCommunicate OK [01:19:21]SAM_PROTO_GetFieldsCounters done [01:19:21]requested_item shift.num is exist - process it [01:19:21]requested_item shift.opened is exist - process it [01:19:21]req_shift_opened [01:19:21]FM_GetShiftState [01:19:21]SAM_PROTO_GetShiftState [01:19:21]wFMCommunicate request_size=4 [01:19:21]MH_SAM_APDU [01:19:21]CAPDU: 80 13 01 00 [01:19:21]Write to MH i2c: E2 08 00 12 1A 80 13 01 00 00 00 00 00 A9 [01:19:21]Write i2c OK [01:19:21]MH_I2C_Read... [01:19:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:19:21]Read from MH i2c: E2 [01:19:21]MH_I2C_Read... [01:19:21]Read from MH i2c: E2 0E 00 [01:19:21]MH_I2C_Read... [01:19:21]Read from MH i2c: E2 0E 00 12 1A 00 09 00 01 AA 0D 5D 66 00 00 00 00 90 00 2F [01:19:21]RAPDU: 09 00 01 AA 0D 5D 66 00 00 00 00 90 00 [01:19:21]wFMCommunicate OK [01:19:21]SAM_PROTO_GetShiftState done [01:19:21]FM_GetShiftState done [01:19:21]req_shift_opened done [01:19:21]requested_item shift.open_date is exist - process it [01:19:21]req_shift_open_date [01:19:21]req_shift_open_date done [01:19:21]produce_requested_data done [01:19:21]produce_requested_data return {"kkm.sn":"0300000181","kkm.ver":"001","fm.sn":"0000000000965400","fd.num":68252,"shift.num":323,"shift.opened":1,"shift.open_date":1717374378} [01:19:21]process_action_free get_value [01:19:21]json_value_free [01:19:21]json_value_free done [01:19:21]process_json_proto returns [01:19:21]Send response to host [01:19:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000181","kkm.ver":"001","fm.sn":"0000000000965400","fd.num":68252,"shift.num":323,"shift.opened":1,"shift.open_date":1717374378}}} [01:19:21]free response buf [01:19:21]execute_script done [01:19:21]execute_script returns [01:19:21]free content buf [01:19:21]Sock 9.Close socket [01:19:21]Sock 9.Thread stoped [01:19:21]accept exits with 10 [01:19:21]New connection [01:19:21]New thread 3066686820 created [01:19:21]Thread 3066543460 joined [01:19:21]Waiting for new connection... [01:19:21] Sock 10.Parse request [01:19:21]Sock 10.Check first char [01:19:21]Sock 10.First char is OK [01:19:21]request: POST /json_proto HTTP/1.0 [01:19:21]Method: POST [01:19:21]URL: /json_proto [01:19:21]Method is POST - this is cgi request [01:19:21]url: /json_proto [01:19:21]query_string will be loaded in cgi processing [01:19:21]execute_cgi json_proto POST (null) [01:19:21]execute_cgi path=json_proto method=POST [01:19:21]POST find Content-Length [01:19:21]Host: 172.17.36.132:8080 [01:19:21]Content-Length: 331 [01:19:21]Content-Type: application/json [01:19:21] [01:19:21]POST finish read [01:19:21]Found Content-Length = 331 [01:19:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [01:19:21]execute_script... [01:19:22]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [01:19:22]POST & json_proto [01:19:22]process_json_proto [01:19:22]json parsed OK: [01:19:22]protocol is kg_v1.0 [01:19:22]action value=get_value [01:19:22]process_action get_value [01:19:22]cmd_get_value [01:19:22]process_action get_value done [01:19:22]requested_data is exist [01:19:22]produce_requested_data [01:19:22]requested_item fm.sale.total is exist - process it [01:19:22]SAM_PROTO_GetFMData [01:19:22]wFMCommunicate request_size=4 [01:19:22]MH_SAM_APDU [01:19:22]CAPDU: 80 13 03 00 [01:19:22]Write to MH i2c: E2 08 00 13 1A 80 13 03 00 00 00 00 00 AC [01:19:22]Write i2c OK [01:19:22]MH_I2C_Read... [01:19:22]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [01:19:22]Read from MH i2c: E2 [01:19:22]MH_I2C_Read... [01:19:22]Read from MH i2c: E2 FD 00 [01:19:22]MH_I2C_Read... [01:19:22]Read from MH i2c: E2 FD 00 13 1A 00 C5 04 85 04 C1 04 6E 04 04 00 16 08 01 00 69 04 A3 00 6F 04 04 00 0B 03 01 00 B1 04 05 00 B2 2C 52 38 01 70 04 05 00 44 9F F6 0B 01 72 04 04 00 6E 8D 5B 2C 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 C0 4F 2D 21 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 62 AD C3 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 9C 00 6F 04 04 00 0B 05 00 00 B1 04 04 00 F0 67 BC 0E 70 04 04 00 F0 67 BC 0E 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 3E AA 90 01 EF 03 09 90 00 CA [01:19:22]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 16 08 01 00 69 04 A3 00 6F 04 04 00 0B 03 01 00 B1 04 05 00 B2 2C 52 38 01 70 04 05 00 44 9F F6 0B 01 72 04 04 00 6E 8D 5B 2C 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 C0 4F 2D 21 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 62 AD C3 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 9C 00 6F 04 04 00 0B 05 00 00 B1 04 04 00 F0 67 BC 0E 70 04 04 00 F0 67 BC 0E 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 3E AA 90 01 EF 03 09 90 00 [01:19:22]wFMCommunicate OK [01:19:22]wFMCommunicate request_size=4 [01:19:22]MH_SAM_APDU [01:19:22]CAPDU: 80 17 00 00 [01:19:22]Write to MH i2c: E2 08 00 14 1A 80 17 00 00 00 00 00 00 AE [01:19:22]Write i2c OK [01:19:22]MH_I2C_Read... [01:19:22]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [01:19:22]Read from MH i2c: E2 [01:19:22]MH_I2C_Read... [01:19:22]Read from MH i2c: E2 FD 00 [01:19:22]MH_I2C_Read... [01:19:22]Read from MH i2c: E2 FD 00 14 1A 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 12 63 21 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 FA [01:19:22]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 12 63 21 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 [01:19:22]wFMCommunicate OK [01:19:22]wFMCommunicate request_size=4 [01:19:22]MH_SAM_APDU [01:19:22]CAPDU: 80 17 00 00 [01:19:22]Write to MH i2c: E2 08 00 15 1A 80 17 00 00 00 00 00 00 AF [01:19:22]Write i2c OK [01:19:22]MH_I2C_Read... [01:19:23]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [01:19:23]Read from MH i2c: E2 [01:19:23]MH_I2C_Read... [01:19:23]Read from MH i2c: E2 FD 00 [01:19:23]MH_I2C_Read... [01:19:23]Read from MH i2c: E2 FD 00 15 1A 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 C1 [01:19:23]RAPDU: 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [01:19:23]wFMCommunicate OK [01:19:23]wFMCommunicate request_size=4 [01:19:23]MH_SAM_APDU [01:19:23]CAPDU: 80 17 00 00 [01:19:23]Write to MH i2c: E2 08 00 16 1A 80 17 00 00 00 00 00 00 B0 [01:19:23]Write i2c OK [01:19:23]MH_I2C_Read... [01:19:23]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [01:19:23]Read from MH i2c: E2 [01:19:23]MH_I2C_Read... [01:19:23]Read from MH i2c: E2 FD 00 [01:19:23]MH_I2C_Read... [01:19:23]Read from MH i2c: E2 FD 00 16 1A 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 3C [01:19:23]RAPDU: 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [01:19:23]wFMCommunicate OK [01:19:23]wFMCommunicate request_size=4 [01:19:23]MH_SAM_APDU [01:19:23]CAPDU: 80 17 00 00 [01:19:23]Write to MH i2c: E2 08 00 17 1A 80 17 00 00 00 00 00 00 B1 [01:19:23]Write i2c OK [01:19:23]MH_I2C_Read... [01:19:23]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [01:19:23]Read from MH i2c: E2 [01:19:23]MH_I2C_Read... [01:19:23]Read from MH i2c: E2 E2 00 [01:19:23]MH_I2C_Read... [01:19:23]Read from MH i2c: E2 E2 00 17 1A 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 8F [01:19:23]RAPDU: EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [01:19:23]wFMCommunicate OK [01:19:23]SAM_PROTO_GetFMData done [01:19:23]requested_item fm.sale_refund.total is exist - process it [01:19:23]requested_item fm.buy.total is exist - process it [01:19:23]requested_item shift.sale.total is exist - process it [01:19:23]SAM_PROTO_GetShiftData [01:19:23]wFMCommunicate request_size=4 [01:19:23]MH_SAM_APDU [01:19:23]CAPDU: 80 13 02 00 [01:19:23]Write to MH i2c: E2 08 00 18 1A 80 13 02 00 00 00 00 00 B0 [01:19:23]Write i2c OK [01:19:23]MH_I2C_Read... [01:19:24]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [01:19:24]Read from MH i2c: E2 [01:19:24]MH_I2C_Read... [01:19:24]Read from MH i2c: E2 FD 00 [01:19:24]MH_I2C_Read... [01:19:24]Read from MH i2c: E2 FD 00 18 1A 00 AC 04 AA 04 A8 04 6E 04 04 00 07 00 00 00 69 04 99 00 6F 04 04 00 07 00 00 00 B1 04 03 00 3F 55 06 70 04 03 00 D8 B8 05 72 04 02 00 67 9C 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 40 AC 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 5A 0E EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 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 90 00 FE [01:19:24]RAPDU: AC 04 AA 04 A8 04 6E 04 04 00 07 00 00 00 69 04 99 00 6F 04 04 00 07 00 00 00 B1 04 03 00 3F 55 06 70 04 03 00 D8 B8 05 72 04 02 00 67 9C 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 40 AC 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 5A 0E EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 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 90 00 [01:19:24]wFMCommunicate OK [01:19:24]wFMCommunicate request_size=4 [01:19:24]MH_SAM_APDU [01:19:24]CAPDU: 80 17 00 00 [01:19:24]Write to MH i2c: E2 08 00 19 1A 80 17 00 00 00 00 00 00 B3 [01:19:24]Write i2c OK [01:19:24]MH_I2C_Read... [01:19:24]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [01:19:24]Read from MH i2c: E2 [01:19:24]MH_I2C_Read... [01:19:24]Read from MH i2c: E2 FD 00 [01:19:24]MH_I2C_Read... [01:19:24]Read from MH i2c: E2 FD 00 19 1A 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 C8 [01:19:24]RAPDU: 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 [01:19:24]wFMCommunicate OK [01:19:24]wFMCommunicate request_size=4 [01:19:24]MH_SAM_APDU [01:19:24]CAPDU: 80 17 00 00 [01:19:24]Write to MH i2c: E2 08 00 1A 1A 80 17 00 00 00 00 00 00 B4 [01:19:24]Write i2c OK [01:19:24]MH_I2C_Read... [01:19:24]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [01:19:24]Read from MH i2c: E2 [01:19:24]MH_I2C_Read... [01:19:24]Read from MH i2c: E2 FD 00 [01:19:24]MH_I2C_Read... [01:19:24]Read from MH i2c: E2 FD 00 1A 1A 00 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 90 00 75 [01:19:24]RAPDU: 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [01:19:24]wFMCommunicate OK [01:19:24]wFMCommunicate request_size=4 [01:19:24]MH_SAM_APDU [01:19:24]CAPDU: 80 17 00 00 [01:19:24]Write to MH i2c: E2 08 00 1B 1A 80 17 00 00 00 00 00 00 B5 [01:19:24]Write i2c OK [01:19:24]MH_I2C_Read... [01:19:24]OFD Sender: No OFD packet to send [01:19:25]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [01:19:25]Read from MH i2c: E2 [01:19:25]MH_I2C_Read... [01:19:25]Read from MH i2c: E2 FD 00 [01:19:25]MH_I2C_Read... [01:19:25]Read from MH i2c: E2 FD 00 1B 1A 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 90 00 2A [01:19:25]RAPDU: 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 90 00 [01:19:25]wFMCommunicate OK [01:19:25]wFMCommunicate request_size=4 [01:19:25]MH_SAM_APDU [01:19:25]CAPDU: 80 17 00 00 [01:19:25]Write to MH i2c: E2 08 00 1C 1A 80 17 00 00 00 00 00 00 B6 [01:19:25]Write i2c OK [01:19:25]MH_I2C_Read... [01:19:25]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 198! [01:19:25]Read from MH i2c: E2 [01:19:25]MH_I2C_Read... [01:19:25]Read from MH i2c: E2 C9 00 [01:19:25]MH_I2C_Read... [01:19:25]Read from MH i2c: E2 C9 00 1C 1A 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 9A [01:19:25]RAPDU: 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [01:19:25]wFMCommunicate OK [01:19:25]SAM_PROTO_GetShiftData done [01:19:25]requested_item shift.sale.total_cash is exist - process it [01:19:25]requested_item shift.sale_refund.total is exist - process it [01:19:25]requested_item shift.sale_refund.total_cash is exist - process it [01:19:25]requested_item shift.buy.total is exist - process it [01:19:25]requested_item shift.buy.total_cash is exist - process it [01:19:25]produce_requested_data done [01:19:25]produce_requested_data return {"fm.sale.total":52398767.86,"fm.sale_refund.total":2472284.00,"fm.buy.total":0.00,"shift.sale.total":4150.39,"shift.sale.total_cash":3750.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [01:19:25]process_action_free get_value [01:19:25]json_value_free [01:19:25]json_value_free done [01:19:25]process_json_proto returns [01:19:25]Send response to host [01:19:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":52398767.86,"fm.sale_refund.total":2472284.00,"fm.buy.total":0.00,"shift.sale.total":4150.39,"shift.sale.total_cash":3750.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [01:19:25]free response buf [01:19:25]execute_script done [01:19:25]execute_script returns [01:19:25]free content buf [01:19:25]Sock 10.Close socket [01:19:25]Sock 10.Thread stoped [01:19:25]accept exits with 7 [01:19:25]New connection [01:19:25]New thread 3066543460 created [01:19:25]Thread 3066686820 joined [01:19:25]Waiting for new connection... [01:19:25] Sock 7.Parse request [01:19:25]Sock 7.Check first char [01:19:25]Sock 7.First char is OK [01:19:25]request: POST /json_proto HTTP/1.0 [01:19:25]Method: POST [01:19:25]URL: /json_proto [01:19:25]Method is POST - this is cgi request [01:19:25]url: /json_proto [01:19:25]query_string will be loaded in cgi processing [01:19:25]execute_cgi json_proto POST (null) [01:19:25]execute_cgi path=json_proto method=POST [01:19:25]POST find Content-Length [01:19:25]Host: 172.17.36.132:8080 [01:19:25]Content-Length: 331 [01:19:25]Content-Type: application/json [01:19:25] [01:19:25]POST finish read [01:19:25]Found Content-Length = 331 [01:19:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [01:19:25]execute_script... [01:19:25]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [01:19:25]POST & json_proto [01:19:25]process_json_proto [01:19:25]json parsed OK: [01:19:25]protocol is kg_v1.0 [01:19:25]action value=get_value [01:19:25]process_action get_value [01:19:25]cmd_get_value [01:19:25]process_action get_value done [01:19:25]requested_data is exist [01:19:25]produce_requested_data [01:19:25]requested_item fm.sale.total is exist - process it [01:19:25]SAM_PROTO_GetFMData [01:19:25]wFMCommunicate request_size=4 [01:19:25]MH_SAM_APDU [01:19:25]CAPDU: 80 13 03 00 [01:19:25]Write to MH i2c: E2 08 00 1D 1A 80 13 03 00 00 00 00 00 B6 [01:19:25]Write i2c OK [01:19:25]MH_I2C_Read... [01:19:25]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [01:19:25]Read from MH i2c: E2 [01:19:25]MH_I2C_Read... [01:19:26]Read from MH i2c: E2 FD 00 [01:19:26]MH_I2C_Read... [01:19:26]Read from MH i2c: E2 FD 00 1D 1A 00 C5 04 85 04 C1 04 6E 04 04 00 16 08 01 00 69 04 A3 00 6F 04 04 00 0B 03 01 00 B1 04 05 00 B2 2C 52 38 01 70 04 05 00 44 9F F6 0B 01 72 04 04 00 6E 8D 5B 2C 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 C0 4F 2D 21 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 62 AD C3 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 9C 00 6F 04 04 00 0B 05 00 00 B1 04 04 00 F0 67 BC 0E 70 04 04 00 F0 67 BC 0E 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 3E AA 90 01 EF 03 09 90 00 D4 [01:19:26]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 16 08 01 00 69 04 A3 00 6F 04 04 00 0B 03 01 00 B1 04 05 00 B2 2C 52 38 01 70 04 05 00 44 9F F6 0B 01 72 04 04 00 6E 8D 5B 2C 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 C0 4F 2D 21 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 62 AD C3 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 9C 00 6F 04 04 00 0B 05 00 00 B1 04 04 00 F0 67 BC 0E 70 04 04 00 F0 67 BC 0E 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 3E AA 90 01 EF 03 09 90 00 [01:19:26]wFMCommunicate OK [01:19:26]wFMCommunicate request_size=4 [01:19:26]MH_SAM_APDU [01:19:26]CAPDU: 80 17 00 00 [01:19:26]Write to MH i2c: E2 08 00 1E 1A 80 17 00 00 00 00 00 00 B8 [01:19:26]Write i2c OK [01:19:26]MH_I2C_Read... [01:19:26]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [01:19:26]Read from MH i2c: E2 [01:19:26]MH_I2C_Read... [01:19:26]Read from MH i2c: E2 FD 00 [01:19:26]MH_I2C_Read... [01:19:26]Read from MH i2c: E2 FD 00 1E 1A 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 12 63 21 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 04 [01:19:26]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 12 63 21 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 [01:19:26]wFMCommunicate OK [01:19:26]wFMCommunicate request_size=4 [01:19:26]MH_SAM_APDU [01:19:26]CAPDU: 80 17 00 00 [01:19:26]Write to MH i2c: E2 08 00 1F 1A 80 17 00 00 00 00 00 00 B9 [01:19:26]Write i2c OK [01:19:26]MH_I2C_Read... [01:19:26]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [01:19:26]Read from MH i2c: E2 [01:19:26]MH_I2C_Read... [01:19:26]Read from MH i2c: E2 FD 00 [01:19:26]MH_I2C_Read... [01:19:26]Read from MH i2c: E2 FD 00 1F 1A 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 CB [01:19:26]RAPDU: 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [01:19:26]wFMCommunicate OK [01:19:26]wFMCommunicate request_size=4 [01:19:26]MH_SAM_APDU [01:19:26]CAPDU: 80 17 00 00 [01:19:26]Write to MH i2c: E2 08 00 20 1A 80 17 00 00 00 00 00 00 BA [01:19:26]Write i2c OK [01:19:26]MH_I2C_Read... [01:19:27]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [01:19:27]Read from MH i2c: E2 [01:19:27]MH_I2C_Read... [01:19:27]Read from MH i2c: E2 FD 00 [01:19:27]MH_I2C_Read... [01:19:27]Read from MH i2c: E2 FD 00 20 1A 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 46 [01:19:27]RAPDU: 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [01:19:27]wFMCommunicate OK [01:19:27]wFMCommunicate request_size=4 [01:19:27]MH_SAM_APDU [01:19:27]CAPDU: 80 17 00 00 [01:19:27]Write to MH i2c: E2 08 00 21 1A 80 17 00 00 00 00 00 00 BB [01:19:27]Write i2c OK [01:19:27]MH_I2C_Read... [01:19:27]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [01:19:27]Read from MH i2c: E2 [01:19:27]MH_I2C_Read... [01:19:27]Read from MH i2c: E2 E2 00 [01:19:27]MH_I2C_Read... [01:19:27]Read from MH i2c: E2 E2 00 21 1A 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 99 [01:19:27]RAPDU: EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [01:19:27]wFMCommunicate OK [01:19:27]SAM_PROTO_GetFMData done [01:19:27]requested_item fm.sale_refund.total is exist - process it [01:19:27]requested_item fm.buy.total is exist - process it [01:19:27]requested_item shift.sale.total is exist - process it [01:19:27]SAM_PROTO_GetShiftData [01:19:27]wFMCommunicate request_size=4 [01:19:27]MH_SAM_APDU [01:19:27]CAPDU: 80 13 02 00 [01:19:27]Write to MH i2c: E2 08 00 22 1A 80 13 02 00 00 00 00 00 BA [01:19:27]Write i2c OK [01:19:27]MH_I2C_Read... [01:19:28]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [01:19:28]Read from MH i2c: E2 [01:19:28]MH_I2C_Read... [01:19:28]Read from MH i2c: E2 FD 00 [01:19:28]MH_I2C_Read... [01:19:28]Read from MH i2c: E2 FD 00 22 1A 00 AC 04 AA 04 A8 04 6E 04 04 00 07 00 00 00 69 04 99 00 6F 04 04 00 07 00 00 00 B1 04 03 00 3F 55 06 70 04 03 00 D8 B8 05 72 04 02 00 67 9C 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 40 AC 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 5A 0E EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 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 90 00 08 [01:19:28]RAPDU: AC 04 AA 04 A8 04 6E 04 04 00 07 00 00 00 69 04 99 00 6F 04 04 00 07 00 00 00 B1 04 03 00 3F 55 06 70 04 03 00 D8 B8 05 72 04 02 00 67 9C 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 40 AC 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 5A 0E EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 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 90 00 [01:19:28]wFMCommunicate OK [01:19:28]wFMCommunicate request_size=4 [01:19:28]MH_SAM_APDU [01:19:28]CAPDU: 80 17 00 00 [01:19:28]Write to MH i2c: E2 08 00 23 1A 80 17 00 00 00 00 00 00 BD [01:19:28]Write i2c OK [01:19:28]MH_I2C_Read... [01:19:28]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [01:19:28]Read from MH i2c: E2 [01:19:28]MH_I2C_Read... [01:19:28]Read from MH i2c: E2 FD 00 [01:19:28]MH_I2C_Read... [01:19:28]Read from MH i2c: E2 FD 00 23 1A 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 D2 [01:19:28]RAPDU: 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 [01:19:28]wFMCommunicate OK [01:19:28]wFMCommunicate request_size=4 [01:19:28]MH_SAM_APDU [01:19:28]CAPDU: 80 17 00 00 [01:19:28]Write to MH i2c: E2 08 00 24 1A 80 17 00 00 00 00 00 00 BE [01:19:28]Write i2c OK [01:19:28]MH_I2C_Read... [01:19:28]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [01:19:28]Read from MH i2c: E2 [01:19:28]MH_I2C_Read... [01:19:28]Read from MH i2c: E2 FD 00 [01:19:28]MH_I2C_Read... [01:19:28]Read from MH i2c: E2 FD 00 24 1A 00 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 90 00 7F [01:19:28]RAPDU: 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [01:19:29]wFMCommunicate OK [01:19:29]wFMCommunicate request_size=4 [01:19:29]MH_SAM_APDU [01:19:29]CAPDU: 80 17 00 00 [01:19:29]Write to MH i2c: E2 08 00 25 1A 80 17 00 00 00 00 00 00 BF [01:19:29]Write i2c OK [01:19:29]MH_I2C_Read... [01:19:29]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [01:19:29]Read from MH i2c: E2 [01:19:29]MH_I2C_Read... [01:19:29]Read from MH i2c: E2 FD 00 [01:19:29]MH_I2C_Read... [01:19:29]Read from MH i2c: E2 FD 00 25 1A 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 90 00 34 [01:19:29]RAPDU: 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 90 00 [01:19:29]wFMCommunicate OK [01:19:29]wFMCommunicate request_size=4 [01:19:29]MH_SAM_APDU [01:19:29]CAPDU: 80 17 00 00 [01:19:29]Write to MH i2c: E2 08 00 26 1A 80 17 00 00 00 00 00 00 C0 [01:19:29]Write i2c OK [01:19:29]MH_I2C_Read... [01:19:29]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 198! [01:19:29]Read from MH i2c: E2 [01:19:29]MH_I2C_Read... [01:19:29]Read from MH i2c: E2 C9 00 [01:19:29]MH_I2C_Read... [01:19:29]Read from MH i2c: E2 C9 00 26 1A 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 A4 [01:19:29]RAPDU: 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [01:19:29]wFMCommunicate OK [01:19:29]SAM_PROTO_GetShiftData done [01:19:29]requested_item shift.sale.total_cash is exist - process it [01:19:29]requested_item shift.sale_refund.total is exist - process it [01:19:29]requested_item shift.sale_refund.total_cash is exist - process it [01:19:29]requested_item shift.buy.total is exist - process it [01:19:29]requested_item shift.buy.total_cash is exist - process it [01:19:29]produce_requested_data done [01:19:29]produce_requested_data return {"fm.sale.total":52398767.86,"fm.sale_refund.total":2472284.00,"fm.buy.total":0.00,"shift.sale.total":4150.39,"shift.sale.total_cash":3750.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [01:19:29]process_action_free get_value [01:19:29]json_value_free [01:19:29]json_value_free done [01:19:29]process_json_proto returns [01:19:29]Send response to host [01:19:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":52398767.86,"fm.sale_refund.total":2472284.00,"fm.buy.total":0.00,"shift.sale.total":4150.39,"shift.sale.total_cash":3750.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [01:19:29]free response buf [01:19:29]execute_script done [01:19:29]execute_script returns [01:19:29]free content buf [01:19:29]Sock 7.Close socket [01:19:29]Sock 7.Thread stoped [01:19:29]accept exits with 9 [01:19:29]New connection [01:19:29]New thread 3066686820 created [01:19:29]Thread 3066543460 joined [01:19:29]Waiting for new connection... [01:19:29] Sock 9.Parse request [01:19:29]Sock 9.Check first char [01:19:29]Sock 9.First char is OK [01:19:29]request: POST /json_proto HTTP/1.0 [01:19:29]Method: POST [01:19:29]URL: /json_proto [01:19:29]Method is POST - this is cgi request [01:19:29]url: /json_proto [01:19:29]query_string will be loaded in cgi processing [01:19:29]execute_cgi json_proto POST (null) [01:19:29]execute_cgi path=json_proto method=POST [01:19:29]POST find Content-Length [01:19:29]Host: 172.17.36.132:8080 [01:19:29]Content-Length: 245 [01:19:29]Content-Type: application/json [01:19:29] [01:19:29]POST finish read [01:19:29]Found Content-Length = 245 [01:19:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "x_report", "params" : { "operator" : "\u0411\u0430\u043B\u0430\u0435\u0432 \u0410. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:19:29]execute_script... [01:19:29]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "x_report", "params" : { "operator" : "\u0411\u0430\u043B\u0430\u0435\u0432 \u0410. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:19:29]POST & json_proto [01:19:29]process_json_proto [01:19:29]json parsed OK: [01:19:29]protocol is kg_v1.0 [01:19:29]action value=x_report [01:19:29]process_action x_report [01:19:29]cmd_x_report [01:19:29]MH_GetDate [01:19:29]Write to MH i2c: F0 00 00 27 1A 30 [01:19:29]Write i2c OK [01:19:29]MH_I2C_Read... [01:19:29]Read from MH i2c: F0 [01:19:29]MH_I2C_Read... [01:19:29]Read from MH i2c: F0 09 00 [01:19:29]MH_I2C_Read... [01:19:29]Read from MH i2c: F0 09 00 27 1A 00 24 1A 5D 66 B2 22 B0 64 22 [01:19:29]GetLastDocTimeStamp 1717376598 [01:19:29]current date 1717377572 [01:19:29]FM_GetShiftState [01:19:29]SAM_PROTO_GetShiftState [01:19:29]wFMCommunicate request_size=4 [01:19:29]MH_SAM_APDU [01:19:29]CAPDU: 80 13 01 00 [01:19:29]Write to MH i2c: E2 08 00 28 1A 80 13 01 00 00 00 00 00 BF [01:19:29]Write i2c OK [01:19:29]MH_I2C_Read... [01:19:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:19:29]Read from MH i2c: E2 [01:19:29]MH_I2C_Read... [01:19:29]Read from MH i2c: E2 0E 00 [01:19:29]MH_I2C_Read... [01:19:29]Read from MH i2c: E2 0E 00 28 1A 00 09 00 01 AA 0D 5D 66 00 00 00 00 90 00 45 [01:19:29]RAPDU: 09 00 01 AA 0D 5D 66 00 00 00 00 90 00 [01:19:29]wFMCommunicate OK [01:19:29]SAM_PROTO_GetShiftState done [01:19:29]FM_GetShiftState done [01:19:29]KKMCreateXReportDocument [01:19:29]Load OK [01:19:29]Malloc new data [01:19:29]MH_GetDate [01:19:29]Write to MH i2c: F0 00 00 29 1A 32 [01:19:29]Write i2c OK [01:19:29]MH_I2C_Read... [01:19:29]Read from MH i2c: F0 [01:19:29]MH_I2C_Read... [01:19:29]Read from MH i2c: F0 09 00 [01:19:29]MH_I2C_Read... [01:19:29]Read from MH i2c: F0 09 00 29 1A 00 24 1A 5D 66 B2 22 B0 64 24 [01:19:30]Malloc new data [01:19:30]Malloc new data [01:19:30]wFMCommunicate request_size=4 [01:19:30]MH_SAM_APDU [01:19:30]CAPDU: 80 11 00 00 [01:19:30]Write to MH i2c: E2 08 00 2A 1A 80 11 00 00 00 00 00 00 BE [01:19:30]Write i2c OK [01:19:30]MH_I2C_Read... [01:19:30]OFD Sender: No OFD packet to send [01:19:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:19:30]Read from MH i2c: E2 [01:19:30]MH_I2C_Read... [01:19:30]Read from MH i2c: E2 17 00 [01:19:30]MH_I2C_Read... [01:19:30]Read from MH i2c: E2 17 00 2A 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 09 [01:19:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [01:19:30]wFMCommunicate OK [01:19:30]SAM_PROTO_GetFieldsCounters [01:19:30]wFMCommunicate request_size=4 [01:19:30]MH_SAM_APDU [01:19:30]CAPDU: 80 13 00 00 [01:19:30]Write to MH i2c: E2 08 00 2B 1A 80 13 00 00 00 00 00 00 C1 [01:19:30]Write i2c OK [01:19:30]MH_I2C_Read... [01:19:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:19:30]Read from MH i2c: E2 [01:19:30]MH_I2C_Read... [01:19:30]Read from MH i2c: E2 62 00 [01:19:30]MH_I2C_Read... [01:19:30]Read from MH i2c: E2 62 00 2B 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 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 9C 0A 01 00 0E 04 04 00 43 01 00 00 12 04 04 00 07 00 00 00 5E 04 04 00 07 00 00 00 57 04 04 00 08 00 00 00 19 04 04 00 00 00 00 00 90 00 E1 [01:19: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 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 9C 0A 01 00 0E 04 04 00 43 01 00 00 12 04 04 00 07 00 00 00 5E 04 04 00 07 00 00 00 57 04 04 00 08 00 00 00 19 04 04 00 00 00 00 00 90 00 [01:19:30]wFMCommunicate OK [01:19:30]SAM_PROTO_GetFieldsCounters done [01:19:30]Malloc new data [01:19:30]Malloc new data [01:19:30]Malloc new data [01:19:30]KKMCreateXReportDocument OK [01:19:30]KKMSetXReportData OK [01:19:30]KKMPrepareXReportFMData [01:19:30]SAM_PROTO_GetShiftData [01:19:30]wFMCommunicate request_size=4 [01:19:30]MH_SAM_APDU [01:19:30]CAPDU: 80 13 02 00 [01:19:30]Write to MH i2c: E2 08 00 2C 1A 80 13 02 00 00 00 00 00 C4 [01:19:30]Write i2c OK [01:19:30]MH_I2C_Read... [01:19:30]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [01:19:30]Read from MH i2c: E2 [01:19:30]MH_I2C_Read... [01:19:30]Read from MH i2c: E2 FD 00 [01:19:30]MH_I2C_Read... [01:19:30]Read from MH i2c: E2 FD 00 2C 1A 00 AC 04 AA 04 A8 04 6E 04 04 00 07 00 00 00 69 04 99 00 6F 04 04 00 07 00 00 00 B1 04 03 00 3F 55 06 70 04 03 00 D8 B8 05 72 04 02 00 67 9C 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 40 AC 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 5A 0E EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 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 90 00 12 [01:19:30]RAPDU: AC 04 AA 04 A8 04 6E 04 04 00 07 00 00 00 69 04 99 00 6F 04 04 00 07 00 00 00 B1 04 03 00 3F 55 06 70 04 03 00 D8 B8 05 72 04 02 00 67 9C 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 40 AC 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 5A 0E EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 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 90 00 [01:19:30]wFMCommunicate OK [01:19:30]wFMCommunicate request_size=4 [01:19:30]MH_SAM_APDU [01:19:30]CAPDU: 80 17 00 00 [01:19:30]Write to MH i2c: E2 08 00 2D 1A 80 17 00 00 00 00 00 00 C7 [01:19:30]Write i2c OK [01:19:30]MH_I2C_Read... [01:19:31]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [01:19:31]Read from MH i2c: E2 [01:19:31]MH_I2C_Read... [01:19:31]Read from MH i2c: E2 FD 00 [01:19:31]MH_I2C_Read... [01:19:31]Read from MH i2c: E2 FD 00 2D 1A 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 DC [01:19:31]RAPDU: 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 [01:19:31]wFMCommunicate OK [01:19:31]wFMCommunicate request_size=4 [01:19:31]MH_SAM_APDU [01:19:31]CAPDU: 80 17 00 00 [01:19:31]Write to MH i2c: E2 08 00 2E 1A 80 17 00 00 00 00 00 00 C8 [01:19:31]Write i2c OK [01:19:31]MH_I2C_Read... [01:19:31]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [01:19:31]Read from MH i2c: E2 [01:19:31]MH_I2C_Read... [01:19:31]Read from MH i2c: E2 FD 00 [01:19:31]MH_I2C_Read... [01:19:31]Read from MH i2c: E2 FD 00 2E 1A 00 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 90 00 89 [01:19:31]RAPDU: 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [01:19:31]wFMCommunicate OK [01:19:31]wFMCommunicate request_size=4 [01:19:31]MH_SAM_APDU [01:19:31]CAPDU: 80 17 00 00 [01:19:31]Write to MH i2c: E2 08 00 2F 1A 80 17 00 00 00 00 00 00 C9 [01:19:31]Write i2c OK [01:19:31]MH_I2C_Read... [01:19:32]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [01:19:32]Read from MH i2c: E2 [01:19:32]MH_I2C_Read... [01:19:32]Read from MH i2c: E2 FD 00 [01:19:32]MH_I2C_Read... [01:19:32]Read from MH i2c: E2 FD 00 2F 1A 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 90 00 3E [01:19:32]RAPDU: 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 90 00 [01:19:32]wFMCommunicate OK [01:19:32]wFMCommunicate request_size=4 [01:19:32]MH_SAM_APDU [01:19:32]CAPDU: 80 17 00 00 [01:19:32]Write to MH i2c: E2 08 00 30 1A 80 17 00 00 00 00 00 00 CA [01:19:32]Write i2c OK [01:19:32]MH_I2C_Read... [01:19:32]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 198! [01:19:32]Read from MH i2c: E2 [01:19:32]MH_I2C_Read... [01:19:32]Read from MH i2c: E2 C9 00 [01:19:32]MH_I2C_Read... [01:19:32]Read from MH i2c: E2 C9 00 30 1A 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 AE [01:19:32]RAPDU: 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [01:19:32]wFMCommunicate OK [01:19:32]SAM_PROTO_GetShiftData done [01:19:32]1194 (1192) - счетчики итогов смены [01:19:32] 1134 (4) - 7 - количество чеков со всеми признаками расчетов [01:19:32] 1129 (153) - счетчики операций «приход» [01:19:32] 1135 (4) - 7 - количество чеков по признаку расчетов [01:19:32] 1201 (3) - 4150.39 - общая итоговая сумма в чеках [01:19:32] 1136 (3) - 3750.00 - итоговая сумма в чеках наличными [01:19:32] 1138 (2) - 400.39 - итоговая сумма в чеках безналичными [01:19:32] 1024 (121) - суммы налогов [01:19:32] 1006 (9) - суммы НДС [01:19:32] 1010 (1) - 0% - код ставки НДС [01:19:32] 1011 (0) - 0.00 - сумма НДС по ставке [01:19:32] 1006 (11) - суммы НДС [01:19:32] 1010 (1) - 12% - код ставки НДС [01:19:32] 1011 (2) - 440.96 - сумма НДС по ставке [01:19:32] 1007 (9) - суммы НСП [01:19:32] 1014 (1) - 0% - код ставки НСП [01:19:32] 1015 (0) - 0.00 - сумма НСП по ставке [01:19:32] 1007 (11) - суммы НСП [01:19:32] 1014 (1) - 1% - код ставки НСП [01:19:32] 1015 (2) - 36.74 - сумма НСП по ставке [01:19:32] 1007 (9) - суммы НСП [01:19:32] 1014 (1) - 2% - код ставки НСП [01:19:32] 1015 (0) - 0.00 - сумма НСП по ставке [01:19:32] 1007 (9) - суммы НСП [01:19:32] 1014 (1) - 3% - код ставки НСП [01:19:32] 1015 (0) - 0.00 - сумма НСП по ставке [01:19:32] 1007 (9) - суммы НСП [01:19:32] 1014 (1) - 5% - код ставки НСП [01:19:32] 1015 (0) - 0.00 - сумма НСП по ставке [01:19:32] 1007 (9) - суммы НСП [01:19:32] 1014 (1) - 0,50% - код ставки НСП [01:19:32] 1015 (0) - 0.00 - сумма НСП по ставке [01:19:32] 1007 (9) - суммы НСП [01:19:32] 1014 (1) - 1,50% - код ставки НСП [01:19:32] 1015 (0) - 0.00 - сумма НСП по ставке [01:19:32] 1130 (141) - счетчики операций «возврат прихода» [01:19:32] 1135 (4) - 0 - количество чеков по признаку расчетов [01:19:32] 1201 (0) - 0.00 - общая итоговая сумма в чеках [01:19:32] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [01:19:32] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [01:19:32] 1024 (117) - суммы налогов [01:19:32] 1006 (9) - суммы НДС [01:19:32] 1010 (1) - 0% - код ставки НДС [01:19:32] 1011 (0) - 0.00 - сумма НДС по ставке [01:19:32] 1006 (9) - суммы НДС [01:19:32] 1010 (1) - 12% - код ставки НДС [01:19:32] 1011 (0) - 0.00 - сумма НДС по ставке [01:19:32] 1007 (9) - суммы НСП [01:19:32] 1014 (1) - 0% - код ставки НСП [01:19:32] 1015 (0) - 0.00 - сумма НСП по ставке [01:19:32] 1007 (9) - суммы НСП [01:19:32] 1014 (1) - 1% - код ставки НСП [01:19:32] 1015 (0) - 0.00 - сумма НСП по ставке [01:19:32] 1007 (9) - суммы НСП [01:19:32] 1014 (1) - 2% - код ставки НСП [01:19:32] 1015 (0) - 0.00 - сумма НСП по ставке [01:19:32] 1007 (9) - суммы НСП [01:19:32] 1014 (1) - 3% - код ставки НСП [01:19:32] 1015 (0) - 0.00 - сумма НСП по ставке [01:19:32] 1007 (9) - суммы НСП [01:19:32] 1014 (1) - 5% - код ставки НСП [01:19:32] 1015 (0) - 0.00 - сумма НСП по ставке [01:19:32] 1007 (9) - суммы НСП [01:19:32] 1014 (1) - 0,50% - код ставки НСП [01:19:32] 1015 (0) - 0.00 - сумма НСП по ставке [01:19:32] 1007 (9) - суммы НСП [01:19:32] 1014 (1) - 1,50% - код ставки НСП [01:19:32] 1015 (0) - 0.00 - сумма НСП по ставке [01:19:32] 1131 (141) - счетчики операций «расход» [01:19:32] 1135 (4) - 0 - количество чеков по признаку расчетов [01:19:32] 1201 (0) - 0.00 - общая итоговая сумма в чеках [01:19:32] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [01:19:32] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [01:19:32] 1024 (117) - суммы налогов [01:19:32] 1006 (9) - суммы НДС [01:19:32] 1010 (1) - 0% - код ставки НДС [01:19:33] 1011 (0) - 0.00 - сумма НДС по ставке [01:19:33] 1006 (9) - суммы НДС [01:19:33] 1010 (1) - 12% - код ставки НДС [01:19:33] 1011 (0) - 0.00 - сумма НДС по ставке [01:19:33] 1007 (9) - суммы НСП [01:19:33] 1014 (1) - 0% - код ставки НСП [01:19:33] 1015 (0) - 0.00 - сумма НСП по ставке [01:19:33] 1007 (9) - суммы НСП [01:19:33] 1014 (1) - 1% - код ставки НСП [01:19:33] 1015 (0) - 0.00 - сумма НСП по ставке [01:19:33] 1007 (9) - суммы НСП [01:19:33] 1014 (1) - 2% - код ставки НСП [01:19:33] 1015 (0) - 0.00 - сумма НСП по ставке [01:19:33] 1007 (9) - суммы НСП [01:19:33] 1014 (1) - 3% - код ставки НСП [01:19:33] 1015 (0) - 0.00 - сумма НСП по ставке [01:19:33] 1007 (9) - суммы НСП [01:19:33] 1014 (1) - 5% - код ставки НСП [01:19:33] 1015 (0) - 0.00 - сумма НСП по ставке [01:19:33] 1007 (9) - суммы НСП [01:19:33] 1014 (1) - 0,50% - код ставки НСП [01:19:33] 1015 (0) - 0.00 - сумма НСП по ставке [01:19:33] 1007 (9) - суммы НСП [01:19:33] 1014 (1) - 1,50% - код ставки НСП [01:19:33] 1015 (0) - 0.00 - сумма НСП по ставке [01:19:33] 1132 (141) - счетчики операций «возврат расхода» [01:19:33] 1135 (4) - 0 - количество чеков по признаку расчетов [01:19:33] 1201 (0) - 0.00 - общая итоговая сумма в чеках [01:19:33] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [01:19:33] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [01:19:33] 1024 (117) - суммы налогов [01:19:33] 1006 (9) - суммы НДС [01:19:33] 1010 (1) - 0% - код ставки НДС [01:19:33] 1011 (0) - 0.00 - сумма НДС по ставке [01:19:33] 1006 (9) - суммы НДС [01:19:33] 1010 (1) - 12% - код ставки НДС [01:19:33] 1011 (0) - 0.00 - сумма НДС по ставке [01:19:33] 1007 (9) - суммы НСП [01:19:33] 1014 (1) - 0% - код ставки НСП [01:19:33] 1015 (0) - 0.00 - сумма НСП по ставке [01:19:33] 1007 (9) - суммы НСП [01:19:33] 1014 (1) - 1% - код ставки НСП [01:19:33] 1015 (0) - 0.00 - сумма НСП по ставке [01:19:33] 1007 (9) - суммы НСП [01:19:33] 1014 (1) - 2% - код ставки НСП [01:19:33] 1015 (0) - 0.00 - сумма НСП по ставке [01:19:33] 1007 (9) - суммы НСП [01:19:33] 1014 (1) - 3% - код ставки НСП [01:19:33] 1015 (0) - 0.00 - сумма НСП по ставке [01:19:33] 1007 (9) - суммы НСП [01:19:33] 1014 (1) - 5% - код ставки НСП [01:19:33] 1015 (0) - 0.00 - сумма НСП по ставке [01:19:33] 1007 (9) - суммы НСП [01:19:33] 1014 (1) - 0,50% - код ставки НСП [01:19:33] 1015 (0) - 0.00 - сумма НСП по ставке [01:19:33] 1007 (9) - суммы НСП [01:19:33] 1014 (1) - 1,50% - код ставки НСП [01:19:33] 1015 (0) - 0.00 - сумма НСП по ставке [01:19:33] 1133 (588) - - счетчики коррекции - не используются [01:19:33]SetTLVBufToDocument [01:19:33]Processing tag 1194 (04AA) [01:19:33]Load OK [01:19:33]SetTLVBufToDocument [01:19:33]Processing tag 1134 (046E) [01:19:33]Malloc new data [01:19:33]Processing tag 1129 (0469) [01:19:33]Load OK [01:19:33]SetTLVBufToDocument [01:19:33]Processing tag 1135 (046F) [01:19:33]Malloc new data [01:19:33]Processing tag 1201 (04B1) [01:19:33]Malloc new data [01:19:33]Processing tag 1136 (0470) [01:19:33]Malloc new data [01:19:33]Processing tag 1138 (0472) [01:19:33]Malloc new data [01:19:33]Processing tag 1024 (0400) [01:19:33]Load OK [01:19:33]SetTLVBufToDocument [01:19:33]Processing tag 1006 (03EE) [01:19:33]Load OK [01:19:33]SetTLVBufToDocument [01:19:33]Processing tag 1010 (03F2) [01:19:33]Malloc new data [01:19:33]Processing tag 1011 (03F3) [01:19:33]Malloc new data [01:19:33]SetTLVBufToDocument err=0 [01:19:33]Processing tag 1006 (03EE) [01:19:33]Load OK [01:19:33]SetTLVBufToDocument [01:19:33]Processing tag 1010 (03F2) [01:19:33]Malloc new data [01:19:33]Processing tag 1011 (03F3) [01:19:33]Malloc new data [01:19:33]SetTLVBufToDocument err=0 [01:19:33]Processing tag 1007 (03EF) [01:19:33]Load OK [01:19:33]SetTLVBufToDocument [01:19:33]Processing tag 1014 (03F6) [01:19:33]Malloc new data [01:19:33]Processing tag 1015 (03F7) [01:19:33]Malloc new data [01:19:33]SetTLVBufToDocument err=0 [01:19:33]Processing tag 1007 (03EF) [01:19:33]Load OK [01:19:33]SetTLVBufToDocument [01:19:33]Processing tag 1014 (03F6) [01:19:33]Malloc new data [01:19:33]Processing tag 1015 (03F7) [01:19:33]Malloc new data [01:19:33]SetTLVBufToDocument err=0 [01:19:33]Processing tag 1007 (03EF) [01:19:33]Load OK [01:19:33]SetTLVBufToDocument [01:19:33]Processing tag 1014 (03F6) [01:19:33]Malloc new data [01:19:33]Processing tag 1015 (03F7) [01:19:33]Malloc new data [01:19:33]SetTLVBufToDocument err=0 [01:19:33]Processing tag 1007 (03EF) [01:19:33]Load OK [01:19:33]SetTLVBufToDocument [01:19:33]Processing tag 1014 (03F6) [01:19:33]Malloc new data [01:19:33]Processing tag 1015 (03F7) [01:19:33]Malloc new data [01:19:33]SetTLVBufToDocument err=0 [01:19:33]Processing tag 1007 (03EF) [01:19:33]Load OK [01:19:33]SetTLVBufToDocument [01:19:33]Processing tag 1014 (03F6) [01:19:33]Malloc new data [01:19:33]Processing tag 1015 (03F7) [01:19:33]Malloc new data [01:19:33]SetTLVBufToDocument err=0 [01:19:33]Processing tag 1007 (03EF) [01:19:33]Load OK [01:19:33]SetTLVBufToDocument [01:19:33]Processing tag 1014 (03F6) [01:19:33]Malloc new data [01:19:33]Processing tag 1015 (03F7) [01:19:33]Malloc new data [01:19:33]SetTLVBufToDocument err=0 [01:19:33]Processing tag 1007 (03EF) [01:19:33]Load OK [01:19:33]SetTLVBufToDocument [01:19:33]Processing tag 1014 (03F6) [01:19:33]Malloc new data [01:19:33]Processing tag 1015 (03F7) [01:19:33]Malloc new data [01:19:33]SetTLVBufToDocument err=0 [01:19:33]SetTLVBufToDocument err=0 [01:19:33]SetTLVBufToDocument err=0 [01:19:33]Processing tag 1130 (046A) [01:19:33]Load OK [01:19:33]SetTLVBufToDocument [01:19:33]Processing tag 1135 (046F) [01:19:33]Malloc new data [01:19:33]Processing tag 1201 (04B1) [01:19:33]Malloc new data [01:19:33]Processing tag 1136 (0470) [01:19:33]Malloc new data [01:19:33]Processing tag 1138 (0472) [01:19:33]Malloc new data [01:19:33]Processing tag 1024 (0400) [01:19:33]Load OK [01:19:33]SetTLVBufToDocument [01:19:33]Processing tag 1006 (03EE) [01:19:33]Load OK [01:19:33]SetTLVBufToDocument [01:19:33]Processing tag 1010 (03F2) [01:19:33]Malloc new data [01:19:33]Processing tag 1011 (03F3) [01:19:33]Malloc new data [01:19:33]SetTLVBufToDocument err=0 [01:19:33]Processing tag 1006 (03EE) [01:19:33]Load OK [01:19:33]SetTLVBufToDocument [01:19:33]Processing tag 1010 (03F2) [01:19:33]Malloc new data [01:19:33]Processing tag 1011 (03F3) [01:19:33]Malloc new data [01:19:33]SetTLVBufToDocument err=0 [01:19:33]Processing tag 1007 (03EF) [01:19:33]Load OK [01:19:33]SetTLVBufToDocument [01:19:33]Processing tag 1014 (03F6) [01:19:33]Malloc new data [01:19:33]Processing tag 1015 (03F7) [01:19:33]Malloc new data [01:19:33]SetTLVBufToDocument err=0 [01:19:33]Processing tag 1007 (03EF) [01:19:33]Load OK [01:19:33]SetTLVBufToDocument [01:19:33]Processing tag 1014 (03F6) [01:19:33]Malloc new data [01:19:33]Processing tag 1015 (03F7) [01:19:33]Malloc new data [01:19:33]SetTLVBufToDocument err=0 [01:19:33]Processing tag 1007 (03EF) [01:19:33]Load OK [01:19:33]SetTLVBufToDocument [01:19:33]Processing tag 1014 (03F6) [01:19:33]Malloc new data [01:19:33]Processing tag 1015 (03F7) [01:19:33]Malloc new data [01:19:33]SetTLVBufToDocument err=0 [01:19:33]Processing tag 1007 (03EF) [01:19:33]Load OK [01:19:33]SetTLVBufToDocument [01:19:33]Processing tag 1014 (03F6) [01:19:33]Malloc new data [01:19:33]Processing tag 1015 (03F7) [01:19:33]Malloc new data [01:19:33]SetTLVBufToDocument err=0 [01:19:33]Processing tag 1007 (03EF) [01:19:33]Load OK [01:19:33]SetTLVBufToDocument [01:19:33]Processing tag 1014 (03F6) [01:19:33]Malloc new data [01:19:33]Processing tag 1015 (03F7) [01:19:33]Malloc new data [01:19:33]SetTLVBufToDocument err=0 [01:19:33]Processing tag 1007 (03EF) [01:19:33]Load OK [01:19:33]SetTLVBufToDocument [01:19:33]Processing tag 1014 (03F6) [01:19:33]Malloc new data [01:19:33]Processing tag 1015 (03F7) [01:19:33]Malloc new data [01:19:33]SetTLVBufToDocument err=0 [01:19:33]Processing tag 1007 (03EF) [01:19:33]Load OK [01:19:33]SetTLVBufToDocument [01:19:33]Processing tag 1014 (03F6) [01:19:33]Malloc new data [01:19:33]Processing tag 1015 (03F7) [01:19:33]Malloc new data [01:19:33]SetTLVBufToDocument err=0 [01:19:33]SetTLVBufToDocument err=0 [01:19:33]SetTLVBufToDocument err=0 [01:19:33]Processing tag 1131 (046B) [01:19:33]Load OK [01:19:33]SetTLVBufToDocument [01:19:33]Processing tag 1135 (046F) [01:19:33]Malloc new data [01:19:33]Processing tag 1201 (04B1) [01:19:33]Malloc new data [01:19:33]Processing tag 1136 (0470) [01:19:33]Malloc new data [01:19:33]Processing tag 1138 (0472) [01:19:33]Malloc new data [01:19:33]Processing tag 1024 (0400) [01:19:33]Load OK [01:19:33]SetTLVBufToDocument [01:19:33]Processing tag 1006 (03EE) [01:19:33]Load OK [01:19:33]SetTLVBufToDocument [01:19:33]Processing tag 1010 (03F2) [01:19:33]Malloc new data [01:19:33]Processing tag 1011 (03F3) [01:19:33]Malloc new data [01:19:33]SetTLVBufToDocument err=0 [01:19:33]Processing tag 1006 (03EE) [01:19:33]Load OK [01:19:33]SetTLVBufToDocument [01:19:33]Processing tag 1010 (03F2) [01:19:33]Malloc new data [01:19:33]Processing tag 1011 (03F3) [01:19:33]Malloc new data [01:19:33]SetTLVBufToDocument err=0 [01:19:33]Processing tag 1007 (03EF) [01:19:33]Load OK [01:19:33]SetTLVBufToDocument [01:19:33]Processing tag 1014 (03F6) [01:19:33]Malloc new data [01:19:33]Processing tag 1015 (03F7) [01:19:33]Malloc new data [01:19:33]SetTLVBufToDocument err=0 [01:19:33]Processing tag 1007 (03EF) [01:19:33]Load OK [01:19:33]SetTLVBufToDocument [01:19:33]Processing tag 1014 (03F6) [01:19:33]Malloc new data [01:19:33]Processing tag 1015 (03F7) [01:19:33]Malloc new data [01:19:33]SetTLVBufToDocument err=0 [01:19:33]Processing tag 1007 (03EF) [01:19:33]Load OK [01:19:33]SetTLVBufToDocument [01:19:33]Processing tag 1014 (03F6) [01:19:33]Malloc new data [01:19:33]Processing tag 1015 (03F7) [01:19:33]Malloc new data [01:19:33]SetTLVBufToDocument err=0 [01:19:33]Processing tag 1007 (03EF) [01:19:33]Load OK [01:19:33]SetTLVBufToDocument [01:19:33]Processing tag 1014 (03F6) [01:19:33]Malloc new data [01:19:33]Processing tag 1015 (03F7) [01:19:33]Malloc new data [01:19:33]SetTLVBufToDocument err=0 [01:19:33]Processing tag 1007 (03EF) [01:19:33]Load OK [01:19:33]SetTLVBufToDocument [01:19:33]Processing tag 1014 (03F6) [01:19:33]Malloc new data [01:19:33]Processing tag 1015 (03F7) [01:19:33]Malloc new data [01:19:33]SetTLVBufToDocument err=0 [01:19:33]Processing tag 1007 (03EF) [01:19:33]Load OK [01:19:33]SetTLVBufToDocument [01:19:33]Processing tag 1014 (03F6) [01:19:33]Malloc new data [01:19:33]Processing tag 1015 (03F7) [01:19:33]Malloc new data [01:19:33]SetTLVBufToDocument err=0 [01:19:33]Processing tag 1007 (03EF) [01:19:33]Load OK [01:19:33]SetTLVBufToDocument [01:19:33]Processing tag 1014 (03F6) [01:19:33]Malloc new data [01:19:33]Processing tag 1015 (03F7) [01:19:33]Malloc new data [01:19:33]SetTLVBufToDocument err=0 [01:19:33]SetTLVBufToDocument err=0 [01:19:33]SetTLVBufToDocument err=0 [01:19:33]Processing tag 1132 (046C) [01:19:33]Load OK [01:19:33]SetTLVBufToDocument [01:19:33]Processing tag 1135 (046F) [01:19:33]Malloc new data [01:19:33]Processing tag 1201 (04B1) [01:19:33]Malloc new data [01:19:33]Processing tag 1136 (0470) [01:19:33]Malloc new data [01:19:33]Processing tag 1138 (0472) [01:19:33]Malloc new data [01:19:33]Processing tag 1024 (0400) [01:19:33]Load OK [01:19:33]SetTLVBufToDocument [01:19:33]Processing tag 1006 (03EE) [01:19:33]Load OK [01:19:33]SetTLVBufToDocument [01:19:33]Processing tag 1010 (03F2) [01:19:33]Malloc new data [01:19:33]Processing tag 1011 (03F3) [01:19:33]Malloc new data [01:19:33]SetTLVBufToDocument err=0 [01:19:33]Processing tag 1006 (03EE) [01:19:33]Load OK [01:19:33]SetTLVBufToDocument [01:19:33]Processing tag 1010 (03F2) [01:19:33]Malloc new data [01:19:33]Processing tag 1011 (03F3) [01:19:33]Malloc new data [01:19:33]SetTLVBufToDocument err=0 [01:19:33]Processing tag 1007 (03EF) [01:19:33]Load OK [01:19:33]SetTLVBufToDocument [01:19:33]Processing tag 1014 (03F6) [01:19:34]Malloc new data [01:19:34]Processing tag 1015 (03F7) [01:19:34]Malloc new data [01:19:34]SetTLVBufToDocument err=0 [01:19:34]Processing tag 1007 (03EF) [01:19:34]Load OK [01:19:34]SetTLVBufToDocument [01:19:34]Processing tag 1014 (03F6) [01:19:34]Malloc new data [01:19:34]Processing tag 1015 (03F7) [01:19:34]Malloc new data [01:19:34]SetTLVBufToDocument err=0 [01:19:34]Processing tag 1007 (03EF) [01:19:34]Load OK [01:19:34]SetTLVBufToDocument [01:19:34]Processing tag 1014 (03F6) [01:19:34]Malloc new data [01:19:34]Processing tag 1015 (03F7) [01:19:34]Malloc new data [01:19:34]SetTLVBufToDocument err=0 [01:19:34]Processing tag 1007 (03EF) [01:19:34]Load OK [01:19:34]SetTLVBufToDocument [01:19:34]Processing tag 1014 (03F6) [01:19:34]Malloc new data [01:19:34]Processing tag 1015 (03F7) [01:19:34]Malloc new data [01:19:34]SetTLVBufToDocument err=0 [01:19:34]Processing tag 1007 (03EF) [01:19:34]Load OK [01:19:34]SetTLVBufToDocument [01:19:34]Processing tag 1014 (03F6) [01:19:34]Malloc new data [01:19:34]Processing tag 1015 (03F7) [01:19:34]Malloc new data [01:19:34]SetTLVBufToDocument err=0 [01:19:34]Processing tag 1007 (03EF) [01:19:34]Load OK [01:19:34]SetTLVBufToDocument [01:19:34]Processing tag 1014 (03F6) [01:19:34]Malloc new data [01:19:34]Processing tag 1015 (03F7) [01:19:34]Malloc new data [01:19:34]SetTLVBufToDocument err=0 [01:19:34]Processing tag 1007 (03EF) [01:19:34]Load OK [01:19:34]SetTLVBufToDocument [01:19:34]Processing tag 1014 (03F6) [01:19:34]Malloc new data [01:19:34]Processing tag 1015 (03F7) [01:19:34]Malloc new data [01:19:34]SetTLVBufToDocument err=0 [01:19:34]SetTLVBufToDocument err=0 [01:19:34]SetTLVBufToDocument err=0 [01:19:34]Processing tag 1133 (046D) [01:19:34]Malloc new data [01:19:34]SetTLVBufToDocument err=0 [01:19:34]SetTLVBufToDocument err=0 [01:19:34]Malloc new data [01:19:34]SAM_PROTO_GetFMData [01:19:34]wFMCommunicate request_size=4 [01:19:34]MH_SAM_APDU [01:19:34]CAPDU: 80 13 03 00 [01:19:34]Write to MH i2c: E2 08 00 31 1A 80 13 03 00 00 00 00 00 CA [01:19:34]Write i2c OK [01:19:34]MH_I2C_Read... [01:19:34]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [01:19:34]Read from MH i2c: E2 [01:19:34]MH_I2C_Read... [01:19:34]Read from MH i2c: E2 FD 00 [01:19:34]MH_I2C_Read... [01:19:34]Read from MH i2c: E2 FD 00 31 1A 00 C5 04 85 04 C1 04 6E 04 04 00 16 08 01 00 69 04 A3 00 6F 04 04 00 0B 03 01 00 B1 04 05 00 B2 2C 52 38 01 70 04 05 00 44 9F F6 0B 01 72 04 04 00 6E 8D 5B 2C 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 C0 4F 2D 21 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 62 AD C3 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 9C 00 6F 04 04 00 0B 05 00 00 B1 04 04 00 F0 67 BC 0E 70 04 04 00 F0 67 BC 0E 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 3E AA 90 01 EF 03 09 90 00 E8 [01:19:34]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 16 08 01 00 69 04 A3 00 6F 04 04 00 0B 03 01 00 B1 04 05 00 B2 2C 52 38 01 70 04 05 00 44 9F F6 0B 01 72 04 04 00 6E 8D 5B 2C 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 C0 4F 2D 21 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 62 AD C3 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 9C 00 6F 04 04 00 0B 05 00 00 B1 04 04 00 F0 67 BC 0E 70 04 04 00 F0 67 BC 0E 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 3E AA 90 01 EF 03 09 90 00 [01:19:34]wFMCommunicate OK [01:19:34]wFMCommunicate request_size=4 [01:19:34]MH_SAM_APDU [01:19:34]CAPDU: 80 17 00 00 [01:19:34]Write to MH i2c: E2 08 00 32 1A 80 17 00 00 00 00 00 00 CC [01:19:34]Write i2c OK [01:19:34]MH_I2C_Read... [01:19:35]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [01:19:35]Read from MH i2c: E2 [01:19:35]MH_I2C_Read... [01:19:35]Read from MH i2c: E2 FD 00 [01:19:35]MH_I2C_Read... [01:19:35]Read from MH i2c: E2 FD 00 32 1A 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 12 63 21 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 18 [01:19:35]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 12 63 21 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 OFD Sender: No OFD packet to send [01:19:35]03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [01:19:35]wFMCommunicate OK [01:19:35]wFMCommunicate request_size=4 [01:19:35]MH_SAM_APDU [01:19:35]CAPDU: 80 17 00 00 [01:19:35]Write to MH i2c: E2 08 00 33 1A 80 17 00 00 00 00 00 00 CD [01:19:35]Write i2c OK [01:19:35]MH_I2C_Read... [01:19:35]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [01:19:35]Read from MH i2c: E2 [01:19:35]MH_I2C_Read... [01:19:35]Read from MH i2c: E2 FD 00 [01:19:35]MH_I2C_Read... [01:19:35]Read from MH i2c: E2 FD 00 33 1A 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 DF [01:19:35]RAPDU: 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [01:19:35]wFMCommunicate OK [01:19:35]wFMCommunicate request_size=4 [01:19:35]MH_SAM_APDU [01:19:35]CAPDU: 80 17 00 00 [01:19:35]Write to MH i2c: E2 08 00 34 1A 80 17 00 00 00 00 00 00 CE [01:19:36]Write i2c OK [01:19:36]MH_I2C_Read... [01:19:36]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [01:19:36]Read from MH i2c: E2 [01:19:36]MH_I2C_Read... [01:19:36]Read from MH i2c: E2 FD 00 [01:19:36]MH_I2C_Read... [01:19:36]Read from MH i2c: E2 FD 00 34 1A 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 5A [01:19:36]RAPDU: 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [01:19:36]wFMCommunicate OK [01:19:36]wFMCommunicate request_size=4 [01:19:36]MH_SAM_APDU [01:19:36]CAPDU: 80 17 00 00 [01:19:36]Write to MH i2c: E2 08 00 35 1A 80 17 00 00 00 00 00 00 CF [01:19:36]Write i2c OK [01:19:36]MH_I2C_Read... [01:19:36]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [01:19:36]Read from MH i2c: E2 [01:19:36]MH_I2C_Read... [01:19:36]Read from MH i2c: E2 E2 00 [01:19:36]MH_I2C_Read... [01:19:36]Read from MH i2c: E2 E2 00 35 1A 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 AD [01:19:36]RAPDU: EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [01:19:37]wFMCommunicate OK [01:19:37]SAM_PROTO_GetFMData done [01:19:37]FM_GetFMData:85 04 C1 04 6E 04 04 00 16 08 01 00 69 04 A3 00 6F 04 04 00 0B 03 01 00 B1 04 05 00 B2 2C 52 38 01 70 04 05 00 44 9F F6 0B 01 72 04 04 00 6E 8D 5B 2C 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 C0 4F 2D 21 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 62 AD C3 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 9C 00 6F 04 04 00 0B 05 00 00 B1 04 04 00 F0 67 BC 0E 70 04 04 00 F0 67 BC 0E 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 3E AA 90 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 12 63 21 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [01:19:37]oper:6F 04 04 00 0B 03 01 00 B1 04 05 00 B2 2C 52 38 01 70 04 05 00 44 9F F6 0B 01 72 04 04 00 6E 8D 5B 2C 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 C0 4F 2D 21 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 62 AD C3 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 [01:19:37]total:B2 2C 52 38 01 [01:19:37]Malloc new data [01:19:37]oper:6F 04 04 00 0B 05 00 00 B1 04 04 00 F0 67 BC 0E 70 04 04 00 F0 67 BC 0E 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 3E AA 90 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 12 63 21 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [01:19:38]total:F0 67 BC 0E [01:19:38]Malloc new data [01:19:38]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 [01:19:38]total: [01:19:38]Malloc new data [01:19:38]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 [01:19:38]total: [01:19:38]Malloc new data [01:19:38]KKMPrepareXReportFMData err=0 [01:19:38]Х отчет ИНН: 02508201610067 Кассир: Балаев А. 03.06.2024 01:19 Смена: 266 РНМ: 0000000000098096 ЗНМ: 0300000181 СНО: Общий режим Всего чеков: 7 ИТОГИ ПРИХОД Чеков: 7 Общий итог: 4150.39 Итого наличными: 3750.00 Итого безнал.: 400.39 НДС 0% : 0.00 НДС 12% : 440.96 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 36.74 ИТОГИ ВОЗВРАТ ПРИХОДА Чеков: 0 Общий итог: 0.00 Итого наличными: 0.00 Итого безнал.: 0.00 НДС 0% : 0.00 НДС 12% : 0.00 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 0.00 ИТОГИ РАСХОД Чеков: 0 Общий итог: 0.00 Итого наличными: 0.00 Итого безнал.: 0.00 НДС 0% : 0.00 НДС 12% : 0.00 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 0.00 ИТОГИ ВОЗВРАТ РАСХОДА Чеков: 0 Общий итог: 0.00 Итого наличными: 0.00 Итого безнал.: 0.00 НДС 0% : 0.00 НДС 12% : 0.00 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 0.00 Сумма внесений: 0.00 Сумма выплат: 0.00 Нал. в кассе: 3750.00 НС Приход: 52398767.86 НС Возвр.Прихода: 2472284.00 НС Расход: 0.00 НС Возвр.Расхода: 0.00 ФМ: 0000000000965400 [01:19:38]StoreToDocumentArchive [01:19:38]MH_GetDate [01:19:38]Write to MH i2c: F0 00 00 36 1A 3F [01:19:38]Write i2c OK [01:19:38]MH_I2C_Read... [01:19:38]Read from MH i2c: F0 [01:19:38]MH_I2C_Read... [01:19:38]Read from MH i2c: F0 09 00 [01:19:38]MH_I2C_Read... [01:19:38]Read from MH i2c: F0 09 00 36 1A 00 2C 1A 5D 66 B2 22 B0 64 39 [01:19:38]shift 266 fd 1717377580 [01:19:38]Create dir for shift 0266 [01:19:38]save to /storage/0266/doc_1717377580 [01:19:38]save last doc name /storage/0266/doc_1717377580 to /storage/kkm_last_doc_name [01:19:38]save OK [01:19:38]Clear old archive folders... [01:19:38]NVStorageSaveData kkm_last_timestamp [01:19:38]File name is /storage/kkm_last_timestamp [01:19:38]Write 4 bytes [01:19:38]NVStorageSaveData done [01:19:38]ExternCall_PrintAddStr [01:19:38]wPrintStart [01:19:38]Write to MH i2c: 01 00 00 37 1A 51 [01:19:38]Write i2c OK [01:19:38]MH_I2C_Read... [01:19:38]Read from MH i2c: 01 [01:19:38]MH_I2C_Read... [01:19:38]Read from MH i2c: 01 07 00 [01:19:38]MH_I2C_Read... [01:19:38]Read from MH i2c: 01 07 00 37 1A 00 00 00 00 00 FF 0F 66 [01:19:38]RasterBufferAndPrint [01:19:38]line Х отчет [01:19:38]line ИНН: 02508201610067 [01:19:38]line Кассир: Балаев А. [01:19:38]line 03.06.2024 01:19 [01:19:38]line Смена: 266 [01:19:38]line РНМ: 0000000000098096 [01:19:38]line ЗНМ: 0300000181 [01:19:38]line СНО: Общий режим [01:19:38]line Всего чеков: 7 [01:19:38]line ИТОГИ ПРИХОД [01:19:38]line Чеков: 7 [01:19:38]line Общий итог: 4150.39 [01:19:38]line Итого наличными: 3750.00 [01:19:38]line Итого безнал.: 400.39 [01:19:38]line НДС 0% : 0.00 [01:19:38]line НДС 12% : 440.96 [01:19:38]line НСП 0% : 0.00 [01:19:38]line НСП 1,50% : 0.00 [01:19:38]line НСП 0,50% : 0.00 [01:19:38]line НСП 5% : 0.00 [01:19:38]line НСП 3% : 0.00 [01:19:38]line НСП 2% : 0.00 [01:19:38]line НСП 1% : 36.74 [01:19:38]line ИТОГИ ВОЗВРАТ ПРИХОДА [01:19:38]line Чеков: 0 [01:19:38]line Общий итог: 0.00 [01:19:38]line Итого наличными: 0.00 [01:19:38]line Итого безнал.: 0.00 [01:19:38]line НДС 0% : 0.00 [01:19:38]line НДС 12% : 0.00 [01:19:38]line НСП 0% : 0.00 [01:19:38]line НСП 1,50% : 0.00 [01:19:38]line НСП 0,50% : 0.00 [01:19:38]line НСП 5% : 0.00 [01:19:38]line НСП 3% : 0.00 [01:19:38]line НСП 2% : 0.00 [01:19:38]line НСП 1% : 0.00 [01:19:38]line ИТОГИ РАСХОД [01:19:38]line Чеков: 0 [01:19:38]line Общий итог: 0.00 [01:19:38]line Итого наличными: 0.00 [01:19:38]line Итого безнал.: 0.00 [01:19:38]line НДС 0% : 0.00 [01:19:38]line НДС 12% : 0.00 [01:19:38]line НСП 0% : 0.00 [01:19:38]line НСП 1,50% : 0.00 [01:19:38]line НСП 0,50% : 0.00 [01:19:38]line НСП 5% : 0.00 [01:19:38]line НСП 3% : 0.00 [01:19:38]line НСП 2% : 0.00 [01:19:38]line НСП 1% : 0.00 [01:19:38]line ИТОГИ ВОЗВРАТ РАСХОДА [01:19:38]line Чеков: 0 [01:19:38]line Общий итог: 0.00 [01:19:38]line Итого наличными: 0.00 [01:19:38]line Итого безнал.: 0.00 [01:19:38]line НДС 0% : 0.00 [01:19:38]line НДС 12% : 0.00 [01:19:38]line НСП 0% : 0.00 [01:19:38]line НСП 1,50% : 0.00 [01:19:38]line НСП 0,50% : 0.00 [01:19:38]line НСП 5% : 0.00 [01:19:38]line НСП 3% : 0.00 [01:19:38]line НСП 2% : 0.00 [01:19:38]line НСП 1% : 0.00 [01:19:38]line Сумма внесений: 0.00 [01:19:38]line Сумма выплат: 0.00 [01:19:38]line Нал. в кассе: 3750.00 [01:19:38]line НС Приход: 52398767.86 [01:19:38]line НС Возвр.Прихода: 2472284.00 [01:19:38]line НС Расход: 0.00 [01:19:38]line НС Возвр.Расхода: 0.00 [01:19:38]line ФМ: 0000000000965400 [01:19:38]written 0, free lines is 4095 [01:19:39]Write to MH i2c: 01 00 00 82 1A 9C [01:19:39]Write i2c OK [01:19:39]MH_I2C_Read... [01:19:39]Read from MH i2c: 01 [01:19:39]MH_I2C_Read... [01:19:39]Read from MH i2c: 01 07 00 [01:19:39]MH_I2C_Read... [01:19:39]Read from MH i2c: 01 07 00 82 1A 00 00 00 00 00 AC 0A 59 [01:19:39]RasterBufferAndPrint [01:19:39]line [01:19:39]line [01:19:39]line [01:19:39]line [01:19:39]line [01:19:39]written 0, free lines is 2766 [01:19:39]MH_Cut [01:19:39]Write to MH i2c: D1 01 00 89 1A 01 75 [01:19:39]Write i2c OK [01:19:39]MH_I2C_Read... [01:19:39]Read from MH i2c: D1 [01:19:39]MH_I2C_Read... [01:19:39]Read from MH i2c: D1 01 00 [01:19:39]MH_I2C_Read... [01:19:39]Read from MH i2c: D1 01 00 89 1A 00 74 [01:19:39]Write to MH i2c: 01 00 00 8A 1A A4 [01:19:39]Write i2c OK [01:19:39]MH_I2C_Read... [01:19:40]*** Cut start [01:19:40]*** Partial cut [01:19:40]*** CUTSNS_PIN = 1 [01:19:40]*** CUTSNS_PIN = 0 [01:19:40]OFD Sender: No OFD packet to send [01:19:40]*** Brake cut motor [01:19:40]Read from MH i2c: 01 [01:19:40]MH_I2C_Read... [01:19:40]*** Stop cut motor [01:19:40]*** Cut end [01:19:40]Read from MH i2c: 01 07 00 [01:19:40]MH_I2C_Read... [01:19:40]Read from MH i2c: 01 07 00 8A 1A 00 00 00 00 00 FF 0F B9 [01:19:40]process_action x_report done [01:19:40]requested_data is exist [01:19:40]produce_requested_data [01:19:40]requested_item fd.num is exist - process it [01:19:40]SAM_PROTO_GetFieldsCounters [01:19:40]wFMCommunicate request_size=4 [01:19:40]MH_SAM_APDU [01:19:40]CAPDU: 80 13 00 00 [01:19:40]Write to MH i2c: E2 08 00 8B 1A 80 13 00 00 00 00 00 00 21 [01:19:40]Write i2c OK [01:19:40]MH_I2C_Read... [01:19:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:19:40]Read from MH i2c: E2 [01:19:40]MH_I2C_Read... [01:19:40]Read from MH i2c: E2 62 00 [01:19:40]MH_I2C_Read... [01:19:40]Read from MH i2c: E2 62 00 8B 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 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 9C 0A 01 00 0E 04 04 00 43 01 00 00 12 04 04 00 07 00 00 00 5E 04 04 00 07 00 00 00 57 04 04 00 08 00 00 00 19 04 04 00 00 00 00 00 90 00 41 [01:19: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 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 9C 0A 01 00 0E 04 04 00 43 01 00 00 12 04 04 00 07 00 00 00 5E 04 04 00 07 00 00 00 57 04 04 00 08 00 00 00 19 04 04 00 00 00 00 00 90 00 [01:19:41]wFMCommunicate OK [01:19:41]SAM_PROTO_GetFieldsCounters done [01:19:41]requested_item shift.num is exist - process it [01:19:41]requested_item shift.opened is exist - process it [01:19:41]req_shift_opened [01:19:41]FM_GetShiftState [01:19:41]SAM_PROTO_GetShiftState [01:19:41]wFMCommunicate request_size=4 [01:19:41]MH_SAM_APDU [01:19:41]CAPDU: 80 13 01 00 [01:19:41]Write to MH i2c: E2 08 00 8C 1A 80 13 01 00 00 00 00 00 23 [01:19:41]Write i2c OK [01:19:41]MH_I2C_Read... [01:19:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:19:41]Read from MH i2c: E2 [01:19:41]MH_I2C_Read... [01:19:41]Read from MH i2c: E2 0E 00 [01:19:41]MH_I2C_Read... [01:19:41]Read from MH i2c: E2 0E 00 8C 1A 00 09 00 01 AA 0D 5D 66 00 00 00 00 90 00 A9 [01:19:41]RAPDU: 09 00 01 AA 0D 5D 66 00 00 00 00 90 00 [01:19:41]wFMCommunicate OK [01:19:41]SAM_PROTO_GetShiftState done [01:19:41]FM_GetShiftState done [01:19:41]req_shift_opened done [01:19:41]requested_item shift.open_date is exist - process it [01:19:41]req_shift_open_date [01:19:41]req_shift_open_date done [01:19:41]produce_requested_data done [01:19:41]produce_requested_data return {"fd.num":68252,"shift.num":323,"shift.opened":1,"shift.open_date":1717374378} [01:19:41]process_action_free x_report [01:19:41]json_value_free [01:19:41]json_value_free done [01:19:41]process_json_proto returns [01:19:41]Send response to host [01:19:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":68252,"shift.num":323,"shift.opened":1,"shift.open_date":1717374378}}} [01:19:41]free response buf [01:19:41]execute_script done [01:19:41]execute_script returns [01:19:41]free content buf [01:19:41]Sock 9.Close socket [01:19:41]Sock 9.Thread stoped [01:19:45]OFD Sender: No OFD packet to send [01:19:50]OFD Sender: No OFD packet to send [01:19:55]OFD Sender: No OFD packet to send [01:19:58]int [01:19:58]Write to MH i2c: 01 00 00 8D 1A A7 [01:19:58]*** FLAG_PRN_KEY set [01:19:58]Write i2c OK [01:19:58]MH_I2C_Read... [01:19:58]Read from MH i2c: 01 [01:19:58]MH_I2C_Read... [01:19:58]Read from MH i2c: 01 07 00 [01:19:58]MH_I2C_Read... [01:19:58]Read from MH i2c: 01 07 00 8D 1A 00 08 00 00 00 FF 0F C4 [01:19:58]state=0 [01:19:58]Key pressed [01:19:58]Feed [01:19:58]Write to MH i2c: D8 00 00 8E 1A 7F [01:19:58]Write i2c OK [01:19:58]MH_I2C_Read... [01:19:58]Read from MH i2c: D8 [01:19:58]MH_I2C_Read... [01:19:58]Read from MH i2c: D8 01 00 [01:19:58]MH_I2C_Read... [01:19:58]Read from MH i2c: D8 01 00 8E 1A 00 80 [01:19:58]int [01:19:58]Write to MH i2c: 01 00 00 8F 1A A9 [01:19:58]Write i2c OK [01:19:58]MH_I2C_Read... [01:19:58]Read from MH i2c: 01 [01:19:58]MH_I2C_Read... [01:19:58]Read from MH i2c: 01 07 00 [01:19:58]MH_I2C_Read... [01:19:58]Read from MH i2c: 01 07 00 8F 1A 00 48 00 00 00 3C 00 34 [01:19:58]state=2 [01:19:58]Key pressed [01:19:59]int [01:19:59]Write to MH i2c: 01 00 00 90 1A AA [01:19:59]*** FLAG_PRN_KEY reset [01:19:59]Write i2c OK [01:19:59]MH_I2C_Read... [01:19:59]Read from MH i2c: 01 [01:19:59]MH_I2C_Read... [01:19:59]Read from MH i2c: 01 07 00 [01:19:59]MH_I2C_Read... [01:19:59]Read from MH i2c: 01 07 00 90 1A 00 00 00 00 00 FF 0F BF [01:19:59]state=2 [01:19:59]Stop feed [01:20:00]OFD Sender: No OFD packet to send [01:20:05]OFD Sender: No OFD packet to send [01:20:10]OFD Sender: No OFD packet to send [01:20:15]OFD Sender: No OFD packet to send [01:20:18]accept exits with 7 [01:20:18]New connection [01:20:18]New thread 3066543460 created [01:20:18]Thread 3066686820 joined [01:20:18]Waiting for new connection... [01:20:18] Sock 7.Parse request [01:20:18]Sock 7.Check first char [01:20:18]Sock 7.First char is OK [01:20:18]request: POST /json_proto HTTP/1.0 [01:20:18]Method: POST [01:20:18]URL: /json_proto [01:20:18]Method is POST - this is cgi request [01:20:18]url: /json_proto [01:20:18]query_string will be loaded in cgi processing [01:20:18]execute_cgi json_proto POST (null) [01:20:18]execute_cgi path=json_proto method=POST [01:20:18]POST find Content-Length [01:20:18]Host: 172.17.36.132:8080 [01:20:18]Content-Length: 215 [01:20:18]Content-Type: application/json [01:20:18] [01:20:18]POST finish read [01:20:18]Found Content-Length = 215 [01:20:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:20:18]execute_script... [01:20:18]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:20:18]POST & json_proto [01:20:18]process_json_proto [01:20:18]json parsed OK: [01:20:18]protocol is kg_v1.0 [01:20:18]action value=get_value [01:20:18]process_action get_value [01:20:18]cmd_get_value [01:20:18]process_action get_value done [01:20:18]requested_data is exist [01:20:18]produce_requested_data [01:20:18]requested_item kkm.sn is exist - process it [01:20:18]requested_item kkm.ver is exist - process it [01:20:18]requested_item fm.sn is exist - process it [01:20:18]wFMCommunicate request_size=4 [01:20:18]MH_SAM_APDU [01:20:18]CAPDU: 80 11 00 00 [01:20:18]Write to MH i2c: E2 08 00 91 1A 80 11 00 00 00 00 00 00 25 [01:20:18]Write i2c OK [01:20:18]MH_I2C_Read... [01:20:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:20:18]Read from MH i2c: E2 [01:20:18]MH_I2C_Read... [01:20:18]Read from MH i2c: E2 17 00 [01:20:18]MH_I2C_Read... [01:20:18]Read from MH i2c: E2 17 00 91 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 70 [01:20:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [01:20:18]wFMCommunicate OK [01:20:18]requested_item fd.num is exist - process it [01:20:18]SAM_PROTO_GetFieldsCounters [01:20:18]wFMCommunicate request_size=4 [01:20:18]MH_SAM_APDU [01:20:18]CAPDU: 80 13 00 00 [01:20:18]Write to MH i2c: E2 08 00 92 1A 80 13 00 00 00 00 00 00 28 [01:20:18]Write i2c OK [01:20:18]MH_I2C_Read... [01:20:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:20:18]Read from MH i2c: E2 [01:20:18]MH_I2C_Read... [01:20:18]Read from MH i2c: E2 62 00 [01:20:18]MH_I2C_Read... [01:20:18]Read from MH i2c: E2 62 00 92 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 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 9C 0A 01 00 0E 04 04 00 43 01 00 00 12 04 04 00 07 00 00 00 5E 04 04 00 07 00 00 00 57 04 04 00 08 00 00 00 19 04 04 00 00 00 00 00 90 00 48 [01:20: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 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 9C 0A 01 00 0E 04 04 00 43 01 00 00 12 04 04 00 07 00 00 00 5E 04 04 00 07 00 00 00 57 04 04 00 08 00 00 00 19 04 04 00 00 00 00 00 90 00 [01:20:18]wFMCommunicate OK [01:20:18]SAM_PROTO_GetFieldsCounters done [01:20:18]requested_item shift.num is exist - process it [01:20:18]requested_item shift.opened is exist - process it [01:20:18]req_shift_opened [01:20:18]FM_GetShiftState [01:20:18]SAM_PROTO_GetShiftState [01:20:18]wFMCommunicate request_size=4 [01:20:18]MH_SAM_APDU [01:20:18]CAPDU: 80 13 01 00 [01:20:18]Write to MH i2c: E2 08 00 93 1A 80 13 01 00 00 00 00 00 2A [01:20:18]Write i2c OK [01:20:18]MH_I2C_Read... [01:20:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:20:18]Read from MH i2c: E2 [01:20:18]MH_I2C_Read... [01:20:18]Read from MH i2c: E2 0E 00 [01:20:18]MH_I2C_Read... [01:20:18]Read from MH i2c: E2 0E 00 93 1A 00 09 00 01 AA 0D 5D 66 00 00 00 00 90 00 B0 [01:20:18]RAPDU: 09 00 01 AA 0D 5D 66 00 00 00 00 90 00 [01:20:18]wFMCommunicate OK [01:20:18]SAM_PROTO_GetShiftState done [01:20:18]FM_GetShiftState done [01:20:18]req_shift_opened done [01:20:18]requested_item shift.open_date is exist - process it [01:20:18]req_shift_open_date [01:20:18]req_shift_open_date done [01:20:18]produce_requested_data done [01:20:18]produce_requested_data return {"kkm.sn":"0300000181","kkm.ver":"001","fm.sn":"0000000000965400","fd.num":68252,"shift.num":323,"shift.opened":1,"shift.open_date":1717374378} [01:20:18]process_action_free get_value [01:20:18]json_value_free [01:20:18]json_value_free done [01:20:18]process_json_proto returns [01:20:18]Send response to host [01:20:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000181","kkm.ver":"001","fm.sn":"0000000000965400","fd.num":68252,"shift.num":323,"shift.opened":1,"shift.open_date":1717374378}}} [01:20:18]free response buf [01:20:18]execute_script done [01:20:18]execute_script returns [01:20:18]free content buf [01:20:18]Sock 7.Close socket [01:20:18]Sock 7.Thread stoped [01:20:18]accept exits with 9 [01:20:18]New connection [01:20:18]New thread 3066686820 created [01:20:18]Thread 3066543460 joined [01:20:18]Waiting for new connection... [01:20:18] Sock 9.Parse request [01:20:18]Sock 9.Check first char [01:20:18]Sock 9.First char is OK [01:20:18]request: POST /json_proto HTTP/1.0 [01:20:18]Method: POST [01:20:18]URL: /json_proto [01:20:18]Method is POST - this is cgi request [01:20:18]url: /json_proto [01:20:18]query_string will be loaded in cgi processing [01:20:18]execute_cgi json_proto POST (null) [01:20:18]execute_cgi path=json_proto method=POST [01:20:18]POST find Content-Length [01:20:18]Host: 172.17.36.132:8080 [01:20:18]Content-Length: 331 [01:20:18]Content-Type: application/json [01:20:18] [01:20:18]POST finish read [01:20:18]Found Content-Length = 331 [01:20: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" ] } } [01:20:18]execute_script... [01:20: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" ] } } [01:20:18]POST & json_proto [01:20:18]process_json_proto [01:20:18]json parsed OK: [01:20:18]protocol is kg_v1.0 [01:20:18]action value=get_value [01:20:19]process_action get_value [01:20:19]cmd_get_value [01:20:19]process_action get_value done [01:20:19]requested_data is exist [01:20:19]produce_requested_data [01:20:19]requested_item fm.sale.total is exist - process it [01:20:19]SAM_PROTO_GetFMData [01:20:19]wFMCommunicate request_size=4 [01:20:19]MH_SAM_APDU [01:20:19]CAPDU: 80 13 03 00 [01:20:19]Write to MH i2c: E2 08 00 94 1A 80 13 03 00 00 00 00 00 2D [01:20:19]Write i2c OK [01:20:19]MH_I2C_Read... [01:20:19]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [01:20:19]Read from MH i2c: E2 [01:20:19]MH_I2C_Read... [01:20:19]Read from MH i2c: E2 FD 00 [01:20:19]MH_I2C_Read... [01:20:19]Read from MH i2c: E2 FD 00 94 1A 00 C5 04 85 04 C1 04 6E 04 04 00 16 08 01 00 69 04 A3 00 6F 04 04 00 0B 03 01 00 B1 04 05 00 B2 2C 52 38 01 70 04 05 00 44 9F F6 0B 01 72 04 04 00 6E 8D 5B 2C 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 C0 4F 2D 21 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 62 AD C3 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 9C 00 6F 04 04 00 0B 05 00 00 B1 04 04 00 F0 67 BC 0E 70 04 04 00 F0 67 BC 0E 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 3E AA 90 01 EF 03 09 90 00 4B [01:20:19]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 16 08 01 00 69 04 A3 00 6F 04 04 00 0B 03 01 00 B1 04 05 00 B2 2C 52 38 01 70 04 05 00 44 9F F6 0B 01 72 04 04 00 6E 8D 5B 2C 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 C0 4F 2D 21 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 62 AD C3 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 9C 00 6F 04 04 00 0B 05 00 00 B1 04 04 00 F0 67 BC 0E 70 04 04 00 F0 67 BC 0E 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 3E AA 90 01 EF 03 09 90 00 [01:20:19]wFMCommunicate OK [01:20:19]wFMCommunicate request_size=4 [01:20:19]MH_SAM_APDU [01:20:19]CAPDU: 80 17 00 00 [01:20:19]Write to MH i2c: E2 08 00 95 1A 80 17 00 00 00 00 00 00 2F [01:20:19]Write i2c OK [01:20:19]MH_I2C_Read... [01:20:19]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [01:20:19]Read from MH i2c: E2 [01:20:19]MH_I2C_Read... [01:20:19]Read from MH i2c: E2 FD 00 [01:20:19]MH_I2C_Read... [01:20:19]Read from MH i2c: E2 FD 00 95 1A 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 12 63 21 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 7B [01:20:19]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 12 63 21 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 [01:20:19]wFMCommunicate OK [01:20:19]wFMCommunicate request_size=4 [01:20:19]MH_SAM_APDU [01:20:19]CAPDU: 80 17 00 00 [01:20:19]Write to MH i2c: E2 08 00 96 1A 80 17 00 00 00 00 00 00 30 [01:20:19]Write i2c OK [01:20:19]MH_I2C_Read... [01:20:20]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [01:20:20]Read from MH i2c: E2 [01:20:20]MH_I2C_Read... [01:20:20]Read from MH i2c: E2 FD 00 [01:20:20]MH_I2C_Read... [01:20:20]Read from MH i2c: E2 FD 00 96 1A 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 42 [01:20:20]RAPDU: 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [01:20:20]wFMCommunicate OK [01:20:20]wFMCommunicate request_size=4 [01:20:20]MH_SAM_APDU [01:20:20]CAPDU: 80 17 00 00 [01:20:20]Write to MH i2c: E2 08 00 97 1A 80 17 00 00 00 00 00 00 31 [01:20:20]Write i2c OK [01:20:20]MH_I2C_Read... [01:20:20]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [01:20:20]Read from MH i2c: E2 [01:20:20]MH_I2C_Read... [01:20:20]Read from MH i2c: E2 FD 00 [01:20:20]MH_I2C_Read... [01:20:20]Read from MH i2c: E2 FD 00 97 1A 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 BD [01:20:20]RAPDU: 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [01:20:20]wFMCommunicate OK [01:20:20]wFMCommunicate request_size=4 [01:20:20]MH_SAM_APDU [01:20:20]CAPDU: 80 17 00 00 [01:20:20]Write to MH i2c: E2 08 00 98 1A 80 17 00 00 00 00 00 00 32 [01:20:20]Write i2c OK [01:20:20]MH_I2C_Read... [01:20:20]OFD Sender: No OFD packet to send [01:20:20]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [01:20:20]Read from MH i2c: E2 [01:20:20]MH_I2C_Read... [01:20:20]Read from MH i2c: E2 E2 00 [01:20:20]MH_I2C_Read... [01:20:20]Read from MH i2c: E2 E2 00 98 1A 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 10 [01:20:20]RAPDU: EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [01:20:20]wFMCommunicate OK [01:20:20]SAM_PROTO_GetFMData done [01:20:20]requested_item fm.sale_refund.total is exist - process it [01:20:20]requested_item fm.buy.total is exist - process it [01:20:20]requested_item shift.sale.total is exist - process it [01:20:20]SAM_PROTO_GetShiftData [01:20:20]wFMCommunicate request_size=4 [01:20:20]MH_SAM_APDU [01:20:20]CAPDU: 80 13 02 00 [01:20:20]Write to MH i2c: E2 08 00 99 1A 80 13 02 00 00 00 00 00 31 [01:20:20]Write i2c OK [01:20:20]MH_I2C_Read... [01:20:21]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [01:20:21]Read from MH i2c: E2 [01:20:21]MH_I2C_Read... [01:20:21]Read from MH i2c: E2 FD 00 [01:20:21]MH_I2C_Read... [01:20:21]Read from MH i2c: E2 FD 00 99 1A 00 AC 04 AA 04 A8 04 6E 04 04 00 07 00 00 00 69 04 99 00 6F 04 04 00 07 00 00 00 B1 04 03 00 3F 55 06 70 04 03 00 D8 B8 05 72 04 02 00 67 9C 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 40 AC 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 5A 0E EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 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 90 00 7F [01:20:21]RAPDU: AC 04 AA 04 A8 04 6E 04 04 00 07 00 00 00 69 04 99 00 6F 04 04 00 07 00 00 00 B1 04 03 00 3F 55 06 70 04 03 00 D8 B8 05 72 04 02 00 67 9C 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 40 AC 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 5A 0E EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 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 90 00 [01:20:21]wFMCommunicate OK [01:20:21]wFMCommunicate request_size=4 [01:20:21]MH_SAM_APDU [01:20:21]CAPDU: 80 17 00 00 [01:20:21]Write to MH i2c: E2 08 00 9A 1A 80 17 00 00 00 00 00 00 34 [01:20:21]Write i2c OK [01:20:21]MH_I2C_Read... [01:20:21]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [01:20:21]Read from MH i2c: E2 [01:20:21]MH_I2C_Read... [01:20:21]Read from MH i2c: E2 FD 00 [01:20:21]MH_I2C_Read... [01:20:21]Read from MH i2c: E2 FD 00 9A 1A 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 49 [01:20:21]RAPDU: 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 [01:20:21]wFMCommunicate OK [01:20:21]wFMCommunicate request_size=4 [01:20:21]MH_SAM_APDU [01:20:21]CAPDU: 80 17 00 00 [01:20:21]Write to MH i2c: E2 08 00 9B 1A 80 17 00 00 00 00 00 00 35 [01:20:21]Write i2c OK [01:20:21]MH_I2C_Read... [01:20:21]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [01:20:21]Read from MH i2c: E2 [01:20:21]MH_I2C_Read... [01:20:21]Read from MH i2c: E2 FD 00 [01:20:21]MH_I2C_Read... [01:20:21]Read from MH i2c: E2 FD 00 9B 1A 00 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 90 00 F6 [01:20:21]RAPDU: 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [01:20:21]wFMCommunicate OK [01:20:21]wFMCommunicate request_size=4 [01:20:21]MH_SAM_APDU [01:20:21]CAPDU: 80 17 00 00 [01:20:21]Write to MH i2c: E2 08 00 9C 1A 80 17 00 00 00 00 00 00 36 [01:20:21]Write i2c OK [01:20:21]MH_I2C_Read... [01:20:22]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [01:20:22]Read from MH i2c: E2 [01:20:22]MH_I2C_Read... [01:20:22]Read from MH i2c: E2 FD 00 [01:20:22]MH_I2C_Read... [01:20:22]Read from MH i2c: E2 FD 00 9C 1A 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 90 00 AB [01:20:22]RAPDU: 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 90 00 [01:20:22]wFMCommunicate OK [01:20:22]wFMCommunicate request_size=4 [01:20:22]MH_SAM_APDU [01:20:22]CAPDU: 80 17 00 00 [01:20:22]Write to MH i2c: E2 08 00 9D 1A 80 17 00 00 00 00 00 00 37 [01:20:22]Write i2c OK [01:20:22]MH_I2C_Read... [01:20:22]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 198! [01:20:22]Read from MH i2c: E2 [01:20:22]MH_I2C_Read... [01:20:22]Read from MH i2c: E2 C9 00 [01:20:22]MH_I2C_Read... [01:20:22]Read from MH i2c: E2 C9 00 9D 1A 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 1B [01:20:22]RAPDU: 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [01:20:22]wFMCommunicate OK [01:20:22]SAM_PROTO_GetShiftData done [01:20:22]requested_item shift.sale.total_cash is exist - process it [01:20:22]requested_item shift.sale_refund.total is exist - process it [01:20:22]requested_item shift.sale_refund.total_cash is exist - process it [01:20:22]requested_item shift.buy.total is exist - process it [01:20:22]requested_item shift.buy.total_cash is exist - process it [01:20:22]produce_requested_data done [01:20:22]produce_requested_data return {"fm.sale.total":52398767.86,"fm.sale_refund.total":2472284.00,"fm.buy.total":0.00,"shift.sale.total":4150.39,"shift.sale.total_cash":3750.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [01:20:22]process_action_free get_value [01:20:22]json_value_free [01:20:22]json_value_free done [01:20:22]process_json_proto returns [01:20:22]Send response to host [01:20:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":52398767.86,"fm.sale_refund.total":2472284.00,"fm.buy.total":0.00,"shift.sale.total":4150.39,"shift.sale.total_cash":3750.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [01:20:22]free response buf [01:20:22]execute_script done [01:20:22]execute_script returns [01:20:22]free content buf [01:20:22]Sock 9.Close socket [01:20:22]Sock 9.Thread stoped [01:20:22]accept exits with 7 [01:20:22]New connection [01:20:22]New thread 3066543460 created [01:20:22]Thread 3066686820 joined [01:20:22]Waiting for new connection... [01:20:22] Sock 7.Parse request [01:20:22]Sock 7.Check first char [01:20:22]Sock 7.First char is OK [01:20:22]request: POST /json_proto HTTP/1.0 [01:20:22]Method: POST [01:20:22]URL: /json_proto [01:20:22]Method is POST - this is cgi request [01:20:22]url: /json_proto [01:20:22]query_string will be loaded in cgi processing [01:20:22]execute_cgi json_proto POST (null) [01:20:22]execute_cgi path=json_proto method=POST [01:20:22]POST find Content-Length [01:20:22]Host: 172.17.36.132:8080 [01:20:22]Content-Length: 331 [01:20:22]Content-Type: application/json [01:20:22] [01:20:22]POST finish read [01:20:22]Found Content-Length = 331 [01:20:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [01:20:22]execute_script... [01:20:22]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [01:20:22]POST & json_proto [01:20:22]process_json_proto [01:20:22]json parsed OK: [01:20:22]protocol is kg_v1.0 [01:20:22]action value=get_value [01:20:22]process_action get_value [01:20:22]cmd_get_value [01:20:22]process_action get_value done [01:20:22]requested_data is exist [01:20:22]produce_requested_data [01:20:22]requested_item fm.sale.total is exist - process it [01:20:22]SAM_PROTO_GetFMData [01:20:22]wFMCommunicate request_size=4 [01:20:22]MH_SAM_APDU [01:20:22]CAPDU: 80 13 03 00 [01:20:22]Write to MH i2c: E2 08 00 9E 1A 80 13 03 00 00 00 00 00 37 [01:20:22]Write i2c OK [01:20:22]MH_I2C_Read... [01:20:23]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [01:20:23]Read from MH i2c: E2 [01:20:23]MH_I2C_Read... [01:20:23]Read from MH i2c: E2 FD 00 [01:20:23]MH_I2C_Read... [01:20:23]Read from MH i2c: E2 FD 00 9E 1A 00 C5 04 85 04 C1 04 6E 04 04 00 16 08 01 00 69 04 A3 00 6F 04 04 00 0B 03 01 00 B1 04 05 00 B2 2C 52 38 01 70 04 05 00 44 9F F6 0B 01 72 04 04 00 6E 8D 5B 2C 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 C0 4F 2D 21 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 62 AD C3 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 9C 00 6F 04 04 00 0B 05 00 00 B1 04 04 00 F0 67 BC 0E 70 04 04 00 F0 67 BC 0E 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 3E AA 90 01 EF 03 09 90 00 55 [01:20:23]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 16 08 01 00 69 04 A3 00 6F 04 04 00 0B 03 01 00 B1 04 05 00 B2 2C 52 38 01 70 04 05 00 44 9F F6 0B 01 72 04 04 00 6E 8D 5B 2C 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 C0 4F 2D 21 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 62 AD C3 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 9C 00 6F 04 04 00 0B 05 00 00 B1 04 04 00 F0 67 BC 0E 70 04 04 00 F0 67 BC 0E 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 3E AA 90 01 EF 03 09 90 00 [01:20:23]wFMCommunicate OK [01:20:23]wFMCommunicate request_size=4 [01:20:23]MH_SAM_APDU [01:20:23]CAPDU: 80 17 00 00 [01:20:23]Write to MH i2c: E2 08 00 9F 1A 80 17 00 00 00 00 00 00 39 [01:20:23]Write i2c OK [01:20:23]MH_I2C_Read... [01:20:23]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [01:20:23]Read from MH i2c: E2 [01:20:23]MH_I2C_Read... [01:20:23]Read from MH i2c: E2 FD 00 [01:20:23]MH_I2C_Read... [01:20:23]Read from MH i2c: E2 FD 00 9F 1A 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 12 63 21 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 85 [01:20:23]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 12 63 21 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 [01:20:23]wFMCommunicate OK [01:20:23]wFMCommunicate request_size=4 [01:20:23]MH_SAM_APDU [01:20:23]CAPDU: 80 17 00 00 [01:20:23]Write to MH i2c: E2 08 00 A0 1A 80 17 00 00 00 00 00 00 3A [01:20:23]Write i2c OK [01:20:23]MH_I2C_Read... [01:20:23]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [01:20:23]Read from MH i2c: E2 [01:20:23]MH_I2C_Read... [01:20:23]Read from MH i2c: E2 FD 00 [01:20:23]MH_I2C_Read... [01:20:23]Read from MH i2c: E2 FD 00 A0 1A 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 4C [01:20:23]RAPDU: 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [01:20:24]wFMCommunicate OK [01:20:24]wFMCommunicate request_size=4 [01:20:24]MH_SAM_APDU [01:20:24]CAPDU: 80 17 00 00 [01:20:24]Write to MH i2c: E2 08 00 A1 1A 80 17 00 00 00 00 00 00 3B [01:20:24]Write i2c OK [01:20:24]MH_I2C_Read... [01:20:24]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [01:20:24]Read from MH i2c: E2 [01:20:24]MH_I2C_Read... [01:20:24]Read from MH i2c: E2 FD 00 [01:20:24]MH_I2C_Read... [01:20:24]Read from MH i2c: E2 FD 00 A1 1A 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 C7 [01:20:24]RAPDU: 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [01:20:24]wFMCommunicate OK [01:20:24]wFMCommunicate request_size=4 [01:20:24]MH_SAM_APDU [01:20:24]CAPDU: 80 17 00 00 [01:20:24]Write to MH i2c: E2 08 00 A2 1A 80 17 00 00 00 00 00 00 3C [01:20:24]Write i2c OK [01:20:24]MH_I2C_Read... [01:20:24]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [01:20:24]Read from MH i2c: E2 [01:20:24]MH_I2C_Read... [01:20:24]Read from MH i2c: E2 E2 00 [01:20:24]MH_I2C_Read... [01:20:24]Read from MH i2c: E2 E2 00 A2 1A 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 1A [01:20:24]RAPDU: EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [01:20:24]wFMCommunicate OK [01:20:24]SAM_PROTO_GetFMData done [01:20:24]requested_item fm.sale_refund.total is exist - process it [01:20:24]requested_item fm.buy.total is exist - process it [01:20:24]requested_item shift.sale.total is exist - process it [01:20:24]SAM_PROTO_GetShiftData [01:20:24]wFMCommunicate request_size=4 [01:20:24]MH_SAM_APDU [01:20:24]CAPDU: 80 13 02 00 [01:20:24]Write to MH i2c: E2 08 00 A3 1A 80 13 02 00 00 00 00 00 3B [01:20:24]Write i2c OK [01:20:24]MH_I2C_Read... [01:20:25]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [01:20:25]Read from MH i2c: E2 [01:20:25]MH_I2C_Read... [01:20:25]Read from MH i2c: E2 FD 00 [01:20:25]MH_I2C_Read... [01:20:25]Read from MH i2c: E2 FD 00 A3 1A 00 AC 04 AA 04 A8 04 6E 04 04 00 07 00 00 00 69 04 99 00 6F 04 04 00 07 00 00 00 B1 04 03 00 3F 55 06 70 04 03 00 D8 B8 05 72 04 02 00 67 9C 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 40 AC 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 5A 0E EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 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 90 00 89 [01:20:25]RAPDU: AC 04 AA 04 A8 04 6E 04 04 00 07 00 00 00 69 04 99 00 6F 04 04 00 07 00 00 00 B1 04 03 00 3F 55 06 70 04 03 00 D8 B8 05 72 04 02 00 67 9C 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 40 AC 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 5A 0E EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 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 90 00 [01:20:25]wFMCommunicate OK [01:20:25]wFMCommunicate request_size=4 [01:20:25]MH_SAM_APDU [01:20:25]CAPDU: 80 17 00 00 [01:20:25]Write to MH i2c: E2 08 00 A4 1A 80 17 00 00 00 00 00 00 3E [01:20:25]Write i2c OK [01:20:25]MH_I2C_Read... [01:20:25]OFD Sender: No OFD packet to send [01:20:25]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [01:20:25]Read from MH i2c: E2 [01:20:25]MH_I2C_Read... [01:20:25]Read from MH i2c: E2 FD 00 [01:20:25]MH_I2C_Read... [01:20:25]Read from MH i2c: E2 FD 00 A4 1A 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 53 [01:20:25]RAPDU: 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 [01:20:26]wFMCommunicate OK [01:20:26]wFMCommunicate request_size=4 [01:20:26]MH_SAM_APDU [01:20:26]CAPDU: 80 17 00 00 [01:20:26]Write to MH i2c: E2 08 00 A5 1A 80 17 00 00 00 00 00 00 3F [01:20:26]Write i2c OK [01:20:26]MH_I2C_Read... [01:20:26]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [01:20:26]Read from MH i2c: E2 [01:20:26]MH_I2C_Read... [01:20:26]Read from MH i2c: E2 FD 00 [01:20:26]MH_I2C_Read... [01:20:26]Read from MH i2c: E2 FD 00 A5 1A 00 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 90 00 00 [01:20:26]RAPDU: 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [01:20:26]wFMCommunicate OK [01:20:26]wFMCommunicate request_size=4 [01:20:26]MH_SAM_APDU [01:20:26]CAPDU: 80 17 00 00 [01:20:26]Write to MH i2c: E2 08 00 A6 1A 80 17 00 00 00 00 00 00 40 [01:20:26]Write i2c OK [01:20:26]MH_I2C_Read... [01:20:26]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [01:20:26]Read from MH i2c: E2 [01:20:26]MH_I2C_Read... [01:20:26]Read from MH i2c: E2 FD 00 [01:20:26]MH_I2C_Read... [01:20:26]Read from MH i2c: E2 FD 00 A6 1A 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 90 00 B5 [01:20:26]RAPDU: 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 90 00 [01:20:26]wFMCommunicate OK [01:20:26]wFMCommunicate request_size=4 [01:20:26]MH_SAM_APDU [01:20:26]CAPDU: 80 17 00 00 [01:20:26]Write to MH i2c: E2 08 00 A7 1A 80 17 00 00 00 00 00 00 41 [01:20:26]Write i2c OK [01:20:26]MH_I2C_Read... [01:20:27]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 198! [01:20:27]Read from MH i2c: E2 [01:20:27]MH_I2C_Read... [01:20:27]Read from MH i2c: E2 C9 00 [01:20:27]MH_I2C_Read... [01:20:27]Read from MH i2c: E2 C9 00 A7 1A 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 25 [01:20:27]RAPDU: 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [01:20:27]wFMCommunicate OK [01:20:27]SAM_PROTO_GetShiftData done [01:20:27]requested_item shift.sale.total_cash is exist - process it [01:20:27]requested_item shift.sale_refund.total is exist - process it [01:20:27]requested_item shift.sale_refund.total_cash is exist - process it [01:20:27]requested_item shift.buy.total is exist - process it [01:20:27]requested_item shift.buy.total_cash is exist - process it [01:20:27]produce_requested_data done [01:20:27]produce_requested_data return {"fm.sale.total":52398767.86,"fm.sale_refund.total":2472284.00,"fm.buy.total":0.00,"shift.sale.total":4150.39,"shift.sale.total_cash":3750.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [01:20:27]process_action_free get_value [01:20:27]json_value_free [01:20:27]json_value_free done [01:20:27]process_json_proto returns [01:20:27]Send response to host [01:20:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":52398767.86,"fm.sale_refund.total":2472284.00,"fm.buy.total":0.00,"shift.sale.total":4150.39,"shift.sale.total_cash":3750.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [01:20:27]free response buf [01:20:27]execute_script done [01:20:27]execute_script returns [01:20:27]free content buf [01:20:27]Sock 7.Close socket [01:20:27]Sock 7.Thread stoped [01:20:27]accept exits with 9 [01:20:27]New connection [01:20:27]New thread 3066686820 created [01:20:27]Thread 3066543460 joined [01:20:27]Waiting for new connection... [01:20:27] Sock 9.Parse request [01:20:27]Sock 9.Check first char [01:20:27]Sock 9.First char is OK [01:20:27]request: POST /json_proto HTTP/1.0 [01:20:27]Method: POST [01:20:27]URL: /json_proto [01:20:27]Method is POST - this is cgi request [01:20:27]url: /json_proto [01:20:27]query_string will be loaded in cgi processing [01:20:27]execute_cgi json_proto POST (null) [01:20:27]execute_cgi path=json_proto method=POST [01:20:27]POST find Content-Length [01:20:27]Host: 172.17.36.132:8080 [01:20:27]Content-Length: 248 [01:20:27]Content-Type: application/json [01:20:27] [01:20:27]POST finish read [01:20:27]Found Content-Length = 248 [01:20:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_shift", "params" : { "operator" : "\u0411\u0430\u043B\u0430\u0435\u0432 \u0410. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:20:27]execute_script... [01:20:27]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_shift", "params" : { "operator" : "\u0411\u0430\u043B\u0430\u0435\u0432 \u0410. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:20:27]POST & json_proto [01:20:27]process_json_proto [01:20:27]json parsed OK: [01:20:27]protocol is kg_v1.0 [01:20:27]action value=close_shift [01:20:27]process_action close_shift [01:20:27]cmd_close_shift [01:20:27]MH_GetDate [01:20:27]Write to MH i2c: F0 00 00 A8 1A B1 [01:20:27]Write i2c OK [01:20:27]MH_I2C_Read... [01:20:27]Read from MH i2c: F0 [01:20:27]MH_I2C_Read... [01:20:27]Read from MH i2c: F0 09 00 [01:20:27]MH_I2C_Read... [01:20:27]Read from MH i2c: F0 09 00 A8 1A 00 5D 1A 5D 66 B2 22 B0 64 DC [01:20:27]GetLastDocTimeStamp 1717377572 [01:20:27]current date 1717377629 [01:20:27]FM_GetShiftState [01:20:27]SAM_PROTO_GetShiftState [01:20:27]wFMCommunicate request_size=4 [01:20:27]MH_SAM_APDU [01:20:27]CAPDU: 80 13 01 00 [01:20:27]Write to MH i2c: E2 08 00 A9 1A 80 13 01 00 00 00 00 00 40 [01:20:27]Write i2c OK [01:20:27]MH_I2C_Read... [01:20:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:20:27]Read from MH i2c: E2 [01:20:27]MH_I2C_Read... [01:20:27]Read from MH i2c: E2 0E 00 [01:20:27]MH_I2C_Read... [01:20:27]Read from MH i2c: E2 0E 00 A9 1A 00 09 00 01 AA 0D 5D 66 00 00 00 00 90 00 C6 [01:20:27]RAPDU: 09 00 01 AA 0D 5D 66 00 00 00 00 90 00 [01:20:27]wFMCommunicate OK [01:20:27]SAM_PROTO_GetShiftState done [01:20:27]FM_GetShiftState done [01:20:27]KKMCreateCloseShiftDocument [01:20:27]Load OK [01:20:27]Malloc new data [01:20:27]MH_GetDate [01:20:27]Write to MH i2c: F0 00 00 AA 1A B3 [01:20:27]Write i2c OK [01:20:27]MH_I2C_Read... [01:20:27]Read from MH i2c: F0 [01:20:27]MH_I2C_Read... [01:20:27]Read from MH i2c: F0 09 00 [01:20:27]MH_I2C_Read... [01:20:27]Read from MH i2c: F0 09 00 AA 1A 00 5D 1A 5D 66 B2 22 B0 64 DE [01:20:27]Malloc new data [01:20:27]Malloc new data [01:20:27]Malloc new data [01:20:27]Malloc new data [01:20:27]KKMCreateCloseShiftDocument OK [01:20:27]KKMSetCloseShiftData OK [01:20:27]ProcessDocumentItem done err = 0, tmpTLVsize=67 [01:20:27]tlvbuf is 00352430 [01:20:27]KKMLoadAndSignCloseShiftData [01:20:27]SAM_PROTO_ProcessDocument [01:20:27]wFMCommunicate request_size=9 [01:20:27]MH_SAM_APDU [01:20:27]CAPDU: 80 15 01 00 04 05 00 43 00 [01:20:27]Write to MH i2c: E2 0C 00 AB 1A 80 15 01 00 04 00 05 00 43 00 00 00 94 [01:20:27]Write i2c OK [01:20:27]MH_I2C_Read... [01:20:27]*** iso7816_exchange 80 15 01 00... Resp OK rsp.len_out = 0! [01:20:27]Read from MH i2c: E2 [01:20:27]MH_I2C_Read... [01:20:27]Read from MH i2c: E2 03 00 [01:20:27]MH_I2C_Read... [01:20:27]Read from MH i2c: E2 03 00 AB 1A 00 90 00 39 [01:20:27]RAPDU: 90 00 [01:20:27]wFMCommunicate OK [01:20:27]wFMCommunicate request_size=23 [01:20:27]MH_SAM_APDU [01:20:27]CAPDU: 80 15 02 00 12 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 [01:20:27]Write to MH i2c: E2 1A 00 AC 1A 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 3B [01:20:27]Write i2c OK [01:20:27]MH_I2C_Read... [01:20:27]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [01:20:27]Read from MH i2c: E2 [01:20:27]MH_I2C_Read... [01:20:27]Read from MH i2c: E2 03 00 [01:20:27]MH_I2C_Read... [01:20:27]Read from MH i2c: E2 03 00 AC 1A 00 90 00 3A [01:20:27]RAPDU: 90 00 [01:20:27]wFMCommunicate OK [01:20:27]wFMCommunicate request_size=26 [01:20:27]MH_SAM_APDU [01:20:27]CAPDU: 80 15 02 00 15 FD 03 11 00 D0 91 D0 B0 D0 BB D0 B0 D0 B5 D0 B2 20 D0 90 2E 20 [01:20:27]Write to MH i2c: E2 1D 00 AD 1A 80 15 02 00 15 00 FD 03 11 00 D0 91 D0 B0 D0 BB D0 B0 D0 B5 D0 B2 20 D0 90 2E 20 00 00 43 [01:20:27]Write i2c OK [01:20:27]MH_I2C_Read... [01:20:27]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [01:20:27]Read from MH i2c: E2 [01:20:27]MH_I2C_Read... [01:20:27]Read from MH i2c: E2 03 00 [01:20:27]MH_I2C_Read... [01:20:27]Read from MH i2c: E2 03 00 AD 1A 00 90 00 3B [01:20:27]RAPDU: 90 00 [01:20:27]wFMCommunicate OK [01:20:27]wFMCommunicate request_size=13 [01:20:27]MH_SAM_APDU [01:20:27]CAPDU: 80 15 02 00 08 F4 03 04 00 5D 1A 5D 66 [01:20:27]Write to MH i2c: E2 10 00 AE 1A 80 15 02 00 08 00 F4 03 04 00 5D 1A 5D 66 00 00 8D [01:20:27]Write i2c OK [01:20:27]MH_I2C_Read... [01:20:27]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [01:20:27]Read from MH i2c: E2 [01:20:27]MH_I2C_Read... [01:20:27]Read from MH i2c: E2 03 00 [01:20:27]MH_I2C_Read... [01:20:27]Read from MH i2c: E2 03 00 AE 1A 00 90 00 3C [01:20:27]RAPDU: 90 00 [01:20:27]wFMCommunicate OK [01:20:27]wFMCommunicate request_size=25 [01:20:27]MH_SAM_APDU [01:20:27]CAPDU: 80 15 02 00 14 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 [01:20:27]Write to MH i2c: E2 1C 00 AF 1A 80 15 02 00 14 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 00 00 B2 [01:20:27]Write i2c OK [01:20:27]MH_I2C_Read... [01:20:28]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [01:20:28]Read from MH i2c: E2 [01:20:28]MH_I2C_Read... [01:20:28]Read from MH i2c: E2 03 00 [01:20:28]MH_I2C_Read... [01:20:28]Read from MH i2c: E2 03 00 AF 1A 00 90 00 3D [01:20:28]RAPDU: 90 00 [01:20:28]wFMCommunicate OK [01:20:28]wFMCommunicate request_size=4 [01:20:28]MH_SAM_APDU [01:20:28]CAPDU: 80 15 03 00 [01:20:28]Write to MH i2c: E2 08 00 B0 1A 80 15 03 00 00 00 00 00 4B [01:20:28]Write i2c OK [01:20:28]MH_I2C_Read... [01:20:28]*** iso7816_exchange 80 15 03 00... Resp OK rsp.len_out = 250! [01:20:28]Read from MH i2c: E2 [01:20:28]MH_I2C_Read... [01:20:28]Read from MH i2c: E2 FD 00 [01:20:28]MH_I2C_Read... [01:20:28]Read from MH i2c: E2 FD 00 B0 1A 00 EF 04 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 9D 0A 01 00 0E 04 04 00 43 01 00 00 5E 04 04 00 07 00 00 00 57 04 04 00 09 00 00 00 AA 04 A8 04 6E 04 04 00 07 00 00 00 69 04 99 00 6F 04 04 00 07 00 00 00 B1 04 03 00 3F 55 06 70 04 03 00 D8 B8 05 72 04 02 00 67 9C 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 40 AC 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 5A 0E EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 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 90 00 9F [01:20:28]RAPDU: EF 04 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 9D 0A 01 00 0E 04 04 00 43 01 00 00 5E 04 04 00 07 00 00 00 57 04 04 00 09 00 00 00 AA 04 A8 04 6E 04 04 00 07 00 00 00 69 04 99 00 6F 04 04 00 07 00 00 00 B1 04 03 00 3F 55 06 70 04 03 00 D8 B8 05 72 04 02 00 67 9C 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 40 AC 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 5A 0E EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 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 90 00 [01:20:28]wFMCommunicate OK [01:20:28]SAM_PROTO_ProcessDocument answer len = 1263 [01:20:28]SAM_PROTO_ProcessDocument remain to read = 1015 [01:20:28]wFMCommunicate request_size=4 [01:20:28]MH_SAM_APDU [01:20:28]CAPDU: 80 17 00 00 [01:20:28]Write to MH i2c: E2 08 00 B1 1A 80 17 00 00 00 00 00 00 4B [01:20:28]Write i2c OK [01:20:28]MH_I2C_Read... [01:20:29]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [01:20:29]Read from MH i2c: E2 [01:20:29]MH_I2C_Read... [01:20:29]Read from MH i2c: E2 FD 00 [01:20:29]MH_I2C_Read... [01:20:29]Read from MH i2c: E2 FD 00 B1 1A 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 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 90 00 1F [01:20: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 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 90 00 [01:20:29]wFMCommunicate OK [01:20:29]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [01:20:29]SAM_PROTO_ProcessDocument remain to read = 765 [01:20:29]wFMCommunicate request_size=4 [01:20:29]MH_SAM_APDU [01:20:29]CAPDU: 80 17 00 00 [01:20:29]Write to MH i2c: E2 08 00 B2 1A 80 17 00 00 00 00 00 00 4C [01:20:29]Write i2c OK [01:20:29]MH_I2C_Read... [01:20:29]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [01:20:29]Read from MH i2c: E2 [01:20:29]MH_I2C_Read... [01:20:29]Read from MH i2c: E2 FD 00 [01:20:29]MH_I2C_Read... [01:20:29]Read from MH i2c: E2 FD 00 B2 1A 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 90 00 AE [01:20:29]RAPDU: 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 90 00 [01:20:29]wFMCommunicate OK [01:20:29]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [01:20:29]SAM_PROTO_ProcessDocument remain to read = 515 [01:20:29]wFMCommunicate request_size=4 [01:20:29]MH_SAM_APDU [01:20:29]CAPDU: 80 17 00 00 [01:20:29]Write to MH i2c: E2 08 00 B3 1A 80 17 00 00 00 00 00 00 4D [01:20:29]Write i2c OK [01:20:29]MH_I2C_Read... [01:20:30]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [01:20:30]Read from MH i2c: E2 [01:20:30]MH_I2C_Read... [01:20:30]Read from MH i2c: E2 FD 00 [01:20:30]MH_I2C_Read... [01:20:30]Read from MH i2c: E2 FD 00 B3 1A 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 DA [01:20: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 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 90 00 [01:20:30]wFMCommunicate OK [01:20:30]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [01:20:30]SAM_PROTO_ProcessDocument remain to read = 265 [01:20:30]wFMCommunicate request_size=4 [01:20:30]MH_SAM_APDU [01:20:30]CAPDU: 80 17 00 00 [01:20:30]Write to MH i2c: E2 08 00 B4 1A 80 17 00 00 00 00 00 00 4E [01:20:30]Write i2c OK [01:20:30]MH_I2C_Read... [01:20:30]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [01:20:30]Read from MH i2c: E2 [01:20:30]MH_I2C_Read... [01:20:30]Read from MH i2c: E2 FD 00 [01:20:30]MH_I2C_Read... [01:20:30]Read from MH i2c: E2 FD 00 B4 1A 00 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 13 [01:20:30]RAPDU: 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF OFD Sender: No OFD packet to send [01:20:30]03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 [01:20:31]wFMCommunicate OK [01:20:31]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [01:20:31]SAM_PROTO_ProcessDocument remain to read = 15 [01:20:31]wFMCommunicate request_size=4 [01:20:31]MH_SAM_APDU [01:20:31]CAPDU: 80 17 00 00 [01:20:31]Write to MH i2c: E2 08 00 B5 1A 80 17 00 00 00 00 00 00 4F [01:20:31]Write i2c OK [01:20:31]MH_I2C_Read... [01:20:31]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 15! [01:20:31]Read from MH i2c: E2 [01:20:31]MH_I2C_Read... [01:20:31]Read from MH i2c: E2 12 00 [01:20:31]MH_I2C_Read... [01:20:31]Read from MH i2c: E2 12 00 B5 1A 00 06 F7 03 00 00 35 04 06 00 16 D0 E0 65 5D 20 90 00 39 [01:20:31]RAPDU: 06 F7 03 00 00 35 04 06 00 16 D0 E0 65 5D 20 90 00 [01:20:31]wFMCommunicate OK [01:20:31]SAM_PROTO_ProcessDocument received (without SW) 15 bytes [01:20:31]SAM_PROTO_ProcessDocument done [01:20:31]1209 (1) - 1.0 - номер версии ФФД [01:20:31]1041 (16) - 0000000000965400 - номер ФМ [01:20:31]1040 (4) - 68253 - номер ФД [01:20:31]1038 (4) - 323 - номер смены [01:20:31]1118 (4) - 7 - количество кассовых чеков за смену [01:20:31]1111 (4) - 9 - общее количество ФД за смену [01:20:31]1194 (1192) - счетчики итогов смены [01:20:31] 1134 (4) - 7 - количество чеков со всеми признаками расчетов [01:20:31] 1129 (153) - счетчики операций «приход» [01:20:31] 1135 (4) - 7 - количество чеков по признаку расчетов [01:20:31] 1201 (3) - 4150.39 - общая итоговая сумма в чеках [01:20:31] 1136 (3) - 3750.00 - итоговая сумма в чеках наличными [01:20:31] 1138 (2) - 400.39 - итоговая сумма в чеках безналичными [01:20:31] 1024 (121) - суммы налогов [01:20:31] 1006 (9) - суммы НДС [01:20:31] 1010 (1) - 0% - код ставки НДС [01:20:31] 1011 (0) - 0.00 - сумма НДС по ставке [01:20:31] 1006 (11) - суммы НДС [01:20:31] 1010 (1) - 12% - код ставки НДС [01:20:31] 1011 (2) - 440.96 - сумма НДС по ставке [01:20:31] 1007 (9) - суммы НСП [01:20:31] 1014 (1) - 0% - код ставки НСП [01:20:31] 1015 (0) - 0.00 - сумма НСП по ставке [01:20:31] 1007 (11) - суммы НСП [01:20:31] 1014 (1) - 1% - код ставки НСП [01:20:31] 1015 (2) - 36.74 - сумма НСП по ставке [01:20:31] 1007 (9) - суммы НСП [01:20:31] 1014 (1) - 2% - код ставки НСП [01:20:31] 1015 (0) - 0.00 - сумма НСП по ставке [01:20:31] 1007 (9) - суммы НСП [01:20:31] 1014 (1) - 3% - код ставки НСП [01:20:31] 1015 (0) - 0.00 - сумма НСП по ставке [01:20:31] 1007 (9) - суммы НСП [01:20:31] 1014 (1) - 5% - код ставки НСП [01:20:31] 1015 (0) - 0.00 - сумма НСП по ставке [01:20:31] 1007 (9) - суммы НСП [01:20:31] 1014 (1) - 0,50% - код ставки НСП [01:20:31] 1015 (0) - 0.00 - сумма НСП по ставке [01:20:31] 1007 (9) - суммы НСП [01:20:31] 1014 (1) - 1,50% - код ставки НСП [01:20:31] 1015 (0) - 0.00 - сумма НСП по ставке [01:20:31] 1130 (141) - счетчики операций «возврат прихода» [01:20:31] 1135 (4) - 0 - количество чеков по признаку расчетов [01:20:31] 1201 (0) - 0.00 - общая итоговая сумма в чеках [01:20:31] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [01:20:31] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [01:20:31] 1024 (117) - суммы налогов [01:20:31] 1006 (9) - суммы НДС [01:20:31] 1010 (1) - 0% - код ставки НДС [01:20:31] 1011 (0) - 0.00 - сумма НДС по ставке [01:20:31] 1006 (9) - суммы НДС [01:20:31] 1010 (1) - 12% - код ставки НДС [01:20:31] 1011 (0) - 0.00 - сумма НДС по ставке [01:20:31] 1007 (9) - суммы НСП [01:20:31] 1014 (1) - 0% - код ставки НСП [01:20:31] 1015 (0) - 0.00 - сумма НСП по ставке [01:20:31] 1007 (9) - суммы НСП [01:20:31] 1014 (1) - 1% - код ставки НСП [01:20:31] 1015 (0) - 0.00 - сумма НСП по ставке [01:20:31] 1007 (9) - суммы НСП [01:20:31] 1014 (1) - 2% - код ставки НСП [01:20:31] 1015 (0) - 0.00 - сумма НСП по ставке [01:20:31] 1007 (9) - суммы НСП [01:20:31] 1014 (1) - 3% - код ставки НСП [01:20:31] 1015 (0) - 0.00 - сумма НСП по ставке [01:20:31] 1007 (9) - суммы НСП [01:20:31] 1014 (1) - 5% - код ставки НСП [01:20:31] 1015 (0) - 0.00 - сумма НСП по ставке [01:20:31] 1007 (9) - суммы НСП [01:20:31] 1014 (1) - 0,50% - код ставки НСП [01:20:31] 1015 (0) - 0.00 - сумма НСП по ставке [01:20:31] 1007 (9) - суммы НСП [01:20:31] 1014 (1) - 1,50% - код ставки НСП [01:20:31] 1015 (0) - 0.00 - сумма НСП по ставке [01:20:31] 1131 (141) - счетчики операций «расход» [01:20:31] 1135 (4) - 0 - количество чеков по признаку расчетов [01:20:31] 1201 (0) - 0.00 - общая итоговая сумма в чеках [01:20:31] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [01:20:31] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [01:20:31] 1024 (117) - суммы налогов [01:20:31] 1006 (9) - суммы НДС [01:20:31] 1010 (1) - 0% - код ставки НДС [01:20:31] 1011 (0) - 0.00 - сумма НДС по ставке [01:20:31] 1006 (9) - суммы НДС [01:20:31] 1010 (1) - 12% - код ставки НДС [01:20:31] 1011 (0) - 0.00 - сумма НДС по ставке [01:20:31] 1007 (9) - суммы НСП [01:20:31] 1014 (1) - 0% - код ставки НСП [01:20:31] 1015 (0) - 0.00 - сумма НСП по ставке [01:20:31] 1007 (9) - суммы НСП [01:20:31] 1014 (1) - 1% - код ставки НСП [01:20:31] 1015 (0) - 0.00 - сумма НСП по ставке [01:20:31] 1007 (9) - суммы НСП [01:20:31] 1014 (1) - 2% - код ставки НСП [01:20:31] 1015 (0) - 0.00 - сумма НСП по ставке [01:20:31] 1007 (9) - суммы НСП [01:20:31] 1014 (1) - 3% - код ставки НСП [01:20:31] 1015 (0) - 0.00 - сумма НСП по ставке [01:20:31] 1007 (9) - суммы НСП [01:20:31] 1014 (1) - 5% - код ставки НСП [01:20:31] 1015 (0) - 0.00 - сумма НСП по ставке [01:20:31] 1007 (9) - суммы НСП [01:20:31] 1014 (1) - 0,50% - код ставки НСП [01:20:31] 1015 (0) - 0.00 - сумма НСП по ставке [01:20:31] 1007 (9) - суммы НСП [01:20:31] 1014 (1) - 1,50% - код ставки НСП [01:20:31] 1015 (0) - 0.00 - сумма НСП по ставке [01:20:31] 1132 (141) - счетчики операций «возврат расхода» [01:20:31] 1135 (4) - 0 - количество чеков по признаку расчетов [01:20:31] 1201 (0) - 0.00 - общая итоговая сумма в чеках [01:20:31] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [01:20:31] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [01:20:31] 1024 (117) - суммы налогов [01:20:31] 1006 (9) - суммы НДС [01:20:31] 1010 (1) - 0% - код ставки НДС [01:20:31] 1011 (0) - 0.00 - сумма НДС по ставке [01:20:31] 1006 (9) - суммы НДС [01:20:31] 1010 (1) - 12% - код ставки НДС [01:20:31] 1011 (0) - 0.00 - сумма НДС по ставке [01:20:31] 1007 (9) - суммы НСП [01:20:31] 1014 (1) - 0% - код ставки НСП [01:20:31] 1015 (0) - 0.00 - сумма НСП по ставке [01:20:31] 1007 (9) - суммы НСП [01:20:31] 1014 (1) - 1% - код ставки НСП [01:20:31] 1015 (0) - 0.00 - сумма НСП по ставке [01:20:31] 1007 (9) - суммы НСП [01:20:31] 1014 (1) - 2% - код ставки НСП [01:20:31] 1015 (0) - 0.00 - сумма НСП по ставке [01:20:31] 1007 (9) - суммы НСП [01:20:31] 1014 (1) - 3% - код ставки НСП [01:20:31] 1015 (0) - 0.00 - сумма НСП по ставке [01:20:31] 1007 (9) - суммы НСП [01:20:31] 1014 (1) - 5% - код ставки НСП [01:20:31] 1015 (0) - 0.00 - сумма НСП по ставке [01:20:31] 1007 (9) - суммы НСП [01:20:31] 1014 (1) - 0,50% - код ставки НСП [01:20:31] 1015 (0) - 0.00 - сумма НСП по ставке [01:20:31] 1007 (9) - суммы НСП [01:20:31] 1014 (1) - 1,50% - код ставки НСП [01:20:31] 1015 (0) - 0.00 - сумма НСП по ставке [01:20:31] 1133 (588) - - счетчики коррекции - не используются [01:20:31]1077 (6) - 25086373748000 - ФПД [01:20:31]SetTLVBufToDocument [01:20:31]Processing tag 1209 (04B9) [01:20:31]Malloc new data [01:20:31]Processing tag 1041 (0411) [01:20:31]Processing tag 1040 (0410) [01:20:31]Malloc new data [01:20:31]Processing tag 1038 (040E) [01:20:31]Malloc new data [01:20:31]Processing tag 1118 (045E) [01:20:31]Malloc new data [01:20:31]Processing tag 1111 (0457) [01:20:31]Malloc new data [01:20:31]Processing tag 1194 (04AA) [01:20:31]Load OK [01:20:31]SetTLVBufToDocument [01:20:31]Processing tag 1134 (046E) [01:20:31]Malloc new data [01:20:31]Processing tag 1129 (0469) [01:20:31]Load OK [01:20:31]SetTLVBufToDocument [01:20:31]Processing tag 1135 (046F) [01:20:31]Malloc new data [01:20:31]Processing tag 1201 (04B1) [01:20:31]Malloc new data [01:20:31]Processing tag 1136 (0470) [01:20:31]Malloc new data [01:20:31]Processing tag 1138 (0472) [01:20:31]Malloc new data [01:20:31]Processing tag 1024 (0400) [01:20:31]Load OK [01:20:31]SetTLVBufToDocument [01:20:31]Processing tag 1006 (03EE) [01:20:31]Load OK [01:20:31]SetTLVBufToDocument [01:20:31]Processing tag 1010 (03F2) [01:20:31]Malloc new data [01:20:31]Processing tag 1011 (03F3) [01:20:31]Malloc new data [01:20:31]SetTLVBufToDocument err=0 [01:20:31]Processing tag 1006 (03EE) [01:20:31]Load OK [01:20:31]SetTLVBufToDocument [01:20:31]Processing tag 1010 (03F2) [01:20:31]Malloc new data [01:20:31]Processing tag 1011 (03F3) [01:20:31]Malloc new data [01:20:31]SetTLVBufToDocument err=0 [01:20:31]Processing tag 1007 (03EF) [01:20:31]Load OK [01:20:31]SetTLVBufToDocument [01:20:31]Processing tag 1014 (03F6) [01:20:31]Malloc new data [01:20:31]Processing tag 1015 (03F7) [01:20:31]Malloc new data [01:20:31]SetTLVBufToDocument err=0 [01:20:31]Processing tag 1007 (03EF) [01:20:31]Load OK [01:20:31]SetTLVBufToDocument [01:20:31]Processing tag 1014 (03F6) [01:20:31]Malloc new data [01:20:31]Processing tag 1015 (03F7) [01:20:31]Malloc new data [01:20:31]SetTLVBufToDocument err=0 [01:20:31]Processing tag 1007 (03EF) [01:20:31]Load OK [01:20:31]SetTLVBufToDocument [01:20:31]Processing tag 1014 (03F6) [01:20:31]Malloc new data [01:20:31]Processing tag 1015 (03F7) [01:20:31]Malloc new data [01:20:31]SetTLVBufToDocument err=0 [01:20:31]Processing tag 1007 (03EF) [01:20:31]Load OK [01:20:31]SetTLVBufToDocument [01:20:31]Processing tag 1014 (03F6) [01:20:31]Malloc new data [01:20:31]Processing tag 1015 (03F7) [01:20:31]Malloc new data [01:20:31]SetTLVBufToDocument err=0 [01:20:31]Processing tag 1007 (03EF) [01:20:31]Load OK [01:20:31]SetTLVBufToDocument [01:20:31]Processing tag 1014 (03F6) [01:20:31]Malloc new data [01:20:31]Processing tag 1015 (03F7) [01:20:31]Malloc new data [01:20:31]SetTLVBufToDocument err=0 [01:20:31]Processing tag 1007 (03EF) [01:20:31]Load OK [01:20:31]SetTLVBufToDocument [01:20:31]Processing tag 1014 (03F6) [01:20:31]Malloc new data [01:20:31]Processing tag 1015 (03F7) [01:20:31]Malloc new data [01:20:31]SetTLVBufToDocument err=0 [01:20:31]Processing tag 1007 (03EF) [01:20:31]Load OK [01:20:31]SetTLVBufToDocument [01:20:31]Processing tag 1014 (03F6) [01:20:31]Malloc new data [01:20:31]Processing tag 1015 (03F7) [01:20:31]Malloc new data [01:20:31]SetTLVBufToDocument err=0 [01:20:31]SetTLVBufToDocument err=0 [01:20:31]SetTLVBufToDocument err=0 [01:20:31]Processing tag 1130 (046A) [01:20:31]Load OK [01:20:31]SetTLVBufToDocument [01:20:31]Processing tag 1135 (046F) [01:20:31]Malloc new data [01:20:31]Processing tag 1201 (04B1) [01:20:31]Malloc new data [01:20:31]Processing tag 1136 (0470) [01:20:31]Malloc new data [01:20:31]Processing tag 1138 (0472) [01:20:31]Malloc new data [01:20:31]Processing tag 1024 (0400) [01:20:31]Load OK [01:20:31]SetTLVBufToDocument [01:20:31]Processing tag 1006 (03EE) [01:20:31]Load OK [01:20:31]SetTLVBufToDocument [01:20:31]Processing tag 1010 (03F2) [01:20:31]Malloc new data [01:20:31]Processing tag 1011 (03F3) [01:20:31]Malloc new data [01:20:31]SetTLVBufToDocument err=0 [01:20:31]Processing tag 1006 (03EE) [01:20:31]Load OK [01:20:31]SetTLVBufToDocument [01:20:31]Processing tag 1010 (03F2) [01:20:31]Malloc new data [01:20:31]Processing tag 1011 (03F3) [01:20:31]Malloc new data [01:20:31]SetTLVBufToDocument err=0 [01:20:31]Processing tag 1007 (03EF) [01:20:31]Load OK [01:20:31]SetTLVBufToDocument [01:20:31]Processing tag 1014 (03F6) [01:20:31]Malloc new data [01:20:31]Processing tag 1015 (03F7) [01:20:31]Malloc new data [01:20:31]SetTLVBufToDocument err=0 [01:20:31]Processing tag 1007 (03EF) [01:20:31]Load OK [01:20:31]SetTLVBufToDocument [01:20:31]Processing tag 1014 (03F6) [01:20:31]Malloc new data [01:20:31]Processing tag 1015 (03F7) [01:20:31]Malloc new data [01:20:31]SetTLVBufToDocument err=0 [01:20:31]Processing tag 1007 (03EF) [01:20:31]Load OK [01:20:31]SetTLVBufToDocument [01:20:31]Processing tag 1014 (03F6) [01:20:31]Malloc new data [01:20:31]Processing tag 1015 (03F7) [01:20:31]Malloc new data [01:20:31]SetTLVBufToDocument err=0 [01:20:31]Processing tag 1007 (03EF) [01:20:31]Load OK [01:20:31]SetTLVBufToDocument [01:20:31]Processing tag 1014 (03F6) [01:20:31]Malloc new data [01:20:31]Processing tag 1015 (03F7) [01:20:31]Malloc new data [01:20:31]SetTLVBufToDocument err=0 [01:20:31]Processing tag 1007 (03EF) [01:20:31]Load OK [01:20:31]SetTLVBufToDocument [01:20:31]Processing tag 1014 (03F6) [01:20:31]Malloc new data [01:20:31]Processing tag 1015 (03F7) [01:20:31]Malloc new data [01:20:31]SetTLVBufToDocument err=0 [01:20:31]Processing tag 1007 (03EF) [01:20:31]Load OK [01:20:31]SetTLVBufToDocument [01:20:31]Processing tag 1014 (03F6) [01:20:31]Malloc new data [01:20:31]Processing tag 1015 (03F7) [01:20:31]Malloc new data [01:20:31]SetTLVBufToDocument err=0 [01:20:31]Processing tag 1007 (03EF) [01:20:31]Load OK [01:20:31]SetTLVBufToDocument [01:20:31]Processing tag 1014 (03F6) [01:20:31]Malloc new data [01:20:31]Processing tag 1015 (03F7) [01:20:31]Malloc new data [01:20:31]SetTLVBufToDocument err=0 [01:20:31]SetTLVBufToDocument err=0 [01:20:31]SetTLVBufToDocument err=0 [01:20:31]Processing tag 1131 (046B) [01:20:31]Load OK [01:20:31]SetTLVBufToDocument [01:20:31]Processing tag 1135 (046F) [01:20:31]Malloc new data [01:20:31]Processing tag 1201 (04B1) [01:20:31]Malloc new data [01:20:31]Processing tag 1136 (0470) [01:20:31]Malloc new data [01:20:31]Processing tag 1138 (0472) [01:20:31]Malloc new data [01:20:31]Processing tag 1024 (0400) [01:20:31]Load OK [01:20:31]SetTLVBufToDocument [01:20:31]Processing tag 1006 (03EE) [01:20:31]Load OK [01:20:31]SetTLVBufToDocument [01:20:31]Processing tag 1010 (03F2) [01:20:31]Malloc new data [01:20:31]Processing tag 1011 (03F3) [01:20:31]Malloc new data [01:20:31]SetTLVBufToDocument err=0 [01:20:31]Processing tag 1006 (03EE) [01:20:31]Load OK [01:20:31]SetTLVBufToDocument [01:20:31]Processing tag 1010 (03F2) [01:20:31]Malloc new data [01:20:31]Processing tag 1011 (03F3) [01:20:31]Malloc new data [01:20:31]SetTLVBufToDocument err=0 [01:20:31]Processing tag 1007 (03EF) [01:20:31]Load OK [01:20:31]SetTLVBufToDocument [01:20:31]Processing tag 1014 (03F6) [01:20:31]Malloc new data [01:20:31]Processing tag 1015 (03F7) [01:20:31]Malloc new data [01:20:31]SetTLVBufToDocument err=0 [01:20:31]Processing tag 1007 (03EF) [01:20:31]Load OK [01:20:31]SetTLVBufToDocument [01:20:31]Processing tag 1014 (03F6) [01:20:31]Malloc new data [01:20:31]Processing tag 1015 (03F7) [01:20:31]Malloc new data [01:20:31]SetTLVBufToDocument err=0 [01:20:31]Processing tag 1007 (03EF) [01:20:31]Load OK [01:20:31]SetTLVBufToDocument [01:20:31]Processing tag 1014 (03F6) [01:20:31]Malloc new data [01:20:31]Processing tag 1015 (03F7) [01:20:31]Malloc new data [01:20:31]SetTLVBufToDocument err=0 [01:20:31]Processing tag 1007 (03EF) [01:20:31]Load OK [01:20:31]SetTLVBufToDocument [01:20:31]Processing tag 1014 (03F6) [01:20:31]Malloc new data [01:20:31]Processing tag 1015 (03F7) [01:20:31]Malloc new data [01:20:31]SetTLVBufToDocument err=0 [01:20:31]Processing tag 1007 (03EF) [01:20:31]Load OK [01:20:31]SetTLVBufToDocument [01:20:31]Processing tag 1014 (03F6) [01:20:31]Malloc new data [01:20:31]Processing tag 1015 (03F7) [01:20:31]Malloc new data [01:20:31]SetTLVBufToDocument err=0 [01:20:31]Processing tag 1007 (03EF) [01:20:31]Load OK [01:20:31]SetTLVBufToDocument [01:20:31]Processing tag 1014 (03F6) [01:20:31]Malloc new data [01:20:31]Processing tag 1015 (03F7) [01:20:31]Malloc new data [01:20:31]SetTLVBufToDocument err=0 [01:20:31]Processing tag 1007 (03EF) [01:20:31]Load OK [01:20:31]SetTLVBufToDocument [01:20:31]Processing tag 1014 (03F6) [01:20:31]Malloc new data [01:20:31]Processing tag 1015 (03F7) [01:20:31]Malloc new data [01:20:31]SetTLVBufToDocument err=0 [01:20:31]SetTLVBufToDocument err=0 [01:20:31]SetTLVBufToDocument err=0 [01:20:31]Processing tag 1132 (046C) [01:20:31]Load OK [01:20:31]SetTLVBufToDocument [01:20:31]Processing tag 1135 (046F) [01:20:31]Malloc new data [01:20:31]Processing tag 1201 (04B1) [01:20:31]Malloc new data [01:20:31]Processing tag 1136 (0470) [01:20:31]Malloc new data [01:20:31]Processing tag 1138 (0472) [01:20:31]Malloc new data [01:20:31]Processing tag 1024 (0400) [01:20:31]Load OK [01:20:31]SetTLVBufToDocument [01:20:31]Processing tag 1006 (03EE) [01:20:31]Load OK [01:20:31]SetTLVBufToDocument [01:20:31]Processing tag 1010 (03F2) [01:20:31]Malloc new data [01:20:31]Processing tag 1011 (03F3) [01:20:31]Malloc new data [01:20:31]SetTLVBufToDocument err=0 [01:20:31]Processing tag 1006 (03EE) [01:20:31]Load OK [01:20:31]SetTLVBufToDocument [01:20:31]Processing tag 1010 (03F2) [01:20:31]Malloc new data [01:20:31]Processing tag 1011 (03F3) [01:20:31]Malloc new data [01:20:31]SetTLVBufToDocument err=0 [01:20:31]Processing tag 1007 (03EF) [01:20:31]Load OK [01:20:32]SetTLVBufToDocument [01:20:32]Processing tag 1014 (03F6) [01:20:32]Malloc new data [01:20:32]Processing tag 1015 (03F7) [01:20:32]Malloc new data [01:20:32]SetTLVBufToDocument err=0 [01:20:32]Processing tag 1007 (03EF) [01:20:32]Load OK [01:20:32]SetTLVBufToDocument [01:20:32]Processing tag 1014 (03F6) [01:20:32]Malloc new data [01:20:32]Processing tag 1015 (03F7) [01:20:32]Malloc new data [01:20:32]SetTLVBufToDocument err=0 [01:20:32]Processing tag 1007 (03EF) [01:20:32]Load OK [01:20:32]SetTLVBufToDocument [01:20:32]Processing tag 1014 (03F6) [01:20:32]Malloc new data [01:20:32]Processing tag 1015 (03F7) [01:20:32]Malloc new data [01:20:32]SetTLVBufToDocument err=0 [01:20:32]Processing tag 1007 (03EF) [01:20:32]Load OK [01:20:32]SetTLVBufToDocument [01:20:32]Processing tag 1014 (03F6) [01:20:32]Malloc new data [01:20:32]Processing tag 1015 (03F7) [01:20:32]Malloc new data [01:20:32]SetTLVBufToDocument err=0 [01:20:32]Processing tag 1007 (03EF) [01:20:32]Load OK [01:20:32]SetTLVBufToDocument [01:20:32]Processing tag 1014 (03F6) [01:20:32]Malloc new data [01:20:32]Processing tag 1015 (03F7) [01:20:32]Malloc new data [01:20:32]SetTLVBufToDocument err=0 [01:20:32]Processing tag 1007 (03EF) [01:20:32]Load OK [01:20:32]SetTLVBufToDocument [01:20:32]Processing tag 1014 (03F6) [01:20:32]Malloc new data [01:20:32]Processing tag 1015 (03F7) [01:20:32]Malloc new data [01:20:32]SetTLVBufToDocument err=0 [01:20:32]Processing tag 1007 (03EF) [01:20:32]Load OK [01:20:32]SetTLVBufToDocument [01:20:32]Processing tag 1014 (03F6) [01:20:32]Malloc new data [01:20:32]Processing tag 1015 (03F7) [01:20:32]Malloc new data [01:20:32]SetTLVBufToDocument err=0 [01:20:32]SetTLVBufToDocument err=0 [01:20:32]SetTLVBufToDocument err=0 [01:20:32]Processing tag 1133 (046D) [01:20:32]Malloc new data [01:20:32]SetTLVBufToDocument err=0 [01:20:32]Processing tag 1077 (0435) [01:20:32]Malloc new data [01:20:32]SetTLVBufToDocument err=0 [01:20:32]Malloc new data [01:20:32]SAM_PROTO_GetFMData [01:20:32]wFMCommunicate request_size=4 [01:20:32]MH_SAM_APDU [01:20:32]CAPDU: 80 13 03 00 [01:20:32]Write to MH i2c: E2 08 00 B6 1A 80 13 03 00 00 00 00 00 4F [01:20:32]Write i2c OK [01:20:32]MH_I2C_Read... [01:20:32]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [01:20:32]Read from MH i2c: E2 [01:20:32]MH_I2C_Read... [01:20:32]Read from MH i2c: E2 FD 00 [01:20:32]MH_I2C_Read... [01:20:32]Read from MH i2c: E2 FD 00 B6 1A 00 C5 04 85 04 C1 04 6E 04 04 00 16 08 01 00 69 04 A3 00 6F 04 04 00 0B 03 01 00 B1 04 05 00 B2 2C 52 38 01 70 04 05 00 44 9F F6 0B 01 72 04 04 00 6E 8D 5B 2C 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 C0 4F 2D 21 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 62 AD C3 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 9C 00 6F 04 04 00 0B 05 00 00 B1 04 04 00 F0 67 BC 0E 70 04 04 00 F0 67 BC 0E 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 3E AA 90 01 EF 03 09 90 00 6D [01:20:32]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 16 08 01 00 69 04 A3 00 6F 04 04 00 0B 03 01 00 B1 04 05 00 B2 2C 52 38 01 70 04 05 00 44 9F F6 0B 01 72 04 04 00 6E 8D 5B 2C 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 C0 4F 2D 21 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 62 AD C3 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 9C 00 6F 04 04 00 0B 05 00 00 B1 04 04 00 F0 67 BC 0E 70 04 04 00 F0 67 BC 0E 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 3E AA 90 01 EF 03 09 90 00 [01:20:33]wFMCommunicate OK [01:20:33]wFMCommunicate request_size=4 [01:20:33]MH_SAM_APDU [01:20:33]CAPDU: 80 17 00 00 [01:20:33]Write to MH i2c: E2 08 00 B7 1A 80 17 00 00 00 00 00 00 51 [01:20:33]Write i2c OK [01:20:33]MH_I2C_Read... [01:20:33]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [01:20:33]Read from MH i2c: E2 [01:20:33]MH_I2C_Read... [01:20:33]Read from MH i2c: E2 FD 00 [01:20:33]MH_I2C_Read... [01:20:33]Read from MH i2c: E2 FD 00 B7 1A 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 12 63 21 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 9D [01:20:33]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 12 63 21 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 [01:20:33]wFMCommunicate OK [01:20:33]wFMCommunicate request_size=4 [01:20:33]MH_SAM_APDU [01:20:33]CAPDU: 80 17 00 00 [01:20:33]Write to MH i2c: E2 08 00 B8 1A 80 17 00 00 00 00 00 00 52 [01:20:33]Write i2c OK [01:20:33]MH_I2C_Read... [01:20:33]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [01:20:33]Read from MH i2c: E2 [01:20:33]MH_I2C_Read... [01:20:33]Read from MH i2c: E2 FD 00 [01:20:33]MH_I2C_Read... [01:20:33]Read from MH i2c: E2 FD 00 B8 1A 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 64 [01:20:34]RAPDU: 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [01:20:34]wFMCommunicate OK [01:20:34]wFMCommunicate request_size=4 [01:20:34]MH_SAM_APDU [01:20:34]CAPDU: 80 17 00 00 [01:20:34]Write to MH i2c: E2 08 00 B9 1A 80 17 00 00 00 00 00 00 53 [01:20:34]Write i2c OK [01:20:34]MH_I2C_Read... [01:20:34]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [01:20:34]Read from MH i2c: E2 [01:20:34]MH_I2C_Read... [01:20:34]Read from MH i2c: E2 FD 00 [01:20:34]MH_I2C_Read... [01:20:34]Read from MH i2c: E2 FD 00 B9 1A 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 DF [01:20:34]RAPDU: 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [01:20:34]wFMCommunicate OK [01:20:34]wFMCommunicate request_size=4 [01:20:34]MH_SAM_APDU [01:20:34]CAPDU: 80 17 00 00 [01:20:34]Write to MH i2c: E2 08 00 BA 1A 80 17 00 00 00 00 00 00 54 [01:20:34]Write i2c OK [01:20:34]MH_I2C_Read... [01:20:35]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [01:20:35]Read from MH i2c: E2 [01:20:35]MH_I2C_Read... [01:20:35]Read from MH i2c: E2 E2 00 [01:20:35]MH_I2C_Read... [01:20:35]Read from MH i2c: E2 E2 00 BA 1A 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 32 [01:20:35]RAPDU: EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [01:20:35]wFMCommunicate OK [01:20:35]SAM_PROTO_GetFMData done [01:20:35]Malloc new data [01:20:35]Malloc new data [01:20:35]Malloc new data [01:20:35]Malloc new data [01:20:35]KKMLoadAndSignCloseShiftData err=0 [01:20:35]Отчет о закрытии смены ФФД: 1.0 ИНН: 02508201610067 Кассир: Балаев А. 03.06.2024 01:20 Смена: 323 РНМ: 0000000000098096 ЗНМ: 0300000181 СНО: Общий режим Чеков за смену: 7 ФД за смену: 9 Всего чеков: 7 ИТОГИ ПРИХОД Чеков: 7 Общий итог: 4150.39 Итого наличными: 3750.00 Итого безнал.: 400.39 НДС 0% : 0.00 НДС 12% : 440.96 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 36.74 ИТОГИ ВОЗВРАТ ПРИХОДА Чеков: 0 Общий итог: 0.00 Итого наличными: 0.00 Итого безнал.: 0.00 НДС 0% : 0.00 НДС 12% : 0.00 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 0.00 ИТОГИ РАСХОД Чеков: 0 Общий итог: 0.00 Итого наличными: 0.00 Итого безнал.: 0.00 НДС 0% : 0.00 НДС 12% : 0.00 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 0.00 ИТОГИ ВОЗВРАТ РАСХОДА Чеков: 0 Общий итог: 0.00 Итого наличными: 0.00 Итого безнал.: 0.00 НДС 0% : 0.00 НДС 12% : 0.00 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 0.00 Сумма внесений: 0.00 Сумма выплат: 0.00 Нал. в кассе: 3750.00 НС Приход: 52398767.86 НС Возвр.Прихода: 2472284.00 НС Расход: 0.00 НС Возвр.Расхода: 0.00 ФД: 68253 ФМ: 0000000000965400 ФПД: 25086373748000 [01:20:35]StoreToDocumentArchive [01:20:35]shift 323 fd 68253 [01:20:35]save to /storage/0323/doc_00068253 [01:20:35]save last doc name /storage/0323/doc_00068253 to /storage/kkm_last_doc_name [01:20:35]save OK [01:20:35]Clear old archive folders... [01:20:35]Remove dir /storage/0266 [01:20:35]opendir ok [01:20:35]file . [01:20:35]file .. [01:20:35]file doc_1717377580 [01:20:35]remove file /storage/0266/doc_1717377580 [01:20:35]remove dir /storage/0266 [01:20:35]NVStorageSaveData kkm_registers [01:20:35]File name is /storage/kkm_registers [01:20:35]Write 24 bytes [01:20:35]NVStorageSaveData done [01:20:35]NVStorageSaveData kkm_registers [01:20:35]File name is /storage/kkm_registers [01:20:35]Write 24 bytes [01:20:35]NVStorageSaveData done [01:20:35]ProcessDocumentItem done err = 0, tmpTLVsize=1373 [01:20:35]tlvbuf is 005B8950 [01:20:35]SAM_PROTO_ClearQueue [01:20:35]wFMCommunicate request_size=4 [01:20:35]MH_SAM_APDU [01:20:35]CAPDU: 80 09 00 00 [01:20:35]Write to MH i2c: E2 08 00 BB 1A 80 09 00 00 00 00 00 00 47 [01:20:35]Write i2c OK [01:20:35]MH_I2C_Read... [01:20:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:20:35]Read from MH i2c: E2 [01:20:35]MH_I2C_Read... [01:20:35]Read from MH i2c: E2 03 00 [01:20:35]MH_I2C_Read... [01:20:35]Read from MH i2c: E2 03 00 BB 1A 00 90 00 49 [01:20:35]RAPDU: 90 00 [01:20:35]wFMCommunicate OK [01:20:35]SAM_PROTO_ClearQueue done [01:20:35]KKMCreateOFDPacket [01:20:35]OFDProtocolAddRootSTLVToBuf [01:20:35]FM_MakeSignedData [01:20:35]FM_MakeSignedData [01:20:35]SAM_PROTO_SignData [01:20:35]wFMCommunicate request_size=4 [01:20:35]MH_SAM_APDU [01:20:35]CAPDU: 80 0D 01 02 [01:20:35]Write to MH i2c: E2 08 00 BC 1A 80 0D 01 02 00 00 00 00 4F [01:20:35]Write i2c OK [01:20:35]MH_I2C_Read... [01:20:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:20:35]Read from MH i2c: E2 [01:20:35]MH_I2C_Read... [01:20:35]Read from MH i2c: E2 03 00 [01:20:35]MH_I2C_Read... [01:20:35]Read from MH i2c: E2 03 00 BC 1A 00 90 00 4A [01:20:35]RAPDU: 90 00 [01:20:35]wFMCommunicate OK [01:20:35]wFMCommunicate request_size=255 [01:20:35]MH_SAM_APDU [01:20:35]CAPDU: 80 0D 02 02 FA 05 00 5D 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 11 00 D0 91 D0 B0 D0 BB D0 B0 D0 B5 D0 B2 20 D0 90 2E 20 F4 03 04 00 5D 1A 5D 66 0E 04 04 00 43 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 5E 04 04 00 07 00 00 00 57 04 04 00 09 00 00 00 AA 04 D3 04 6E 04 04 00 07 00 00 00 69 04 A0 00 6F 04 04 00 07 00 00 00 B1 04 03 00 3F 55 06 70 04 03 00 D8 B8 05 72 04 02 00 67 9C 00 04 80 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 40 AC 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 [01:20:35]Write to MH i2c: E2 02 01 BD 1A 80 0D 02 02 FA 00 05 00 5D 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 11 00 D0 91 D0 B0 D0 BB D0 B0 D0 B5 D0 B2 20 D0 90 2E 20 F4 03 04 00 5D 1A 5D 66 0E 04 04 00 43 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 5E 04 04 00 07 00 00 00 57 04 04 00 09 00 00 00 AA 04 D3 04 6E 04 04 00 07 00 00 00 69 04 A0 00 6F 04 04 00 07 00 00 00 B1 04 03 00 3F 55 06 70 04 03 00 D8 B8 05 72 04 02 00 67 9C 00 04 80 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 40 AC 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 00 20 [01:20:36]OFD Sender: No OFD packet to send [01:20:36]Write i2c OK [01:20:36]MH_I2C_Read... [01:20:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:20:36]Read from MH i2c: E2 [01:20:36]MH_I2C_Read... [01:20:36]Read from MH i2c: E2 03 00 [01:20:36]MH_I2C_Read... [01:20:36]Read from MH i2c: E2 03 00 BD 1A 00 90 00 4B [01:20:36]RAPDU: 90 00 [01:20:36]wFMCommunicate OK [01:20:36]wFMCommunicate request_size=255 [01:20:36]MH_SAM_APDU [01:20:36]CAPDU: 80 0D 02 02 FA 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 5A 0E 6A 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6B 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 [01:20:36]Write to MH i2c: E2 02 01 BE 1A 80 0D 02 02 FA 00 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 5A 0E 6A 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6B 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 00 23 [01:20:36]Write i2c OK [01:20:36]MH_I2C_Read... [01:20:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:20:37]Read from MH i2c: E2 [01:20:37]MH_I2C_Read... [01:20:37]Read from MH i2c: E2 03 00 [01:20:37]MH_I2C_Read... [01:20:37]Read from MH i2c: E2 03 00 BE 1A 00 90 00 4C [01:20:37]RAPDU: 90 00 [01:20:37]wFMCommunicate OK [01:20:37]wFMCommunicate request_size=255 [01:20:37]MH_SAM_APDU [01:20:37]CAPDU: 80 0D 02 02 FA 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 [01:20:37]Write to MH i2c: E2 02 01 BF 1A 80 0D 02 02 FA 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 00 00 DC [01:20:37]Write i2c OK [01:20:37]MH_I2C_Read... [01:20:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:20:37]Read from MH i2c: E2 [01:20:37]MH_I2C_Read... [01:20:37]Read from MH i2c: E2 03 00 [01:20:37]MH_I2C_Read... [01:20:37]Read from MH i2c: E2 03 00 BF 1A 00 90 00 4D [01:20:37]RAPDU: 90 00 [01:20:37]wFMCommunicate OK [01:20:37]wFMCommunicate request_size=255 [01:20:37]MH_SAM_APDU [01:20:37]CAPDU: 80 0D 02 02 FA 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [01:20:37]Write to MH i2c: E2 02 01 C0 1A 80 0D 02 02 FA 00 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 00 57 [01:20:38]Write i2c OK [01:20:38]MH_I2C_Read... [01:20:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:20:38]Read from MH i2c: E2 [01:20:38]MH_I2C_Read... [01:20:38]Read from MH i2c: E2 03 00 [01:20:38]MH_I2C_Read... [01:20:38]Read from MH i2c: E2 03 00 C0 1A 00 90 00 4E [01:20:38]RAPDU: 90 00 [01:20:38]wFMCommunicate OK [01:20:38]wFMCommunicate request_size=255 [01:20:38]MH_SAM_APDU [01:20:38]CAPDU: 80 0D 02 02 FA 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 [01:20:38]Write to MH i2c: E2 02 01 C1 1A 80 0D 02 02 FA 00 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 00 00 D2 [01:20:38]Write i2c OK [01:20:38]MH_I2C_Read... [01:20:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:20:39]Read from MH i2c: E2 [01:20:39]MH_I2C_Read... [01:20:39]Read from MH i2c: E2 03 00 [01:20:39]MH_I2C_Read... [01:20:39]Read from MH i2c: E2 03 00 C1 1A 00 90 00 4F [01:20:39]RAPDU: 90 00 [01:20:39]wFMCommunicate OK [01:20:39]wFMCommunicate request_size=132 [01:20:39]MH_SAM_APDU [01:20:39]CAPDU: 80 0D 02 02 7F 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9D 0A 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 35 04 06 00 16 D0 E0 65 5D 20 [01:20:39]Write to MH i2c: E2 87 00 C2 1A 80 0D 02 02 7F 00 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9D 0A 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 35 04 06 00 16 D0 E0 65 5D 20 00 00 E4 [01:20:39]Write i2c OK [01:20:39]MH_I2C_Read... [01:20:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:20:39]Read from MH i2c: E2 [01:20:39]MH_I2C_Read... [01:20:39]Read from MH i2c: E2 03 00 [01:20:39]MH_I2C_Read... [01:20:39]Read from MH i2c: E2 03 00 C2 1A 00 90 00 50 [01:20:39]RAPDU: 90 00 [01:20:39]wFMCommunicate OK [01:20:39]wFMCommunicate request_size=4 [01:20:39]MH_SAM_APDU [01:20:39]CAPDU: 80 0D 03 02 [01:20:39]Write to MH i2c: E2 08 00 C3 1A 80 0D 03 02 00 00 00 00 58 [01:20:39]Write i2c OK [01:20:39]MH_I2C_Read... [01:20:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:20:39]Read from MH i2c: E2 [01:20:39]MH_I2C_Read... [01:20:39]Read from MH i2c: E2 0B 00 [01:20:39]MH_I2C_Read... [01:20:39]Read from MH i2c: E2 0B 00 C3 1A 00 57 27 91 5E D1 9E 85 9D 90 00 57 [01:20:39]RAPDU: 57 27 91 5E D1 9E 85 9D 90 00 [01:20:39]wFMCommunicate OK [01:20:39]SAM_PROTO_SignData done [01:20:39]FM_MakeSignedData done [01:20:39]CreateOFDProtocolMessage [01:20:39]wFMCommunicate request_size=4 [01:20:39]MH_SAM_APDU [01:20:39]CAPDU: 80 11 00 00 [01:20:39]Write to MH i2c: E2 08 00 C4 1A 80 11 00 00 00 00 00 00 58 [01:20:39]Write i2c OK [01:20:39]MH_I2C_Read... [01:20:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:20:39]Read from MH i2c: E2 [01:20:39]MH_I2C_Read... [01:20:39]Read from MH i2c: E2 17 00 [01:20:39]MH_I2C_Read... [01:20:39]Read from MH i2c: E2 17 00 C4 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 A3 [01:20:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [01:20:39]wFMCommunicate OK [01:20:39]CreateOFDProtocolMessage done [01:20:39]OFDSenderStorePacket 68253 [01:20:39]StoreOFDPacket docnum=68253 [01:20:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 71 05 00 00 05 7D 69 05 4F 80 5A 05 01 00 05 00 5D 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 11 00 D0 91 D0 B0 D0 BB D0 B0 D0 B5 D0 B2 20 D0 90 2E 20 F4 03 04 00 5D 1A 5D 66 0E 04 04 00 43 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 5E 04 04 00 07 00 00 00 57 04 04 00 09 00 00 00 AA 04 D3 04 6E 04 04 00 07 00 00 00 69 04 A0 00 6F 04 04 00 07 00 00 00 B1 04 03 00 3F 55 06 70 04 03 00 D8 B8 05 72 04 02 00 67 9C 00 04 80 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 40 AC 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 5A 0E 6A 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6B 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6C 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 10 04 04 00 9D 0A 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 35 04 06 00 16 D0 E0 65 5D 20 57 27 91 5E D1 9E 85 9D [01:20:39]CheckFolder [01:20:39]dirname=/storage/ofd_packets [01:20:39]CheckFolder done [01:20:39]ProducePacketName [01:20:39]name=ofd_packets/00068253 [01:20:39]NVStorageSaveData ofd_packets/00068253 [01:20:39]File name is /storage/ofd_packets/00068253 [01:20:39]Write 1423 bytes [01:20:39]NVStorageSaveData done [01:20:39]OFDSenderStorePacket done [01:20:39]KKMCreateOFDPacket done [01:20:39]NVStorageSaveData kkm_last_timestamp [01:20:39]File name is /storage/kkm_last_timestamp [01:20:39]Write 4 bytes [01:20:39]NVStorageSaveData done [01:20:39]ExternCall_PrintAddStr [01:20:39]wPrintStart [01:20:39]Write to MH i2c: 01 00 00 C5 1A DF [01:20:39]Write i2c OK [01:20:39]MH_I2C_Read... [01:20:39]Read from MH i2c: 01 [01:20:39]MH_I2C_Read... [01:20:39]Read from MH i2c: 01 07 00 [01:20:39]MH_I2C_Read... [01:20:39]Read from MH i2c: 01 07 00 C5 1A 00 00 00 00 00 FF 0F F4 [01:20:39]RasterBufferAndPrint [01:20:39]line Отчет о закрытии смены [01:20:39]line ФФД: 1.0 [01:20:39]line ИНН: 02508201610067 [01:20:39]line Кассир: Балаев А. [01:20:39]line 03.06.2024 01:20 [01:20:39]line Смена: 323 [01:20:39]line РНМ: 0000000000098096 [01:20:39]line ЗНМ: 0300000181 [01:20:39]line СНО: Общий режим [01:20:39]line Чеков за смену: 7 [01:20:39]line ФД за смену: 9 [01:20:39]line Всего чеков: 7 [01:20:39]line ИТОГИ ПРИХОД [01:20:39]line Чеков: 7 [01:20:39]line Общий итог: 4150.39 [01:20:39]line Итого наличными: 3750.00 [01:20:39]line Итого безнал.: 400.39 [01:20:39]line НДС 0% : 0.00 [01:20:39]line НДС 12% : 440.96 [01:20:39]line НСП 0% : 0.00 [01:20:39]line НСП 1,50% : 0.00 [01:20:40]line НСП 0,50% : 0.00 [01:20:40]line НСП 5% : 0.00 [01:20:40]line НСП 3% : 0.00 [01:20:40]line НСП 2% : 0.00 [01:20:40]line НСП 1% : 36.74 [01:20:40]line ИТОГИ ВОЗВРАТ ПРИХОДА [01:20:40]line Чеков: 0 [01:20:40]line Общий итог: 0.00 [01:20:40]line Итого наличными: 0.00 [01:20:40]line Итого безнал.: 0.00 [01:20:40]line НДС 0% : 0.00 [01:20:40]line НДС 12% : 0.00 [01:20:40]line НСП 0% : 0.00 [01:20:40]line НСП 1,50% : 0.00 [01:20:40]line НСП 0,50% : 0.00 [01:20:40]line НСП 5% : 0.00 [01:20:40]line НСП 3% : 0.00 [01:20:40]line НСП 2% : 0.00 [01:20:40]line НСП 1% : 0.00 [01:20:40]line ИТОГИ РАСХОД [01:20:40]line Чеков: 0 [01:20:40]line Общий итог: 0.00 [01:20:40]line Итого наличными: 0.00 [01:20:40]line Итого безнал.: 0.00 [01:20:40]line НДС 0% : 0.00 [01:20:40]line НДС 12% : 0.00 [01:20:40]line НСП 0% : 0.00 [01:20:40]line НСП 1,50% : 0.00 [01:20:40]line НСП 0,50% : 0.00 [01:20:40]line НСП 5% : 0.00 [01:20:40]line НСП 3% : 0.00 [01:20:40]line НСП 2% : 0.00 [01:20:40]line НСП 1% : 0.00 [01:20:40]line ИТОГИ ВОЗВРАТ РАСХОДА [01:20:40]line Чеков: 0 [01:20:40]line Общий итог: 0.00 [01:20:40]line Итого наличными: 0.00 [01:20:40]line Итого безнал.: 0.00 [01:20:40]line НДС 0% : 0.00 [01:20:40]line НДС 12% : 0.00 [01:20:40]line НСП 0% : 0.00 [01:20:40]line НСП 1,50% : 0.00 [01:20:40]line НСП 0,50% : 0.00 [01:20:40]line НСП 5% : 0.00 [01:20:40]line НСП 3% : 0.00 [01:20:40]line НСП 2% : 0.00 [01:20:40]line НСП 1% : 0.00 [01:20:40]line Сумма внесений: 0.00 [01:20:40]line Сумма выплат: 0.00 [01:20:40]line Нал. в кассе: 3750.00 [01:20:40]line НС Приход: 52398767.86 [01:20:40]line НС Возвр.Прихода: 2472284.00 [01:20:40]line НС Расход: 0.00 [01:20:40]line НС Возвр.Расхода: 0.00 [01:20:40]line ФД: 68253 [01:20:40]line ФМ: 0000000000965400 [01:20:40]line ФПД: 25086373748000 [01:20:40]OFD Sender: Processing packet 68253 [packets to send 26, broken 25] [01:20:40]ProducePacketName [01:20:40]name=ofd_packets/00068253 [01:20:40]OFD Sender: To server: pG, [01:20:40]CommunicateWithHost lk.salyk.kg:30040 [01:20:40]ConnectInit lk.salyk.kg [01:20:40]written 0, free lines is 4095 [01:20:40]Connected sock=10 [01:20:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 71 05 00 00 05 7D 69 05 4F 80 5A 05 01 00 05 00 5D 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 11 00 D0 91 D0 B0 D0 BB D0 B0 D0 B5 D0 B2 20 D0 90 2E 20 F4 03 04 00 5D 1A 5D 66 0E 04 04 00 43 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 5E 04 04 00 07 00 00 00 57 04 04 00 09 00 00 00 AA 04 D3 04 6E 04 04 00 07 00 00 00 69 04 A0 00 6F 04 04 00 07 00 00 00 B1 04 03 00 3F 55 06 70 04 03 00 D8 B8 05 72 04 02 00 67 9C 00 04 80 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 40 AC 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 5A 0E 6A 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6B 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6C 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6D 04 4C 02 78 04 04 00 00 Write to MH i2c: 00 01 00 00 00 00 79 15 04 1B 30 8D [01:20:40]00 6F Write i2c OK [01:20:40]04 MH_I2C_Read... [01:20:40]04 Read from MH i2c: 00 01 00 [01:20:40]00 MH_I2C_Read... [01:20:40]00 00 B1 04 00 00 70 04 00 00 72 Read from MH i2c: 04 01 00 07 00 00 00 [01:20:40]04 MH_I2C_Read... [01:20:40]75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 Read from MH i2c: EE 01 03 07 09 00 00 15 F2 1B 03 00 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 00 00 00 F7 00 03 BE 00 0A FF 00 [01:20:40]EF RasterBufferAndPrint [01:20:40]03 line [01:20:40]09 line [01:20:40]00 line [01:20:40]F6 line [01:20:40]03 line [01:20:41]01 00 01 written 0, free lines is 2912 [01:20:41]F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 MH_Cut [01:20:41]EF Write to MH i2c: 03 D1 09 01 00 00 F6 1C 03 1B 01 01 00 03 09 F7 [01:20:41]03 00 00 EF 03 09 00 F6 03 01 00 04 Write i2c OK [01:20:41]F7 MH_I2C_Read... [01:20:41]03 Read from MH i2c: 00 D1 00 [01:20:41]EF MH_I2C_Read... [01:20:41]03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 Read from MH i2c: 00 D1 F6 01 03 00 01 [01:20:41]00 MH_I2C_Read... [01:20:41]06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 Read from MH i2c: 00 D1 00 01 B1 00 04 1C 00 1B 00 00 70 08 04 [01:20:41]00 Write to MH i2c: 00 01 72 00 04 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 1D F3 1B 03 38 00 [01:20:41]00 EF Write i2c OK [01:20:41]03 MH_I2C_Read... [01:20:41]09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9D 0A 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 35 04 06 00 16 D0 E0 65 5D 20 57 27 91 5E D1 9E 85 9D [01:20:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 99 FB 47 00 35 B5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 9D 0A 01 00 F4 03 04 00 67 C1 5C 66 B6 04 01 00 00 B6 10 2A CC 36 8A F2 86 [01:20:41]CommunicateWithHost err = 0 [01:20:41]CheckOFDResponse [01:20:41]1017 (14) - 77093643461234 [01:20:41]1041 (16) - 0000000000965400 [01:20:41]1040 (4) - 68253 [01:20:41]1012 (4) - 02.06.2024 19:00 [01:20:41]1206 (1) - 0 [01:20:41]OFD Sender: Remove packet 68253 [01:20:41]ProducePacketName [01:20:41]name=ofd_packets/00068253 [01:20:41]NVStorageDeleteData [01:20:41]*** Cut start [01:20:41]*** Partial cut [01:20:41]*** CUTSNS_PIN = 1 [01:20:42]*** CUTSNS_PIN = 0 [01:20:42]OFD Sender: No OFD packet to send [01:20:42]*** Brake cut motor [01:20:42]Read from MH i2c: 01 [01:20:42]MH_I2C_Read... [01:20:42]*** Stop cut motor [01:20:42]*** Cut end [01:20:42]Read from MH i2c: 01 07 00 [01:20:42]MH_I2C_Read... [01:20:42]Read from MH i2c: 01 07 00 1D 1B 00 00 00 00 00 FF 0F 4D [01:20:42]process_action close_shift done [01:20:42]requested_data is exist [01:20:42]produce_requested_data [01:20:42]requested_item fd.num is exist - process it [01:20:42]SAM_PROTO_GetFieldsCounters [01:20:42]wFMCommunicate request_size=4 [01:20:42]MH_SAM_APDU [01:20:42]CAPDU: 80 13 00 00 [01:20:42]Write to MH i2c: E2 08 00 1E 1B 80 13 00 00 00 00 00 00 B5 [01:20:42]Write i2c OK [01:20:42]MH_I2C_Read... [01:20:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:20:42]Read from MH i2c: E2 [01:20:42]MH_I2C_Read... [01:20:42]Read from MH i2c: E2 62 00 [01:20:42]MH_I2C_Read... [01:20:42]Read from MH i2c: E2 62 00 1E 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 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 9D 0A 01 00 0E 04 04 00 43 01 00 00 12 04 04 00 07 00 00 00 5E 04 04 00 07 00 00 00 57 04 04 00 09 00 00 00 19 04 04 00 00 00 00 00 90 00 D7 [01:20: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 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 9D 0A 01 00 0E 04 04 00 43 01 00 00 12 04 04 00 07 00 00 00 5E 04 04 00 07 00 00 00 57 04 04 00 09 00 00 00 19 04 04 00 00 00 00 00 90 00 [01:20:42]wFMCommunicate OK [01:20:42]SAM_PROTO_GetFieldsCounters done [01:20:42]requested_item shift.num is exist - process it [01:20:42]requested_item shift.opened is exist - process it [01:20:42]req_shift_opened [01:20:42]FM_GetShiftState [01:20:42]SAM_PROTO_GetShiftState [01:20:42]wFMCommunicate request_size=4 [01:20:42]MH_SAM_APDU [01:20:42]CAPDU: 80 13 01 00 [01:20:42]Write to MH i2c: E2 08 00 1F 1B 80 13 01 00 00 00 00 00 B7 [01:20:42]Write i2c OK [01:20:42]MH_I2C_Read... [01:20:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:20:43]Read from MH i2c: E2 [01:20:43]MH_I2C_Read... [01:20:43]Read from MH i2c: E2 0E 00 [01:20:43]MH_I2C_Read... [01:20:43]Read from MH i2c: E2 0E 00 1F 1B 00 09 00 00 00 00 00 00 00 00 00 00 90 00 C2 [01:20:43]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [01:20:43]wFMCommunicate OK [01:20:43]SAM_PROTO_GetShiftState done [01:20:43]FM_GetShiftState done [01:20:43]req_shift_opened done [01:20:43]requested_item shift.open_date is exist - process it [01:20:43]req_shift_open_date [01:20:43]FM_GetShiftState [01:20:43]SAM_PROTO_GetShiftState [01:20:43]wFMCommunicate request_size=4 [01:20:43]MH_SAM_APDU [01:20:43]CAPDU: 80 13 01 00 [01:20:43]Write to MH i2c: E2 08 00 20 1B 80 13 01 00 00 00 00 00 B8 [01:20:43]Write i2c OK [01:20:43]MH_I2C_Read... [01:20:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:20:43]Read from MH i2c: E2 [01:20:43]MH_I2C_Read... [01:20:43]Read from MH i2c: E2 0E 00 [01:20:43]MH_I2C_Read... [01:20:43]Read from MH i2c: E2 0E 00 20 1B 00 09 00 00 00 00 00 00 00 00 00 00 90 00 C3 [01:20:43]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [01:20:43]wFMCommunicate OK [01:20:43]SAM_PROTO_GetShiftState done [01:20:43]FM_GetShiftState done [01:20:43]req_shift_open_date done [01:20:43]produce_requested_data done [01:20:43]produce_requested_data return {"fd.num":68253,"shift.num":323,"shift.opened":0,"shift.open_date":0} [01:20:43]process_action_free close_shift [01:20:43]json_value_free [01:20:43]json_value_free done [01:20:43]process_json_proto returns [01:20:43]Send response to host [01:20:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":68253,"shift.num":323,"shift.opened":0,"shift.open_date":0}}} [01:20:43]free response buf [01:20:43]execute_script done [01:20:43]execute_script returns [01:20:43]free content buf [01:20:43]Sock 9.Close socket [01:20:43]Sock 9.Thread stoped [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:07]accept exits with 7 [01:27:07]New connection [01:27:07]New thread 3066543460 created [01:27:07]Thread 3066686820 joined [01:27:07]Waiting for new connection... [01:27:07] Sock 7.Parse request [01:27:07]Sock 7.Check first char [01:27:07]Sock 7.First char is OK [01:27:07]request: POST /json_proto HTTP/1.0 [01:27:07]Method: POST [01:27:07]URL: /json_proto [01:27:07]Method is POST - this is cgi request [01:27:07]url: /json_proto [01:27:07]query_string will be loaded in cgi processing [01:27:07]execute_cgi json_proto POST (null) [01:27:07]execute_cgi path=json_proto method=POST [01:27:07]POST find Content-Length [01:27:07]Host: 172.17.36.132:8080 [01:27:07]Content-Length: 215 [01:27:07]Content-Type: application/json [01:27:07] [01:27:07]POST finish read [01:27:07]Found Content-Length = 215 [01:27:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:27:07]execute_script... [01:27:07]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:27:07]POST & json_proto [01:27:07]process_json_proto [01:27:07]json parsed OK: [01:27:07]protocol is kg_v1.0 [01:27:07]action value=get_value [01:27:07]process_action get_value [01:27:07]cmd_get_value [01:27:07]process_action get_value done [01:27:07]requested_data is exist [01:27:07]produce_requested_data [01:27:07]requested_item kkm.sn is exist - process it [01:27:07]requested_item kkm.ver is exist - process it [01:27:07]requested_item fm.sn is exist - process it [01:27:07]wFMCommunicate request_size=4 [01:27:07]MH_SAM_APDU [01:27:07]CAPDU: 80 11 00 00 [01:27:07]Write to MH i2c: E2 08 00 21 1B 80 11 00 00 00 00 00 00 B6 [01:27:07]Write i2c OK [01:27:07]MH_I2C_Read... [01:27:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:27:07]Read from MH i2c: E2 [01:27:07]MH_I2C_Read... [01:27:07]Read from MH i2c: E2 17 00 [01:27:07]MH_I2C_Read... [01:27:07]Read from MH i2c: E2 17 00 21 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 01 [01:27:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [01:27:07]wFMCommunicate OK [01:27:07]requested_item fd.num is exist - process it [01:27:07]SAM_PROTO_GetFieldsCounters [01:27:07]wFMCommunicate request_size=4 [01:27:07]MH_SAM_APDU [01:27:07]CAPDU: 80 13 00 00 [01:27:07]Write to MH i2c: E2 08 00 22 1B 80 13 00 00 00 00 00 00 B9 [01:27:07]Write i2c OK [01:27:07]MH_I2C_Read... [01:27:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:27:07]Read from MH i2c: E2 [01:27:07]MH_I2C_Read... [01:27:07]Read from MH i2c: E2 62 00 [01:27:07]MH_I2C_Read... [01:27:07]Read from MH i2c: E2 62 00 22 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 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 9D 0A 01 00 0E 04 04 00 43 01 00 00 12 04 04 00 07 00 00 00 5E 04 04 00 07 00 00 00 57 04 04 00 09 00 00 00 19 04 04 00 00 00 00 00 90 00 DB [01:27: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 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 9D 0A 01 00 0E 04 04 00 43 01 00 00 12 04 04 00 07 00 00 00 5E 04 04 00 07 00 00 00 57 04 04 00 09 00 00 00 19 04 04 00 00 00 00 00 90 00 [01:27:07]wFMCommunicate OK [01:27:07]SAM_PROTO_GetFieldsCounters done [01:27:07]requested_item shift.num is exist - process it [01:27:07]requested_item shift.opened is exist - process it [01:27:07]req_shift_opened [01:27:07]FM_GetShiftState [01:27:07]SAM_PROTO_GetShiftState [01:27:07]wFMCommunicate request_size=4 [01:27:07]MH_SAM_APDU [01:27:07]CAPDU: 80 13 01 00 [01:27:07]Write to MH i2c: E2 08 00 23 1B 80 13 01 00 00 00 00 00 BB [01:27:07]Write i2c OK [01:27:07]MH_I2C_Read... [01:27:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:27:07]Read from MH i2c: E2 [01:27:07]MH_I2C_Read... [01:27:07]Read from MH i2c: E2 0E 00 [01:27:07]MH_I2C_Read... [01:27:07]Read from MH i2c: E2 0E 00 23 1B 00 09 00 00 00 00 00 00 00 00 00 00 90 00 C6 [01:27:07]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [01:27:07]wFMCommunicate OK [01:27:07]SAM_PROTO_GetShiftState done [01:27:07]FM_GetShiftState done [01:27:07]req_shift_opened done [01:27:07]requested_item shift.open_date is exist - process it [01:27:07]req_shift_open_date [01:27:07]FM_GetShiftState [01:27:07]SAM_PROTO_GetShiftState [01:27:07]wFMCommunicate request_size=4 [01:27:07]MH_SAM_APDU [01:27:07]CAPDU: 80 13 01 00 [01:27:07]Write to MH i2c: E2 08 00 24 1B 80 13 01 00 00 00 00 00 BC [01:27:07]Write i2c OK [01:27:07]MH_I2C_Read... [01:27:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:27:07]Read from MH i2c: E2 [01:27:07]MH_I2C_Read... [01:27:07]Read from MH i2c: E2 0E 00 [01:27:07]MH_I2C_Read... [01:27:07]Read from MH i2c: E2 0E 00 24 1B 00 09 00 00 00 00 00 00 00 00 00 00 90 00 C7 [01:27:07]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [01:27:07]wFMCommunicate OK [01:27:07]SAM_PROTO_GetShiftState done [01:27:07]FM_GetShiftState done [01:27:07]req_shift_open_date done [01:27:07]produce_requested_data done [01:27:07]produce_requested_data return {"kkm.sn":"0300000181","kkm.ver":"001","fm.sn":"0000000000965400","fd.num":68253,"shift.num":323,"shift.opened":0,"shift.open_date":0} [01:27:07]process_action_free get_value [01:27:07]json_value_free [01:27:07]json_value_free done [01:27:07]process_json_proto returns [01:27:07]Send response to host [01:27:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000181","kkm.ver":"001","fm.sn":"0000000000965400","fd.num":68253,"shift.num":323,"shift.opened":0,"shift.open_date":0}}} [01:27:07]free response buf [01:27:07]execute_script done [01:27:07]execute_script returns [01:27:07]free content buf [01:27:07]Sock 7.Close socket [01:27:07]Sock 7.Thread stoped [01:27:07]accept exits with 9 [01:27:07]New connection [01:27:07]New thread 3066686820 created [01:27:07]Thread 3066543460 joined [01:27:07]Waiting for new connection... [01:27:07] Sock 9.Parse request [01:27:07]Sock 9.Check first char [01:27:07]Sock 9.First char is OK [01:27:07]request: POST /json_proto HTTP/1.0 [01:27:07]Method: POST [01:27:07]URL: /json_proto [01:27:07]Method is POST - this is cgi request [01:27:07]url: /json_proto [01:27:07]query_string will be loaded in cgi processing [01:27:07]execute_cgi json_proto POST (null) [01:27:07]execute_cgi path=json_proto method=POST [01:27:07]POST find Content-Length [01:27:07]Host: 172.17.36.132:8080 [01:27:07]Content-Length: 331 [01:27:07]Content-Type: application/json [01:27:07] [01:27:07]POST finish read [01:27:07]Found Content-Length = 331 [01:27:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [01:27:07]execute_script... [01:27:08]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [01:27:08]POST & json_proto [01:27:08]process_json_proto [01:27:08]json parsed OK: [01:27:08]protocol is kg_v1.0 [01:27:08]action value=get_value [01:27:08]process_action get_value [01:27:08]cmd_get_value [01:27:08]process_action get_value done [01:27:08]requested_data is exist [01:27:08]produce_requested_data [01:27:08]requested_item fm.sale.total is exist - process it [01:27:08]SAM_PROTO_GetFMData [01:27:08]wFMCommunicate request_size=4 [01:27:08]MH_SAM_APDU [01:27:08]CAPDU: 80 13 03 00 [01:27:08]Write to MH i2c: E2 08 00 25 1B 80 13 03 00 00 00 00 00 BF [01:27:08]Write i2c OK [01:27:08]MH_I2C_Read... [01:27:08]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [01:27:08]Read from MH i2c: E2 [01:27:08]MH_I2C_Read... [01:27:08]Read from MH i2c: E2 FD 00 [01:27:08]MH_I2C_Read... [01:27:08]Read from MH i2c: E2 FD 00 25 1B 00 C5 04 85 04 C1 04 6E 04 04 00 16 08 01 00 69 04 A3 00 6F 04 04 00 0B 03 01 00 B1 04 05 00 B2 2C 52 38 01 70 04 05 00 44 9F F6 0B 01 72 04 04 00 6E 8D 5B 2C 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 C0 4F 2D 21 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 62 AD C3 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 9C 00 6F 04 04 00 0B 05 00 00 B1 04 04 00 F0 67 BC 0E 70 04 04 00 F0 67 BC 0E 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 3E AA 90 01 EF 03 09 90 00 DD [01:27:08]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 16 08 01 00 69 04 A3 00 6F 04 04 00 0B 03 01 00 B1 04 05 00 B2 2C 52 38 01 70 04 05 00 44 9F F6 0B 01 72 04 04 00 6E 8D 5B 2C 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 C0 4F 2D 21 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 62 AD C3 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 9C 00 6F 04 04 00 0B 05 00 00 B1 04 04 00 F0 67 BC 0E 70 04 04 00 F0 67 BC 0E 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 3E AA 90 01 EF 03 09 90 00 [01:27:08]wFMCommunicate OK [01:27:08]wFMCommunicate request_size=4 [01:27:08]MH_SAM_APDU [01:27:08]CAPDU: 80 17 00 00 [01:27:08]Write to MH i2c: E2 08 00 26 1B 80 17 00 00 00 00 00 00 C1 [01:27:08]Write i2c OK [01:27:08]MH_I2C_Read... [01:27:08]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [01:27:08]Read from MH i2c: E2 [01:27:08]MH_I2C_Read... [01:27:08]Read from MH i2c: E2 FD 00 [01:27:08]MH_I2C_Read... [01:27:08]Read from MH i2c: E2 FD 00 26 1B 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 12 63 21 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 0D [01:27:09]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 12 63 21 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 [01:27:09]wFMCommunicate OK [01:27:09]wFMCommunicate request_size=4 [01:27:09]MH_SAM_APDU [01:27:09]CAPDU: 80 17 00 00 [01:27:09]Write to MH i2c: E2 08 00 27 1B 80 17 00 00 00 00 00 00 C2 [01:27:09]Write i2c OK [01:27:09]MH_I2C_Read... [01:27:09]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [01:27:09]Read from MH i2c: E2 [01:27:09]MH_I2C_Read... [01:27:09]Read from MH i2c: E2 FD 00 [01:27:09]MH_I2C_Read... [01:27:09]Read from MH i2c: E2 FD 00 27 1B 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 D4 [01:27:09]RAPDU: 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [01:27:09]wFMCommunicate OK [01:27:09]wFMCommunicate request_size=4 [01:27:09]MH_SAM_APDU [01:27:09]CAPDU: 80 17 00 00 [01:27:09]Write to MH i2c: E2 08 00 28 1B 80 17 00 00 00 00 00 00 C3 [01:27:09]Write i2c OK [01:27:09]MH_I2C_Read... [01:27:09]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [01:27:09]Read from MH i2c: E2 [01:27:09]MH_I2C_Read... [01:27:09]Read from MH i2c: E2 FD 00 [01:27:09]MH_I2C_Read... [01:27:09]Read from MH i2c: E2 FD 00 28 1B 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 4F [01:27:09]RAPDU: 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [01:27:09]wFMCommunicate OK [01:27:09]wFMCommunicate request_size=4 [01:27:09]MH_SAM_APDU [01:27:09]CAPDU: 80 17 00 00 [01:27:09]Write to MH i2c: E2 08 00 29 1B 80 17 00 00 00 00 00 00 C4 [01:27:09]Write i2c OK [01:27:09]MH_I2C_Read... [01:27:09]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [01:27:09]Read from MH i2c: E2 [01:27:09]MH_I2C_Read... [01:27:09]Read from MH i2c: E2 E2 00 [01:27:09]MH_I2C_Read... [01:27:09]Read from MH i2c: E2 E2 00 29 1B 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [01:27:09]RAPDU: EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [01:27:09]wFMCommunicate OK [01:27:09]SAM_PROTO_GetFMData done [01:27:09]requested_item fm.sale_refund.total is exist - process it [01:27:09]requested_item fm.buy.total is exist - process it [01:27:09]requested_item shift.sale.total is exist - process it [01:27:09]SAM_PROTO_GetShiftData [01:27:09]wFMCommunicate request_size=4 [01:27:09]MH_SAM_APDU [01:27:09]CAPDU: 80 13 02 00 [01:27:09]Write to MH i2c: E2 08 00 2A 1B 80 13 02 00 00 00 00 00 C3 [01:27:09]Write i2c OK [01:27:09]MH_I2C_Read... [01:27:10]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [01:27:10]Read from MH i2c: E2 [01:27:10]MH_I2C_Read... [01:27:10]Read from MH i2c: E2 FD 00 [01:27:10]MH_I2C_Read... [01:27:10]Read from MH i2c: E2 FD 00 2A 1B 00 AC 04 AA 04 A8 04 6E 04 04 00 07 00 00 00 69 04 99 00 6F 04 04 00 07 00 00 00 B1 04 03 00 3F 55 06 70 04 03 00 D8 B8 05 72 04 02 00 67 9C 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 40 AC 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 5A 0E EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 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 90 00 11 [01:27:10]RAPDU: AC 04 AA 04 A8 04 6E 04 04 00 07 00 00 00 69 04 99 00 6F 04 04 00 07 00 00 00 B1 04 03 00 3F 55 06 70 04 03 00 D8 B8 05 72 04 02 00 67 9C 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 40 AC 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 5A 0E EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 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 90 00 [01:27:10]wFMCommunicate OK [01:27:10]wFMCommunicate request_size=4 [01:27:10]MH_SAM_APDU [01:27:10]CAPDU: 80 17 00 00 [01:27:10]Write to MH i2c: E2 08 00 2B 1B 80 17 00 00 00 00 00 00 C6 [01:27:10]Write i2c OK [01:27:10]MH_I2C_Read... [01:27:10]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [01:27:10]Read from MH i2c: E2 [01:27:10]MH_I2C_Read... [01:27:10]Read from MH i2c: E2 FD 00 [01:27:10]MH_I2C_Read... [01:27:10]Read from MH i2c: E2 FD 00 2B 1B 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 DB [01:27:10]RAPDU: 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 [01:27:10]wFMCommunicate OK [01:27:10]wFMCommunicate request_size=4 [01:27:10]MH_SAM_APDU [01:27:10]CAPDU: 80 17 00 00 [01:27:10]Write to MH i2c: E2 08 00 2C 1B 80 17 00 00 00 00 00 00 C7 [01:27:10]Write i2c OK [01:27:10]MH_I2C_Read... [01:27:10]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [01:27:10]Read from MH i2c: E2 [01:27:10]MH_I2C_Read... [01:27:10]Read from MH i2c: E2 FD 00 [01:27:10]MH_I2C_Read... [01:27:10]Read from MH i2c: E2 FD 00 2C 1B 00 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 90 00 88 [01:27:10]RAPDU: 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [01:27:10]wFMCommunicate OK [01:27:10]wFMCommunicate request_size=4 [01:27:10]MH_SAM_APDU [01:27:10]CAPDU: 80 17 00 00 [01:27:10]Write to MH i2c: E2 08 00 2D 1B 80 17 00 00 00 00 00 00 C8 [01:27:10]Write i2c OK [01:27:10]MH_I2C_Read... [01:27:11]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [01:27:11]Read from MH i2c: E2 [01:27:11]MH_I2C_Read... [01:27:11]Read from MH i2c: E2 FD 00 [01:27:11]MH_I2C_Read... [01:27:11]Read from MH i2c: E2 FD 00 2D 1B 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 90 00 3D [01:27:11]RAPDU: 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 90 00 [01:27:11]wFMCommunicate OK [01:27:11]wFMCommunicate request_size=4 [01:27:11]MH_SAM_APDU [01:27:11]CAPDU: 80 17 00 00 [01:27:11]Write to MH i2c: E2 08 00 2E 1B 80 17 00 00 00 00 00 00 C9 [01:27:11]Write i2c OK [01:27:11]MH_I2C_Read... [01:27:11]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 198! [01:27:11]Read from MH i2c: E2 [01:27:11]MH_I2C_Read... [01:27:11]Read from MH i2c: E2 C9 00 [01:27:11]MH_I2C_Read... [01:27:11]Read from MH i2c: E2 C9 00 2E 1B 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 AD [01:27:11]RAPDU: 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [01:27:11]wFMCommunicate OK [01:27:11]SAM_PROTO_GetShiftData done [01:27:11]requested_item shift.sale.total_cash is exist - process it [01:27:11]requested_item shift.sale_refund.total is exist - process it [01:27:11]requested_item shift.sale_refund.total_cash is exist - process it [01:27:11]requested_item shift.buy.total is exist - process it [01:27:11]requested_item shift.buy.total_cash is exist - process it [01:27:11]produce_requested_data done [01:27:11]produce_requested_data return {"fm.sale.total":52398767.86,"fm.sale_refund.total":2472284.00,"fm.buy.total":0.00,"shift.sale.total":4150.39,"shift.sale.total_cash":3750.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [01:27:11]process_action_free get_value [01:27:11]json_value_free [01:27:11]json_value_free done [01:27:11]process_json_proto returns [01:27:11]Send response to host [01:27:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":52398767.86,"fm.sale_refund.total":2472284.00,"fm.buy.total":0.00,"shift.sale.total":4150.39,"shift.sale.total_cash":3750.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [01:27:11]free response buf [01:27:11]execute_script done [01:27:11]execute_script returns [01:27:11]free content buf [01:27:11]Sock 9.Close socket [01:27:11]Sock 9.Thread stoped [01:27:11]accept exits with 7 [01:27:11]New connection [01:27:11]New thread 3066543460 created [01:27:11]Thread 3066686820 joined [01:27:11]Waiting for new connection... [01:27:11] Sock 7.Parse request [01:27:11]Sock 7.Check first char [01:27:11]Sock 7.First char is OK [01:27:11]request: POST /json_proto HTTP/1.0 [01:27:11]Method: POST [01:27:11]URL: /json_proto [01:27:11]Method is POST - this is cgi request [01:27:11]url: /json_proto [01:27:11]query_string will be loaded in cgi processing [01:27:11]execute_cgi json_proto POST (null) [01:27:11]execute_cgi path=json_proto method=POST [01:27:11]POST find Content-Length [01:27:11]Host: 172.17.36.132:8080 [01:27:11]Content-Length: 247 [01:27:11]Content-Type: application/json [01:27:11] [01:27:11]POST finish read [01:27:11]Found Content-Length = 247 [01:27:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "open_shift", "params" : { "operator" : "\u0411\u0430\u043B\u0430\u0435\u0432 \u0410. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:27:11]execute_script... [01:27:11]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "open_shift", "params" : { "operator" : "\u0411\u0430\u043B\u0430\u0435\u0432 \u0410. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:27:11]POST & json_proto [01:27:11]process_json_proto [01:27:11]json parsed OK: [01:27:11]protocol is kg_v1.0 [01:27:11]action value=open_shift [01:27:11]process_action open_shift [01:27:11]cmd_open_shift [01:27:11]MH_GetDate [01:27:11]Write to MH i2c: F0 00 00 2F 1B 39 [01:27:11]Write i2c OK [01:27:11]MH_I2C_Read... [01:27:11]Read from MH i2c: F0 [01:27:11]MH_I2C_Read... [01:27:11]Read from MH i2c: F0 09 00 [01:27:11]MH_I2C_Read... [01:27:11]Read from MH i2c: F0 09 00 2F 1B 00 F1 1B 5D 66 B2 22 B0 64 F9 [01:27:11]GetLastDocTimeStamp 1717377629 [01:27:11]current date 1717378033 [01:27:11]FM_GetShiftState [01:27:11]SAM_PROTO_GetShiftState [01:27:11]wFMCommunicate request_size=4 [01:27:11]MH_SAM_APDU [01:27:11]CAPDU: 80 13 01 00 [01:27:11]Write to MH i2c: E2 08 00 30 1B 80 13 01 00 00 00 00 00 C8 [01:27:11]Write i2c OK [01:27:11]MH_I2C_Read... [01:27:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:27:11]Read from MH i2c: E2 [01:27:11]MH_I2C_Read... [01:27:11]Read from MH i2c: E2 0E 00 [01:27:11]MH_I2C_Read... [01:27:11]Read from MH i2c: E2 0E 00 30 1B 00 09 00 00 00 00 00 00 00 00 00 00 90 00 D3 [01:27:11]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [01:27:11]wFMCommunicate OK [01:27:11]SAM_PROTO_GetShiftState done [01:27:11]FM_GetShiftState done [01:27:11]KKMCreateOpenShiftDocument [01:27:11]Load OK [01:27:11]Malloc new data [01:27:11]MH_GetDate [01:27:11]Write to MH i2c: F0 00 00 31 1B 3B [01:27:11]Write i2c OK [01:27:11]MH_I2C_Read... [01:27:11]Read from MH i2c: F0 [01:27:11]MH_I2C_Read... [01:27:11]Read from MH i2c: F0 09 00 [01:27:11]MH_I2C_Read... [01:27:11]Read from MH i2c: F0 09 00 31 1B 00 F1 1B 5D 66 B2 22 B0 64 FB [01:27:11]Malloc new data [01:27:11]KKMCreateOpenShiftDocument OK [01:27:11]KKMSetOpenShiftData OK [01:27:11]ProcessDocumentItem done err = 0, tmpTLVsize=203 [01:27:11]tlvbuf is 0022FDD0 [01:27:11]KKMLoadAndSignOpenShiftData [01:27:11]SAM_PROTO_ProcessDocument [01:27:11]wFMCommunicate request_size=9 [01:27:11]MH_SAM_APDU [01:27:11]CAPDU: 80 15 01 00 04 02 00 CB 00 [01:27:11]Write to MH i2c: E2 0C 00 32 1B 80 15 01 00 04 00 02 00 CB 00 00 00 A1 [01:27:11]Write i2c OK [01:27:11]MH_I2C_Read... [01:27:11]*** iso7816_exchange 80 15 01 00... Resp OK rsp.len_out = 0! [01:27:11]Read from MH i2c: E2 [01:27:11]MH_I2C_Read... [01:27:11]Read from MH i2c: E2 03 00 [01:27:11]MH_I2C_Read... [01:27:11]Read from MH i2c: E2 03 00 32 1B 00 90 00 C1 [01:27:11]RAPDU: 90 00 [01:27:11]wFMCommunicate OK [01:27:11]wFMCommunicate request_size=23 [01:27:11]MH_SAM_APDU [01:27:11]CAPDU: 80 15 02 00 12 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 [01:27:11]Write to MH i2c: E2 1A 00 33 1B 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 C3 [01:27:11]Write i2c OK [01:27:11]MH_I2C_Read... [01:27:11]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [01:27:11]Read from MH i2c: E2 [01:27:11]MH_I2C_Read... [01:27:11]Read from MH i2c: E2 03 00 [01:27:11]MH_I2C_Read... [01:27:11]Read from MH i2c: E2 03 00 33 1B 00 90 00 C2 [01:27:11]RAPDU: 90 00 [01:27:11]wFMCommunicate OK [01:27:11]wFMCommunicate request_size=26 [01:27:11]MH_SAM_APDU [01:27:11]CAPDU: 80 15 02 00 15 FD 03 11 00 D0 91 D0 B0 D0 BB D0 B0 D0 B5 D0 B2 20 D0 90 2E 20 [01:27:11]Write to MH i2c: E2 1D 00 34 1B 80 15 02 00 15 00 FD 03 11 00 D0 91 D0 B0 D0 BB D0 B0 D0 B5 D0 B2 20 D0 90 2E 20 00 00 CB [01:27:11]Write i2c OK [01:27:11]MH_I2C_Read... [01:27:11]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [01:27:11]Read from MH i2c: E2 [01:27:11]MH_I2C_Read... [01:27:11]Read from MH i2c: E2 03 00 [01:27:11]MH_I2C_Read... [01:27:11]Read from MH i2c: E2 03 00 34 1B 00 90 00 C3 [01:27:11]RAPDU: 90 00 [01:27:11]wFMCommunicate OK [01:27:11]wFMCommunicate request_size=96 [01:27:11]MH_SAM_APDU [01:27:11]CAPDU: 80 15 02 00 5B F1 03 57 00 37 32 30 30 30 31 2C 20 D0 B3 2E 20 D0 91 D0 B0 D0 BB D1 8B D0 BA D1 87 D1 8B 2C 20 D1 83 D0 BB 2E 20 D0 90 D0 B1 D0 B4 D1 80 D0 B0 D1 85 D0 BC D0 B0 D0 BD D0 BE D0 B2 D0 B0 20 33 32 35 20 D0 91 2C 20 34 32 2E 34 36 32 37 36 31 2C 20 37 36 2E 32 31 34 39 33 31 [01:27:11]Write to MH i2c: E2 63 00 35 1B 80 15 02 00 5B 00 F1 03 57 00 37 32 30 30 30 31 2C 20 D0 B3 2E 20 D0 91 D0 B0 D0 BB D1 8B D0 BA D1 87 D1 8B 2C 20 D1 83 D0 BB 2E 20 D0 90 D0 B1 D0 B4 D1 80 D0 B0 D1 85 D0 BC D0 B0 D0 BD D0 BE D0 B2 D0 B0 20 33 32 35 20 D0 91 2C 20 34 32 2E 34 36 32 37 36 31 2C 20 37 36 2E 32 31 34 39 33 31 00 00 BC [01:27:11]Write i2c OK [01:27:11]MH_I2C_Read... [01:27:11]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [01:27:11]Read from MH i2c: E2 [01:27:11]MH_I2C_Read... [01:27:11]Read from MH i2c: E2 03 00 [01:27:11]MH_I2C_Read... [01:27:11]Read from MH i2c: E2 03 00 35 1B 00 90 00 C4 [01:27:11]RAPDU: 90 00 [01:27:11]wFMCommunicate OK [01:27:11]wFMCommunicate request_size=50 [01:27:11]MH_SAM_APDU [01:27:11]CAPDU: 80 15 02 00 2D A3 04 29 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 36 32 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 [01:27:11]Write to MH i2c: E2 35 00 36 1B 80 15 02 00 2D 00 A3 04 29 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 36 32 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 48 [01:27:11]Write i2c OK [01:27:11]MH_I2C_Read... [01:27:12]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [01:27:12]Read from MH i2c: E2 [01:27:12]MH_I2C_Read... [01:27:12]Read from MH i2c: E2 03 00 [01:27:12]MH_I2C_Read... [01:27:12]Read from MH i2c: E2 03 00 36 1B 00 90 00 C5 [01:27:12]RAPDU: 90 00 [01:27:12]wFMCommunicate OK [01:27:12]wFMCommunicate request_size=13 [01:27:12]MH_SAM_APDU [01:27:12]CAPDU: 80 15 02 00 08 F4 03 04 00 F1 1B 5D 66 [01:27:12]Write to MH i2c: E2 10 00 37 1B 80 15 02 00 08 00 F4 03 04 00 F1 1B 5D 66 00 00 AC [01:27:12]Write i2c OK [01:27:12]MH_I2C_Read... [01:27:12]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [01:27:12]Read from MH i2c: E2 [01:27:12]MH_I2C_Read... [01:27:12]Read from MH i2c: E2 03 00 [01:27:12]MH_I2C_Read... [01:27:12]Read from MH i2c: E2 03 00 37 1B 00 90 00 C6 [01:27:12]RAPDU: 90 00 [01:27:12]wFMCommunicate OK [01:27:12]wFMCommunicate request_size=25 [01:27:12]MH_SAM_APDU [01:27:12]CAPDU: 80 15 02 00 14 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 [01:27:12]Write to MH i2c: E2 1C 00 38 1B 80 15 02 00 14 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 00 00 3C [01:27:12]Write i2c OK [01:27:12]MH_I2C_Read... [01:27:12]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [01:27:12]Read from MH i2c: E2 [01:27:12]MH_I2C_Read... [01:27:12]Read from MH i2c: E2 03 00 [01:27:12]MH_I2C_Read... [01:27:12]Read from MH i2c: E2 03 00 38 1B 00 90 00 C7 [01:27:12]RAPDU: 90 00 [01:27:12]wFMCommunicate OK [01:27:12]wFMCommunicate request_size=4 [01:27:12]MH_SAM_APDU [01:27:12]CAPDU: 80 15 03 00 [01:27:12]Write to MH i2c: E2 08 00 39 1B 80 15 03 00 00 00 00 00 D5 [01:27:12]Write i2c OK [01:27:12]MH_I2C_Read... [01:27:12]*** iso7816_exchange 80 15 03 00... Resp OK rsp.len_out = 53! [01:27:12]Read from MH i2c: E2 [01:27:12]MH_I2C_Read... [01:27:12]Read from MH i2c: E2 38 00 [01:27:12]MH_I2C_Read... [01:27:12]Read from MH i2c: E2 38 00 39 1B 00 33 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 9E 0A 01 00 0E 04 04 00 44 01 00 00 35 04 06 00 EE 14 F9 3E BF F7 90 00 76 [01:27:12]RAPDU: 33 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 9E 0A 01 00 0E 04 04 00 44 01 00 00 35 04 06 00 EE 14 F9 3E BF F7 90 00 [01:27:12]wFMCommunicate OK [01:27:12]SAM_PROTO_ProcessDocument answer len = 51 [01:27:12]SAM_PROTO_ProcessDocument done [01:27:12]SetTLVBufToDocument [01:27:12]Processing tag 1209 (04B9) [01:27:12]Malloc new data [01:27:12]Processing tag 1041 (0411) [01:27:12]Processing tag 1040 (0410) [01:27:12]Malloc new data [01:27:12]Processing tag 1038 (040E) [01:27:12]Malloc new data [01:27:12]Processing tag 1077 (0435) [01:27:12]Malloc new data [01:27:12]SetTLVBufToDocument err=0 [01:27:12]KKMLoadAndSignOpenShiftData store KKM data [01:27:12]KKMLoadAndSignOpenShiftData err=0 [01:27:12]Отчет об открытии смены ФФД: 1.0 ИНН: 02508201610067 Кассир: Балаев А. Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 Место: АЗС № 62 "Партнер Нефть" 03.06.2024 01:27 Смена: 324 РНМ: 0000000000098096 ЗНМ: 0300000181 ФД: 68254 ФМ: 0000000000965400 ФПД: 261773848395767 [01:27:12]StoreToDocumentArchive [01:27:12]shift 324 fd 68254 [01:27:12]Create dir for shift 0324 [01:27:12]save to /storage/0324/doc_00068254 [01:27:12]save last doc name /storage/0324/doc_00068254 to /storage/kkm_last_doc_name [01:27:12]save OK [01:27:12]Clear old archive folders... [01:27:12]Remove dir /storage/0323 [01:27:12]opendir ok [01:27:12]file . [01:27:12]file .. [01:27:12]file doc_00068245 [01:27:12]remove file /storage/0323/doc_00068245 [01:27:12]file doc_00068246 [01:27:12]remove file /storage/0323/doc_00068246 [01:27:12]file doc_00068247 [01:27:12]remove file /storage/0323/doc_00068247 [01:27:12]file doc_00068248 [01:27:12]remove file /storage/0323/doc_00068248 [01:27:12]file doc_00068249 [01:27:12]remove file /storage/0323/doc_00068249 [01:27:12]file doc_00068250 [01:27:12]remove file /storage/0323/doc_00068250 [01:27:12]file doc_00068251 [01:27:12]remove file /storage/0323/doc_00068251 [01:27:12]file doc_00068252 [01:27:12]remove file /storage/0323/doc_00068252 [01:27:12]file doc_00068253 [01:27:12]remove file /storage/0323/doc_00068253 [01:27:12]remove dir /storage/0323 [01:27:12]ProcessDocumentItem done err = 0, tmpTLVsize=254 [01:27:12]tlvbuf is 001DC4C0 [01:27:12]SAM_PROTO_ClearQueue [01:27:12]wFMCommunicate request_size=4 [01:27:12]MH_SAM_APDU [01:27:12]CAPDU: 80 09 00 00 [01:27:12]Write to MH i2c: E2 08 00 3A 1B 80 09 00 00 00 00 00 00 C7 [01:27:12]Write i2c OK [01:27:12]MH_I2C_Read... [01:27:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:27:12]Read from MH i2c: E2 [01:27:12]MH_I2C_Read... [01:27:12]Read from MH i2c: E2 03 00 [01:27:12]MH_I2C_Read... [01:27:12]Read from MH i2c: E2 03 00 3A 1B 00 90 00 C9 [01:27:12]RAPDU: 90 00 [01:27:12]wFMCommunicate OK [01:27:12]SAM_PROTO_ClearQueue done [01:27:12]KKMCreateOFDPacket [01:27:12]OFDProtocolAddRootSTLVToBuf [01:27:12]FM_MakeSignedData [01:27:12]FM_MakeSignedData [01:27:12]SAM_PROTO_SignData [01:27:12]wFMCommunicate request_size=4 [01:27:12]MH_SAM_APDU [01:27:12]CAPDU: 80 0D 01 02 [01:27:12]Write to MH i2c: E2 08 00 3B 1B 80 0D 01 02 00 00 00 00 CF [01:27:12]Write i2c OK [01:27:12]MH_I2C_Read... [01:27:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:27:12]Read from MH i2c: E2 [01:27:12]MH_I2C_Read... [01:27:12]Read from MH i2c: E2 03 00 [01:27:12]MH_I2C_Read... [01:27:12]Read from MH i2c: E2 03 00 3B 1B 00 90 00 CA [01:27:12]RAPDU: 90 00 [01:27:12]wFMCommunicate OK [01:27:12]wFMCommunicate request_size=255 [01:27:12]MH_SAM_APDU [01:27:12]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 11 00 D0 91 D0 B0 D0 BB D0 B0 D0 B5 D0 B2 20 D0 90 2E 20 F1 03 57 00 37 32 30 30 30 31 2C 20 D0 B3 2E 20 D0 91 D0 B0 D0 BB D1 8B D0 BA D1 87 D1 8B 2C 20 D1 83 D0 BB 2E 20 D0 90 D0 B1 D0 B4 D1 80 D0 B0 D1 85 D0 BC D0 B0 D0 BD D0 BE D0 B2 D0 B0 20 33 32 35 20 D0 91 2C 20 34 32 2E 34 36 32 37 36 31 2C 20 37 36 2E 32 31 34 39 33 31 A3 04 29 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 36 32 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 F1 1B 5D 66 0E 04 04 00 44 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 9E 0A 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 35 04 [01:27:12]Write to MH i2c: E2 02 01 3C 1B 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 11 00 D0 91 D0 B0 D0 BB D0 B0 D0 B5 D0 B2 20 D0 90 2E 20 F1 03 57 00 37 32 30 30 30 31 2C 20 D0 B3 2E 20 D0 91 D0 B0 D0 BB D1 8B D0 BA D1 87 D1 8B 2C 20 D1 83 D0 BB 2E 20 D0 90 D0 B1 D0 B4 D1 80 D0 B0 D1 85 D0 BC D0 B0 D0 BD D0 BE D0 B2 D0 B0 20 33 32 35 20 D0 91 2C 20 34 32 2E 34 36 32 37 36 31 2C 20 37 36 2E 32 31 34 39 33 31 A3 04 29 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 36 32 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 F1 1B 5D 66 0E 04 04 00 44 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 9E 0A 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 35 04 00 00 18 [01:27:12]OFD Sender: No OFD packet to send [01:27:12]Write i2c OK [01:27:12]MH_I2C_Read... [01:27:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:27:13]Read from MH i2c: E2 [01:27:13]MH_I2C_Read... [01:27:13]Read from MH i2c: E2 03 00 [01:27:13]MH_I2C_Read... [01:27:13]Read from MH i2c: E2 03 00 3C 1B 00 90 00 CB [01:27:13]RAPDU: 90 00 [01:27:13]wFMCommunicate OK [01:27:13]wFMCommunicate request_size=13 [01:27:13]MH_SAM_APDU [01:27:13]CAPDU: 80 0D 02 02 08 06 00 EE 14 F9 3E BF F7 [01:27:13]Write to MH i2c: E2 10 00 3D 1B 80 0D 02 02 08 00 06 00 EE 14 F9 3E BF F7 00 00 D7 [01:27:13]Write i2c OK [01:27:13]MH_I2C_Read... [01:27:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:27:13]Read from MH i2c: E2 [01:27:13]MH_I2C_Read... [01:27:13]Read from MH i2c: E2 03 00 [01:27:13]MH_I2C_Read... [01:27:13]Read from MH i2c: E2 03 00 3D 1B 00 90 00 CC [01:27:13]RAPDU: 90 00 [01:27:13]wFMCommunicate OK [01:27:13]wFMCommunicate request_size=4 [01:27:13]MH_SAM_APDU [01:27:13]CAPDU: 80 0D 03 02 [01:27:13]Write to MH i2c: E2 08 00 3E 1B 80 0D 03 02 00 00 00 00 D4 [01:27:13]Write i2c OK [01:27:13]MH_I2C_Read... [01:27:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:27:13]Read from MH i2c: E2 [01:27:13]MH_I2C_Read... [01:27:13]Read from MH i2c: E2 0B 00 [01:27:13]MH_I2C_Read... [01:27:13]Read from MH i2c: E2 0B 00 3E 1B 00 99 F9 56 7C 6E A5 AD EF 90 00 E8 [01:27:13]RAPDU: 99 F9 56 7C 6E A5 AD EF 90 00 [01:27:13]wFMCommunicate OK [01:27:13]SAM_PROTO_SignData done [01:27:13]FM_MakeSignedData done [01:27:13]CreateOFDProtocolMessage [01:27:13]wFMCommunicate request_size=4 [01:27:13]MH_SAM_APDU [01:27:13]CAPDU: 80 11 00 00 [01:27:13]Write to MH i2c: E2 08 00 3F 1B 80 11 00 00 00 00 00 00 D4 [01:27:13]Write i2c OK [01:27:13]MH_I2C_Read... [01:27:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:27:13]Read from MH i2c: E2 [01:27:13]MH_I2C_Read... [01:27:13]Read from MH i2c: E2 17 00 [01:27:13]MH_I2C_Read... [01:27:13]Read from MH i2c: E2 17 00 3F 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 1F [01:27:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [01:27:13]wFMCommunicate OK [01:27:13]CreateOFDProtocolMessage done [01:27:13]OFDSenderStorePacket 68254 [01:27:13]StoreOFDPacket docnum=68254 [01:27:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 12 01 00 00 F7 F5 0A 01 73 18 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 11 00 D0 91 D0 B0 D0 BB D0 B0 D0 B5 D0 B2 20 D0 90 2E 20 F1 03 57 00 37 32 30 30 30 31 2C 20 D0 B3 2E 20 D0 91 D0 B0 D0 BB D1 8B D0 BA D1 87 D1 8B 2C 20 D1 83 D0 BB 2E 20 D0 90 D0 B1 D0 B4 D1 80 D0 B0 D1 85 D0 BC D0 B0 D0 BD D0 BE D0 B2 D0 B0 20 33 32 35 20 D0 91 2C 20 34 32 2E 34 36 32 37 36 31 2C 20 37 36 2E 32 31 34 39 33 31 A3 04 29 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 36 32 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 F1 1B 5D 66 0E 04 04 00 44 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 9E 0A 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 35 04 06 00 EE 14 F9 3E BF F7 99 F9 56 7C 6E A5 AD EF [01:27:13]CheckFolder [01:27:13]dirname=/storage/ofd_packets [01:27:13]CheckFolder done [01:27:13]ProducePacketName [01:27:13]name=ofd_packets/00068254 [01:27:13]NVStorageSaveData ofd_packets/00068254 [01:27:13]File name is /storage/ofd_packets/00068254 [01:27:13]Write 304 bytes [01:27:13]NVStorageSaveData done [01:27:13]OFDSenderStorePacket done [01:27:13]KKMCreateOFDPacket done [01:27:13]NVStorageSaveData kkm_last_timestamp [01:27:13]File name is /storage/kkm_last_timestamp [01:27:13]Write 4 bytes [01:27:13]NVStorageSaveData done [01:27:13]ExternCall_PrintAddStr [01:27:13]wPrintStart [01:27:13]Write to MH i2c: 01 00 00 40 1B 5B [01:27:13]Write i2c OK [01:27:13]MH_I2C_Read... [01:27:13]Read from MH i2c: 01 [01:27:13]MH_I2C_Read... [01:27:13]Read from MH i2c: 01 07 00 [01:27:13]MH_I2C_Read... [01:27:13]Read from MH i2c: 01 07 00 40 1B 00 00 00 00 00 FF 0F 70 [01:27:13]RasterBufferAndPrint [01:27:13]line Отчет об открытии смены [01:27:13]line ФФД: 1.0 [01:27:13]line ИНН: 02508201610067 [01:27:13]line Кассир: Балаев А. [01:27:13]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [01:27:13]line Место: АЗС № 62 "Партнер Нефть" [01:27:13]line 03.06.2024 01:27 [01:27:13]line Смена: 324 [01:27:13]line РНМ: 0000000000098096 [01:27:13]line ЗНМ: 0300000181 [01:27:13]line ФД: 68254 [01:27:13]line ФМ: 0000000000965400 [01:27:13]line ФПД: 261773848395767 [01:27:13]written 0, free lines is 4095 [01:27:13]OFD Sender: Processing packet 68254 [packets to send 26, broken 25] [01:27:13]ProducePacketName [01:27:13]name=ofd_packets/00068254 [01:27:13]OFD Sender: To server: pG, [01:27:13]CommunicateWithHost lk.salyk.kg:30040 [01:27:13]ConnectInit lk.salyk.kg [01:27:13]Connected sock=10 [01:27:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 12 01 00 00 F7 F5 0A 01 73 18 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 11 00 D0 91 D0 B0 D0 BB D0 B0 D0 B5 D0 B2 20 D0 90 2E 20 F1 03 57 00 37 32 30 30 30 31 2C 20 D0 B3 2E 20 D0 91 D0 B0 D0 BB D1 8B D0 BA D1 87 D1 8B 2C 20 D1 83 D0 BB 2E 20 D0 90 D0 B1 D0 B4 D1 80 D0 B0 D1 85 D0 BC D0 B0 D0 BD D0 BE D0 B2 D0 B0 20 33 32 35 20 D0 91 2C 20 34 32 2E 34 36 32 37 36 31 2C 20 37 36 2E 32 31 34 39 33 31 A3 04 29 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 36 32 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 F1 1B 5D 66 0E 04 04 00 44 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 9E 0A 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 35 04 06 00 EE 14 F9 3E BF F7 99 F9 56 7C 6E A5 AD EF [01:27:13]Write to MH i2c: 01 00 00 52 1B 6D [01:27:13]Write i2c OK [01:27:13]MH_I2C_Read... [01:27:13]Read from MH i2c: 01 [01:27:13]MH_I2C_Read... [01:27:13]Read from MH i2c: 01 07 00 [01:27:13]MH_I2C_Read... [01:27:13]Read from MH i2c: 01 07 00 52 1B 00 00 00 00 00 5D 0E DF [01:27:13]RasterBufferAndPrint [01:27:13]line [01:27:13]line [01:27:13]line [01:27:13]line [01:27:13]line [01:27:13]written 0, free lines is 3691 [01:27:13]MH_Cut [01:27:13]Write to MH i2c: D1 01 00 59 1B 01 46 [01:27:13]Write i2c OK [01:27:13]MH_I2C_Read... [01:27:13]Read from MH i2c: D1 [01:27:13]MH_I2C_Read... [01:27:13]Read from MH i2c: D1 01 00 [01:27:13]MH_I2C_Read... [01:27:13]Read from MH i2c: D1 01 00 59 1B 00 45 [01:27:13]Write to MH i2c: 01 00 00 5A 1B 75 [01:27:13]Write i2c OK [01:27:13]MH_I2C_Read... [01:27:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 D1 4A 47 00 20 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 35 34 30 30 10 04 04 00 9E 0A 01 00 F4 03 04 00 EF C2 5C 66 B6 04 01 00 00 57 B5 92 A2 8C 27 61 AF [01:27:13]CommunicateWithHost err = 0 [01:27:13]CheckOFDResponse [01:27:13]1017 (14) - 77093643461234 [01:27:13]1041 (16) - 0000000000965400 [01:27:13]1040 (4) - 68254 [01:27:13]1012 (4) - 02.06.2024 19:07 [01:27:13]1206 (1) - 0 [01:27:13]OFD Sender: Remove packet 68254 [01:27:13]ProducePacketName [01:27:13]name=ofd_packets/00068254 [01:27:13]NVStorageDeleteData [01:27:13]*** Cut start [01:27:13]*** Partial cut [01:27:13]*** CUTSNS_PIN = 1 [01:27:14]*** CUTSNS_PIN = 0 [01:27:14]OFD Sender: No OFD packet to send [01:27:14]*** Brake cut motor [01:27:14]Read from MH i2c: 01 [01:27:14]MH_I2C_Read... [01:27:14]*** Stop cut motor [01:27:14]*** Cut end [01:27:14]Read from MH i2c: 01 07 00 [01:27:14]MH_I2C_Read... [01:27:14]Read from MH i2c: 01 07 00 5A 1B 00 00 00 00 00 FF 0F 8A [01:27:14]process_action open_shift done [01:27:14]requested_data is exist [01:27:14]produce_requested_data [01:27:14]requested_item fd.num is exist - process it [01:27:14]SAM_PROTO_GetFieldsCounters [01:27:14]wFMCommunicate request_size=4 [01:27:14]MH_SAM_APDU [01:27:14]CAPDU: 80 13 00 00 [01:27:14]Write to MH i2c: E2 08 00 5B 1B 80 13 00 00 00 00 00 00 F2 [01:27:14]Write i2c OK [01:27:14]MH_I2C_Read... [01:27:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:27:14]Read from MH i2c: E2 [01:27:14]MH_I2C_Read... [01:27:14]Read from MH i2c: E2 62 00 [01:27:14]MH_I2C_Read... [01:27:14]Read from MH i2c: E2 62 00 5B 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 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 9E 0A 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 00 00 00 00 5E 04 04 00 00 00 00 00 57 04 04 00 01 00 00 00 19 04 04 00 00 00 00 00 90 00 00 [01:27: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 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 9E 0A 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 00 00 00 00 5E 04 04 00 00 00 00 00 57 04 04 00 01 00 00 00 19 04 04 00 00 00 00 00 90 00 [01:27:14]wFMCommunicate OK [01:27:14]SAM_PROTO_GetFieldsCounters done [01:27:14]requested_item shift.num is exist - process it [01:27:14]requested_item shift.opened is exist - process it [01:27:14]req_shift_opened [01:27:14]FM_GetShiftState [01:27:14]SAM_PROTO_GetShiftState [01:27:14]wFMCommunicate request_size=4 [01:27:14]MH_SAM_APDU [01:27:14]CAPDU: 80 13 01 00 [01:27:14]Write to MH i2c: E2 08 00 5C 1B 80 13 01 00 00 00 00 00 F4 [01:27:14]Write i2c OK [01:27:14]MH_I2C_Read... [01:27:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:27:14]Read from MH i2c: E2 [01:27:14]MH_I2C_Read... [01:27:14]Read from MH i2c: E2 0E 00 [01:27:14]MH_I2C_Read... [01:27:14]Read from MH i2c: E2 0E 00 5C 1B 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 CF [01:27:14]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [01:27:14]wFMCommunicate OK [01:27:14]SAM_PROTO_GetShiftState done [01:27:14]FM_GetShiftState done [01:27:14]req_shift_opened done [01:27:14]requested_item shift.open_date is exist - process it [01:27:14]req_shift_open_date [01:27:14]req_shift_open_date done [01:27:14]produce_requested_data done [01:27:14]produce_requested_data return {"fd.num":68254,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033} [01:27:14]process_action_free open_shift [01:27:14]json_value_free [01:27:14]json_value_free done [01:27:14]process_json_proto returns [01:27:14]Send response to host [01:27:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":68254,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033}}} [01:27:14]free response buf [01:27:14]execute_script done [01:27:14]execute_script returns [01:27:14]free content buf [01:27:14]Sock 7.Close socket [01:27:14]Sock 7.Thread stoped [01:27:14]accept exits with 9 [01:27:14]New connection [01:27:14]New thread 3066686820 created [01:27:14]Thread 3066543460 joined [01:27:14]Waiting for new connection... [01:27:14] Sock 9.Parse request [01:27:14]Sock 9.Check first char [01:27:14]Sock 9.First char is OK [01:27:14]request: POST /json_proto HTTP/1.0 [01:27:14]Method: POST [01:27:14]URL: /json_proto [01:27:14]Method is POST - this is cgi request [01:27:14]url: /json_proto [01:27:14]query_string will be loaded in cgi processing [01:27:14]execute_cgi json_proto POST (null) [01:27:14]execute_cgi path=json_proto method=POST [01:27:14]POST find Content-Length [01:27:14]Host: 172.17.36.132:8080 [01:27:14]Content-Length: 331 [01:27:14]Content-Type: application/json [01:27:14] [01:27:14]POST finish read [01:27:14]Found Content-Length = 331 [01:27:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [01:27:14]execute_script... [01:27:14]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [01:27:14]POST & json_proto [01:27:14]process_json_proto [01:27:14]json parsed OK: [01:27:14]protocol is kg_v1.0 [01:27:14]action value=get_value [01:27:14]process_action get_value [01:27:14]cmd_get_value [01:27:14]process_action get_value done [01:27:14]requested_data is exist [01:27:14]produce_requested_data [01:27:14]requested_item fm.sale.total is exist - process it [01:27:14]SAM_PROTO_GetFMData [01:27:14]wFMCommunicate request_size=4 [01:27:14]MH_SAM_APDU [01:27:14]CAPDU: 80 13 03 00 [01:27:14]Write to MH i2c: E2 08 00 5D 1B 80 13 03 00 00 00 00 00 F7 [01:27:14]Write i2c OK [01:27:14]MH_I2C_Read... [01:27:15]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [01:27:15]Read from MH i2c: E2 [01:27:15]MH_I2C_Read... [01:27:15]Read from MH i2c: E2 FD 00 [01:27:15]MH_I2C_Read... [01:27:15]Read from MH i2c: E2 FD 00 5D 1B 00 C5 04 85 04 C1 04 6E 04 04 00 16 08 01 00 69 04 A3 00 6F 04 04 00 0B 03 01 00 B1 04 05 00 B2 2C 52 38 01 70 04 05 00 44 9F F6 0B 01 72 04 04 00 6E 8D 5B 2C 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 C0 4F 2D 21 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 62 AD C3 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 9C 00 6F 04 04 00 0B 05 00 00 B1 04 04 00 F0 67 BC 0E 70 04 04 00 F0 67 BC 0E 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 3E AA 90 01 EF 03 09 90 00 15 [01:27:15]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 16 08 01 00 69 04 A3 00 6F 04 04 00 0B 03 01 00 B1 04 05 00 B2 2C 52 38 01 70 04 05 00 44 9F F6 0B 01 72 04 04 00 6E 8D 5B 2C 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 C0 4F 2D 21 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 62 AD C3 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 9C 00 6F 04 04 00 0B 05 00 00 B1 04 04 00 F0 67 BC 0E 70 04 04 00 F0 67 BC 0E 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 3E AA 90 01 EF 03 09 90 00 [01:27:15]wFMCommunicate OK [01:27:15]wFMCommunicate request_size=4 [01:27:15]MH_SAM_APDU [01:27:15]CAPDU: 80 17 00 00 [01:27:15]Write to MH i2c: E2 08 00 5E 1B 80 17 00 00 00 00 00 00 F9 [01:27:15]Write i2c OK [01:27:15]MH_I2C_Read... [01:27:15]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [01:27:15]Read from MH i2c: E2 [01:27:15]MH_I2C_Read... [01:27:15]Read from MH i2c: E2 FD 00 [01:27:15]MH_I2C_Read... [01:27:15]Read from MH i2c: E2 FD 00 5E 1B 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 12 63 21 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 45 [01:27:15]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 12 63 21 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 [01:27:15]wFMCommunicate OK [01:27:15]wFMCommunicate request_size=4 [01:27:15]MH_SAM_APDU [01:27:15]CAPDU: 80 17 00 00 [01:27:15]Write to MH i2c: E2 08 00 5F 1B 80 17 00 00 00 00 00 00 FA [01:27:15]Write i2c OK [01:27:15]MH_I2C_Read... [01:27:16]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [01:27:16]Read from MH i2c: E2 [01:27:16]MH_I2C_Read... [01:27:16]Read from MH i2c: E2 FD 00 [01:27:16]MH_I2C_Read... [01:27:16]Read from MH i2c: E2 FD 00 5F 1B 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 0C [01:27:16]RAPDU: 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [01:27:16]wFMCommunicate OK [01:27:16]wFMCommunicate request_size=4 [01:27:16]MH_SAM_APDU [01:27:16]CAPDU: 80 17 00 00 [01:27:16]Write to MH i2c: E2 08 00 60 1B 80 17 00 00 00 00 00 00 FB [01:27:16]Write i2c OK [01:27:16]MH_I2C_Read... [01:27:16]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [01:27:16]Read from MH i2c: E2 [01:27:16]MH_I2C_Read... [01:27:16]Read from MH i2c: E2 FD 00 [01:27:16]MH_I2C_Read... [01:27:16]Read from MH i2c: E2 FD 00 60 1B 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 87 [01:27:16]RAPDU: 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [01:27:16]wFMCommunicate OK [01:27:16]wFMCommunicate request_size=4 [01:27:16]MH_SAM_APDU [01:27:16]CAPDU: 80 17 00 00 [01:27:16]Write to MH i2c: E2 08 00 61 1B 80 17 00 00 00 00 00 00 FC [01:27:16]Write i2c OK [01:27:16]MH_I2C_Read... [01:27:16]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [01:27:16]Read from MH i2c: E2 [01:27:16]MH_I2C_Read... [01:27:16]Read from MH i2c: E2 E2 00 [01:27:16]MH_I2C_Read... [01:27:16]Read from MH i2c: E2 E2 00 61 1B 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 DA [01:27:16]RAPDU: EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [01:27:16]wFMCommunicate OK [01:27:16]SAM_PROTO_GetFMData done [01:27:16]requested_item fm.sale_refund.total is exist - process it [01:27:16]requested_item fm.buy.total is exist - process it [01:27:16]requested_item shift.sale.total is exist - process it [01:27:16]SAM_PROTO_GetShiftData [01:27:16]wFMCommunicate request_size=4 [01:27:16]MH_SAM_APDU [01:27:16]CAPDU: 80 13 02 00 [01:27:17]Write to MH i2c: E2 08 00 62 1B 80 13 02 00 00 00 00 00 FB [01:27:17]Write i2c OK [01:27:17]MH_I2C_Read... [01:27:17]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [01:27:17]Read from MH i2c: E2 [01:27:17]MH_I2C_Read... [01:27:17]Read from MH i2c: E2 FD 00 [01:27:17]MH_I2C_Read... [01:27:17]Read from MH i2c: E2 FD 00 62 1B 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 6E [01:27:17]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 [01:27:17]wFMCommunicate OK [01:27:17]wFMCommunicate request_size=4 [01:27:17]MH_SAM_APDU [01:27:17]CAPDU: 80 17 00 00 [01:27:17]Write to MH i2c: E2 08 00 63 1B 80 17 00 00 00 00 00 00 FE [01:27:17]Write i2c OK [01:27:17]MH_I2C_Read... [01:27:17]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [01:27:17]Read from MH i2c: E2 [01:27:17]MH_I2C_Read... [01:27:17]Read from MH i2c: E2 FD 00 [01:27:17]MH_I2C_Read... [01:27:17]Read from MH i2c: E2 FD 00 63 1B 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 06 [01:27:17]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 [01:27:18]wFMCommunicate OK [01:27:18]wFMCommunicate request_size=4 [01:27:18]MH_SAM_APDU [01:27:18]CAPDU: 80 17 00 00 [01:27:18]Write to MH i2c: E2 08 00 64 1B 80 17 00 00 00 00 00 00 FF [01:27:18]Write i2c OK [01:27:18]MH_I2C_Read... [01:27:18]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [01:27:18]Read from MH i2c: E2 [01:27:18]MH_I2C_Read... [01:27:18]Read from MH i2c: E2 FD 00 [01:27:18]MH_I2C_Read... [01:27:18]Read from MH i2c: E2 FD 00 64 1B 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 D1 [01:27:18]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 [01:27:18]wFMCommunicate OK [01:27:18]wFMCommunicate request_size=4 [01:27:18]MH_SAM_APDU [01:27:18]CAPDU: 80 17 00 00 [01:27:18]Write to MH i2c: E2 08 00 65 1B 80 17 00 00 00 00 00 00 00 [01:27:18]Write i2c OK [01:27:18]MH_I2C_Read... [01:27:18]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [01:27:18]Read from MH i2c: E2 [01:27:18]MH_I2C_Read... [01:27:18]Read from MH i2c: E2 FD 00 [01:27:18]MH_I2C_Read... [01:27:18]Read from MH i2c: E2 FD 00 65 1B 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 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 72 [01:27:18]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 [01:27:19]wFMCommunicate OK [01:27:19]wFMCommunicate request_size=4 [01:27:19]MH_SAM_APDU [01:27:19]CAPDU: 80 17 00 00 [01:27:19]Write to MH i2c: E2 08 00 66 1B 80 17 00 00 00 00 00 00 01 [01:27:19]Write i2c OK [01:27:19]MH_I2C_Read... [01:27:19]OFD Sender: No OFD packet to send [01:27:19]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 186! [01:27:19]Read from MH i2c: E2 [01:27:19]MH_I2C_Read... [01:27:19]Read from MH i2c: E2 BD 00 [01:27:19]MH_I2C_Read... [01:27:19]Read from MH i2c: E2 BD 00 66 1B 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 E7 [01:27:19]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 [01:27:19]wFMCommunicate OK [01:27:19]SAM_PROTO_GetShiftData done [01:27:19]requested_item shift.sale.total_cash is exist - process it [01:27:19]requested_item shift.sale_refund.total is exist - process it [01:27:19]requested_item shift.sale_refund.total_cash is exist - process it [01:27:19]requested_item shift.buy.total is exist - process it [01:27:19]requested_item shift.buy.total_cash is exist - process it [01:27:19]produce_requested_data done [01:27:19]produce_requested_data return {"fm.sale.total":52398767.86,"fm.sale_refund.total":2472284.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} [01:27:19]process_action_free get_value [01:27:19]json_value_free [01:27:19]json_value_free done [01:27:19]process_json_proto returns [01:27:19]Send response to host [01:27:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":52398767.86,"fm.sale_refund.total":2472284.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}}} [01:27:19]free response buf [01:27:19]execute_script done [01:27:19]execute_script returns [01:27:19]free content buf [01:27:19]Sock 9.Close socket [01:27:19]Sock 9.Thread stoped [01:27:24]OFD Sender: No OFD packet to send [01:27:29]OFD Sender: No OFD packet to send [01:27:34]OFD Sender: No OFD packet to send [01:27:39]OFD Sender: No OFD packet to send [01:27:44]OFD Sender: No OFD packet to send [01:27:49]OFD Sender: No OFD packet to send [01:27:54]OFD Sender: No OFD packet to send [01:27:59]OFD Sender: No OFD packet to send [01:28:04]OFD Sender: No OFD packet to send [01:28:09]OFD Sender: No OFD packet to send [01:28:14]OFD Sender: No OFD packet to send [01:28:19]OFD Sender: No OFD packet to send [01:28:24]OFD Sender: No OFD packet to send [01:28:29]OFD Sender: No OFD packet to send [01:28:34]OFD Sender: No OFD packet to send [01:28:39]OFD Sender: No OFD packet to send [01:28:44]OFD Sender: No OFD packet to send [01:28:49]OFD Sender: No OFD packet to send [01:28:54]OFD Sender: No OFD packet to send [01:28:59]OFD Sender: No OFD packet to send [01:29:04]OFD Sender: No OFD packet to send [01:29:09]OFD Sender: No OFD packet to send [01:29:14]OFD Sender: No OFD packet to send [01:29:19]OFD Sender: No OFD packet to send [01:29:24]OFD Sender: No OFD packet to send [01:29:29]OFD Sender: No OFD packet to send [01:29:34]OFD Sender: No OFD packet to send [01:29:39]OFD Sender: No OFD packet to send [01:29:44]OFD Sender: No OFD packet to send [01:29:49]OFD Sender: No OFD packet to send [01:29:54]OFD Sender: No OFD packet to send [01:29:59]OFD Sender: No OFD packet to send [01:30:04]OFD Sender: No OFD packet to send [01:30:09]OFD Sender: No OFD packet to send [01:30:14]OFD Sender: No OFD packet to send [01:30:19]OFD Sender: No OFD packet to send [01:30:24]OFD Sender: No OFD packet to send [01:30:29]OFD Sender: No OFD packet to send [01:30:34]OFD Sender: No OFD packet to send [01:30:39]OFD Sender: No OFD packet to send [01:30:44]OFD Sender: No OFD packet to send [01:30:49]OFD Sender: No OFD packet to send [01:30:54]OFD Sender: No OFD packet to send [01:30:59]OFD Sender: No OFD packet to send [01:31:04]OFD Sender: No OFD packet to send [01:31:09]OFD Sender: No OFD packet to send [01:31:14]OFD Sender: No OFD packet to send [01:31:19]OFD Sender: No OFD packet to send [01:31:24]OFD Sender: No OFD packet to send [01:31:29]OFD Sender: No OFD packet to send [01:31:34]OFD Sender: No OFD packet to send [01:31:39]OFD Sender: No OFD packet to send [01:31:44]OFD Sender: No OFD packet to send [01:31:49]OFD Sender: No OFD packet to send [01:31:54]OFD Sender: No OFD packet to send [01:31:59]OFD Sender: No OFD packet to send [01:32:04]OFD Sender: No OFD packet to send [01:32:09]OFD Sender: No OFD packet to send [01:32:14]OFD Sender: No OFD packet to send [01:32:19]OFD Sender: No OFD packet to send [01:32:24]OFD Sender: No OFD packet to send [01:32:29]OFD Sender: No OFD packet to send [01:32:34]OFD Sender: No OFD packet to send [01:32:39]OFD Sender: No OFD packet to send [01:32:44]OFD Sender: No OFD packet to send [01:32:45]accept exits with 7 [01:32:45]New connection [01:32:45]New thread 3066543460 created [01:32:45]Thread 3066686820 joined [01:32:45]Waiting for new connection... [01:32:45] Sock 7.Parse request [01:32:45]Sock 7.Check first char [01:32:45]Sock 7.First char is OK [01:32:45]request: POST /json_proto HTTP/1.0 [01:32:45]Method: POST [01:32:45]URL: /json_proto [01:32:45]Method is POST - this is cgi request [01:32:45]url: /json_proto [01:32:45]query_string will be loaded in cgi processing [01:32:45]execute_cgi json_proto POST (null) [01:32:45]execute_cgi path=json_proto method=POST [01:32:45]POST find Content-Length [01:32:45]Host: 172.17.36.132:8080 [01:32:45]Content-Length: 677 [01:32:45]Content-Type: application/json [01:32:45] [01:32:45]POST finish read [01:32:45]Found Content-Length = 677 [01:32:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706324", "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" : 73.90, "quantity" : 2.710, "sum" : 200.27, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:32:45]execute_script... [01:32:45]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706324", "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" : 73.90, "quantity" : 2.710, "sum" : 200.27, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:32:45]POST & json_proto [01:32:45]process_json_proto [01:32:45]json parsed OK: [01:32:45]protocol is kg_v1.0 [01:32:45]action value=close_receipt [01:32:45]process_action close_receipt [01:32:45]cmd_close_receipt [01:32:45]MH_GetDate [01:32:45]Write to MH i2c: F0 00 00 67 1B 71 [01:32:45]Write i2c OK [01:32:45]MH_I2C_Read... [01:32:45]Read from MH i2c: F0 [01:32:45]MH_I2C_Read... [01:32:45]Read from MH i2c: F0 09 00 [01:32:45]MH_I2C_Read... [01:32:46]Read from MH i2c: F0 09 00 67 1B 00 40 1D 5D 66 B2 22 B0 64 82 [01:32:46]GetLastDocTimeStamp 1717378033 [01:32:46]current date 1717378368 [01:32:46]FM_GetShiftState [01:32:46]SAM_PROTO_GetShiftState [01:32:46]wFMCommunicate request_size=4 [01:32:46]MH_SAM_APDU [01:32:46]CAPDU: 80 13 01 00 [01:32:46]Write to MH i2c: E2 08 00 68 1B 80 13 01 00 00 00 00 00 00 [01:32:46]Write i2c OK [01:32:46]MH_I2C_Read... [01:32:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:32:46]Read from MH i2c: E2 [01:32:46]MH_I2C_Read... [01:32:46]Read from MH i2c: E2 0E 00 [01:32:46]MH_I2C_Read... [01:32:46]Read from MH i2c: E2 0E 00 68 1B 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 DB [01:32:46]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [01:32:46]wFMCommunicate OK [01:32:46]SAM_PROTO_GetShiftState done [01:32:46]FM_GetShiftState done [01:32:46]opened in 1717378033 [01:32:46]opened+sec_in_day 1717464433 [01:32:46]quantity*price = 20026 [01:32:46]sum+1 = 20028 [01:32:46]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.27 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.27 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 1 03.06.2024 01:32 Смена: 324 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 ФМ: 0000000000965400 ФД: 68255 ФПД: 34157003874008 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T013248&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68255&fm=34157003874008&tin=02508201610067®Number=0000000000098096&sum=20000 [01:32:47]StoreToDocumentArchive [01:32:47]shift 324 fd 68255 [01:32:47]save to /storage/0324/doc_00068255 [01:32:47]save last doc name /storage/0324/doc_00068255 to /storage/kkm_last_doc_name [01:32:47]save OK [01:32:47]Clear old archive folders... [01:32:47]ProcessDocumentItem done err = 0, tmpTLVsize=251 [01:32:47]tlvbuf is B6E80810 [01:32:47]SAM_PROTO_ClearQueue [01:32:47]wFMCommunicate request_size=4 [01:32:47]MH_SAM_APDU [01:32:47]CAPDU: 80 09 00 00 [01:32:47]Write to MH i2c: E2 08 00 75 1B 80 09 00 00 00 00 00 00 02 [01:32:47]Write i2c OK [01:32:47]MH_I2C_Read... [01:32:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:32:47]Read from MH i2c: E2 [01:32:47]MH_I2C_Read... [01:32:47]Read from MH i2c: E2 03 00 [01:32:47]MH_I2C_Read... [01:32:47]Read from MH i2c: E2 03 00 75 1B 00 90 00 04 [01:32:47]RAPDU: 90 00 [01:32:47]wFMCommunicate OK [01:32:47]SAM_PROTO_ClearQueue done [01:32:47]KKMCreateOFDPacket [01:32:47]OFDProtocolAddRootSTLVToBuf [01:32:47]FM_MakeSignedData [01:32:47]FM_MakeSignedData [01:32:47]SAM_PROTO_SignData [01:32:47]wFMCommunicate request_size=4 [01:32:47]MH_SAM_APDU [01:32:47]CAPDU: 80 0D 01 02 [01:32:47]Write to MH i2c: E2 08 00 76 1B 80 0D 01 02 00 00 00 00 0A [01:32:47]Write i2c OK [01:32:47]MH_I2C_Read... [01:32:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:32:47]Read from MH i2c: E2 [01:32:47]MH_I2C_Read... [01:32:47]Read from MH i2c: E2 03 00 [01:32:47]MH_I2C_Read... [01:32:47]Read from MH i2c: E2 03 00 76 1B 00 90 00 05 [01:32:47]RAPDU: 90 00 [01:32:47]wFMCommunicate OK [01:32:47]wFMCommunicate request_size=255 [01:32:47]MH_SAM_APDU [01:32:47]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 96 0A 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 3B 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 4F 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 01 00 00 00 F4 03 04 00 40 1D 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 9F 0A 01 00 35 04 06 00 1F [01:32:47]Write to MH i2c: E2 02 01 77 1B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 96 0A 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 3B 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 4F 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 01 00 00 00 F4 03 04 00 40 1D 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 9F 0A 01 00 35 04 06 00 1F 00 00 4D [01:32:47]Write i2c OK [01:32:47]MH_I2C_Read... [01:32:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:32:47]Read from MH i2c: E2 [01:32:47]MH_I2C_Read... [01:32:47]Read from MH i2c: E2 03 00 [01:32:47]MH_I2C_Read... [01:32:47]Read from MH i2c: E2 03 00 77 1B 00 90 00 06 [01:32:47]RAPDU: 90 00 [01:32:47]wFMCommunicate OK [01:32:47]wFMCommunicate request_size=10 [01:32:47]MH_SAM_APDU [01:32:47]CAPDU: 80 0D 02 02 05 10 CC 15 1E D8 [01:32:47]Write to MH i2c: E2 0D 00 78 1B 80 0D 02 02 05 00 10 CC 15 1E D8 00 00 FE [01:32:47]Write i2c OK [01:32:47]MH_I2C_Read... [01:32:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:32:47]Read from MH i2c: E2 [01:32:47]MH_I2C_Read... [01:32:47]Read from MH i2c: E2 03 00 [01:32:47]MH_I2C_Read... [01:32:47]Read from MH i2c: E2 03 00 78 1B 00 90 00 07 [01:32:47]RAPDU: 90 00 [01:32:47]wFMCommunicate OK [01:32:47]wFMCommunicate request_size=4 [01:32:47]MH_SAM_APDU [01:32:47]CAPDU: 80 0D 03 02 [01:32:47]Write to MH i2c: E2 08 00 79 1B 80 0D 03 02 00 00 00 00 0F [01:32:47]Write i2c OK [01:32:47]MH_I2C_Read... [01:32:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:32:47]Read from MH i2c: E2 [01:32:47]MH_I2C_Read... [01:32:47]Read from MH i2c: E2 0B 00 [01:32:47]MH_I2C_Read... [01:32:47]Read from MH i2c: E2 0B 00 79 1B 00 CF 71 39 37 8B 12 57 76 90 00 2A [01:32:47]RAPDU: CF 71 39 37 8B 12 57 76 90 00 [01:32:47]wFMCommunicate OK [01:32:47]SAM_PROTO_SignData done [01:32:47]FM_MakeSignedData done [01:32:47]CreateOFDProtocolMessage [01:32:47]wFMCommunicate request_size=4 [01:32:47]MH_SAM_APDU [01:32:47]CAPDU: 80 11 00 00 [01:32:47]Write to MH i2c: E2 08 00 7A 1B 80 11 00 00 00 00 00 00 0F [01:32:47]Write i2c OK [01:32:47]MH_I2C_Read... [01:32:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:32:47]Read from MH i2c: E2 [01:32:47]MH_I2C_Read... [01:32:47]Read from MH i2c: E2 17 00 [01:32:47]MH_I2C_Read... [01:32:47]Read from MH i2c: E2 17 00 7A 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 5A [01:32:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [01:32:47]wFMCommunicate OK [01:32:47]CreateOFDProtocolMessage done [01:32:47]OFDSenderStorePacket 68255 [01:32:47]StoreOFDPacket docnum=68255 [01:32:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 3F 46 07 01 02 E7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 96 0A 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 3B 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 4F 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 01 00 00 00 F4 03 04 00 40 1D 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 9F 0A 01 00 35 04 06 00 1F 10 CC 15 1E D8 CF 71 39 37 8B 12 57 76 [01:32:47]CheckFolder [01:32:47]dirname=/storage/ofd_packets [01:32:47]CheckFolder done [01:32:47]ProducePacketName [01:32:47]name=ofd_packets/00068255 [01:32:47]NVStorageSaveData ofd_packets/00068255 [01:32:47]File name is /storage/ofd_packets/00068255 [01:32:47]Write 301 bytes [01:32:47]NVStorageSaveData done [01:32:47]OFDSenderStorePacket done [01:32:47]KKMCreateOFDPacket done [01:32:47]NVStorageSaveData kkm_last_timestamp [01:32:47]File name is /storage/kkm_last_timestamp [01:32:47]Write 4 bytes [01:32:47]NVStorageSaveData done [01:32:47]ExternCall_PrintAddStr [01:32:47]wPrintStart [01:32:47]Write to MH i2c: 01 00 00 7B 1B 96 [01:32:47]Write i2c OK [01:32:47]MH_I2C_Read... [01:32:47]Read from MH i2c: 01 [01:32:47]MH_I2C_Read... [01:32:47]Read from MH i2c: 01 07 00 [01:32:47]MH_I2C_Read... [01:32:47]Read from MH i2c: 01 07 00 7B 1B 00 00 00 00 00 FF 0F AB [01:32:47]RasterBufferAndPrint [01:32:47]line Счет N : (1)706324 [01:32:47]line ИНН: 02508201610067 [01:32:47]line Контрольно-Кассовый Чек [01:32:47]line ПРОДАЖА [01:32:47]line ТРК (МРК, ГНК) : 43 [01:32:47]line Товар: 2710124500 [01:32:47]line Аи-95-К-5 [01:32:47]line 2.710 * 73.90 [01:32:47]line = 200.27 [01:32:47]line НДС 12% НСП 1% [01:32:47]line > о реализуемом товаре [01:32:47]line ОКРУГЛЕНИЕ: -0.27 [01:32:47]line ИТОГО: 200.00 [01:32:47]line Внесено: 200.00 [01:32:47]line СДАЧА: 0.00 [01:32:47]line НСП 1% : 1.77 [01:32:47]line НДС 12% : 21.27 [01:32:47]line Наличными: 200.00 [01:32:47]line Безнал.: 0.00 [01:32:47]line Место: АЗС № 62 "Партнер Нефть" [01:32:47]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [01:32:47]line СНО: Общий режим [01:32:47]line Чек 1 03.06.2024 01:32 [01:32:47]line Смена: 324 ФФД: 1.0 [01:32:47]line ЗНМ: 0300000181 [01:32:47]line РНМ: 0000000000098096 [01:32:47]line Версия ККМ: 001 [01:32:47]line ФМ: 0000000000965400 [01:32:47]line ФД: 68255 [01:32:47]line ФПД: 34157003874008 [01:32:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T013248&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68255&fm=34157003874008&tin=02508201610067®Number=0000000000098096&sum=20000 [01:32:48]OFD Sender: Processing packet 68255 [packets to send 26, broken 25] [01:32:48]ProducePacketName [01:32:48]name=ofd_packets/00068255 [01:32:48]OFD Sender: To server: pG, [01:32:48]CommunicateWithHost lk.salyk.kg:30040 [01:32:48]ConnectInit lk.salyk.kg [01:32:48]written 0, free lines is 4095 [01:32:48]Connected sock=10 [01:32:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 3F 46 07 01 02 E7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 96 0A 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 3B 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 4F 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 01 00 00 00 F4 03 04 00 40 1D 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 9F 0A 01 00 35 04 06 00 1F 10 CC 15 1E D8 CF 71 39 37 8B 12 57 76 [01:32:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 FE 18 47 00 AF 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 35 34 30 30 10 04 04 00 9F 0A 01 00 F4 03 04 00 3E C4 5C 66 B6 04 01 00 00 AE EE 3C EB 58 F5 8E 21 [01:32:48]CommunicateWithHost err = 0 [01:32:48]CheckOFDResponse [01:32:48]1017 (14) - 77093643461234 [01:32:48]1041 (16) - 0000000000965400 [01:32:48]1040 (4) - 68255 [01:32:48]1012 (4) - 02.06.2024 19:13 [01:32:48]1206 (1) - 0 [01:32:48]OFD Sender: Remove packet 68255 [01:32:48]ProducePacketName [01:32:48]name=ofd_packets/00068255 [01:32:48]NVStorageDeleteData [01:32:48]Write to MH i2c: 01 00 00 A6 1B C1 [01:32:48]Write i2c OK [01:32:48]MH_I2C_Read... [01:32:48]Read from MH i2c: 01 [01:32:48]MH_I2C_Read... [01:32:48]Read from MH i2c: 01 07 00 [01:32:48]MH_I2C_Read... [01:32:48]Read from MH i2c: 01 07 00 A6 1B 00 00 00 00 00 DC 0C B0 [01:32:48]RasterBufferAndPrint [01:32:48]line [01:32:48]line [01:32:48]line [01:32:48]line [01:32:48]line [01:32:48]written 0, free lines is 3298 [01:32:48]MH_Cut [01:32:48]Write to MH i2c: D1 01 00 AD 1B 01 9A [01:32:48]Write i2c OK [01:32:48]MH_I2C_Read... [01:32:48]Read from MH i2c: D1 [01:32:48]MH_I2C_Read... [01:32:48]Read from MH i2c: D1 01 00 [01:32:48]MH_I2C_Read... [01:32:48]Read from MH i2c: D1 01 00 AD 1B 00 99 [01:32:48]Write to MH i2c: 01 00 00 AE 1B C9 [01:32:48]Write i2c OK [01:32:48]MH_I2C_Read... [01:32:48]OFD Sender: No OFD packet to send [01:32:49]*** Cut start [01:32:49]*** Partial cut [01:32:49]*** CUTSNS_PIN = 1 [01:32:49]*** CUTSNS_PIN = 0 [01:32:49]*** Brake cut motor [01:32:49]Read from MH i2c: 01 [01:32:49]MH_I2C_Read... [01:32:49]*** Stop cut motor [01:32:49]*** Cut end [01:32:49]Read from MH i2c: 01 07 00 [01:32:49]MH_I2C_Read... [01:32:49]Read from MH i2c: 01 07 00 AE 1B 00 00 00 00 00 FF 0F DE [01:32:49]process_action close_receipt done [01:32:49]requested_data is exist [01:32:49]produce_requested_data [01:32:49]requested_item fm.sn is exist - process it [01:32:49]wFMCommunicate request_size=4 [01:32:49]MH_SAM_APDU [01:32:49]CAPDU: 80 11 00 00 [01:32:49]Write to MH i2c: E2 08 00 AF 1B 80 11 00 00 00 00 00 00 44 [01:32:49]Write i2c OK [01:32:49]MH_I2C_Read... [01:32:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:32:49]Read from MH i2c: E2 [01:32:49]MH_I2C_Read... [01:32:49]Read from MH i2c: E2 17 00 [01:32:49]MH_I2C_Read... [01:32:49]Read from MH i2c: E2 17 00 AF 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 8F [01:32:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [01:32:49]wFMCommunicate OK [01:32:49]requested_item fd.num is exist - process it [01:32:49]SAM_PROTO_GetFieldsCounters [01:32:49]wFMCommunicate request_size=4 [01:32:49]MH_SAM_APDU [01:32:49]CAPDU: 80 13 00 00 [01:32:49]Write to MH i2c: E2 08 00 B0 1B 80 13 00 00 00 00 00 00 47 [01:32:49]Write i2c OK [01:32:49]MH_I2C_Read... [01:32:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:32:50]Read from MH i2c: E2 [01:32:50]MH_I2C_Read... [01:32:50]Read from MH i2c: E2 62 00 [01:32:50]MH_I2C_Read... [01:32:50]Read from MH i2c: E2 62 00 B0 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 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 9F 0A 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 01 00 00 00 5E 04 04 00 01 00 00 00 57 04 04 00 02 00 00 00 19 04 04 00 00 00 00 00 90 00 59 [01:32: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 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 9F 0A 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 01 00 00 00 5E 04 04 00 01 00 00 00 57 04 04 00 02 00 00 00 19 04 04 00 00 00 00 00 90 00 [01:32:50]wFMCommunicate OK [01:32:50]SAM_PROTO_GetFieldsCounters done [01:32:50]requested_item shift.num is exist - process it [01:32:50]requested_item shift.opened is exist - process it [01:32:50]req_shift_opened [01:32:50]FM_GetShiftState [01:32:50]SAM_PROTO_GetShiftState [01:32:50]wFMCommunicate request_size=4 [01:32:50]MH_SAM_APDU [01:32:50]CAPDU: 80 13 01 00 [01:32:50]Write to MH i2c: E2 08 00 B1 1B 80 13 01 00 00 00 00 00 49 [01:32:50]Write i2c OK [01:32:50]MH_I2C_Read... [01:32:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:32:50]Read from MH i2c: E2 [01:32:50]MH_I2C_Read... [01:32:50]Read from MH i2c: E2 0E 00 [01:32:50]MH_I2C_Read... [01:32:50]Read from MH i2c: E2 0E 00 B1 1B 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 24 [01:32:50]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [01:32:50]wFMCommunicate OK [01:32:50]SAM_PROTO_GetShiftState done [01:32:50]FM_GetShiftState done [01:32:50]req_shift_opened done [01:32:50]requested_item shift.open_date is exist - process it [01:32:50]req_shift_open_date [01:32:50]req_shift_open_date done [01:32:50]produce_requested_data done [01:32:50]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68255,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033} [01:32:50]process_action_free close_receipt [01:32:50]json_value_free [01:32:50]json_value_free done [01:32:50]process_json_proto returns [01:32:50]Send response to host [01:32:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68255,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033}}} [01:32:50]free response buf [01:32:50]execute_script done [01:32:50]execute_script returns [01:32:50]free content buf [01:32:50]Sock 7.Close socket [01:32:50]Sock 7.Thread stoped [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:04]OFD Sender: No OFD packet to send [01:37:09]OFD Sender: No OFD packet to send [01:37:14]OFD Sender: No OFD packet to send [01:37:19]OFD Sender: No OFD packet to send [01:37:24]OFD Sender: No OFD packet to send [01:37:29]OFD Sender: No OFD packet to send [01:37:34]OFD Sender: No OFD packet to send [01:37:39]OFD Sender: No OFD packet to send [01:37:44]OFD Sender: No OFD packet to send [01:37:49]OFD Sender: No OFD packet to send [01:37:54]OFD Sender: No OFD packet to send [01:37:59]OFD Sender: No OFD packet to send [01:38:04]OFD Sender: No OFD packet to send [01:38:09]OFD Sender: No OFD packet to send [01:38:14]OFD Sender: No OFD packet to send [01:38:19]OFD Sender: No OFD packet to send [01:38:24]OFD Sender: No OFD packet to send [01:38:29]OFD Sender: No OFD packet to send [01:38:34]OFD Sender: No OFD packet to send [01:38:39]OFD Sender: No OFD packet to send [01:38:44]OFD Sender: No OFD packet to send [01:38:49]OFD Sender: No OFD packet to send [01:38:54]OFD Sender: No OFD packet to send [01:38:59]OFD Sender: No OFD packet to send [01:39:04]OFD Sender: No OFD packet to send [01:39:09]OFD Sender: No OFD packet to send [01:39:14]OFD Sender: No OFD packet to send [01:39:19]OFD Sender: No OFD packet to send [01:39:24]OFD Sender: No OFD packet to send [01:39:29]OFD Sender: No OFD packet to send [01:39:34]OFD Sender: No OFD packet to send [01:39:39]OFD Sender: No OFD packet to send [01:39:44]OFD Sender: No OFD packet to send [01:39:49]OFD Sender: No OFD packet to send [01:39:54]OFD Sender: No OFD packet to send [01:39:59]OFD Sender: No OFD packet to send [01:40:04]OFD Sender: No OFD packet to send [01:40:09]OFD Sender: No OFD packet to send [01:40:14]OFD Sender: No OFD packet to send [01:40:19]OFD Sender: No OFD packet to send [01:40:24]OFD Sender: No OFD packet to send [01:40:29]OFD Sender: No OFD packet to send [01:40:34]OFD Sender: No OFD packet to send [01:40:39]OFD Sender: No OFD packet to send [01:40:44]OFD Sender: No OFD packet to send [01:40:49]OFD Sender: No OFD packet to send [01:40:54]OFD Sender: No OFD packet to send [01:40:59]OFD Sender: No OFD packet to send [01:41:04]OFD Sender: No OFD packet to send [01:41:09]OFD Sender: No OFD packet to send [01:41:14]OFD Sender: No OFD packet to send [01:41:19]OFD Sender: No OFD packet to send [01:41:24]OFD Sender: No OFD packet to send [01:41:29]OFD Sender: No OFD packet to send [01:41:34]OFD Sender: No OFD packet to send [01:41:39]OFD Sender: No OFD packet to send [01:41:44]OFD Sender: No OFD packet to send [01:41:49]OFD Sender: No OFD packet to send [01:41:54]OFD Sender: No OFD packet to send [01:41:59]OFD Sender: No OFD packet to send [01:42:04]OFD Sender: No OFD packet to send [01:42:09]OFD Sender: No OFD packet to send [01:42:14]OFD Sender: No OFD packet to send [01:42:19]OFD Sender: No OFD packet to send [01:42:24]OFD Sender: No OFD packet to send [01:42:29]OFD Sender: No OFD packet to send [01:42:34]OFD Sender: No OFD packet to send [01:42:39]OFD Sender: No OFD packet to send [01:42:44]OFD Sender: No OFD packet to send [01:42:49]OFD Sender: No OFD packet to send [01:42:54]OFD Sender: No OFD packet to send [01:42:59]OFD Sender: No OFD packet to send [01:43:04]OFD Sender: No OFD packet to send [01:43:09]OFD Sender: No OFD packet to send [01:43:14]OFD Sender: No OFD packet to send [01:43:19]OFD Sender: No OFD packet to send [01:43:24]OFD Sender: No OFD packet to send [01:43:29]OFD Sender: No OFD packet to send [01:43:34]OFD Sender: No OFD packet to send [01:43:39]OFD Sender: No OFD packet to send [01:43:44]OFD Sender: No OFD packet to send [01:43:49]OFD Sender: No OFD packet to send [01:43:54]OFD Sender: No OFD packet to send [01:43:59]OFD Sender: No OFD packet to send [01:44:04]OFD Sender: No OFD packet to send [01:44:09]OFD Sender: No OFD packet to send [01:44:14]OFD Sender: No OFD packet to send [01:44:19]OFD Sender: No OFD packet to send [01:44:24]OFD Sender: No OFD packet to send [01:44:29]OFD Sender: No OFD packet to send [01:44:34]OFD Sender: No OFD packet to send [01:44:39]OFD Sender: No OFD packet to send [01:44:44]OFD Sender: No OFD packet to send [01:44:49]OFD Sender: No OFD packet to send [01:44:54]OFD Sender: No OFD packet to send [01:44:59]OFD Sender: No OFD packet to send [01:45:04]OFD Sender: No OFD packet to send [01:45:09]OFD Sender: No OFD packet to send [01:45:14]OFD Sender: No OFD packet to send [01:45:19]OFD Sender: No OFD packet to send [01:45:24]OFD Sender: No OFD packet to send [01:45:29]OFD Sender: No OFD packet to send [01:45:34]OFD Sender: No OFD packet to send [01:45:39]OFD Sender: No OFD packet to send [01:45:44]OFD Sender: No OFD packet to send [01:45:49]OFD Sender: No OFD packet to send [01:45:54]OFD Sender: No OFD packet to send [01:45:59]OFD Sender: No OFD packet to send [01:46:04]OFD Sender: No OFD packet to send [01:46:09]OFD Sender: No OFD packet to send [01:46:14]OFD Sender: No OFD packet to send [01:46:19]OFD Sender: No OFD packet to send [01:46:24]OFD Sender: No OFD packet to send [01:46:29]OFD Sender: No OFD packet to send [01:46:34]OFD Sender: No OFD packet to send [01:46:39]OFD Sender: No OFD packet to send [01:46:44]OFD Sender: No OFD packet to send [01:46:49]OFD Sender: No OFD packet to send [01:46:54]OFD Sender: No OFD packet to send [01:46:59]OFD Sender: No OFD packet to send [01:47:04]OFD Sender: No OFD packet to send [01:47:09]OFD Sender: No OFD packet to send [01:47:14]OFD Sender: No OFD packet to send [01:47:19]OFD Sender: No OFD packet to send [01:47:24]OFD Sender: No OFD packet to send [01:47:29]OFD Sender: No OFD packet to send [01:47:34]OFD Sender: No OFD packet to send [01:47:39]OFD Sender: No OFD packet to send [01:47:44]OFD Sender: No OFD packet to send [01:47:49]OFD Sender: No OFD packet to send [01:47:54]OFD Sender: No OFD packet to send [01:47:59]OFD Sender: No OFD packet to send [01:48:04]OFD Sender: No OFD packet to send [01:48:09]OFD Sender: No OFD packet to send [01:48:14]OFD Sender: No OFD packet to send [01:48:19]OFD Sender: No OFD packet to send [01:48:24]OFD Sender: No OFD packet to send [01:48:29]OFD Sender: No OFD packet to send [01:48:34]OFD Sender: No OFD packet to send [01:48:39]OFD Sender: No OFD packet to send [01:48:44]OFD Sender: No OFD packet to send [01:48:49]OFD Sender: No OFD packet to send [01:48:54]OFD Sender: No OFD packet to send [01:48:59]OFD Sender: No OFD packet to send [01:49:04]OFD Sender: No OFD packet to send [01:49:09]OFD Sender: No OFD packet to send [01:49:14]OFD Sender: No OFD packet to send [01:49:19]OFD Sender: No OFD packet to send [01:49:24]OFD Sender: No OFD packet to send [01:49:29]OFD Sender: No OFD packet to send [01:49:34]OFD Sender: No OFD packet to send [01:49:39]OFD Sender: No OFD packet to send [01:49:44]OFD Sender: No OFD packet to send [01:49:49]OFD Sender: No OFD packet to send [01:49:54]OFD Sender: No OFD packet to send [01:49:59]OFD Sender: No OFD packet to send [01:50:04]OFD Sender: No OFD packet to send [01:50:09]OFD Sender: No OFD packet to send [01:50:14]OFD Sender: No OFD packet to send [01:50:19]OFD Sender: No OFD packet to send [01:50:24]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:57:00]OFD Sender: No OFD packet to send [01:57:05]OFD Sender: No OFD packet to send [01:57:10]OFD Sender: No OFD packet to send [01:57:15]OFD Sender: No OFD packet to send [01:57:20]OFD Sender: No OFD packet to send [01:57:25]OFD Sender: No OFD packet to send [01:57:30]OFD Sender: No OFD packet to send [01:57:35]OFD Sender: No OFD packet to send [01:57:40]OFD Sender: No OFD packet to send [01:57:45]OFD Sender: No OFD packet to send [01:57:50]OFD Sender: No OFD packet to send [01:57:55]OFD Sender: No OFD packet to send [01:58:00]OFD Sender: No OFD packet to send [01:58:05]OFD Sender: No OFD packet to send [01:58:10]OFD Sender: No OFD packet to send [01:58:15]OFD Sender: No OFD packet to send [01:58:20]OFD Sender: No OFD packet to send [01:58:25]OFD Sender: No OFD packet to send [01:58:30]OFD Sender: No OFD packet to send [01:58:35]OFD Sender: No OFD packet to send [01:58:40]OFD Sender: No OFD packet to send [01:58:45]OFD Sender: No OFD packet to send [01:58:50]OFD Sender: No OFD packet to send [01:58:55]OFD Sender: No OFD packet to send [01:59:00]OFD Sender: No OFD packet to send [01:59:05]OFD Sender: No OFD packet to send [01:59:10]OFD Sender: No OFD packet to send [01:59:15]OFD Sender: No OFD packet to send [01:59:20]OFD Sender: No OFD packet to send [01:59:25]OFD Sender: No OFD packet to send [01:59:30]OFD Sender: No OFD packet to send [01:59:35]OFD Sender: No OFD packet to send [01:59:40]OFD Sender: No OFD packet to send [01:59:45]OFD Sender: No OFD packet to send [01:59:50]OFD Sender: No OFD packet to send [01:59:51]accept exits with 9 [01:59:51]New connection [01:59:51]New thread 3066686820 created [01:59:51]Thread 3066543460 joined [01:59:51]Waiting for new connection... [01:59:51] Sock 9.Parse request [01:59:51]Sock 9.Check first char [01:59:51]Sock 9.First char is OK [01:59:51]request: POST /json_proto HTTP/1.0 [01:59:51]Method: POST [01:59:51]URL: /json_proto [01:59:51]Method is POST - this is cgi request [01:59:51]url: /json_proto [01:59:51]query_string will be loaded in cgi processing [01:59:51]execute_cgi json_proto POST (null) [01:59:51]execute_cgi path=json_proto method=POST [01:59:51]POST find Content-Length [01:59:51]Host: 172.17.36.132:8080 [01:59:51]Content-Length: 840 [01:59:51]Content-Type: application/json [01:59:51] [01:59:51]POST finish read [01:59:51]Found Content-Length = 840 [01:59:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706325", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 2.990, "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" ] } } [01:59:51]execute_script... [01:59: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)706325", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 2.990, "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" ] } } [01:59:51]POST & json_proto [01:59:51]process_json_proto [01:59:51]json parsed OK: [01:59:51]protocol is kg_v1.0 [01:59:51]action value=close_receipt [01:59:51]process_action close_receipt [01:59:51]cmd_close_receipt [01:59:51]MH_GetDate [01:59:51]Write to MH i2c: F0 00 00 B2 1B BC [01:59:51]Write i2c OK [01:59:51]MH_I2C_Read... [01:59:51]Read from MH i2c: F0 [01:59:51]MH_I2C_Read... [01:59:51]Read from MH i2c: F0 09 00 [01:59:51]MH_I2C_Read... [01:59:51]Read from MH i2c: F0 09 00 B2 1B 00 99 23 5D 66 B2 22 B0 64 2C [01:59:51]GetLastDocTimeStamp 1717378368 [01:59:51]current date 1717379993 [01:59:51]FM_GetShiftState [01:59:51]SAM_PROTO_GetShiftState [01:59:51]wFMCommunicate request_size=4 [01:59:51]MH_SAM_APDU [01:59:51]CAPDU: 80 13 01 00 [01:59:51]Write to MH i2c: E2 08 00 B3 1B 80 13 01 00 00 00 00 00 4B [01:59:51]Write i2c OK [01:59:51]MH_I2C_Read... [01:59:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:59:51]Read from MH i2c: E2 [01:59:51]MH_I2C_Read... [01:59:51]Read from MH i2c: E2 0E 00 [01:59:51]MH_I2C_Read... [01:59:51]Read from MH i2c: E2 0E 00 B3 1B 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 26 [01:59:51]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [01:59:51]wFMCommunicate OK [01:59:51]SAM_PROTO_GetShiftState done [01:59:51]FM_GetShiftState done [01:59:51]opened in 1717378033 [01:59:51]opened+sec_in_day 1717464433 [01:59:51]quantity*price = 20003 [01:59:51]sum+1 = 20004 [01:59:51]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 200.03 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 0.00 Безнал.: 200.03 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 2 03.06.2024 01:59 Смена: 324 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000965400 ФД: 68256 ФПД: 166949303188615 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T015953&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68256&fm=166949303188615&tin=02508201610067®Number=0000000000098096&sum=20003 [01:59:52]StoreToDocumentArchive [01:59:52]shift 324 fd 68256 [01:59:52]save to /storage/0324/doc_00068256 [01:59:52]save last doc name /storage/0324/doc_00068256 to /storage/kkm_last_doc_name [01:59:52]save OK [01:59:52]Clear old archive folders... [01:59:52]ProcessDocumentItem done err = 0, tmpTLVsize=251 [01:59:52]tlvbuf is 001FFD40 [01:59:52]SAM_PROTO_ClearQueue [01:59:52]wFMCommunicate request_size=4 [01:59:52]MH_SAM_APDU [01:59:52]CAPDU: 80 09 00 00 [01:59:52]Write to MH i2c: E2 08 00 C0 1B 80 09 00 00 00 00 00 00 4D [01:59:52]Write i2c OK [01:59:52]MH_I2C_Read... [01:59:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:59:52]Read from MH i2c: E2 [01:59:52]MH_I2C_Read... [01:59:52]Read from MH i2c: E2 03 00 [01:59:52]MH_I2C_Read... [01:59:52]Read from MH i2c: E2 03 00 C0 1B 00 90 00 4F [01:59:52]RAPDU: 90 00 [01:59:52]wFMCommunicate OK [01:59:52]SAM_PROTO_ClearQueue done [01:59:52]KKMCreateOFDPacket [01:59:52]OFDProtocolAddRootSTLVToBuf [01:59:52]FM_MakeSignedData [01:59:52]FM_MakeSignedData [01:59:52]SAM_PROTO_SignData [01:59:52]wFMCommunicate request_size=4 [01:59:52]MH_SAM_APDU [01:59:52]CAPDU: 80 0D 01 02 [01:59:52]Write to MH i2c: E2 08 00 C1 1B 80 0D 01 02 00 00 00 00 55 [01:59:52]Write i2c OK [01:59:52]MH_I2C_Read... [01:59:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:59:52]Read from MH i2c: E2 [01:59:52]MH_I2C_Read... [01:59:52]Read from MH i2c: E2 03 00 [01:59:52]MH_I2C_Read... [01:59:52]Read from MH i2c: E2 03 00 C1 1B 00 90 00 50 [01:59:52]RAPDU: 90 00 [01:59:52]wFMCommunicate OK [01:59:52]wFMCommunicate request_size=255 [01:59:52]MH_SAM_APDU [01:59: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 34 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 02 00 00 00 F4 03 04 00 99 23 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 A0 0A 01 00 35 04 06 00 97 [01:59:52]Write to MH i2c: E2 02 01 C2 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 34 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 02 00 00 00 F4 03 04 00 99 23 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 A0 0A 01 00 35 04 06 00 97 00 00 B2 [01:59:52]Write i2c OK [01:59:52]MH_I2C_Read... [01:59:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:59:52]Read from MH i2c: E2 [01:59:52]MH_I2C_Read... [01:59:52]Read from MH i2c: E2 03 00 [01:59:52]MH_I2C_Read... [01:59:52]Read from MH i2c: E2 03 00 C2 1B 00 90 00 51 [01:59:52]RAPDU: 90 00 [01:59:52]wFMCommunicate OK [01:59:52]wFMCommunicate request_size=10 [01:59:52]MH_SAM_APDU [01:59:52]CAPDU: 80 0D 02 02 05 D6 E9 E9 7C 87 [01:59:52]Write to MH i2c: E2 0D 00 C3 1B 80 0D 02 02 05 00 D6 E9 E9 7C 87 00 00 0D [01:59:52]Write i2c OK [01:59:52]MH_I2C_Read... [01:59:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:59:52]Read from MH i2c: E2 [01:59:52]MH_I2C_Read... [01:59:52]Read from MH i2c: E2 03 00 [01:59:52]MH_I2C_Read... [01:59:52]Read from MH i2c: E2 03 00 C3 1B 00 90 00 52 [01:59:52]RAPDU: 90 00 [01:59:52]wFMCommunicate OK [01:59:52]wFMCommunicate request_size=4 [01:59:52]MH_SAM_APDU [01:59:52]CAPDU: 80 0D 03 02 [01:59:52]Write to MH i2c: E2 08 00 C4 1B 80 0D 03 02 00 00 00 00 5A [01:59:52]Write i2c OK [01:59:52]MH_I2C_Read... [01:59:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:59:52]Read from MH i2c: E2 [01:59:52]MH_I2C_Read... [01:59:52]Read from MH i2c: E2 0B 00 [01:59:52]MH_I2C_Read... [01:59:52]Read from MH i2c: E2 0B 00 C4 1B 00 EA E7 3B 19 AF D5 0F AC 90 00 BF [01:59:52]RAPDU: EA E7 3B 19 AF D5 0F AC 90 00 [01:59:52]wFMCommunicate OK [01:59:52]SAM_PROTO_SignData done [01:59:52]FM_MakeSignedData done [01:59:52]CreateOFDProtocolMessage [01:59:52]wFMCommunicate request_size=4 [01:59:52]MH_SAM_APDU [01:59:52]CAPDU: 80 11 00 00 [01:59:52]Write to MH i2c: E2 08 00 C5 1B 80 11 00 00 00 00 00 00 5A [01:59:52]Write i2c OK [01:59:52]MH_I2C_Read... [01:59:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:59:52]Read from MH i2c: E2 [01:59:52]MH_I2C_Read... [01:59:52]Read from MH i2c: E2 17 00 [01:59:52]MH_I2C_Read... [01:59:52]Read from MH i2c: E2 17 00 C5 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 A5 [01:59:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [01:59:52]wFMCommunicate OK [01:59:52]CreateOFDProtocolMessage done [01:59:52]OFDSenderStorePacket 68256 [01:59:52]StoreOFDPacket docnum=68256 [01:59:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 9D 17 07 01 02 EB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 02 00 00 00 F4 03 04 00 99 23 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 A0 0A 01 00 35 04 06 00 97 D6 E9 E9 7C 87 EA E7 3B 19 AF D5 0F AC [01:59:52]CheckFolder [01:59:52]dirname=/storage/ofd_packets [01:59:52]CheckFolder done [01:59:52]ProducePacketName [01:59:52]name=ofd_packets/00068256 [01:59:52]NVStorageSaveData ofd_packets/00068256 [01:59:52]File name is /storage/ofd_packets/00068256 [01:59:52]Write 301 bytes [01:59:52]NVStorageSaveData done [01:59:52]OFDSenderStorePacket done [01:59:52]KKMCreateOFDPacket done [01:59:52]NVStorageSaveData kkm_last_timestamp [01:59:52]File name is /storage/kkm_last_timestamp [01:59:52]Write 4 bytes [01:59:52]NVStorageSaveData done [01:59:52]ExternCall_PrintAddStr [01:59:52]wPrintStart [01:59:52]Write to MH i2c: 01 00 00 C6 1B E1 [01:59:52]Write i2c OK [01:59:52]MH_I2C_Read... [01:59:52]Read from MH i2c: 01 [01:59:52]MH_I2C_Read... [01:59:52]Read from MH i2c: 01 07 00 [01:59:52]MH_I2C_Read... [01:59:52]Read from MH i2c: 01 07 00 C6 1B 00 00 00 00 00 FF 0F F6 [01:59:52]RasterBufferAndPrint [01:59:52]line Счет N : (1)706325 [01:59:52]line ИНН: 02508201610067 [01:59:52]line Контрольно-Кассовый Чек [01:59:52]line ПРОДАЖА [01:59:52]line ТРК (МРК, ГНК) : 32 [01:59:52]line Товар: 2710124130 [01:59:52]line Аи-92-К-4 [01:59:52]line 2.990 * 66.90 [01:59:52]line = 200.03 [01:59:52]line НДС 12% НСП 1% [01:59:52]line > о реализуемом товаре [01:59:52]line ИТОГО: 200.03 [01:59:52]line НСП 1% : 1.77 [01:59:52]line НДС 12% : 21.24 [01:59:52]line Наличными: 0.00 [01:59:52]line Безнал.: 200.03 [01:59:52]line Место: АЗС № 62 "Партнер Нефть" [01:59:52]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [01:59:52]line СНО: Общий режим [01:59:52]line Чек 2 03.06.2024 01:59 [01:59:52]line Смена: 324 ФФД: 1.0 [01:59:52]line ЗНМ: 0300000181 [01:59:52]line РНМ: 0000000000098096 [01:59:52]line Версия ККМ: 001 [01:59:52]line Платежная система: АКБ Кыргызстан [01:59:52]line ФМ: 0000000000965400 [01:59:52]line ФД: 68256 [01:59:52]line ФПД: 166949303188615 [01:59:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T015953&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68256&fm=166949303188615&tin=02508201610067®Number=0000000000098096&sum=20003 [01:59:53]OFD Sender: Processing packet 68256 [packets to send 26, broken 25] [01:59:53]ProducePacketName [01:59:53]name=ofd_packets/00068256 [01:59:53]OFD Sender: To server: pG, [01:59:53]CommunicateWithHost lk.salyk.kg:30040 [01:59:53]ConnectInit lk.salyk.kg [01:59:53]written 0, free lines is 4095 [01:59:53]Connected sock=10 [01:59:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 9D 17 07 01 02 EB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 02 00 00 00 F4 03 04 00 99 23 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 A0 0A 01 00 35 04 06 00 97 D6 E9 E9 7C 87 EA E7 3B 19 AF D5 0F AC [01:59:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 51 82 47 00 CE 0C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 A0 0A 01 00 F4 03 04 00 97 CA 5C 66 B6 04 01 00 00 BB 23 E4 FB 3D E2 03 B5 [01:59:53]CommunicateWithHost err = 0 [01:59:53]CheckOFDResponse [01:59:53]1017 (14) - 77093643461234 [01:59:53]1041 (16) - 0000000000965400 [01:59:53]1040 (4) - 68256 [01:59:53]1012 (4) - 02.06.2024 19:40 [01:59:53]1206 (1) - 0 [01:59:53]OFD Sender: Remove packet 68256 [01:59:53]ProducePacketName [01:59:53]name=ofd_packets/00068256 [01:59:53]NVStorageDeleteData [01:59:53]Write to MH i2c: 01 00 00 F0 1B 0B [01:59:53]Write i2c OK [01:59:53]MH_I2C_Read... [01:59:53]Read from MH i2c: 01 [01:59:53]MH_I2C_Read... [01:59:53]Read from MH i2c: 01 07 00 [01:59:53]MH_I2C_Read... [01:59:53]Read from MH i2c: 01 07 00 F0 1B 00 00 00 00 00 F4 0C 12 [01:59:53]RasterBufferAndPrint [01:59:53]line [01:59:53]line [01:59:53]line [01:59:53]line [01:59:53]line [01:59:53]written 0, free lines is 3323 [01:59:53]MH_Cut [01:59:53]Write to MH i2c: D1 01 00 F7 1B 01 E4 [01:59:53]Write i2c OK [01:59:53]MH_I2C_Read... [01:59:53]Read from MH i2c: D1 [01:59:53]MH_I2C_Read... [01:59:53]Read from MH i2c: D1 01 00 [01:59:53]MH_I2C_Read... [01:59:53]Read from MH i2c: D1 01 00 F7 1B 00 E3 [01:59:53]Write to MH i2c: 01 00 00 F8 1B 13 [01:59:53]Write i2c OK [01:59:53]MH_I2C_Read... [01:59:54]OFD Sender: No OFD packet to send [01:59:54]*** Cut start [01:59:54]*** Partial cut [01:59:54]*** CUTSNS_PIN = 1 [01:59:54]*** CUTSNS_PIN = 0 [01:59:54]*** Brake cut motor [01:59:55]Read from MH i2c: 01 [01:59:55]MH_I2C_Read... [01:59:55]*** Stop cut motor [01:59:55]*** Cut end [01:59:55]Read from MH i2c: 01 07 00 [01:59:55]MH_I2C_Read... [01:59:55]Read from MH i2c: 01 07 00 F8 1B 00 00 00 00 00 FF 0F 28 [01:59:55]process_action close_receipt done [01:59:55]requested_data is exist [01:59:55]produce_requested_data [01:59:55]requested_item fm.sn is exist - process it [01:59:55]wFMCommunicate request_size=4 [01:59:55]MH_SAM_APDU [01:59:55]CAPDU: 80 11 00 00 [01:59:55]Write to MH i2c: E2 08 00 F9 1B 80 11 00 00 00 00 00 00 8E [01:59:55]Write i2c OK [01:59:55]MH_I2C_Read... [01:59:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:59:55]Read from MH i2c: E2 [01:59:55]MH_I2C_Read... [01:59:55]Read from MH i2c: E2 17 00 [01:59:55]MH_I2C_Read... [01:59:55]Read from MH i2c: E2 17 00 F9 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 D9 [01:59:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [01:59:55]wFMCommunicate OK [01:59:55]requested_item fd.num is exist - process it [01:59:55]SAM_PROTO_GetFieldsCounters [01:59:55]wFMCommunicate request_size=4 [01:59:55]MH_SAM_APDU [01:59:55]CAPDU: 80 13 00 00 [01:59:55]Write to MH i2c: E2 08 00 FA 1B 80 13 00 00 00 00 00 00 91 [01:59:55]Write i2c OK [01:59:55]MH_I2C_Read... [01:59:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:59:55]Read from MH i2c: E2 [01:59:55]MH_I2C_Read... [01:59:55]Read from MH i2c: E2 62 00 [01:59:55]MH_I2C_Read... [01:59:55]Read from MH i2c: E2 62 00 FA 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 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 A0 0A 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 02 00 00 00 5E 04 04 00 02 00 00 00 57 04 04 00 03 00 00 00 19 04 04 00 00 00 00 00 90 00 A7 [01:59: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 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 A0 0A 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 02 00 00 00 5E 04 04 00 02 00 00 00 57 04 04 00 03 00 00 00 19 04 04 00 00 00 00 00 90 00 [01:59:55]wFMCommunicate OK [01:59:55]SAM_PROTO_GetFieldsCounters done [01:59:55]requested_item shift.num is exist - process it [01:59:55]requested_item shift.opened is exist - process it [01:59:55]req_shift_opened [01:59:55]FM_GetShiftState [01:59:55]SAM_PROTO_GetShiftState [01:59:55]wFMCommunicate request_size=4 [01:59:55]MH_SAM_APDU [01:59:55]CAPDU: 80 13 01 00 [01:59:55]Write to MH i2c: E2 08 00 FB 1B 80 13 01 00 00 00 00 00 93 [01:59:55]Write i2c OK [01:59:55]MH_I2C_Read... [01:59:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:59:55]Read from MH i2c: E2 [01:59:55]MH_I2C_Read... [01:59:55]Read from MH i2c: E2 0E 00 [01:59:55]MH_I2C_Read... [01:59:55]Read from MH i2c: E2 0E 00 FB 1B 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 6E [01:59:55]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [01:59:55]wFMCommunicate OK [01:59:55]SAM_PROTO_GetShiftState done [01:59:55]FM_GetShiftState done [01:59:55]req_shift_opened done [01:59:55]requested_item shift.open_date is exist - process it [01:59:55]req_shift_open_date [01:59:55]req_shift_open_date done [01:59:55]produce_requested_data done [01:59:55]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68256,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033} [01:59:55]process_action_free close_receipt [01:59:55]json_value_free [01:59:55]json_value_free done [01:59:55]process_json_proto returns [01:59:55]Send response to host [01:59:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68256,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033}}} [01:59:55]free response buf [01:59:55]execute_script done [01:59:55]execute_script returns [01:59:55]free content buf [01:59:55]Sock 9.Close socket [01:59:55]Sock 9.Thread stoped [01:59:59]OFD Sender: No OFD packet to send [02:00:04]OFD Sender: No OFD packet to send [02:00:09]OFD Sender: No OFD packet to send [02:00:14]OFD Sender: No OFD packet to send [02:00:19]OFD Sender: No OFD packet to send [02:00:24]OFD Sender: No OFD packet to send [02:00:29]OFD Sender: No OFD packet to send [02:00:34]OFD Sender: No OFD packet to send [02:00:39]OFD Sender: No OFD packet to send [02:00:44]OFD Sender: No OFD packet to send [02:00:49]OFD Sender: No OFD packet to send [02:00:54]OFD Sender: No OFD packet to send [02:00:59]OFD Sender: No OFD packet to send [02:01:04]OFD Sender: No OFD packet to send [02:01:09]OFD Sender: No OFD packet to send [02:01:14]OFD Sender: No OFD packet to send [02:01:19]OFD Sender: No OFD packet to send [02:01:24]OFD Sender: No OFD packet to send [02:01:29]OFD Sender: No OFD packet to send [02:01:34]OFD Sender: No OFD packet to send [02:01:39]OFD Sender: No OFD packet to send [02:01:44]OFD Sender: No OFD packet to send [02:01:49]OFD Sender: No OFD packet to send [02:01:54]OFD Sender: No OFD packet to send [02:01:59]OFD Sender: No OFD packet to send [02:02:04]OFD Sender: No OFD packet to send [02:02:09]OFD Sender: No OFD packet to send [02:02:14]OFD Sender: No OFD packet to send [02:02:19]OFD Sender: No OFD packet to send [02:02:24]OFD Sender: No OFD packet to send [02:02:29]OFD Sender: No OFD packet to send [02:02:34]OFD Sender: No OFD packet to send [02:02:39]OFD Sender: No OFD packet to send [02:02:44]OFD Sender: No OFD packet to send [02:02:49]OFD Sender: No OFD packet to send [02:02:54]OFD Sender: No OFD packet to send [02:02:59]OFD Sender: No OFD packet to send [02:03:04]OFD Sender: No OFD packet to send [02:03:09]OFD Sender: No OFD packet to send [02:03:14]OFD Sender: No OFD packet to send [02:03:19]OFD Sender: No OFD packet to send [02:03:24]OFD Sender: No OFD packet to send [02:03:29]OFD Sender: No OFD packet to send [02:03:34]OFD Sender: No OFD packet to send [02:03:39]OFD Sender: No OFD packet to send [02:03:44]OFD Sender: No OFD packet to send [02:03:49]OFD Sender: No OFD packet to send [02:03:54]OFD Sender: No OFD packet to send [02:03:59]OFD Sender: No OFD packet to send [02:04:04]OFD Sender: No OFD packet to send [02:04:09]OFD Sender: No OFD packet to send [02:04:14]OFD Sender: No OFD packet to send [02:04:19]OFD Sender: No OFD packet to send [02:04:24]OFD Sender: No OFD packet to send [02:04:29]OFD Sender: No OFD packet to send [02:04:34]OFD Sender: No OFD packet to send [02:04:39]OFD Sender: No OFD packet to send [02:04:44]OFD Sender: No OFD packet to send [02:04:49]OFD Sender: No OFD packet to send [02:04:54]OFD Sender: No OFD packet to send [02:04:59]OFD Sender: No OFD packet to send [02:05:04]OFD Sender: No OFD packet to send [02:05:09]OFD Sender: No OFD packet to send [02:05:14]OFD Sender: No OFD packet to send [02:05:19]OFD Sender: No OFD packet to send [02:05:24]OFD Sender: No OFD packet to send [02:05:29]OFD Sender: No OFD packet to send [02:05:34]OFD Sender: No OFD packet to send [02:05:39]OFD Sender: No OFD packet to send [02:05:44]OFD Sender: No OFD packet to send [02:05:49]OFD Sender: No OFD packet to send [02:05:54]OFD Sender: No OFD packet to send [02:05:59]OFD Sender: No OFD packet to send [02:06:04]OFD Sender: No OFD packet to send [02:06:09]OFD Sender: No OFD packet to send [02:06:14]OFD Sender: No OFD packet to send [02:06:19]OFD Sender: No OFD packet to send [02:06:24]OFD Sender: No OFD packet to send [02:06:29]OFD Sender: No OFD packet to send [02:06:34]OFD Sender: No OFD packet to send [02:06:39]OFD Sender: No OFD packet to send [02:06:44]OFD Sender: No OFD packet to send [02:06:49]OFD Sender: No OFD packet to send [02:06:54]OFD Sender: No OFD packet to send [02:06:59]OFD Sender: No OFD packet to send [02:07:04]OFD Sender: No OFD packet to send [02:07:09]OFD Sender: No OFD packet to send [02:07:14]OFD Sender: No OFD packet to send [02:07:19]OFD Sender: No OFD packet to send [02:07:24]OFD Sender: No OFD packet to send [02:07:29]OFD Sender: No OFD packet to send [02:07:34]OFD Sender: No OFD packet to send [02:07:39]OFD Sender: No OFD packet to send [02:07:44]OFD Sender: No OFD packet to send [02:07:49]OFD Sender: No OFD packet to send [02:07:54]OFD Sender: No OFD packet to send [02:07:59]OFD Sender: No OFD packet to send [02:08:04]OFD Sender: No OFD packet to send [02:08:09]OFD Sender: No OFD packet to send [02:08:14]OFD Sender: No OFD packet to send [02:08:19]OFD Sender: No OFD packet to send [02:08:24]OFD Sender: No OFD packet to send [02:08:29]OFD Sender: No OFD packet to send [02:08:34]OFD Sender: No OFD packet to send [02:08:39]OFD Sender: No OFD packet to send [02:08:44]OFD Sender: No OFD packet to send [02:08:49]OFD Sender: No OFD packet to send [02:08:54]OFD Sender: No OFD packet to send [02:08:59]OFD Sender: No OFD packet to send [02:09:04]OFD Sender: No OFD packet to send [02:09:09]OFD Sender: No OFD packet to send [02:09:14]OFD Sender: No OFD packet to send [02:09:19]OFD Sender: No OFD packet to send [02:09:24]OFD Sender: No OFD packet to send [02:09:29]OFD Sender: No OFD packet to send [02:09:34]OFD Sender: No OFD packet to send [02:09:39]OFD Sender: No OFD packet to send [02:09:44]OFD Sender: No OFD packet to send [02:09:49]OFD Sender: No OFD packet to send [02:09:54]OFD Sender: No OFD packet to send [02:09:59]OFD Sender: No OFD packet to send [02:10:04]OFD Sender: No OFD packet to send [02:10:09]OFD Sender: No OFD packet to send [02:10:14]OFD Sender: No OFD packet to send [02:10:19]OFD Sender: No OFD packet to send [02:10:24]OFD Sender: No OFD packet to send [02:10:29]OFD Sender: No OFD packet to send [02:10:34]OFD Sender: No OFD packet to send [02:10:39]OFD Sender: No OFD packet to send [02:10:44]OFD Sender: No OFD packet to send [02:10:49]OFD Sender: No OFD packet to send [02:10:54]OFD Sender: No OFD packet to send [02:10:59]OFD Sender: No OFD packet to send [02:11:04]OFD Sender: No OFD packet to send [02:11:09]OFD Sender: No OFD packet to send [02:11:14]OFD Sender: No OFD packet to send [02:11:19]OFD Sender: No OFD packet to send [02:11:24]OFD Sender: No OFD packet to send [02:11:29]OFD Sender: No OFD packet to send [02:11:34]OFD Sender: No OFD packet to send [02:11:39]OFD Sender: No OFD packet to send [02:11:44]OFD Sender: No OFD packet to send [02:11:49]OFD Sender: No OFD packet to send [02:11:54]OFD Sender: No OFD packet to send [02:11:59]OFD Sender: No OFD packet to send [02:12:04]OFD Sender: No OFD packet to send [02:12:09]OFD Sender: No OFD packet to send [02:12:14]OFD Sender: No OFD packet to send [02:12:19]OFD Sender: No OFD packet to send [02:12:24]OFD Sender: No OFD packet to send [02:12:29]OFD Sender: No OFD packet to send [02:12:34]OFD Sender: No OFD packet to send [02:12:39]OFD Sender: No OFD packet to send [02:12:44]OFD Sender: No OFD packet to send [02:12:49]OFD Sender: No OFD packet to send [02:12:54]OFD Sender: No OFD packet to send [02:12:59]OFD Sender: No OFD packet to send [02:13:04]OFD Sender: No OFD packet to send [02:13:09]OFD Sender: No OFD packet to send [02:13:14]OFD Sender: No OFD packet to send [02:13:19]OFD Sender: No OFD packet to send [02:13:24]OFD Sender: No OFD packet to send [02:13:29]OFD Sender: No OFD packet to send [02:13:34]OFD Sender: No OFD packet to send [02:13:39]OFD Sender: No OFD packet to send [02:13:44]OFD Sender: No OFD packet to send [02:13:49]OFD Sender: No OFD packet to send [02:13:54]OFD Sender: No OFD packet to send [02:13:59]OFD Sender: No OFD packet to send [02:14:04]OFD Sender: No OFD packet to send [02:14:09]OFD Sender: No OFD packet to send [02:14:14]OFD Sender: No OFD packet to send [02:14:19]OFD Sender: No OFD packet to send [02:14:24]OFD Sender: No OFD packet to send [02:14:29]OFD Sender: No OFD packet to send [02:14:34]OFD Sender: No OFD packet to send [02:14:39]OFD Sender: No OFD packet to send [02:14:44]OFD Sender: No OFD packet to send [02:14:49]OFD Sender: No OFD packet to send [02:14:54]OFD Sender: No OFD packet to send [02:14:59]OFD Sender: No OFD packet to send [02:15:04]OFD Sender: No OFD packet to send [02:15:09]OFD Sender: No OFD packet to send [02:15:14]OFD Sender: No OFD packet to send [02:15:19]OFD Sender: No OFD packet to send [02:15:24]OFD Sender: No OFD packet to send [02:15:29]OFD Sender: No OFD packet to send [02:15:34]OFD Sender: No OFD packet to send [02:15:39]OFD Sender: No OFD packet to send [02:15:44]OFD Sender: No OFD packet to send [02:15:49]OFD Sender: No OFD packet to send [02:15:54]OFD Sender: No OFD packet to send [02:15:59]OFD Sender: No OFD packet to send [02:16:04]OFD Sender: No OFD packet to send [02:16:09]OFD Sender: No OFD packet to send [02:16:14]OFD Sender: No OFD packet to send [02:16:19]OFD Sender: No OFD packet to send [02:16:24]OFD Sender: No OFD packet to send [02:16:29]OFD Sender: No OFD packet to send [02:16:34]OFD Sender: No OFD packet to send [02:16:39]OFD Sender: No OFD packet to send [02:16:44]OFD Sender: No OFD packet to send [02:16:49]OFD Sender: No OFD packet to send [02:16:54]OFD Sender: No OFD packet to send [02:16:59]OFD Sender: No OFD packet to send [02:17:04]OFD Sender: No OFD packet to send [02:17:09]OFD Sender: No OFD packet to send [02:17:14]OFD Sender: No OFD packet to send [02:17:19]OFD Sender: No OFD packet to send [02:17:24]OFD Sender: No OFD packet to send [02:17:29]OFD Sender: No OFD packet to send [02:17:34]OFD Sender: No OFD packet to send [02:17:39]OFD Sender: No OFD packet to send [02:17:44]OFD Sender: No OFD packet to send [02:17:49]OFD Sender: No OFD packet to send [02:17:54]OFD Sender: No OFD packet to send [02:17:59]OFD Sender: No OFD packet to send [02:18:04]OFD Sender: No OFD packet to send [02:18:09]OFD Sender: No OFD packet to send [02:18:14]OFD Sender: No OFD packet to send [02:18:19]OFD Sender: No OFD packet to send [02:18:24]OFD Sender: No OFD packet to send [02:18:29]OFD Sender: No OFD packet to send [02:18:34]OFD Sender: No OFD packet to send [02:18:39]OFD Sender: No OFD packet to send [02:18:44]OFD Sender: No OFD packet to send [02:18:50]OFD Sender: No OFD packet to send [02:18:55]OFD Sender: No OFD packet to send [02:19:00]OFD Sender: No OFD packet to send [02:19:05]OFD Sender: No OFD packet to send [02:19:10]OFD Sender: No OFD packet to send [02:19:15]OFD Sender: No OFD packet to send [02:19:20]OFD Sender: No OFD packet to send [02:19:25]OFD Sender: No OFD packet to send [02:19:30]OFD Sender: No OFD packet to send [02:19:35]OFD Sender: No OFD packet to send [02:19:40]OFD Sender: No OFD packet to send [02:19:45]OFD Sender: No OFD packet to send [02:19:50]OFD Sender: No OFD packet to send [02:19:55]OFD Sender: No OFD packet to send [02:20:00]OFD Sender: No OFD packet to send [02:20:05]OFD Sender: No OFD packet to send [02:20:10]OFD Sender: No OFD packet to send [02:20:15]OFD Sender: No OFD packet to send [02:20:20]OFD Sender: No OFD packet to send [02:20:25]OFD Sender: No OFD packet to send [02:20:30]OFD Sender: No OFD packet to send [02:20:35]OFD Sender: No OFD packet to send [02:20:40]OFD Sender: No OFD packet to send [02:20:45]OFD Sender: No OFD packet to send [02:20:50]OFD Sender: No OFD packet to send [02:20:55]OFD Sender: No OFD packet to send [02:21:00]OFD Sender: No OFD packet to send [02:21:05]OFD Sender: No OFD packet to send [02:21:10]OFD Sender: No OFD packet to send [02:21:15]OFD Sender: No OFD packet to send [02:21:20]OFD Sender: No OFD packet to send [02:21:25]OFD Sender: No OFD packet to send [02:21:30]OFD Sender: No OFD packet to send [02:21:35]OFD Sender: No OFD packet to send [02:21:40]OFD Sender: No OFD packet to send [02:21:45]OFD Sender: No OFD packet to send [02:21:50]OFD Sender: No OFD packet to send [02:21:55]OFD Sender: No OFD packet to send [02:22:00]OFD Sender: No OFD packet to send [02:22:05]OFD Sender: No OFD packet to send [02:22:10]OFD Sender: No OFD packet to send [02:22:15]OFD Sender: No OFD packet to send [02:22:20]OFD Sender: No OFD packet to send [02:22:25]OFD Sender: No OFD packet to send [02:22:30]OFD Sender: No OFD packet to send [02:22:35]OFD Sender: No OFD packet to send [02:22:40]OFD Sender: No OFD packet to send [02:22:45]OFD Sender: No OFD packet to send [02:22:50]OFD Sender: No OFD packet to send [02:22:55]OFD Sender: No OFD packet to send [02:23:00]OFD Sender: No OFD packet to send [02:23:05]OFD Sender: No OFD packet to send [02:23:10]OFD Sender: No OFD packet to send [02:23:15]OFD Sender: No OFD packet to send [02:23:20]OFD Sender: No OFD packet to send [02:23:25]OFD Sender: No OFD packet to send [02:23:30]OFD Sender: No OFD packet to send [02:23:35]OFD Sender: No OFD packet to send [02:23:40]OFD Sender: No OFD packet to send [02:23:45]OFD Sender: No OFD packet to send [02:23:50]OFD Sender: No OFD packet to send [02:23:55]OFD Sender: No OFD packet to send [02:24:00]OFD Sender: No OFD packet to send [02:24:05]OFD Sender: No OFD packet to send [02:24:10]OFD Sender: No OFD packet to send [02:24:15]OFD Sender: No OFD packet to send [02:24:20]OFD Sender: No OFD packet to send [02:24:25]OFD Sender: No OFD packet to send [02:24:30]OFD Sender: No OFD packet to send [02:24:35]OFD Sender: No OFD packet to send [02:24:40]OFD Sender: No OFD packet to send [02:24:45]OFD Sender: No OFD packet to send [02:24:50]OFD Sender: No OFD packet to send [02:24:55]OFD Sender: No OFD packet to send [02:25:00]OFD Sender: No OFD packet to send [02:25:05]OFD Sender: No OFD packet to send [02:25:10]OFD Sender: No OFD packet to send [02:25:15]OFD Sender: No OFD packet to send [02:25:20]OFD Sender: No OFD packet to send [02:25:25]OFD Sender: No OFD packet to send [02:25:30]OFD Sender: No OFD packet to send [02:25:35]OFD Sender: No OFD packet to send [02:25:40]OFD Sender: No OFD packet to send [02:25:45]OFD Sender: No OFD packet to send [02:25:50]OFD Sender: No OFD packet to send [02:25:55]OFD Sender: No OFD packet to send [02:26:00]OFD Sender: No OFD packet to send [02:26:05]OFD Sender: No OFD packet to send [02:26:10]OFD Sender: No OFD packet to send [02:26:15]OFD Sender: No OFD packet to send [02:26:20]OFD Sender: No OFD packet to send [02:26:25]OFD Sender: No OFD packet to send [02:26:30]OFD Sender: No OFD packet to send [02:26:35]OFD Sender: No OFD packet to send [02:26:40]OFD Sender: No OFD packet to send [02:26:45]OFD Sender: No OFD packet to send [02:26:50]OFD Sender: No OFD packet to send [02:26:55]OFD Sender: No OFD packet to send [02:27:00]OFD Sender: No OFD packet to send [02:27:05]OFD Sender: No OFD packet to send [02:27:10]OFD Sender: No OFD packet to send [02:27:15]OFD Sender: No OFD packet to send [02:27:20]OFD Sender: No OFD packet to send [02:27:25]OFD Sender: No OFD packet to send [02:27:30]OFD Sender: No OFD packet to send [02:27:35]OFD Sender: No OFD packet to send [02:27:40]OFD Sender: No OFD packet to send [02:27:45]OFD Sender: No OFD packet to send [02:27:50]OFD Sender: No OFD packet to send [02:27:55]OFD Sender: No OFD packet to send [02:28:00]OFD Sender: No OFD packet to send [02:28:05]OFD Sender: No OFD packet to send [02:28:10]OFD Sender: No OFD packet to send [02:28:15]OFD Sender: No OFD packet to send [02:28:20]OFD Sender: No OFD packet to send [02:28:25]OFD Sender: No OFD packet to send [02:28:30]OFD Sender: No OFD packet to send [02:28:35]OFD Sender: No OFD packet to send [02:28:40]OFD Sender: No OFD packet to send [02:28:45]OFD Sender: No OFD packet to send [02:28:50]OFD Sender: No OFD packet to send [02:28:55]OFD Sender: No OFD packet to send [02:29:00]OFD Sender: No OFD packet to send [02:29:05]OFD Sender: No OFD packet to send [02:29:10]OFD Sender: No OFD packet to send [02:29:15]OFD Sender: No OFD packet to send [02:29:20]OFD Sender: No OFD packet to send [02:29:25]OFD Sender: No OFD packet to send [02:29:30]OFD Sender: No OFD packet to send [02:29:35]OFD Sender: No OFD packet to send [02:29:40]OFD Sender: No OFD packet to send [02:29:45]OFD Sender: No OFD packet to send [02:29:50]OFD Sender: No OFD packet to send [02:29:55]OFD Sender: No OFD packet to send [02:30:00]OFD Sender: No OFD packet to send [02:30:05]OFD Sender: No OFD packet to send [02:30:10]OFD Sender: No OFD packet to send [02:30:15]OFD Sender: No OFD packet to send [02:30:20]OFD Sender: No OFD packet to send [02:30:25]OFD Sender: No OFD packet to send [02:30:30]OFD Sender: No OFD packet to send [02:30:35]OFD Sender: No OFD packet to send [02:30:40]OFD Sender: No OFD packet to send [02:30:45]OFD Sender: No OFD packet to send [02:30:50]OFD Sender: No OFD packet to send [02:30:55]OFD Sender: No OFD packet to send [02:31:00]OFD Sender: No OFD packet to send [02:31:05]OFD Sender: No OFD packet to send [02:31:10]OFD Sender: No OFD packet to send [02:31:15]OFD Sender: No OFD packet to send [02:31:20]OFD Sender: No OFD packet to send [02:31:25]OFD Sender: No OFD packet to send [02:31:30]OFD Sender: No OFD packet to send [02:31:35]OFD Sender: No OFD packet to send [02:31:40]OFD Sender: No OFD packet to send [02:31:45]OFD Sender: No OFD packet to send [02:31:50]OFD Sender: No OFD packet to send [02:31:55]OFD Sender: No OFD packet to send [02:32:00]OFD Sender: No OFD packet to send [02:32:05]OFD Sender: No OFD packet to send [02:32:10]OFD Sender: No OFD packet to send [02:32:15]OFD Sender: No OFD packet to send [02:32:20]OFD Sender: No OFD packet to send [02:32:25]OFD Sender: No OFD packet to send [02:32:30]OFD Sender: No OFD packet to send [02:32:35]OFD Sender: No OFD packet to send [02:32:40]OFD Sender: No OFD packet to send [02:32:45]OFD Sender: No OFD packet to send [02:32:50]OFD Sender: No OFD packet to send [02:32:55]OFD Sender: No OFD packet to send [02:33:00]OFD Sender: No OFD packet to send [02:33:05]OFD Sender: No OFD packet to send [02:33:10]OFD Sender: No OFD packet to send [02:33:15]OFD Sender: No OFD packet to send [02:33:20]OFD Sender: No OFD packet to send [02:33:25]OFD Sender: No OFD packet to send [02:33:30]OFD Sender: No OFD packet to send [02:33:35]OFD Sender: No OFD packet to send [02:33:40]OFD Sender: No OFD packet to send [02:33:45]OFD Sender: No OFD packet to send [02:33:50]OFD Sender: No OFD packet to send [02:33:55]OFD Sender: No OFD packet to send [02:34:00]OFD Sender: No OFD packet to send [02:34:05]OFD Sender: No OFD packet to send [02:34:10]OFD Sender: No OFD packet to send [02:34:15]OFD Sender: No OFD packet to send [02:34:20]OFD Sender: No OFD packet to send [02:34:25]OFD Sender: No OFD packet to send [02:34:30]OFD Sender: No OFD packet to send [02:34:35]OFD Sender: No OFD packet to send [02:34:40]OFD Sender: No OFD packet to send [02:34:45]OFD Sender: No OFD packet to send [02:34:50]OFD Sender: No OFD packet to send [02:34:55]OFD Sender: No OFD packet to send [02:35:00]OFD Sender: No OFD packet to send [02:35:05]OFD Sender: No OFD packet to send [02:35:10]OFD Sender: No OFD packet to send [02:35:15]OFD Sender: No OFD packet to send [02:35:20]OFD Sender: No OFD packet to send [02:35:25]OFD Sender: No OFD packet to send [02:35:30]OFD Sender: No OFD packet to send [02:35:35]OFD Sender: No OFD packet to send [02:35:40]OFD Sender: No OFD packet to send [02:35:45]OFD Sender: No OFD packet to send [02:35:50]OFD Sender: No OFD packet to send [02:35:55]OFD Sender: No OFD packet to send [02:36:00]OFD Sender: No OFD packet to send [02:36:05]OFD Sender: No OFD packet to send [02:36:10]OFD Sender: No OFD packet to send [02:36:15]OFD Sender: No OFD packet to send [02:36:20]OFD Sender: No OFD packet to send [02:36:25]OFD Sender: No OFD packet to send [02:36:30]OFD Sender: No OFD packet to send [02:36:35]OFD Sender: No OFD packet to send [02:36:40]OFD Sender: No OFD packet to send [02:36:45]OFD Sender: No OFD packet to send [02:36:50]OFD Sender: No OFD packet to send [02:36:55]OFD Sender: No OFD packet to send [02:37:00]OFD Sender: No OFD packet to send [02:37:05]OFD Sender: No OFD packet to send [02:37:10]OFD Sender: No OFD packet to send [02:37:15]OFD Sender: No OFD packet to send [02:37:20]OFD Sender: No OFD packet to send [02:37:25]OFD Sender: No OFD packet to send [02:37:30]OFD Sender: No OFD packet to send [02:37:35]OFD Sender: No OFD packet to send [02:37:40]OFD Sender: No OFD packet to send [02:37:45]OFD Sender: No OFD packet to send [02:37:50]OFD Sender: No OFD packet to send [02:37:55]OFD Sender: No OFD packet to send [02:38:00]OFD Sender: No OFD packet to send [02:38:05]OFD Sender: No OFD packet to send [02:38:10]OFD Sender: No OFD packet to send [02:38:15]OFD Sender: No OFD packet to send [02:38:20]OFD Sender: No OFD packet to send [02:38:25]OFD Sender: No OFD packet to send [02:38:30]OFD Sender: No OFD packet to send [02:38:35]OFD Sender: No OFD packet to send [02:38:41]OFD Sender: No OFD packet to send [02:38:46]OFD Sender: No OFD packet to send [02:38:51]OFD Sender: No OFD packet to send [02:38:56]OFD Sender: No OFD packet to send [02:39:01]OFD Sender: No OFD packet to send [02:39:06]OFD Sender: No OFD packet to send [02:39:11]OFD Sender: No OFD packet to send [02:39:16]OFD Sender: No OFD packet to send [02:39:21]OFD Sender: No OFD packet to send [02:39:26]OFD Sender: No OFD packet to send [02:39:31]OFD Sender: No OFD packet to send [02:39:36]OFD Sender: No OFD packet to send [02:39:41]OFD Sender: No OFD packet to send [02:39:46]OFD Sender: No OFD packet to send [02:39:51]OFD Sender: No OFD packet to send [02:39:56]OFD Sender: No OFD packet to send [02:40:01]OFD Sender: No OFD packet to send [02:40:06]OFD Sender: No OFD packet to send [02:40:11]OFD Sender: No OFD packet to send [02:40:16]OFD Sender: No OFD packet to send [02:40:21]OFD Sender: No OFD packet to send [02:40:26]OFD Sender: No OFD packet to send [02:40:31]OFD Sender: No OFD packet to send [02:40:36]OFD Sender: No OFD packet to send [02:40:41]OFD Sender: No OFD packet to send [02:40:46]OFD Sender: No OFD packet to send [02:40:51]OFD Sender: No OFD packet to send [02:40:56]OFD Sender: No OFD packet to send [02:41:01]OFD Sender: No OFD packet to send [02:41:06]OFD Sender: No OFD packet to send [02:41:11]OFD Sender: No OFD packet to send [02:41:16]OFD Sender: No OFD packet to send [02:41:21]OFD Sender: No OFD packet to send [02:41:26]OFD Sender: No OFD packet to send [02:41:31]OFD Sender: No OFD packet to send [02:41:36]OFD Sender: No OFD packet to send [02:41:41]OFD Sender: No OFD packet to send [02:41:46]OFD Sender: No OFD packet to send [02:41:51]OFD Sender: No OFD packet to send [02:41:56]OFD Sender: No OFD packet to send [02:42:01]OFD Sender: No OFD packet to send [02:42:06]OFD Sender: No OFD packet to send [02:42:11]OFD Sender: No OFD packet to send [02:42:16]OFD Sender: No OFD packet to send [02:42:21]OFD Sender: No OFD packet to send [02:42:26]OFD Sender: No OFD packet to send [02:42:31]OFD Sender: No OFD packet to send [02:42:36]OFD Sender: No OFD packet to send [02:42:41]OFD Sender: No OFD packet to send [02:42:46]OFD Sender: No OFD packet to send [02:42:51]OFD Sender: No OFD packet to send [02:42:56]OFD Sender: No OFD packet to send [02:43:01]OFD Sender: No OFD packet to send [02:43:06]OFD Sender: No OFD packet to send [02:43:11]OFD Sender: No OFD packet to send [02:43:16]OFD Sender: No OFD packet to send [02:43:21]OFD Sender: No OFD packet to send [02:43:26]OFD Sender: No OFD packet to send [02:43:31]OFD Sender: No OFD packet to send [02:43:36]OFD Sender: No OFD packet to send [02:43:41]OFD Sender: No OFD packet to send [02:43:46]OFD Sender: No OFD packet to send [02:43:51]OFD Sender: No OFD packet to send [02:43:56]OFD Sender: No OFD packet to send [02:44:01]OFD Sender: No OFD packet to send [02:44:06]OFD Sender: No OFD packet to send [02:44:11]OFD Sender: No OFD packet to send [02:44:16]OFD Sender: No OFD packet to send [02:44:21]OFD Sender: No OFD packet to send [02:44:26]OFD Sender: No OFD packet to send [02:44:31]OFD Sender: No OFD packet to send [02:44:36]OFD Sender: No OFD packet to send [02:44:41]OFD Sender: No OFD packet to send [02:44:46]OFD Sender: No OFD packet to send [02:44:51]OFD Sender: No OFD packet to send [02:44:56]OFD Sender: No OFD packet to send [02:45:01]OFD Sender: No OFD packet to send [02:45:06]OFD Sender: No OFD packet to send [02:45:11]OFD Sender: No OFD packet to send [02:45:16]OFD Sender: No OFD packet to send [02:45:21]OFD Sender: No OFD packet to send [02:45:26]OFD Sender: No OFD packet to send [02:45:31]OFD Sender: No OFD packet to send [02:45:36]OFD Sender: No OFD packet to send [02:45:41]OFD Sender: No OFD packet to send [02:45:46]OFD Sender: No OFD packet to send [02:45:51]OFD Sender: No OFD packet to send [02:45:56]OFD Sender: No OFD packet to send [02:46:01]OFD Sender: No OFD packet to send [02:46:06]OFD Sender: No OFD packet to send [02:46:11]OFD Sender: No OFD packet to send [02:46:16]OFD Sender: No OFD packet to send [02:46:21]OFD Sender: No OFD packet to send [02:46:26]OFD Sender: No OFD packet to send [02:46:31]OFD Sender: No OFD packet to send [02:46:36]OFD Sender: No OFD packet to send [02:46:41]OFD Sender: No OFD packet to send [02:46:46]OFD Sender: No OFD packet to send [02:46:51]OFD Sender: No OFD packet to send [02:46:56]OFD Sender: No OFD packet to send [02:47:01]OFD Sender: No OFD packet to send [02:47:06]OFD Sender: No OFD packet to send [02:47:11]OFD Sender: No OFD packet to send [02:47:16]OFD Sender: No OFD packet to send [02:47:21]OFD Sender: No OFD packet to send [02:47:26]OFD Sender: No OFD packet to send [02:47:31]OFD Sender: No OFD packet to send [02:47:36]OFD Sender: No OFD packet to send [02:47:41]OFD Sender: No OFD packet to send [02:47:46]OFD Sender: No OFD packet to send [02:47:51]OFD Sender: No OFD packet to send [02:47:56]OFD Sender: No OFD packet to send [02:48:01]OFD Sender: No OFD packet to send [02:48:06]OFD Sender: No OFD packet to send [02:48:11]OFD Sender: No OFD packet to send [02:48:16]OFD Sender: No OFD packet to send [02:48:21]OFD Sender: No OFD packet to send [02:48:26]OFD Sender: No OFD packet to send [02:48:31]OFD Sender: No OFD packet to send [02:48:36]OFD Sender: No OFD packet to send [02:48:41]OFD Sender: No OFD packet to send [02:48:46]OFD Sender: No OFD packet to send [02:48:51]OFD Sender: No OFD packet to send [02:48:56]OFD Sender: No OFD packet to send [02:49:01]OFD Sender: No OFD packet to send [02:49:06]OFD Sender: No OFD packet to send [02:49:11]OFD Sender: No OFD packet to send [02:49:16]OFD Sender: No OFD packet to send [02:49:21]OFD Sender: No OFD packet to send [02:49:26]OFD Sender: No OFD packet to send [02:49:31]OFD Sender: No OFD packet to send [02:49:36]OFD Sender: No OFD packet to send [02:49:41]OFD Sender: No OFD packet to send [02:49:46]OFD Sender: No OFD packet to send [02:49:51]OFD Sender: No OFD packet to send [02:49:56]OFD Sender: No OFD packet to send [02:50:01]OFD Sender: No OFD packet to send [02:50:06]OFD Sender: No OFD packet to send [02:50:11]OFD Sender: No OFD packet to send [02:50:16]OFD Sender: No OFD packet to send [02:50:21]OFD Sender: No OFD packet to send [02:50:26]OFD Sender: No OFD packet to send [02:50:31]OFD Sender: No OFD packet to send [02:50:36]OFD Sender: No OFD packet to send [02:50:41]OFD Sender: No OFD packet to send [02:50:46]OFD Sender: No OFD packet to send [02:50:51]OFD Sender: No OFD packet to send [02:50:56]OFD Sender: No OFD packet to send [02:51:01]OFD Sender: No OFD packet to send [02:51:06]OFD Sender: No OFD packet to send [02:51:11]OFD Sender: No OFD packet to send [02:51:16]OFD Sender: No OFD packet to send [02:51:21]OFD Sender: No OFD packet to send [02:51:26]OFD Sender: No OFD packet to send [02:51:31]OFD Sender: No OFD packet to send [02:51:36]OFD Sender: No OFD packet to send [02:51:41]OFD Sender: No OFD packet to send [02:51:46]OFD Sender: No OFD packet to send [02:51:51]OFD Sender: No OFD packet to send [02:51:56]OFD Sender: No OFD packet to send [02:52:01]OFD Sender: No OFD packet to send [02:52:06]OFD Sender: No OFD packet to send [02:52:11]OFD Sender: No OFD packet to send [02:52:16]OFD Sender: No OFD packet to send [02:52:21]OFD Sender: No OFD packet to send [02:52:26]OFD Sender: No OFD packet to send [02:52:31]OFD Sender: No OFD packet to send [02:52:36]OFD Sender: No OFD packet to send [02:52:41]OFD Sender: No OFD packet to send [02:52:46]OFD Sender: No OFD packet to send [02:52:51]OFD Sender: No OFD packet to send [02:52:56]OFD Sender: No OFD packet to send [02:53:01]OFD Sender: No OFD packet to send [02:53:06]OFD Sender: No OFD packet to send [02:53:11]OFD Sender: No OFD packet to send [02:53:16]OFD Sender: No OFD packet to send [02:53:21]OFD Sender: No OFD packet to send [02:53:26]OFD Sender: No OFD packet to send [02:53:31]OFD Sender: No OFD packet to send [02:53:36]OFD Sender: No OFD packet to send [02:53:41]OFD Sender: No OFD packet to send [02:53:46]OFD Sender: No OFD packet to send [02:53:51]OFD Sender: No OFD packet to send [02:53:56]OFD Sender: No OFD packet to send [02:54:01]OFD Sender: No OFD packet to send [02:54:06]OFD Sender: No OFD packet to send [02:54:11]OFD Sender: No OFD packet to send [02:54:16]OFD Sender: No OFD packet to send [02:54:21]OFD Sender: No OFD packet to send [02:54:26]OFD Sender: No OFD packet to send [02:54:31]OFD Sender: No OFD packet to send [02:54:36]OFD Sender: No OFD packet to send [02:54:41]OFD Sender: No OFD packet to send [02:54:46]OFD Sender: No OFD packet to send [02:54:51]OFD Sender: No OFD packet to send [02:54:56]OFD Sender: No OFD packet to send [02:55:01]OFD Sender: No OFD packet to send [02:55:06]OFD Sender: No OFD packet to send [02:55:11]OFD Sender: No OFD packet to send [02:55:16]OFD Sender: No OFD packet to send [02:55:21]OFD Sender: No OFD packet to send [02:55:26]OFD Sender: No OFD packet to send [02:55:31]OFD Sender: No OFD packet to send [02:55:36]OFD Sender: No OFD packet to send [02:55:41]OFD Sender: No OFD packet to send [02:55:46]OFD Sender: No OFD packet to send [02:55:51]OFD Sender: No OFD packet to send [02:55:56]OFD Sender: No OFD packet to send [02:56:01]OFD Sender: No OFD packet to send [02:56:06]OFD Sender: No OFD packet to send [02:56:11]OFD Sender: No OFD packet to send [02:56:16]OFD Sender: No OFD packet to send [02:56:21]OFD Sender: No OFD packet to send [02:56:26]OFD Sender: No OFD packet to send [02:56:31]OFD Sender: No OFD packet to send [02:56:36]OFD Sender: No OFD packet to send [02:56:41]OFD Sender: No OFD packet to send [02:56:46]OFD Sender: No OFD packet to send [02:56:51]OFD Sender: No OFD packet to send [02:56:56]OFD Sender: No OFD packet to send [02:57:01]OFD Sender: No OFD packet to send [02:57:06]OFD Sender: No OFD packet to send [02:57:11]OFD Sender: No OFD packet to send [02:57:16]OFD Sender: No OFD packet to send [02:57:21]OFD Sender: No OFD packet to send [02:57:26]OFD Sender: No OFD packet to send [02:57:31]OFD Sender: No OFD packet to send [02:57:36]OFD Sender: No OFD packet to send [02:57:41]OFD Sender: No OFD packet to send [02:57:46]OFD Sender: No OFD packet to send [02:57:51]OFD Sender: No OFD packet to send [02:57:56]OFD Sender: No OFD packet to send [02:58:01]OFD Sender: No OFD packet to send [02:58:06]OFD Sender: No OFD packet to send [02:58:11]OFD Sender: No OFD packet to send [02:58:16]OFD Sender: No OFD packet to send [02:58:21]OFD Sender: No OFD packet to send [02:58:26]OFD Sender: No OFD packet to send [02:58:31]OFD Sender: No OFD packet to send [02:58:37]OFD Sender: No OFD packet to send [02:58:42]OFD Sender: No OFD packet to send [02:58:47]OFD Sender: No OFD packet to send [02:58:52]OFD Sender: No OFD packet to send [02:58:57]OFD Sender: No OFD packet to send [02:59:02]OFD Sender: No OFD packet to send [02:59:07]OFD Sender: No OFD packet to send [02:59:12]OFD Sender: No OFD packet to send [02:59:17]OFD Sender: No OFD packet to send [02:59:22]OFD Sender: No OFD packet to send [02:59:27]OFD Sender: No OFD packet to send [02:59:32]OFD Sender: No OFD packet to send [02:59:37]OFD Sender: No OFD packet to send [02:59:42]OFD Sender: No OFD packet to send [02:59:47]OFD Sender: No OFD packet to send [02:59:52]OFD Sender: No OFD packet to send [02:59:57]OFD Sender: No OFD packet to send [03:00:02]OFD Sender: No OFD packet to send [03:00:07]OFD Sender: No OFD packet to send [03:00:12]OFD Sender: No OFD packet to send [03:00:17]OFD Sender: No OFD packet to send [03:00:22]OFD Sender: No OFD packet to send [03:00:27]OFD Sender: No OFD packet to send [03:00:32]OFD Sender: No OFD packet to send [03:00:37]OFD Sender: No OFD packet to send [03:00:42]OFD Sender: No OFD packet to send [03:00:47]OFD Sender: No OFD packet to send [03:00:52]OFD Sender: No OFD packet to send [03:00:57]OFD Sender: No OFD packet to send [03:01:02]OFD Sender: No OFD packet to send [03:01:07]OFD Sender: No OFD packet to send [03:01:12]OFD Sender: No OFD packet to send [03:01:17]OFD Sender: No OFD packet to send [03:01:22]OFD Sender: No OFD packet to send [03:01:27]OFD Sender: No OFD packet to send [03:01:32]OFD Sender: No OFD packet to send [03:01:37]OFD Sender: No OFD packet to send [03:01:42]OFD Sender: No OFD packet to send [03:01:47]OFD Sender: No OFD packet to send [03:01:52]OFD Sender: No OFD packet to send [03:01:57]OFD Sender: No OFD packet to send [03:02:02]OFD Sender: No OFD packet to send [03:02:07]OFD Sender: No OFD packet to send [03:02:12]OFD Sender: No OFD packet to send [03:02:17]OFD Sender: No OFD packet to send [03:02:22]OFD Sender: No OFD packet to send [03:02:27]OFD Sender: No OFD packet to send [03:02:32]OFD Sender: No OFD packet to send [03:02:37]OFD Sender: No OFD packet to send [03:02:42]OFD Sender: No OFD packet to send [03:02:47]OFD Sender: No OFD packet to send [03:02:52]OFD Sender: No OFD packet to send [03:02:57]OFD Sender: No OFD packet to send [03:03:02]OFD Sender: No OFD packet to send [03:03:07]OFD Sender: No OFD packet to send [03:03:12]OFD Sender: No OFD packet to send [03:03:17]OFD Sender: No OFD packet to send [03:03:22]OFD Sender: No OFD packet to send [03:03:27]OFD Sender: No OFD packet to send [03:03:32]OFD Sender: No OFD packet to send [03:03:37]OFD Sender: No OFD packet to send [03:03:42]OFD Sender: No OFD packet to send [03:03:47]OFD Sender: No OFD packet to send [03:03:52]OFD Sender: No OFD packet to send [03:03:57]OFD Sender: No OFD packet to send [03:04:02]OFD Sender: No OFD packet to send [03:04:07]OFD Sender: No OFD packet to send [03:04:12]OFD Sender: No OFD packet to send [03:04:17]OFD Sender: No OFD packet to send [03:04:22]OFD Sender: No OFD packet to send [03:04:27]OFD Sender: No OFD packet to send [03:04:32]OFD Sender: No OFD packet to send [03:04:37]OFD Sender: No OFD packet to send [03:04:42]OFD Sender: No OFD packet to send [03:04:47]OFD Sender: No OFD packet to send [03:04:52]OFD Sender: No OFD packet to send [03:04:57]OFD Sender: No OFD packet to send [03:05:02]OFD Sender: No OFD packet to send [03:05:07]OFD Sender: No OFD packet to send [03:05:12]OFD Sender: No OFD packet to send [03:05:17]OFD Sender: No OFD packet to send [03:05:22]OFD Sender: No OFD packet to send [03:05:27]OFD Sender: No OFD packet to send [03:05:32]OFD Sender: No OFD packet to send [03:05:37]OFD Sender: No OFD packet to send [03:05:42]OFD Sender: No OFD packet to send [03:05:47]OFD Sender: No OFD packet to send [03:05:52]OFD Sender: No OFD packet to send [03:05:57]OFD Sender: No OFD packet to send [03:06:02]OFD Sender: No OFD packet to send [03:06:07]OFD Sender: No OFD packet to send [03:06:12]OFD Sender: No OFD packet to send [03:06:17]OFD Sender: No OFD packet to send [03:06:22]OFD Sender: No OFD packet to send [03:06:27]OFD Sender: No OFD packet to send [03:06:32]OFD Sender: No OFD packet to send [03:06:37]OFD Sender: No OFD packet to send [03:06:42]OFD Sender: No OFD packet to send [03:06:47]OFD Sender: No OFD packet to send [03:06:52]OFD Sender: No OFD packet to send [03:06:57]OFD Sender: No OFD packet to send [03:07:02]OFD Sender: No OFD packet to send [03:07:07]OFD Sender: No OFD packet to send [03:07:12]OFD Sender: No OFD packet to send [03:07:17]OFD Sender: No OFD packet to send [03:07:22]OFD Sender: No OFD packet to send [03:07:27]OFD Sender: No OFD packet to send [03:07:32]OFD Sender: No OFD packet to send [03:07:37]OFD Sender: No OFD packet to send [03:07:42]OFD Sender: No OFD packet to send [03:07:47]OFD Sender: No OFD packet to send [03:07:52]OFD Sender: No OFD packet to send [03:07:57]OFD Sender: No OFD packet to send [03:08:02]OFD Sender: No OFD packet to send [03:08:07]OFD Sender: No OFD packet to send [03:08:12]OFD Sender: No OFD packet to send [03:08:17]OFD Sender: No OFD packet to send [03:08:22]OFD Sender: No OFD packet to send [03:08:27]OFD Sender: No OFD packet to send [03:08:32]OFD Sender: No OFD packet to send [03:08:37]OFD Sender: No OFD packet to send [03:08:42]OFD Sender: No OFD packet to send [03:08:47]OFD Sender: No OFD packet to send [03:08:52]OFD Sender: No OFD packet to send [03:08:57]OFD Sender: No OFD packet to send [03:09:02]OFD Sender: No OFD packet to send [03:09:07]OFD Sender: No OFD packet to send [03:09:12]OFD Sender: No OFD packet to send [03:09:17]OFD Sender: No OFD packet to send [03:09:22]OFD Sender: No OFD packet to send [03:09:27]OFD Sender: No OFD packet to send [03:09:32]OFD Sender: No OFD packet to send [03:09:37]OFD Sender: No OFD packet to send [03:09:42]OFD Sender: No OFD packet to send [03:09:47]OFD Sender: No OFD packet to send [03:09:52]OFD Sender: No OFD packet to send [03:09:57]OFD Sender: No OFD packet to send [03:10:02]OFD Sender: No OFD packet to send [03:10:07]OFD Sender: No OFD packet to send [03:10:12]OFD Sender: No OFD packet to send [03:10:17]OFD Sender: No OFD packet to send [03:10:22]OFD Sender: No OFD packet to send [03:10:27]OFD Sender: No OFD packet to send [03:10:32]OFD Sender: No OFD packet to send [03:10:37]OFD Sender: No OFD packet to send [03:10:42]OFD Sender: No OFD packet to send [03:10:47]OFD Sender: No OFD packet to send [03:10:52]OFD Sender: No OFD packet to send [03:10:57]OFD Sender: No OFD packet to send [03:11:02]OFD Sender: No OFD packet to send [03:11:07]OFD Sender: No OFD packet to send [03:11:12]OFD Sender: No OFD packet to send [03:11:17]OFD Sender: No OFD packet to send [03:11:22]OFD Sender: No OFD packet to send [03:11:27]OFD Sender: No OFD packet to send [03:11:32]OFD Sender: No OFD packet to send [03:11:37]OFD Sender: No OFD packet to send [03:11:42]OFD Sender: No OFD packet to send [03:11:47]OFD Sender: No OFD packet to send [03:11:52]OFD Sender: No OFD packet to send [03:11:57]OFD Sender: No OFD packet to send [03:12:02]OFD Sender: No OFD packet to send [03:12:07]OFD Sender: No OFD packet to send [03:12:12]OFD Sender: No OFD packet to send [03:12:17]OFD Sender: No OFD packet to send [03:12:22]OFD Sender: No OFD packet to send [03:12:27]OFD Sender: No OFD packet to send [03:12:32]OFD Sender: No OFD packet to send [03:12:37]OFD Sender: No OFD packet to send [03:12:42]OFD Sender: No OFD packet to send [03:12:47]OFD Sender: No OFD packet to send [03:12:52]OFD Sender: No OFD packet to send [03:12:57]OFD Sender: No OFD packet to send [03:13:02]OFD Sender: No OFD packet to send [03:13:07]OFD Sender: No OFD packet to send [03:13:12]OFD Sender: No OFD packet to send [03:13:17]OFD Sender: No OFD packet to send [03:13:22]OFD Sender: No OFD packet to send [03:13:27]OFD Sender: No OFD packet to send [03:13:32]OFD Sender: No OFD packet to send [03:13:37]OFD Sender: No OFD packet to send [03:13:42]OFD Sender: No OFD packet to send [03:13:47]OFD Sender: No OFD packet to send [03:13:52]OFD Sender: No OFD packet to send [03:13:57]OFD Sender: No OFD packet to send [03:14:02]OFD Sender: No OFD packet to send [03:14:07]OFD Sender: No OFD packet to send [03:14:12]OFD Sender: No OFD packet to send [03:14:17]OFD Sender: No OFD packet to send [03:14:22]OFD Sender: No OFD packet to send [03:14:27]OFD Sender: No OFD packet to send [03:14:32]OFD Sender: No OFD packet to send [03:14:37]OFD Sender: No OFD packet to send [03:14:42]OFD Sender: No OFD packet to send [03:14:47]OFD Sender: No OFD packet to send [03:14:52]OFD Sender: No OFD packet to send [03:14:57]OFD Sender: No OFD packet to send [03:15:02]OFD Sender: No OFD packet to send [03:15:07]OFD Sender: No OFD packet to send [03:15:12]OFD Sender: No OFD packet to send [03:15:17]OFD Sender: No OFD packet to send [03:15:22]OFD Sender: No OFD packet to send [03:15:27]OFD Sender: No OFD packet to send [03:15:32]OFD Sender: No OFD packet to send [03:15:37]OFD Sender: No OFD packet to send [03:15:42]OFD Sender: No OFD packet to send [03:15:47]OFD Sender: No OFD packet to send [03:15:52]OFD Sender: No OFD packet to send [03:15:57]OFD Sender: No OFD packet to send [03:16:02]OFD Sender: No OFD packet to send [03:16:07]OFD Sender: No OFD packet to send [03:16:12]OFD Sender: No OFD packet to send [03:16:17]OFD Sender: No OFD packet to send [03:16:20]accept exits with 7 [03:16:20]New connection [03:16:20]New thread 3066543460 created [03:16:20]Thread 3066686820 joined [03:16:20]Waiting for new connection... [03:16:20] Sock 7.Parse request [03:16:20]Sock 7.Check first char [03:16:20]Sock 7.First char is OK [03:16:20]request: POST /json_proto HTTP/1.0 [03:16:20]Method: POST [03:16:20]URL: /json_proto [03:16:20]Method is POST - this is cgi request [03:16:20]url: /json_proto [03:16:20]query_string will be loaded in cgi processing [03:16:20]execute_cgi json_proto POST (null) [03:16:20]execute_cgi path=json_proto method=POST [03:16:20]POST find Content-Length [03:16:20]Host: 172.17.36.132:8080 [03:16:20]Content-Length: 841 [03:16:20]Content-Type: application/json [03:16:20] [03:16:20]POST finish read [03:16:20]Found Content-Length = 841 [03:16:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706327", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 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.44 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:16:20]execute_script... [03:16: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)706327", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 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.44 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:16:20]POST & json_proto [03:16:20]process_json_proto [03:16:20]json parsed OK: [03:16:20]protocol is kg_v1.0 [03:16:20]action value=close_receipt [03:16:20]process_action close_receipt [03:16:20]cmd_close_receipt [03:16:20]MH_GetDate [03:16:20]Write to MH i2c: F0 00 00 FC 1B 06 [03:16:20]Write i2c OK [03:16:20]MH_I2C_Read... [03:16:20]Read from MH i2c: F0 [03:16:20]MH_I2C_Read... [03:16:20]Read from MH i2c: F0 09 00 [03:16:20]MH_I2C_Read... [03:16:20]Read from MH i2c: F0 09 00 FC 1B 00 87 35 5D 66 B2 22 B0 64 76 [03:16:20]GetLastDocTimeStamp 1717379993 [03:16:20]current date 1717384583 [03:16:20]FM_GetShiftState [03:16:20]SAM_PROTO_GetShiftState [03:16:20]wFMCommunicate request_size=4 [03:16:20]MH_SAM_APDU [03:16:20]CAPDU: 80 13 01 00 [03:16:20]Write to MH i2c: E2 08 00 FD 1B 80 13 01 00 00 00 00 00 95 [03:16:20]Write i2c OK [03:16:20]MH_I2C_Read... [03:16:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:16:20]Read from MH i2c: E2 [03:16:20]MH_I2C_Read... [03:16:20]Read from MH i2c: E2 0E 00 [03:16:20]MH_I2C_Read... [03:16:20]Read from MH i2c: E2 0E 00 FD 1B 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 70 [03:16:20]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [03:16:20]wFMCommunicate OK [03:16:20]SAM_PROTO_GetShiftState done [03:16:20]FM_GetShiftState done [03:16:20]opened in 1717378033 [03:16:20]opened+sec_in_day 1717464433 [03:16:20]quantity*price = 70044 [03:16:20]sum+1 = 70045 [03:16:20]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 700.44 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 0.00 Безнал.: 700.44 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 3 03.06.2024 03:16 Смена: 324 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000965400 ФД: 68257 ФПД: 228440602276895 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T031623&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68257&fm=228440602276895&tin=02508201610067®Number=0000000000098096&sum=70044 [03:16:21]StoreToDocumentArchive [03:16:21]shift 324 fd 68257 [03:16:21]save to /storage/0324/doc_00068257 [03:16:21]save last doc name /storage/0324/doc_00068257 to /storage/kkm_last_doc_name [03:16:21]save OK [03:16:21]Clear old archive folders... [03:16:21]ProcessDocumentItem done err = 0, tmpTLVsize=251 [03:16:21]tlvbuf is 003CFB60 [03:16:21]SAM_PROTO_ClearQueue [03:16:21]wFMCommunicate request_size=4 [03:16:21]MH_SAM_APDU [03:16:21]CAPDU: 80 09 00 00 [03:16:21]Write to MH i2c: E2 08 00 0A 1C 80 09 00 00 00 00 00 00 98 [03:16:21]Write i2c OK [03:16:21]MH_I2C_Read... [03:16:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [03:16:21]Read from MH i2c: E2 [03:16:21]MH_I2C_Read... [03:16:21]Read from MH i2c: E2 03 00 [03:16:21]MH_I2C_Read... [03:16:21]Read from MH i2c: E2 03 00 0A 1C 00 90 00 9A [03:16:21]RAPDU: 90 00 [03:16:21]wFMCommunicate OK [03:16:21]SAM_PROTO_ClearQueue done [03:16:21]KKMCreateOFDPacket [03:16:21]OFDProtocolAddRootSTLVToBuf [03:16:21]FM_MakeSignedData [03:16:21]FM_MakeSignedData [03:16:21]SAM_PROTO_SignData [03:16:21]wFMCommunicate request_size=4 [03:16:21]MH_SAM_APDU [03:16:21]CAPDU: 80 0D 01 02 [03:16:21]Write to MH i2c: E2 08 00 0B 1C 80 0D 01 02 00 00 00 00 A0 [03:16:21]Write i2c OK [03:16:21]MH_I2C_Read... [03:16:21]Read from MH i2c: E2 [03:16:21]MH_I2C_Read... [03:16:21]Read from MH i2c: E2 03 00 [03:16:21]MH_I2C_Read... [03:16:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [03:16:21]Read from MH i2c: E2 03 00 0B 1C 00 90 00 9B [03:16:21]RAPDU: 90 00 [03:16:21]wFMCommunicate OK [03:16:21]wFMCommunicate request_size=255 [03:16:21]MH_SAM_APDU [03:16: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 34 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9C 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 00 00 00 F4 03 04 00 87 35 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 A1 0A 01 00 35 04 06 00 CF [03:16:21]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 34 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9C 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 00 00 00 F4 03 04 00 87 35 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 A1 0A 01 00 35 04 06 00 CF 00 00 D7 [03:16:21]Write i2c OK [03:16:21]MH_I2C_Read... [03:16:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:16:21]Read from MH i2c: E2 [03:16:21]MH_I2C_Read... [03:16:21]Read from MH i2c: E2 03 00 [03:16:21]MH_I2C_Read... [03:16:21]Read from MH i2c: E2 03 00 0C 1C 00 90 00 9C [03:16:21]RAPDU: 90 00 [03:16:21]wFMCommunicate OK [03:16:21]wFMCommunicate request_size=10 [03:16:21]MH_SAM_APDU [03:16:21]CAPDU: 80 0D 02 02 05 C3 F8 F3 74 1F [03:16:21]Write to MH i2c: E2 0D 00 0D 1C 80 0D 02 02 05 00 C3 F8 F3 74 1F 00 00 EE [03:16:21]Write i2c OK [03:16:21]MH_I2C_Read... [03:16:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:16:21]Read from MH i2c: E2 [03:16:21]MH_I2C_Read... [03:16:21]Read from MH i2c: E2 03 00 [03:16:21]MH_I2C_Read... [03:16:21]Read from MH i2c: E2 03 00 0D 1C 00 90 00 9D [03:16:21]RAPDU: 90 00 [03:16:21]wFMCommunicate OK [03:16:21]wFMCommunicate request_size=4 [03:16:21]MH_SAM_APDU [03:16:21]CAPDU: 80 0D 03 02 [03:16:21]Write to MH i2c: E2 08 00 0E 1C 80 0D 03 02 00 00 00 00 A5 [03:16:21]Write i2c OK [03:16:21]MH_I2C_Read... [03:16:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [03:16:21]Read from MH i2c: E2 [03:16:21]MH_I2C_Read... [03:16:21]Read from MH i2c: E2 0B 00 [03:16:21]MH_I2C_Read... [03:16:21]Read from MH i2c: E2 0B 00 0E 1C 00 D1 17 31 12 AB 00 0C 7C 90 00 04 [03:16:21]RAPDU: D1 17 31 12 AB 00 0C 7C 90 00 [03:16:21]wFMCommunicate OK [03:16:21]SAM_PROTO_SignData done [03:16:21]FM_MakeSignedData done [03:16:21]CreateOFDProtocolMessage [03:16:21]wFMCommunicate request_size=4 [03:16:21]MH_SAM_APDU [03:16:21]CAPDU: 80 11 00 00 [03:16:21]Write to MH i2c: E2 08 00 0F 1C 80 11 00 00 00 00 00 00 A5 [03:16:21]Write i2c OK [03:16:21]MH_I2C_Read... [03:16:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:16:22]Read from MH i2c: E2 [03:16:22]MH_I2C_Read... [03:16:22]Read from MH i2c: E2 17 00 [03:16:22]MH_I2C_Read... [03:16:22]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 35 34 30 30 90 00 F0 [03:16:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [03:16:22]wFMCommunicate OK [03:16:22]CreateOFDProtocolMessage done [03:16:22]OFDSenderStorePacket 68257 [03:16:22]StoreOFDPacket docnum=68257 [03:16:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 5B E7 07 01 68 05 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9C 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 00 00 00 F4 03 04 00 87 35 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 A1 0A 01 00 35 04 06 00 CF C3 F8 F3 74 1F D1 17 31 12 AB 00 0C 7C [03:16:22]CheckFolder [03:16:22]dirname=/storage/ofd_packets [03:16:22]CheckFolder done [03:16:22]ProducePacketName [03:16:22]name=ofd_packets/00068257 [03:16:22]NVStorageSaveData ofd_packets/00068257 [03:16:22]File name is /storage/ofd_packets/00068257 [03:16:22]Write 301 bytes [03:16:22]NVStorageSaveData done [03:16:22]OFDSenderStorePacket done [03:16:22]KKMCreateOFDPacket done [03:16:22]NVStorageSaveData kkm_last_timestamp [03:16:22]File name is /storage/kkm_last_timestamp [03:16:22]Write 4 bytes [03:16:22]NVStorageSaveData done [03:16:22]ExternCall_PrintAddStr [03:16:22]wPrintStart [03:16:22]Write to MH i2c: 01 00 00 10 1C 2C [03:16:22]Write i2c OK [03:16:22]MH_I2C_Read... [03:16:22]Read from MH i2c: 01 [03:16:22]MH_I2C_Read... [03:16:22]Read from MH i2c: 01 07 00 [03:16:22]MH_I2C_Read... [03:16:22]Read from MH i2c: 01 07 00 10 1C 00 00 00 00 00 FF 0F 41 [03:16:22]RasterBufferAndPrint [03:16:22]line Счет N : (1)706327 [03:16:22]line ИНН: 02508201610067 [03:16:22]line Контрольно-Кассовый Чек [03:16:22]line ПРОДАЖА [03:16:22]line ТРК (МРК, ГНК) : 53 [03:16:22]line Товар: 2710124130 [03:16:22]line Аи-92-К-4 [03:16:22]line 10.470 * 66.90 [03:16:22]line = 700.44 [03:16:22]line НДС 12% НСП 1% [03:16:22]line > о реализуемом товаре [03:16:22]line ИТОГО: 700.44 [03:16:22]line НСП 1% : 6.20 [03:16:22]line НДС 12% : 74.38 [03:16:22]line Наличными: 0.00 [03:16:22]line Безнал.: 700.44 [03:16:22]line Место: АЗС № 62 "Партнер Нефть" [03:16:22]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [03:16:22]line СНО: Общий режим [03:16:22]line Чек 3 03.06.2024 03:16 [03:16:22]line Смена: 324 ФФД: 1.0 [03:16:22]line ЗНМ: 0300000181 [03:16:22]line РНМ: 0000000000098096 [03:16:22]line Версия ККМ: 001 [03:16:22]line Платежная система: АКБ Кыргызстан [03:16:22]line ФМ: 0000000000965400 [03:16:22]line ФД: 68257 [03:16:22]line ФПД: 228440602276895 [03:16:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T031623&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68257&fm=228440602276895&tin=02508201610067®Number=0000000000098096&sum=70044 [03:16:22]OFD Sender: Processing packet 68257 [packets to send 26, broken 25] [03:16:22]ProducePacketName [03:16:22]name=ofd_packets/00068257 [03:16:22]OFD Sender: To server: pG, [03:16:22]CommunicateWithHost lk.salyk.kg:30040 [03:16:22]ConnectInit lk.salyk.kg [03:16:22]written 0, free lines is 4095 [03:16:22]Connected sock=10 [03:16:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 5B E7 07 01 68 05 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9C 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 00 00 00 F4 03 04 00 87 35 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 A1 0A 01 00 35 04 06 00 CF C3 F8 F3 74 1F D1 17 31 12 AB 00 0C 7C [03:16:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 A6 9B 47 00 A5 9D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 A1 0A 01 00 F4 03 04 00 84 DC 5C 66 B6 04 01 00 00 02 B7 30 3E A5 61 A7 10 [03:16:22]CommunicateWithHost err = 0 [03:16:22]CheckOFDResponse [03:16:22]1017 (14) - 77093643461234 [03:16:22]1041 (16) - 0000000000965400 [03:16:22]1040 (4) - 68257 [03:16:22]1012 (4) - 02.06.2024 20:56 [03:16:22]1206 (1) - 0 [03:16:22]OFD Sender: Remove packet 68257 [03:16:22]ProducePacketName [03:16:22]name=ofd_packets/00068257 [03:16:22]NVStorageDeleteData [03:16:22]Write to MH i2c: 01 00 00 3A 1C 56 [03:16:22]Write i2c OK [03:16:22]MH_I2C_Read... [03:16:22]Read from MH i2c: 01 [03:16:22]MH_I2C_Read... [03:16:22]Read from MH i2c: 01 07 00 [03:16:22]MH_I2C_Read... [03:16:22]Read from MH i2c: 01 07 00 3A 1C 00 00 00 00 00 E5 0C 4E [03:16:22]RasterBufferAndPrint [03:16:22]line [03:16:22]line [03:16:22]line [03:16:22]line [03:16:22]line [03:16:22]written 0, free lines is 3307 [03:16:22]MH_Cut [03:16:22]Write to MH i2c: D1 01 00 41 1C 01 2F [03:16:22]Write i2c OK [03:16:22]MH_I2C_Read... [03:16:22]Read from MH i2c: D1 [03:16:22]MH_I2C_Read... [03:16:22]Read from MH i2c: D1 01 00 [03:16:22]MH_I2C_Read... [03:16:22]Read from MH i2c: D1 01 00 41 1C 00 2E [03:16:22]Write to MH i2c: 01 00 00 42 1C 5E [03:16:22]Write i2c OK [03:16:22]MH_I2C_Read... [03:16:23]OFD Sender: No OFD packet to send [03:16:23]*** Cut start [03:16:23]*** Partial cut [03:16:23]*** CUTSNS_PIN = 1 [03:16:23]*** CUTSNS_PIN = 0 [03:16:23]*** Brake cut motor [03:16:24]Read from MH i2c: 01 [03:16:24]MH_I2C_Read... [03:16:24]*** Stop cut motor [03:16:24]*** Cut end [03:16:24]Read from MH i2c: 01 07 00 [03:16:24]MH_I2C_Read... [03:16:24]Read from MH i2c: 01 07 00 42 1C 00 00 00 00 00 FF 0F 73 [03:16:24]process_action close_receipt done [03:16:24]requested_data is exist [03:16:24]produce_requested_data [03:16:24]requested_item fm.sn is exist - process it [03:16:24]wFMCommunicate request_size=4 [03:16:24]MH_SAM_APDU [03:16:24]CAPDU: 80 11 00 00 [03:16:24]Write to MH i2c: E2 08 00 43 1C 80 11 00 00 00 00 00 00 D9 [03:16:24]Write i2c OK [03:16:24]MH_I2C_Read... [03:16:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:16:24]Read from MH i2c: E2 [03:16:24]MH_I2C_Read... [03:16:24]Read from MH i2c: E2 17 00 [03:16:24]MH_I2C_Read... [03:16:24]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 35 34 30 30 90 00 24 [03:16:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [03:16:24]wFMCommunicate OK [03:16:24]requested_item fd.num is exist - process it [03:16:24]SAM_PROTO_GetFieldsCounters [03:16:24]wFMCommunicate request_size=4 [03:16:24]MH_SAM_APDU [03:16:24]CAPDU: 80 13 00 00 [03:16:24]Write to MH i2c: E2 08 00 44 1C 80 13 00 00 00 00 00 00 DC [03:16:24]Write i2c OK [03:16:24]MH_I2C_Read... [03:16:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [03:16:24]Read from MH i2c: E2 [03:16:24]MH_I2C_Read... [03:16:24]Read from MH i2c: E2 62 00 [03:16:24]MH_I2C_Read... [03:16:24]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 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 A1 0A 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 03 00 00 00 5E 04 04 00 03 00 00 00 57 04 04 00 04 00 00 00 19 04 04 00 00 00 00 00 90 00 F6 [03:16: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 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 A1 0A 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 03 00 00 00 5E 04 04 00 03 00 00 00 57 04 04 00 04 00 00 00 19 04 04 00 00 00 00 00 90 00 [03:16:24]wFMCommunicate OK [03:16:24]SAM_PROTO_GetFieldsCounters done [03:16:24]requested_item shift.num is exist - process it [03:16:24]requested_item shift.opened is exist - process it [03:16:24]req_shift_opened [03:16:24]FM_GetShiftState [03:16:24]SAM_PROTO_GetShiftState [03:16:24]wFMCommunicate request_size=4 [03:16:24]MH_SAM_APDU [03:16:24]CAPDU: 80 13 01 00 [03:16:24]Write to MH i2c: E2 08 00 45 1C 80 13 01 00 00 00 00 00 DE [03:16:24]Write i2c OK [03:16:24]MH_I2C_Read... [03:16:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:16:24]Read from MH i2c: E2 [03:16:24]MH_I2C_Read... [03:16:24]Read from MH i2c: E2 0E 00 [03:16:24]MH_I2C_Read... [03:16:24]Read from MH i2c: E2 0E 00 45 1C 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 B9 [03:16:24]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [03:16:24]wFMCommunicate OK [03:16:24]SAM_PROTO_GetShiftState done [03:16:24]FM_GetShiftState done [03:16:24]req_shift_opened done [03:16:24]requested_item shift.open_date is exist - process it [03:16:24]req_shift_open_date [03:16:24]req_shift_open_date done [03:16:24]produce_requested_data done [03:16:24]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68257,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033} [03:16:24]process_action_free close_receipt [03:16:24]json_value_free [03:16:24]json_value_free done [03:16:24]process_json_proto returns [03:16:24]Send response to host [03:16:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68257,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033}}} [03:16:24]free response buf [03:16:24]execute_script done [03:16:24]execute_script returns [03:16:24]free content buf [03:16:24]Sock 7.Close socket [03:16:24]Sock 7.Thread stoped [03:16:28]OFD Sender: No OFD packet to send [03:16:33]OFD Sender: No OFD packet to send [03:16:38]OFD Sender: No OFD packet to send [03:16:43]OFD Sender: No OFD packet to send [03:16:48]OFD Sender: No OFD packet to send [03:16:53]OFD Sender: No OFD packet to send [03:16:58]OFD Sender: No OFD packet to send [03:17:03]OFD Sender: No OFD packet to send [03:17:08]OFD Sender: No OFD packet to send [03:17:13]OFD Sender: No OFD packet to send [03:17:18]OFD Sender: No OFD packet to send [03:17:23]OFD Sender: No OFD packet to send [03:17:28]OFD Sender: No OFD packet to send [03:17:33]OFD Sender: No OFD packet to send [03:17:38]OFD Sender: No OFD packet to send [03:17:43]OFD Sender: No OFD packet to send [03:17:48]OFD Sender: No OFD packet to send [03:17:53]OFD Sender: No OFD packet to send [03:17:58]OFD Sender: No OFD packet to send [03:18:03]OFD Sender: No OFD packet to send [03:18:08]OFD Sender: No OFD packet to send [03:18:13]OFD Sender: No OFD packet to send [03:18:18]OFD Sender: No OFD packet to send [03:18:23]OFD Sender: No OFD packet to send [03:18:28]OFD Sender: No OFD packet to send [03:18:33]OFD Sender: No OFD packet to send [03:18:38]OFD Sender: No OFD packet to send [03:18:43]OFD Sender: No OFD packet to send [03:18:48]OFD Sender: No OFD packet to send [03:18:53]OFD Sender: No OFD packet to send [03:18:58]OFD Sender: No OFD packet to send [03:19:03]OFD Sender: No OFD packet to send [03:19:08]OFD Sender: No OFD packet to send [03:19:13]OFD Sender: No OFD packet to send [03:19:18]OFD Sender: No OFD packet to send [03:19:23]OFD Sender: No OFD packet to send [03:19:28]OFD Sender: No OFD packet to send [03:19:33]OFD Sender: No OFD packet to send [03:19:38]OFD Sender: No OFD packet to send