[03:27:11]OFD Sender: No OFD packet to send [03:27:16]OFD Sender: No OFD packet to send [03:27:21]OFD Sender: No OFD packet to send [03:27:26]OFD Sender: No OFD packet to send [03:27:31]OFD Sender: No OFD packet to send [03:27:36]OFD Sender: No OFD packet to send [03:27:42]OFD Sender: No OFD packet to send [03:27:47]OFD Sender: No OFD packet to send [03:27:52]OFD Sender: No OFD packet to send [03:27:57]OFD Sender: No OFD packet to send [03:28:02]OFD Sender: No OFD packet to send [03:28:07]OFD Sender: No OFD packet to send [03:28:12]OFD Sender: No OFD packet to send [03:28:17]OFD Sender: No OFD packet to send [03:28:22]OFD Sender: No OFD packet to send [03:28:27]OFD Sender: No OFD packet to send [03:28:32]OFD Sender: No OFD packet to send [03:28:37]OFD Sender: No OFD packet to send [03:28:42]OFD Sender: No OFD packet to send [03:28:47]OFD Sender: No OFD packet to send [03:28:52]OFD Sender: No OFD packet to send [03:28:57]OFD Sender: No OFD packet to send [03:29:02]OFD Sender: No OFD packet to send [03:29:07]OFD Sender: No OFD packet to send [03:29:12]OFD Sender: No OFD packet to send [03:29:17]OFD Sender: No OFD packet to send [03:29:22]OFD Sender: No OFD packet to send [03:29:27]OFD Sender: No OFD packet to send [03:29:32]OFD Sender: No OFD packet to send [03:29:37]OFD Sender: No OFD packet to send [03:29:42]OFD Sender: No OFD packet to send [03:29:47]OFD Sender: No OFD packet to send [03:29:52]OFD Sender: No OFD packet to send [03:29:57]OFD Sender: No OFD packet to send [03:30:02]OFD Sender: No OFD packet to send [03:30:07]OFD Sender: No OFD packet to send [03:30:12]OFD Sender: No OFD packet to send [03:30:17]OFD Sender: No OFD packet to send [03:30:22]OFD Sender: No OFD packet to send [03:30:27]OFD Sender: No OFD packet to send [03:30:32]OFD Sender: No OFD packet to send [03:30:37]OFD Sender: No OFD packet to send [03:30:42]OFD Sender: No OFD packet to send [03:30:47]OFD Sender: No OFD packet to send [03:30:52]OFD Sender: No OFD packet to send [03:30:57]OFD Sender: No OFD packet to send [03:31:02]OFD Sender: No OFD packet to send [03:31:07]OFD Sender: No OFD packet to send [03:31:12]OFD Sender: No OFD packet to send [03:31:17]OFD Sender: No OFD packet to send [03:31:22]OFD Sender: No OFD packet to send [03:31:27]OFD Sender: No OFD packet to send [03:31:32]OFD Sender: No OFD packet to send [03:31:37]OFD Sender: No OFD packet to send [03:31:42]OFD Sender: No OFD packet to send [03:31:47]OFD Sender: No OFD packet to send [03:31:52]OFD Sender: No OFD packet to send [03:31:57]OFD Sender: No OFD packet to send [03:32:02]OFD Sender: No OFD packet to send [03:32:07]OFD Sender: No OFD packet to send [03:32:12]OFD Sender: No OFD packet to send [03:32:17]OFD Sender: No OFD packet to send [03:32:22]OFD Sender: No OFD packet to send [03:32:27]OFD Sender: No OFD packet to send [03:32:32]OFD Sender: No OFD packet to send [03:32:37]OFD Sender: No OFD packet to send [03:32:42]OFD Sender: No OFD packet to send [03:32:47]OFD Sender: No OFD packet to send [03:32:52]OFD Sender: No OFD packet to send [03:32:57]OFD Sender: No OFD packet to send [03:33:02]OFD Sender: No OFD packet to send [03:33:07]OFD Sender: No OFD packet to send [03:33:12]OFD Sender: No OFD packet to send [03:33:17]OFD Sender: No OFD packet to send [03:33:22]OFD Sender: No OFD packet to send [03:33:27]OFD Sender: No OFD packet to send [03:33:32]OFD Sender: No OFD packet to send [03:33:37]OFD Sender: No OFD packet to send [03:33:42]OFD Sender: No OFD packet to send [03:33:47]OFD Sender: No OFD packet to send [03:33:52]OFD Sender: No OFD packet to send [03:33:57]OFD Sender: No OFD packet to send [03:34:02]OFD Sender: No OFD packet to send [03:34:07]OFD Sender: No OFD packet to send [03:34:12]OFD Sender: No OFD packet to send [03:34:17]OFD Sender: No OFD packet to send [03:34:22]OFD Sender: No OFD packet to send [03:34:27]OFD Sender: No OFD packet to send [03:34:32]OFD Sender: No OFD packet to send [03:34:37]OFD Sender: No OFD packet to send [03:34:42]OFD Sender: No OFD packet to send [03:34:48]OFD Sender: No OFD packet to send [03:34:53]OFD Sender: No OFD packet to send [03:34:58]OFD Sender: No OFD packet to send [03:35:03]OFD Sender: No OFD packet to send [03:35:08]OFD Sender: No OFD packet to send [03:35:13]OFD Sender: No OFD packet to send [03:35:18]OFD Sender: No OFD packet to send [03:35:23]OFD Sender: No OFD packet to send [03:35:28]OFD Sender: No OFD packet to send [03:35:33]OFD Sender: No OFD packet to send [03:35:38]OFD Sender: No OFD packet to send [03:35:43]OFD Sender: No OFD packet to send [03:35:48]OFD Sender: No OFD packet to send [03:35:53]OFD Sender: No OFD packet to send [03:35:58]OFD Sender: No OFD packet to send [03:36:03]OFD Sender: No OFD packet to send [03:36:08]OFD Sender: No OFD packet to send [03:36:13]OFD Sender: No OFD packet to send [03:36:18]OFD Sender: No OFD packet to send [03:36:23]OFD Sender: No OFD packet to send [03:36:28]OFD Sender: No OFD packet to send [03:36:33]OFD Sender: No OFD packet to send [03:36:38]OFD Sender: No OFD packet to send [03:36:43]OFD Sender: No OFD packet to send [03:36:48]OFD Sender: No OFD packet to send [03:36:53]OFD Sender: No OFD packet to send [03:36:58]OFD Sender: No OFD packet to send [03:37:03]OFD Sender: No OFD packet to send [03:37:08]OFD Sender: No OFD packet to send [03:37:13]OFD Sender: No OFD packet to send [03:37:18]OFD Sender: No OFD packet to send [03:37:23]OFD Sender: No OFD packet to send [03:37:28]OFD Sender: No OFD packet to send [03:37:33]OFD Sender: No OFD packet to send [03:37:38]OFD Sender: No OFD packet to send [03:37:43]OFD Sender: No OFD packet to send [03:37:48]OFD Sender: No OFD packet to send [03:37:53]OFD Sender: No OFD packet to send [03:37:58]OFD Sender: No OFD packet to send [03:38:03]OFD Sender: No OFD packet to send [03:38:08]OFD Sender: No OFD packet to send [03:38:13]OFD Sender: No OFD packet to send [03:38:18]OFD Sender: No OFD packet to send [03:38:23]OFD Sender: No OFD packet to send [03:38:28]OFD Sender: No OFD packet to send [03:38:33]OFD Sender: No OFD packet to send [03:38:38]OFD Sender: No OFD packet to send [03:38:43]OFD Sender: No OFD packet to send [03:38:48]OFD Sender: No OFD packet to send [03:38:53]OFD Sender: No OFD packet to send [03:38:58]OFD Sender: No OFD packet to send [03:39:03]OFD Sender: No OFD packet to send [03:39:08]OFD Sender: No OFD packet to send [03:39:13]OFD Sender: No OFD packet to send [03:39:14]accept exits with 8 [03:39:14]New connection [03:39:14]New thread 3067350372 created [03:39:14]Thread 3067207012 joined [03:39:14]Waiting for new connection... [03:39:14] Sock 8.Parse request [03:39:14]Sock 8.Check first char [03:39:14]Sock 8.First char is OK [03:39:14]request: POST /json_proto HTTP/1.0 [03:39:14]Method: POST [03:39:14]URL: /json_proto [03:39:14]Method is POST - this is cgi request [03:39:14]url: /json_proto [03:39:14]query_string will be loaded in cgi processing [03:39:14]execute_cgi json_proto POST (null) [03:39:14]execute_cgi path=json_proto method=POST [03:39:14]POST find Content-Length [03:39:14]Host: 172.17.41.136:8080 [03:39:14]Content-Length: 792 [03:39:14]Content-Type: application/json [03:39:14] [03:39:14]POST finish read [03:39:14]Found Content-Length = 792 [03:39:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)24618984", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 104.990, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A82303", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:39:14]execute_script... [03:39: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)24618984", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 104.990, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A82303", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:39:14]POST & json_proto [03:39:14]process_json_proto [03:39:14]json parsed OK: [03:39:14]protocol is kg_v1.0 [03:39:14]action value=close_receipt [03:39:14]process_action close_receipt [03:39:14]cmd_close_receipt [03:39:14]MH_GetDate [03:39:14]Write to MH i2c: F0 00 00 C8 05 BC [03:39:14]Write i2c OK [03:39:14]MH_I2C_Read... [03:39:14]Read from MH i2c: F0 [03:39:14]MH_I2C_Read... [03:39:14]Read from MH i2c: F0 09 00 [03:39:14]MH_I2C_Read... [03:39:14]Read from MH i2c: F0 09 00 C8 05 00 E3 85 F3 66 1B D0 5A 64 2F [03:39:14]GetLastDocTimeStamp 1727234764 [03:39:14]current date 1727235555 [03:39:14]FM_GetShiftState [03:39:14]SAM_PROTO_GetShiftState [03:39:14]wFMCommunicate request_size=4 [03:39:14]MH_SAM_APDU [03:39:14]CAPDU: 80 13 01 00 [03:39:14]Write to MH i2c: E2 08 00 C9 05 80 13 01 00 00 00 00 00 4B [03:39:14]Write i2c OK [03:39:14]MH_I2C_Read... [03:39:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:39:14]Read from MH i2c: E2 [03:39:14]MH_I2C_Read... [03:39:14]Read from MH i2c: E2 0E 00 [03:39:14]MH_I2C_Read... [03:39:14]Read from MH i2c: E2 0E 00 C9 05 00 09 00 01 63 60 F3 66 00 00 00 00 90 00 73 [03:39:14]RAPDU: 09 00 01 63 60 F3 66 00 00 00 00 90 00 [03:39:14]wFMCommunicate OK [03:39:14]SAM_PROTO_GetShiftState done [03:39:14]FM_GetShiftState done [03:39:14]opened in 1727225955 [03:39:14]opened+sec_in_day 1727312355 [03:39:14]quantity*price = 0 [03:39:14]sum+1 = 1 [03:39:14]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 15 25.09.2024 03:39 Смена: 474 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 Талоны: Топливная Карта 82303 ФМ: 0000000000871830 ФД: 116159 ФПД: 200203525985303 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240925T033915&type=1&operation_type=1&fn_number=0000000000871830&fd_number=116159&fm=200203525985303&tin=02508201610067®Number=0000000000091831&sum=0 [03:39:15]StoreToDocumentArchive [03:39:15]shift 474 fd 116159 [03:39:15]save to /storage/0474/doc_00116159 [03:39:15]save last doc name /storage/0474/doc_00116159 to /storage/kkm_last_doc_name [03:39:15]save OK [03:39:15]Clear old archive folders... [03:39:15]ProcessDocumentItem done err = 0, tmpTLVsize=248 [03:39:15]tlvbuf is 018CD510 [03:39:15]SAM_PROTO_ClearQueue [03:39:15]wFMCommunicate request_size=4 [03:39:15]MH_SAM_APDU [03:39:15]CAPDU: 80 09 00 00 [03:39:15]Write to MH i2c: E2 08 00 D6 05 80 09 00 00 00 00 00 00 4D [03:39:15]Write i2c OK [03:39:15]MH_I2C_Read... [03:39:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [03:39:16]Read from MH i2c: E2 [03:39:16]MH_I2C_Read... [03:39:16]Read from MH i2c: E2 03 00 [03:39:16]MH_I2C_Read... [03:39:16]Read from MH i2c: E2 03 00 D6 05 00 90 00 4F [03:39:16]RAPDU: 90 00 [03:39:16]wFMCommunicate OK [03:39:16]SAM_PROTO_ClearQueue done [03:39:16]KKMCreateOFDPacket [03:39:16]OFDProtocolAddRootSTLVToBuf [03:39:16]FM_MakeSignedData [03:39:16]FM_MakeSignedData [03:39:16]SAM_PROTO_SignData [03:39:16]wFMCommunicate request_size=4 [03:39:16]MH_SAM_APDU [03:39:16]CAPDU: 80 0D 01 02 [03:39:16]Write to MH i2c: E2 08 00 D7 05 80 0D 01 02 00 00 00 00 55 [03:39:16]Write i2c OK [03:39:16]MH_I2C_Read... [03:39:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [03:39:16]Read from MH i2c: E2 [03:39:16]MH_I2C_Read... [03:39:16]Read from MH i2c: E2 03 00 [03:39:16]MH_I2C_Read... [03:39:16]Read from MH i2c: E2 03 00 D7 05 00 90 00 50 [03:39:16]RAPDU: 90 00 [03:39:16]wFMCommunicate OK [03:39:16]wFMCommunicate request_size=255 [03:39:16]MH_SAM_APDU [03:39:16]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 1E 9A 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 E3 85 F3 66 0E 04 04 00 DA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 BF C5 01 00 35 04 06 00 B6 15 84 0C [03:39:16]Write to MH i2c: E2 02 01 D8 05 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 1E 9A 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 E3 85 F3 66 0E 04 04 00 DA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 BF C5 01 00 35 04 06 00 B6 15 84 0C 00 00 EE [03:39:16]Write i2c OK [03:39:16]MH_I2C_Read... [03:39:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:39:16]Read from MH i2c: E2 [03:39:16]MH_I2C_Read... [03:39:16]Read from MH i2c: E2 03 00 [03:39:16]MH_I2C_Read... [03:39:16]Read from MH i2c: E2 03 00 D8 05 00 90 00 51 [03:39:16]RAPDU: 90 00 [03:39:16]wFMCommunicate OK [03:39:16]wFMCommunicate request_size=7 [03:39:16]MH_SAM_APDU [03:39:16]CAPDU: 80 0D 02 02 02 94 17 [03:39:16]Write to MH i2c: E2 0A 00 D9 05 80 0D 02 02 02 00 94 17 00 00 07 [03:39:16]Write i2c OK [03:39:16]MH_I2C_Read... [03:39:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:39:16]Read from MH i2c: E2 [03:39:16]MH_I2C_Read... [03:39:16]Read from MH i2c: E2 03 00 [03:39:16]MH_I2C_Read... [03:39:16]Read from MH i2c: E2 03 00 D9 05 00 90 00 52 [03:39:16]RAPDU: 90 00 [03:39:16]wFMCommunicate OK [03:39:16]wFMCommunicate request_size=4 [03:39:16]MH_SAM_APDU [03:39:16]CAPDU: 80 0D 03 02 [03:39:16]Write to MH i2c: E2 08 00 DA 05 80 0D 03 02 00 00 00 00 5A [03:39:16]Write i2c OK [03:39:16]MH_I2C_Read... [03:39:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [03:39:16]Read from MH i2c: E2 [03:39:16]MH_I2C_Read... [03:39:16]Read from MH i2c: E2 0B 00 [03:39:16]MH_I2C_Read... [03:39:16]Read from MH i2c: E2 0B 00 DA 05 00 58 BB 1F 04 E1 3B 9C A1 90 00 EA [03:39:16]RAPDU: 58 BB 1F 04 E1 3B 9C A1 90 00 [03:39:16]wFMCommunicate OK [03:39:16]SAM_PROTO_SignData done [03:39:16]FM_MakeSignedData done [03:39:16]CreateOFDProtocolMessage [03:39:16]wFMCommunicate request_size=4 [03:39:16]MH_SAM_APDU [03:39:16]CAPDU: 80 11 00 00 [03:39:16]Write to MH i2c: E2 08 00 DB 05 80 11 00 00 00 00 00 00 5A [03:39:16]Write i2c OK [03:39:16]MH_I2C_Read... [03:39:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:39:16]Read from MH i2c: E2 [03:39:16]MH_I2C_Read... [03:39:16]Read from MH i2c: E2 17 00 [03:39:16]MH_I2C_Read... [03:39:16]Read from MH i2c: E2 17 00 DB 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 A8 [03:39:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [03:39:16]wFMCommunicate OK [03:39:16]CreateOFDProtocolMessage done [03:39:16]OFDSenderStorePacket 116159 [03:39:16]StoreOFDPacket docnum=116159 [03:39:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0C 01 00 00 0C 1D 04 01 74 72 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 1E 9A 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 E3 85 F3 66 0E 04 04 00 DA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 BF C5 01 00 35 04 06 00 B6 15 84 0C 94 17 58 BB 1F 04 E1 3B 9C A1 [03:39:16]CheckFolder [03:39:16]dirname=/storage/ofd_packets [03:39:16]CheckFolder done [03:39:16]ProducePacketName [03:39:16]name=ofd_packets/00116159 [03:39:16]NVStorageSaveData ofd_packets/00116159 [03:39:16]File name is /storage/ofd_packets/00116159 [03:39:16]Write 298 bytes [03:39:16]NVStorageSaveData done [03:39:16]OFDSenderStorePacket done [03:39:16]KKMCreateOFDPacket done [03:39:16]NVStorageSaveData kkm_last_timestamp [03:39:16]File name is /storage/kkm_last_timestamp [03:39:16]Write 4 bytes [03:39:16]NVStorageSaveData done [03:39:16]ExternCall_PrintAddStr [03:39:16]wPrintStart [03:39:16]Write to MH i2c: 01 00 00 DC 05 E1 [03:39:16]Write i2c OK [03:39:16]MH_I2C_Read... [03:39:16]Read from MH i2c: 01 [03:39:16]MH_I2C_Read... [03:39:16]Read from MH i2c: 01 07 00 [03:39:16]MH_I2C_Read... [03:39:16]Read from MH i2c: 01 07 00 DC 05 00 00 00 00 00 FF 0F F6 [03:39:16]RasterBufferAndPrint [03:39:16]line Счет N : (1)24618984 [03:39:16]line ИНН: 02508201610067 [03:39:16]line Контрольно-Кассовый Чек [03:39:16]line ПРОДАЖА [03:39:16]line ТРК (МРК, ГНК) : 11 [03:39:16]line Товар: 2710194210 [03:39:16]line ДТ-К-5 [03:39:16]line 104.990 * 0.00 [03:39:16]line = 0.00 [03:39:16]line НДС 12% НСП 1% [03:39:16]line > о реализуемом товаре [03:39:16]line ИТОГО: 0.00 [03:39:16]line НСП 1% : 0.00 [03:39:16]line НДС 12% : 0.00 [03:39:16]line Наличными: 0.00 [03:39:16]line Безнал.: 0.00 [03:39:16]line Место: АЗС № 90 "Партнер Нефть" [03:39:16]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [03:39:16]line СНО: Общий режим [03:39:16]line Чек 15 25.09.2024 03:39 [03:39:16]line Смена: 474 ФФД: 1.0 [03:39:16]line ЗНМ: 0300000120 [03:39:16]line РНМ: 0000000000091831 [03:39:16]line Версия ККМ: 001 [03:39:16]line Талоны: Топливная Карта [03:39:16]line 82303 [03:39:16]line ФМ: 0000000000871830 [03:39:16]line ФД: 116159 [03:39:16]line ФПД: 200203525985303 [03:39:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240925T033915&type=1&operation_type=1&fn_number=0000000000871830&fd_number=116159&fm=200203525985303&tin=02508201610067®Number=0000000000091831&sum=0 [03:39:16]written 0, free lines is 4095 [03:39:16]OFD Sender: Processing packet 116159 [packets to send 482, broken 481] [03:39:16]ProducePacketName [03:39:16]name=ofd_packets/00116159 [03:39:16]OFD Sender: To server: pG, [03:39:16]CommunicateWithHost lk.salyk.kg:30040 [03:39:16]ConnectInit lk.salyk.kg [03:39:16]Connected sock=10 [03:39:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0C 01 00 00 0C 1D 04 01 74 72 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 1E 9A 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 E3 85 F3 66 0E 04 04 00 DA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 BF C5 01 00 35 04 06 00 B6 15 84 0C 94 17 58 BB 1F 04 E1 3B 9C A1 [03:39:16]Write to MH i2c: 01 00 00 05 06 0B [03:39:16]Write i2c OK [03:39:16]MH_I2C_Read... [03:39:16]Read from MH i2c: 01 [03:39:16]MH_I2C_Read... [03:39:16]Read from MH i2c: 01 07 00 [03:39:16]MH_I2C_Read... [03:39:16]Read from MH i2c: 01 07 00 05 06 00 00 00 00 00 60 0C 7E [03:39:16]RasterBufferAndPrint [03:39:16]line [03:39:16]line [03:39:16]line [03:39:16]line [03:39:16]line [03:39:16]written 0, free lines is 3171 [03:39:16]MH_Cut [03:39:16]Write to MH i2c: D1 01 00 0C 06 01 E4 [03:39:16]Write i2c OK [03:39:16]MH_I2C_Read... [03:39:16]Read from MH i2c: D1 [03:39:16]MH_I2C_Read... [03:39:16]Read from MH i2c: D1 01 00 [03:39:16]MH_I2C_Read... [03:39:16]Read from MH i2c: D1 01 00 0C 06 00 E3 [03:39:16]Write to MH i2c: 01 00 00 0D 06 13 [03:39:16]Write i2c OK [03:39:16]MH_I2C_Read... [03:39:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 4D 4D 47 00 A6 80 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 BF C5 01 00 F4 03 04 00 20 2B F3 66 B6 04 01 00 00 66 C1 99 06 34 8C E6 B2 [03:39:17]CommunicateWithHost err = 0 [03:39:17]CheckOFDResponse [03:39:17]1017 (14) - 77093643461234 [03:39:17]1041 (16) - 0000000000871830 [03:39:17]1040 (4) - 116159 [03:39:17]1012 (4) - 24.09.2024 21:12 [03:39:17]1206 (1) - 0 [03:39:17]OFD Sender: Remove packet 116159 [03:39:17]ProducePacketName [03:39:17]name=ofd_packets/00116159 [03:39:17]NVStorageDeleteData [03:39:17]OFD Sender: No OFD packet to send [03:39:18]*** Cut start [03:39:18]*** Partial cut [03:39:18]*** CUTSNS_PIN = 1 [03:39:18]*** CUTSNS_PIN = 0 [03:39:18]*** Brake cut motor [03:39:18]Read from MH i2c: 01 [03:39:18]MH_I2C_Read... [03:39:18]*** Stop cut motor [03:39:18]*** Cut end [03:39:18]Read from MH i2c: 01 07 00 [03:39:18]MH_I2C_Read... [03:39:18]Read from MH i2c: 01 07 00 0D 06 00 00 00 00 00 FF 0F 28 [03:39:18]process_action close_receipt done [03:39:18]requested_data is exist [03:39:18]produce_requested_data [03:39:18]requested_item fm.sn is exist - process it [03:39:18]wFMCommunicate request_size=4 [03:39:18]MH_SAM_APDU [03:39:18]CAPDU: 80 11 00 00 [03:39:18]Write to MH i2c: E2 08 00 0E 06 80 11 00 00 00 00 00 00 8E [03:39:18]Write i2c OK [03:39:18]MH_I2C_Read... [03:39:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:39:18]Read from MH i2c: E2 [03:39:18]MH_I2C_Read... [03:39:18]Read from MH i2c: E2 17 00 [03:39:18]MH_I2C_Read... [03:39:18]Read from MH i2c: E2 17 00 0E 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 DC [03:39:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [03:39:18]wFMCommunicate OK [03:39:18]requested_item fd.num is exist - process it [03:39:18]SAM_PROTO_GetFieldsCounters [03:39:18]wFMCommunicate request_size=4 [03:39:18]MH_SAM_APDU [03:39:18]CAPDU: 80 13 00 00 [03:39:18]Write to MH i2c: E2 08 00 0F 06 80 13 00 00 00 00 00 00 91 [03:39:18]Write i2c OK [03:39:18]MH_I2C_Read... [03:39:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [03:39:19]Read from MH i2c: E2 [03:39:19]MH_I2C_Read... [03:39:19]Read from MH i2c: E2 62 00 [03:39:19]MH_I2C_Read... [03:39:19]Read from MH i2c: E2 62 00 0F 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 BF C5 01 00 0E 04 04 00 DA 01 00 00 12 04 04 00 0F 00 00 00 5E 04 04 00 0F 00 00 00 57 04 04 00 10 00 00 00 19 04 04 00 00 00 00 00 90 00 37 [03:39:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 BF C5 01 00 0E 04 04 00 DA 01 00 00 12 04 04 00 0F 00 00 00 5E 04 04 00 0F 00 00 00 57 04 04 00 10 00 00 00 19 04 04 00 00 00 00 00 90 00 [03:39:19]wFMCommunicate OK [03:39:19]SAM_PROTO_GetFieldsCounters done [03:39:19]requested_item shift.num is exist - process it [03:39:19]requested_item shift.opened is exist - process it [03:39:19]req_shift_opened [03:39:19]FM_GetShiftState [03:39:19]SAM_PROTO_GetShiftState [03:39:19]wFMCommunicate request_size=4 [03:39:19]MH_SAM_APDU [03:39:19]CAPDU: 80 13 01 00 [03:39:19]Write to MH i2c: E2 08 00 10 06 80 13 01 00 00 00 00 00 93 [03:39:19]Write i2c OK [03:39:19]MH_I2C_Read... [03:39:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:39:19]Read from MH i2c: E2 [03:39:19]MH_I2C_Read... [03:39:19]Read from MH i2c: E2 0E 00 [03:39:19]MH_I2C_Read... [03:39:19]Read from MH i2c: E2 0E 00 10 06 00 09 00 01 63 60 F3 66 00 00 00 00 90 00 BB [03:39:19]RAPDU: 09 00 01 63 60 F3 66 00 00 00 00 90 00 [03:39:19]wFMCommunicate OK [03:39:19]SAM_PROTO_GetShiftState done [03:39:19]FM_GetShiftState done [03:39:19]req_shift_opened done [03:39:19]requested_item shift.open_date is exist - process it [03:39:19]req_shift_open_date [03:39:19]req_shift_open_date done [03:39:19]produce_requested_data done [03:39:19]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":116159,"shift.num":474,"shift.opened":1,"shift.open_date":1727225955} [03:39:19]process_action_free close_receipt [03:39:19]json_value_free [03:39:19]json_value_free done [03:39:19]process_json_proto returns [03:39:19]Send response to host [03:39:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":116159,"shift.num":474,"shift.opened":1,"shift.open_date":1727225955}}} [03:39:19]free response buf [03:39:19]execute_script done [03:39:19]execute_script returns [03:39:19]free content buf [03:39:19]Sock 8.Close socket [03:39:19]Sock 8.Thread stoped [03:39:22]OFD Sender: No OFD packet to send [03:39:27]OFD Sender: No OFD packet to send [03:39:32]OFD Sender: No OFD packet to send [03:39:37]OFD Sender: No OFD packet to send [03:39:42]OFD Sender: No OFD packet to send [03:39:47]OFD Sender: No OFD packet to send [03:39:52]OFD Sender: No OFD packet to send [03:39:57]OFD Sender: No OFD packet to send [03:40:02]OFD Sender: No OFD packet to send [03:40:07]OFD Sender: No OFD packet to send [03:40:12]OFD Sender: No OFD packet to send [03:40:17]OFD Sender: No OFD packet to send [03:40:22]OFD Sender: No OFD packet to send [03:40:27]OFD Sender: No OFD packet to send [03:40:32]OFD Sender: No OFD packet to send [03:40:37]OFD Sender: No OFD packet to send [03:40:42]OFD Sender: No OFD packet to send [03:40:47]OFD Sender: No OFD packet to send [03:40:52]OFD Sender: No OFD packet to send [03:40:57]OFD Sender: No OFD packet to send [03:41:02]OFD Sender: No OFD packet to send [03:41:07]OFD Sender: No OFD packet to send [03:41:12]OFD Sender: No OFD packet to send [03:41:17]OFD Sender: No OFD packet to send [03:41:22]OFD Sender: No OFD packet to send [03:41:27]OFD Sender: No OFD packet to send [03:41:32]OFD Sender: No OFD packet to send [03:41:37]OFD Sender: No OFD packet to send [03:41:42]OFD Sender: No OFD packet to send [03:41:47]OFD Sender: No OFD packet to send [03:41:52]OFD Sender: No OFD packet to send [03:41:57]OFD Sender: No OFD packet to send [03:42:02]OFD Sender: No OFD packet to send [03:42:07]OFD Sender: No OFD packet to send [03:42:13]OFD Sender: No OFD packet to send [03:42:18]OFD Sender: No OFD packet to send [03:42:23]OFD Sender: No OFD packet to send [03:42:28]OFD Sender: No OFD packet to send [03:42:33]OFD Sender: No OFD packet to send [03:42:38]OFD Sender: No OFD packet to send [03:42:43]OFD Sender: No OFD packet to send [03:42:48]OFD Sender: No OFD packet to send [03:42:53]OFD Sender: No OFD packet to send [03:42:58]OFD Sender: No OFD packet to send [03:43:03]OFD Sender: No OFD packet to send [03:43:08]OFD Sender: No OFD packet to send [03:43:13]OFD Sender: No OFD packet to send [03:43:18]OFD Sender: No OFD packet to send [03:43:23]OFD Sender: No OFD packet to send [03:43:25]accept exits with 9 [03:43:25]New connection [03:43:25]New thread 3067207012 created [03:43:25]Thread 3067350372 joined [03:43:25]Waiting for new connection... [03:43:25] Sock 9.Parse request [03:43:25]Sock 9.Check first char [03:43:25]Sock 9.First char is OK [03:43:25]request: POST /json_proto HTTP/1.0 [03:43:25]Method: POST [03:43:25]URL: /json_proto [03:43:25]Method is POST - this is cgi request [03:43:25]url: /json_proto [03:43:25]query_string will be loaded in cgi processing [03:43:25]execute_cgi json_proto POST (null) [03:43:25]execute_cgi path=json_proto method=POST [03:43:25]POST find Content-Length [03:43:25]Host: 172.17.41.136:8080 [03:43:25]Content-Length: 679 [03:43:25]Content-Type: application/json [03:43:25] [03:43:25]POST finish read [03:43:25]Found Content-Length = 679 [03:43:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)344347", "tax_sys" : 0, "items" : [ { "code": "4870145001790", "name": "\u041F\u0438\u0432\u043E \u0416\u0430\u0442\u0435\u0446\u043A\u0438\u0439 \u0433\u0443\u0441\u044C 0,5\u043B \u0441\u0442", "price" : 110.00, "quantity" : 1.000, "sum" : 110.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 110.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:43:25]execute_script... [03:43:25]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)344347", "tax_sys" : 0, "items" : [ { "code": "4870145001790", "name": "\u041F\u0438\u0432\u043E \u0416\u0430\u0442\u0435\u0446\u043A\u0438\u0439 \u0433\u0443\u0441\u044C 0,5\u043B \u0441\u0442", "price" : 110.00, "quantity" : 1.000, "sum" : 110.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 110.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:43:25]POST & json_proto [03:43:25]process_json_proto [03:43:25]json parsed OK: [03:43:25]protocol is kg_v1.0 [03:43:25]action value=close_receipt [03:43:25]process_action close_receipt [03:43:25]cmd_close_receipt [03:43:25]MH_GetDate [03:43:25]Write to MH i2c: F0 00 00 11 06 06 [03:43:25]Write i2c OK [03:43:25]MH_I2C_Read... [03:43:25]Read from MH i2c: F0 [03:43:25]MH_I2C_Read... [03:43:25]Read from MH i2c: F0 09 00 [03:43:25]MH_I2C_Read... [03:43:25]Read from MH i2c: F0 09 00 11 06 00 DE 86 F3 66 1B D0 5A 64 75 [03:43:25]GetLastDocTimeStamp 1727235555 [03:43:25]current date 1727235806 [03:43:25]FM_GetShiftState [03:43:25]SAM_PROTO_GetShiftState [03:43:25]wFMCommunicate request_size=4 [03:43:25]MH_SAM_APDU [03:43:25]CAPDU: 80 13 01 00 [03:43:25]Write to MH i2c: E2 08 00 12 06 80 13 01 00 00 00 00 00 95 [03:43:25]Write i2c OK [03:43:25]MH_I2C_Read... [03:43:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:43:25]Read from MH i2c: E2 [03:43:25]MH_I2C_Read... [03:43:25]Read from MH i2c: E2 0E 00 [03:43:25]MH_I2C_Read... [03:43:25]Read from MH i2c: E2 0E 00 12 06 00 09 00 01 63 60 F3 66 00 00 00 00 90 00 BD [03:43:25]RAPDU: 09 00 01 63 60 F3 66 00 00 00 00 90 00 [03:43:25]wFMCommunicate OK [03:43:25]SAM_PROTO_GetShiftState done [03:43:25]FM_GetShiftState done [03:43:25]opened in 1727225955 [03:43:25]opened+sec_in_day 1727312355 [03:43:25]quantity*price = 11000 [03:43:25]sum+1 = 11001 [03:43:25]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 110.00 НСП 1% : 0.97 НДС 12% : 11.68 Наличными: 110.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 16 25.09.2024 03:43 Смена: 474 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 116160 ФПД: 53374823000668 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240925T034326&type=1&operation_type=1&fn_number=0000000000871830&fd_number=116160&fm=53374823000668&tin=02508201610067®Number=0000000000091831&sum=11000 0 [03:43:26]StoreToDocumentArchive [03:43:26]shift 474 fd 116160 [03:43:26]save to /storage/0474/doc_00116160 [03:43:26]save last doc name /storage/0474/doc_00116160 to /storage/kkm_last_doc_name [03:43:26]save OK [03:43:26]Clear old archive folders... [03:43:26]ProcessDocumentItem done err = 0, tmpTLVsize=287 [03:43:26]tlvbuf is 019CA290 [03:43:26]SAM_PROTO_ClearQueue [03:43:26]wFMCommunicate request_size=4 [03:43:26]MH_SAM_APDU [03:43:26]CAPDU: 80 09 00 00 [03:43:26]Write to MH i2c: E2 08 00 1F 06 80 09 00 00 00 00 00 00 97 [03:43:26]Write i2c OK [03:43:26]MH_I2C_Read... [03:43:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [03:43:26]Read from MH i2c: E2 [03:43:26]MH_I2C_Read... [03:43:26]Read from MH i2c: E2 03 00 [03:43:26]MH_I2C_Read... [03:43:26]Read from MH i2c: E2 03 00 1F 06 00 90 00 99 [03:43:26]RAPDU: 90 00 [03:43:26]wFMCommunicate OK [03:43:26]SAM_PROTO_ClearQueue done [03:43:26]KKMCreateOFDPacket [03:43:26]OFDProtocolAddRootSTLVToBuf [03:43:26]FM_MakeSignedData [03:43:26]FM_MakeSignedData [03:43:26]SAM_PROTO_SignData [03:43:26]wFMCommunicate request_size=4 [03:43:26]MH_SAM_APDU [03:43:26]CAPDU: 80 0D 01 02 [03:43:26]Write to MH i2c: E2 08 00 20 06 80 0D 01 02 00 00 00 00 9F [03:43:26]Write i2c OK [03:43:26]MH_I2C_Read... [03:43:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [03:43:26]Read from MH i2c: E2 [03:43:26]MH_I2C_Read... [03:43:26]Read from MH i2c: E2 03 00 [03:43:26]MH_I2C_Read... [03:43:26]Read from MH i2c: E2 03 00 20 06 00 90 00 9A [03:43:26]RAPDU: 90 00 [03:43:26]wFMCommunicate OK [03:43:26]wFMCommunicate request_size=255 [03:43:26]MH_SAM_APDU [03:43:26]CAPDU: 80 0D 02 02 FA 03 00 1F 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 34 38 37 30 31 34 35 30 30 31 37 39 30 06 04 2D 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 96 D0 B0 D1 82 D0 B5 D1 86 D0 BA D0 B8 D0 B9 20 D0 B3 D1 83 D1 81 D1 8C 20 30 2C 35 D0 BB 20 D1 81 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 2A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 61 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 90 04 00 00 00 00 07 04 06 00 F8 2A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 DE 86 F3 66 0E 04 04 00 DA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 [03:43:26]Write to MH i2c: E2 02 01 21 06 80 0D 02 02 FA 00 03 00 1F 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 34 38 37 30 31 34 35 30 30 31 37 39 30 06 04 2D 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 96 D0 B0 D1 82 D0 B5 D1 86 D0 BA D0 B8 D0 B9 20 D0 B3 D1 83 D1 81 D1 8C 20 30 2C 35 D0 BB 20 D1 81 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 2A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 61 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 90 04 00 00 00 00 07 04 06 00 F8 2A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 DE 86 F3 66 0E 04 04 00 DA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 00 00 99 [03:43:26]Write i2c OK [03:43:26]MH_I2C_Read... [03:43:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:43:26]Read from MH i2c: E2 [03:43:26]MH_I2C_Read... [03:43:26]Read from MH i2c: E2 03 00 [03:43:26]MH_I2C_Read... [03:43:26]Read from MH i2c: E2 03 00 21 06 00 90 00 9B [03:43:26]RAPDU: 90 00 [03:43:26]wFMCommunicate OK [03:43:26]wFMCommunicate request_size=46 [03:43:26]MH_SAM_APDU [03:43:26]CAPDU: 80 0D 02 02 29 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 C0 C5 01 00 35 04 06 00 30 8B 4B 5D 6A 5C [03:43:26]Write to MH i2c: E2 31 00 22 06 80 0D 02 02 29 00 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 C0 C5 01 00 35 04 06 00 30 8B 4B 5D 6A 5C 00 00 D6 [03:43:26]Write i2c OK [03:43:26]MH_I2C_Read... [03:43:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:43:26]Read from MH i2c: E2 [03:43:26]MH_I2C_Read... [03:43:26]Read from MH i2c: E2 03 00 [03:43:26]MH_I2C_Read... [03:43:26]Read from MH i2c: E2 03 00 22 06 00 90 00 9C [03:43:26]RAPDU: 90 00 [03:43:26]wFMCommunicate OK [03:43:26]wFMCommunicate request_size=4 [03:43:26]MH_SAM_APDU [03:43:26]CAPDU: 80 0D 03 02 [03:43:26]Write to MH i2c: E2 08 00 23 06 80 0D 03 02 00 00 00 00 A4 [03:43:26]Write i2c OK [03:43:26]MH_I2C_Read... [03:43:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [03:43:26]Read from MH i2c: E2 [03:43:26]MH_I2C_Read... [03:43:26]Read from MH i2c: E2 0B 00 [03:43:26]MH_I2C_Read... [03:43:26]Read from MH i2c: E2 0B 00 23 06 00 9D 7D 1F 40 FE F4 89 B5 90 00 4E [03:43:26]RAPDU: 9D 7D 1F 40 FE F4 89 B5 90 00 [03:43:26]wFMCommunicate OK [03:43:26]SAM_PROTO_SignData done [03:43:26]FM_MakeSignedData done [03:43:26]CreateOFDProtocolMessage [03:43:26]wFMCommunicate request_size=4 [03:43:26]MH_SAM_APDU [03:43:26]CAPDU: 80 11 00 00 [03:43:26]Write to MH i2c: E2 08 00 24 06 80 11 00 00 00 00 00 00 A4 [03:43:26]Write i2c OK [03:43:26]MH_I2C_Read... [03:43:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:43:27]Read from MH i2c: E2 [03:43:27]MH_I2C_Read... [03:43:27]Read from MH i2c: E2 17 00 [03:43:27]MH_I2C_Read... [03:43:27]Read from MH i2c: E2 17 00 24 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 F2 [03:43:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [03:43:27]wFMCommunicate OK [03:43:27]CreateOFDProtocolMessage done [03:43:27]OFDSenderStorePacket 116160 [03:43:27]StoreOFDPacket docnum=116160 [03:43:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 33 01 00 00 4E 14 2B 01 0E EC 5A 03 01 00 03 00 1F 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 34 38 37 30 31 34 35 30 30 31 37 39 30 06 04 2D 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 96 D0 B0 D1 82 D0 B5 D1 86 D0 BA D0 B8 D0 B9 20 D0 B3 D1 83 D1 81 D1 8C 20 30 2C 35 D0 BB 20 D1 81 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 2A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 61 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 90 04 00 00 00 00 07 04 06 00 F8 2A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 DE 86 F3 66 0E 04 04 00 DA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 C0 C5 01 00 35 04 06 00 30 8B 4B 5D 6A 5C 9D 7D 1F 40 FE F4 89 B5 [03:43:27]CheckFolder [03:43:27]dirname=/storage/ofd_packets [03:43:27]CheckFolder done [03:43:27]ProducePacketName [03:43:27]name=ofd_packets/00116160 [03:43:27]NVStorageSaveData ofd_packets/00116160 [03:43:27]File name is /storage/ofd_packets/00116160 [03:43:27]Write 337 bytes [03:43:27]NVStorageSaveData done [03:43:27]OFDSenderStorePacket done [03:43:27]KKMCreateOFDPacket done [03:43:27]NVStorageSaveData kkm_last_timestamp [03:43:27]File name is /storage/kkm_last_timestamp [03:43:27]Write 4 bytes [03:43:27]NVStorageSaveData done [03:43:27]ExternCall_PrintAddStr [03:43:27]wPrintStart [03:43:27]Write to MH i2c: 01 00 00 25 06 2B [03:43:27]Write i2c OK [03:43:27]MH_I2C_Read... [03:43:27]Read from MH i2c: 01 [03:43:27]MH_I2C_Read... [03:43:27]Read from MH i2c: 01 07 00 [03:43:27]MH_I2C_Read... [03:43:27]Read from MH i2c: 01 07 00 25 06 00 00 00 00 00 FF 0F 40 [03:43:27]RasterBufferAndPrint [03:43:27]line Счет N : (3)344347 [03:43:27]line ИНН: 02508201610067 [03:43:27]line Контрольно-Кассовый Чек [03:43:27]line ПРОДАЖА [03:43:27]line Товар: 4870145001790 [03:43:27]line Пиво Жатецкий гусь 0,5л ст [03:43:27]line 1.000 * 110.00 [03:43:27]line = 110.00 [03:43:27]line НДС 12% НСП 1% [03:43:27]line > о реализуемом товаре [03:43:27]line ИТОГО: 110.00 [03:43:27]line НСП 1% : 0.97 [03:43:27]line НДС 12% : 11.68 [03:43:27]line Наличными: 110.00 [03:43:27]line Безнал.: 0.00 [03:43:27]line Место: АЗС № 90 "Партнер Нефть" [03:43:27]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [03:43:27]line СНО: Общий режим [03:43:27]line Чек 16 25.09.2024 03:43 [03:43:27]line Смена: 474 ФФД: 1.0 [03:43:27]line ЗНМ: 0300000120 [03:43:27]line РНМ: 0000000000091831 [03:43:27]line Версия ККМ: 001 [03:43:27]line ФМ: 0000000000871830 [03:43:27]line ФД: 116160 [03:43:27]line ФПД: 53374823000668 [03:43:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240925T034326&type=1&operation_type=1&fn_number=0000000000871830&fd_number=116160&fm=53374823000668&tin=02508201610067®Number=0000000000091831&sum=11000 [03:43:27]line 0 [03:43:27]OFD Sender: Processing packet 116160 [packets to send 482, broken 481] [03:43:27]ProducePacketName [03:43:27]name=ofd_packets/00116160 [03:43:27]OFD Sender: To server: pG, [03:43:27]CommunicateWithHost lk.salyk.kg:30040 [03:43:27]ConnectInit lk.salyk.kg [03:43:27]written 0, free lines is 4095 [03:43:27]Connected sock=10 [03:43:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 33 01 00 00 4E 14 2B 01 0E EC 5A 03 01 00 03 00 1F 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 34 38 37 30 31 34 35 30 30 31 37 39 30 06 04 2D 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 96 D0 B0 D1 82 D0 B5 D1 86 D0 BA D0 B8 D0 B9 20 D0 B3 D1 83 D1 81 D1 8C 20 30 2C 35 D0 BB 20 D1 81 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 2A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 61 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 90 04 00 00 00 00 07 04 06 00 F8 2A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 DE 86 F3 66 0E 04 04 00 DA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 C0 C5 01 00 35 04 06 00 30 8B 4B 5D 6A 5C 9D 7D 1F 40 FE F4 89 B5 [03:43:27]Write to MH i2c: 01 00 00 4C 06 52 [03:43:27]Write i2c OK [03:43:27]MH_I2C_Read... [03:43:27]Read from MH i2c: 01 [03:43:27]MH_I2C_Read... [03:43:27]Read from MH i2c: 01 07 00 [03:43:27]MH_I2C_Read... [03:43:27]Read from MH i2c: 01 07 00 4C 06 00 00 00 00 00 6F 0C D4 [03:43:27]RasterBufferAndPrint [03:43:27]line [03:43:27]line [03:43:27]line [03:43:27]line [03:43:27]line [03:43:27]written 0, free lines is 3186 [03:43:27]MH_Cut [03:43:27]Write to MH i2c: D1 01 00 53 06 01 2B [03:43:27]Write i2c OK [03:43:27]MH_I2C_Read... [03:43:27]Read from MH i2c: D1 [03:43:27]MH_I2C_Read... [03:43:27]Read from MH i2c: D1 01 00 [03:43:27]MH_I2C_Read... [03:43:27]Read from MH i2c: D1 01 00 53 06 00 2A [03:43:27]Write to MH i2c: 01 00 00 54 06 5A [03:43:27]Write i2c OK [03:43:27]MH_I2C_Read... [03:43:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 AB B9 47 00 AF 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 38 37 31 38 33 30 10 04 04 00 C0 C5 01 00 F4 03 04 00 1B 2C F3 66 B6 04 01 00 00 0E 62 BC 01 92 06 99 80 [03:43:27]CommunicateWithHost err = 0 [03:43:27]CheckOFDResponse [03:43:27]1017 (14) - 77093643461234 [03:43:27]1041 (16) - 0000000000871830 [03:43:27]1040 (4) - 116160 [03:43:27]1012 (4) - 24.09.2024 21:16 [03:43:27]1206 (1) - 0 [03:43:27]OFD Sender: Remove packet 116160 [03:43:27]ProducePacketName [03:43:27]name=ofd_packets/00116160 [03:43:27]NVStorageDeleteData [03:43:28]OFD Sender: No OFD packet to send [03:43:29]*** Cut start [03:43:29]*** Partial cut [03:43:29]*** CUTSNS_PIN = 1 [03:43:29]*** CUTSNS_PIN = 0 [03:43:29]*** Brake cut motor [03:43:29]Read from MH i2c: 01 [03:43:29]MH_I2C_Read... [03:43:29]*** Stop cut motor [03:43:29]*** Cut end [03:43:29]Read from MH i2c: 01 07 00 [03:43:29]MH_I2C_Read... [03:43:29]Read from MH i2c: 01 07 00 54 06 00 00 00 00 00 FF 0F 6F [03:43:29]process_action close_receipt done [03:43:29]requested_data is exist [03:43:29]produce_requested_data [03:43:29]requested_item fm.sn is exist - process it [03:43:29]wFMCommunicate request_size=4 [03:43:29]MH_SAM_APDU [03:43:29]CAPDU: 80 11 00 00 [03:43:29]Write to MH i2c: E2 08 00 55 06 80 11 00 00 00 00 00 00 D5 [03:43:29]Write i2c OK [03:43:29]MH_I2C_Read... [03:43:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:43:29]Read from MH i2c: E2 [03:43:29]MH_I2C_Read... [03:43:29]Read from MH i2c: E2 17 00 [03:43:29]MH_I2C_Read... [03:43:29]Read from MH i2c: E2 17 00 55 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 23 [03:43:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [03:43:29]wFMCommunicate OK [03:43:29]requested_item fd.num is exist - process it [03:43:29]SAM_PROTO_GetFieldsCounters [03:43:29]wFMCommunicate request_size=4 [03:43:29]MH_SAM_APDU [03:43:29]CAPDU: 80 13 00 00 [03:43:29]Write to MH i2c: E2 08 00 56 06 80 13 00 00 00 00 00 00 D8 [03:43:29]Write i2c OK [03:43:29]MH_I2C_Read... [03:43:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [03:43:29]Read from MH i2c: E2 [03:43:29]MH_I2C_Read... [03:43:29]Read from MH i2c: E2 62 00 [03:43:29]MH_I2C_Read... [03:43:29]Read from MH i2c: E2 62 00 56 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 C0 C5 01 00 0E 04 04 00 DA 01 00 00 12 04 04 00 10 00 00 00 5E 04 04 00 10 00 00 00 57 04 04 00 11 00 00 00 19 04 04 00 00 00 00 00 90 00 82 [03:43:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 C0 C5 01 00 0E 04 04 00 DA 01 00 00 12 04 04 00 10 00 00 00 5E 04 04 00 10 00 00 00 57 04 04 00 11 00 00 00 19 04 04 00 00 00 00 00 90 00 [03:43:29]wFMCommunicate OK [03:43:29]SAM_PROTO_GetFieldsCounters done [03:43:29]requested_item shift.num is exist - process it [03:43:29]requested_item shift.opened is exist - process it [03:43:29]req_shift_opened [03:43:29]FM_GetShiftState [03:43:29]SAM_PROTO_GetShiftState [03:43:29]wFMCommunicate request_size=4 [03:43:29]MH_SAM_APDU [03:43:29]CAPDU: 80 13 01 00 [03:43:29]Write to MH i2c: E2 08 00 57 06 80 13 01 00 00 00 00 00 DA [03:43:29]Write i2c OK [03:43:29]MH_I2C_Read... [03:43:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:43:30]Read from MH i2c: E2 [03:43:30]MH_I2C_Read... [03:43:30]Read from MH i2c: E2 0E 00 [03:43:30]MH_I2C_Read... [03:43:30]Read from MH i2c: E2 0E 00 57 06 00 09 00 01 63 60 F3 66 00 00 00 00 90 00 02 [03:43:30]RAPDU: 09 00 01 63 60 F3 66 00 00 00 00 90 00 [03:43:30]wFMCommunicate OK [03:43:30]SAM_PROTO_GetShiftState done [03:43:30]FM_GetShiftState done [03:43:30]req_shift_opened done [03:43:30]requested_item shift.open_date is exist - process it [03:43:30]req_shift_open_date [03:43:30]req_shift_open_date done [03:43:30]produce_requested_data done [03:43:30]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":116160,"shift.num":474,"shift.opened":1,"shift.open_date":1727225955} [03:43:30]process_action_free close_receipt [03:43:30]json_value_free [03:43:30]json_value_free done [03:43:30]process_json_proto returns [03:43:30]Send response to host [03:43:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":116160,"shift.num":474,"shift.opened":1,"shift.open_date":1727225955}}} [03:43:30]free response buf [03:43:30]execute_script done [03:43:30]execute_script returns [03:43:30]free content buf [03:43:30]Sock 9.Close socket [03:43:30]Sock 9.Thread stoped [03:43:33]OFD Sender: No OFD packet to send [03:43:38]OFD Sender: No OFD packet to send [03:43:43]OFD Sender: No OFD packet to send [03:43:48]OFD Sender: No OFD packet to send [03:43:53]OFD Sender: No OFD packet to send [03:43:58]OFD Sender: No OFD packet to send [03:44:03]OFD Sender: No OFD packet to send [03:44:08]OFD Sender: No OFD packet to send [03:44:13]OFD Sender: No OFD packet to send [03:44:18]OFD Sender: No OFD packet to send [03:44:23]OFD Sender: No OFD packet to send [03:44:28]OFD Sender: No OFD packet to send [03:44:33]OFD Sender: No OFD packet to send [03:44:38]OFD Sender: No OFD packet to send [03:44:43]OFD Sender: No OFD packet to send [03:44:48]OFD Sender: No OFD packet to send [03:44:53]OFD Sender: No OFD packet to send [03:44:58]OFD Sender: No OFD packet to send [03:45:03]OFD Sender: No OFD packet to send [03:45:08]OFD Sender: No OFD packet to send [03:45:13]OFD Sender: No OFD packet to send [03:45:18]OFD Sender: No OFD packet to send [03:45:23]OFD Sender: No OFD packet to send [03:45:28]OFD Sender: No OFD packet to send [03:45:33]OFD Sender: No OFD packet to send [03:45:38]OFD Sender: No OFD packet to send [03:45:43]OFD Sender: No OFD packet to send [03:45:48]OFD Sender: No OFD packet to send [03:45:53]OFD Sender: No OFD packet to send [03:45:58]OFD Sender: No OFD packet to send [03:46:03]OFD Sender: No OFD packet to send [03:46:08]OFD Sender: No OFD packet to send [03:46:13]OFD Sender: No OFD packet to send [03:46:18]OFD Sender: No OFD packet to send [03:46:23]OFD Sender: No OFD packet to send [03:46:28]OFD Sender: No OFD packet to send [03:46:33]OFD Sender: No OFD packet to send [03:46:38]OFD Sender: No OFD packet to send [03:46:43]OFD Sender: No OFD packet to send [03:46:48]OFD Sender: No OFD packet to send [03:46:53]OFD Sender: No OFD packet to send [03:46:58]OFD Sender: No OFD packet to send [03:47:03]OFD Sender: No OFD packet to send [03:47:08]OFD Sender: No OFD packet to send [03:47:13]OFD Sender: No OFD packet to send [03:47:18]OFD Sender: No OFD packet to send [03:47:23]OFD Sender: No OFD packet to send [03:47:28]OFD Sender: No OFD packet to send [03:47:33]OFD Sender: No OFD packet to send [03:47:38]OFD Sender: No OFD packet to send [03:47:43]OFD Sender: No OFD packet to send [03:47:48]OFD Sender: No OFD packet to send [03:47:53]OFD Sender: No OFD packet to send [03:47:58]OFD Sender: No OFD packet to send [03:48:03]OFD Sender: No OFD packet to send [03:48:09]OFD Sender: No OFD packet to send [03:48:14]OFD Sender: No OFD packet to send [03:48:19]OFD Sender: No OFD packet to send [03:48:24]OFD Sender: No OFD packet to send [03:48:29]OFD Sender: No OFD packet to send [03:48:34]OFD Sender: No OFD packet to send [03:48:39]OFD Sender: No OFD packet to send [03:48:44]OFD Sender: No OFD packet to send [03:48:49]OFD Sender: No OFD packet to send [03:48:54]OFD Sender: No OFD packet to send [03:48:59]OFD Sender: No OFD packet to send [03:49:04]OFD Sender: No OFD packet to send [03:49:09]OFD Sender: No OFD packet to send [03:49:14]OFD Sender: No OFD packet to send [03:49:19]OFD Sender: No OFD packet to send [03:49:24]OFD Sender: No OFD packet to send [03:49:29]OFD Sender: No OFD packet to send [03:49:34]OFD Sender: No OFD packet to send [03:49:39]OFD Sender: No OFD packet to send [03:49:44]OFD Sender: No OFD packet to send [03:49:49]OFD Sender: No OFD packet to send [03:49:54]OFD Sender: No OFD packet to send [03:49:59]OFD Sender: No OFD packet to send [03:50:04]OFD Sender: No OFD packet to send [03:50:09]OFD Sender: No OFD packet to send [03:50:14]OFD Sender: No OFD packet to send [03:50:19]OFD Sender: No OFD packet to send [03:50:24]OFD Sender: No OFD packet to send [03:50:29]OFD Sender: No OFD packet to send [03:50:34]OFD Sender: No OFD packet to send [03:50:39]OFD Sender: No OFD packet to send [03:50:44]OFD Sender: No OFD packet to send [03:50:49]OFD Sender: No OFD packet to send [03:50:54]OFD Sender: No OFD packet to send [03:50:59]OFD Sender: No OFD packet to send [03:51:04]OFD Sender: No OFD packet to send [03:51:09]OFD Sender: No OFD packet to send [03:51:14]OFD Sender: No OFD packet to send [03:51:19]OFD Sender: No OFD packet to send [03:51:24]OFD Sender: No OFD packet to send [03:51:29]OFD Sender: No OFD packet to send [03:51:34]OFD Sender: No OFD packet to send [03:51:39]OFD Sender: No OFD packet to send [03:51:44]OFD Sender: No OFD packet to send [03:51:49]OFD Sender: No OFD packet to send [03:51:54]OFD Sender: No OFD packet to send [03:51:59]OFD Sender: No OFD packet to send [03:52:04]OFD Sender: No OFD packet to send [03:52:09]OFD Sender: No OFD packet to send [03:52:14]OFD Sender: No OFD packet to send [03:52:19]OFD Sender: No OFD packet to send [03:52:24]OFD Sender: No OFD packet to send [03:52:29]OFD Sender: No OFD packet to send [03:52:34]OFD Sender: No OFD packet to send [03:52:39]OFD Sender: No OFD packet to send [03:52:44]OFD Sender: No OFD packet to send [03:52:49]OFD Sender: No OFD packet to send [03:52:54]OFD Sender: No OFD packet to send [03:52:59]OFD Sender: No OFD packet to send [03:53:04]OFD Sender: No OFD packet to send [03:53:09]OFD Sender: No OFD packet to send [03:53:14]OFD Sender: No OFD packet to send [03:53:19]OFD Sender: No OFD packet to send [03:53:24]OFD Sender: No OFD packet to send [03:53:29]OFD Sender: No OFD packet to send [03:53:34]OFD Sender: No OFD packet to send [03:53:39]OFD Sender: No OFD packet to send [03:53:44]OFD Sender: No OFD packet to send [03:53:49]OFD Sender: No OFD packet to send [03:53:54]OFD Sender: No OFD packet to send [03:53:59]OFD Sender: No OFD packet to send [03:54:04]OFD Sender: No OFD packet to send [03:54:09]OFD Sender: No OFD packet to send [03:54:14]OFD Sender: No OFD packet to send [03:54:19]OFD Sender: No OFD packet to send [03:54:24]OFD Sender: No OFD packet to send [03:54:29]OFD Sender: No OFD packet to send [03:54:34]OFD Sender: No OFD packet to send [03:54:39]OFD Sender: No OFD packet to send [03:54:44]OFD Sender: No OFD packet to send [03:54:49]OFD Sender: No OFD packet to send [03:54:54]OFD Sender: No OFD packet to send [03:54:59]OFD Sender: No OFD packet to send [03:55:04]OFD Sender: No OFD packet to send [03:55:09]OFD Sender: No OFD packet to send [03:55:15]OFD Sender: No OFD packet to send [03:55:20]OFD Sender: No OFD packet to send [03:55:25]OFD Sender: No OFD packet to send [03:55:30]OFD Sender: No OFD packet to send [03:55:35]OFD Sender: No OFD packet to send [03:55:40]OFD Sender: No OFD packet to send [03:55:45]OFD Sender: No OFD packet to send [03:55:50]OFD Sender: No OFD packet to send [03:55:55]OFD Sender: No OFD packet to send [03:56:00]OFD Sender: No OFD packet to send [03:56:05]OFD Sender: No OFD packet to send [03:56:10]OFD Sender: No OFD packet to send [03:56:15]OFD Sender: No OFD packet to send [03:56:20]OFD Sender: No OFD packet to send [03:56:25]OFD Sender: No OFD packet to send [03:56:30]OFD Sender: No OFD packet to send [03:56:31]accept exits with 8 [03:56:31]New connection [03:56:31]New thread 3067350372 created [03:56:31]Thread 3067207012 joined [03:56:31]Waiting for new connection... [03:56:31] Sock 8.Parse request [03:56:31]Sock 8.Check first char [03:56:31]Sock 8.First char is OK [03:56:31]request: POST /json_proto HTTP/1.0 [03:56:31]Method: POST [03:56:31]URL: /json_proto [03:56:31]Method is POST - this is cgi request [03:56:31]url: /json_proto [03:56:31]query_string will be loaded in cgi processing [03:56:31]execute_cgi json_proto POST (null) [03:56:31]execute_cgi path=json_proto method=POST [03:56:31]POST find Content-Length [03:56:31]Host: 172.17.41.136:8080 [03:56:31]Content-Length: 646 [03:56:31]Content-Type: application/json [03:56:31] [03:56:31]POST finish read [03:56:31]Found Content-Length = 646 [03:56:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)344348", "tax_sys" : 0, "items" : [ { "code": "4700000483259", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Nitro Fresh \u041C\u043E\u0445\u0438\u0442\u043E", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 95.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:56:31]execute_script... [03:56: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 : (3)344348", "tax_sys" : 0, "items" : [ { "code": "4700000483259", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Nitro Fresh \u041C\u043E\u0445\u0438\u0442\u043E", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 95.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:56:31]POST & json_proto [03:56:31]process_json_proto [03:56:31]json parsed OK: [03:56:31]protocol is kg_v1.0 [03:56:31]action value=close_receipt [03:56:31]process_action close_receipt [03:56:31]cmd_close_receipt [03:56:31]MH_GetDate [03:56:31]Write to MH i2c: F0 00 00 58 06 4D [03:56:31]Write i2c OK [03:56:31]MH_I2C_Read... [03:56:31]Read from MH i2c: F0 [03:56:31]MH_I2C_Read... [03:56:31]Read from MH i2c: F0 09 00 [03:56:31]MH_I2C_Read... [03:56:31]Read from MH i2c: F0 09 00 58 06 00 F0 89 F3 66 1B D0 5A 64 D1 [03:56:31]GetLastDocTimeStamp 1727235806 [03:56:31]current date 1727236592 [03:56:31]FM_GetShiftState [03:56:31]SAM_PROTO_GetShiftState [03:56:31]wFMCommunicate request_size=4 [03:56:31]MH_SAM_APDU [03:56:31]CAPDU: 80 13 01 00 [03:56:31]Write to MH i2c: E2 08 00 59 06 80 13 01 00 00 00 00 00 DC [03:56:31]Write i2c OK [03:56:31]MH_I2C_Read... [03:56:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:56:31]Read from MH i2c: E2 [03:56:31]MH_I2C_Read... [03:56:31]Read from MH i2c: E2 0E 00 [03:56:31]MH_I2C_Read... [03:56:31]Read from MH i2c: E2 0E 00 59 06 00 09 00 01 63 60 F3 66 00 00 00 00 90 00 04 [03:56:31]RAPDU: 09 00 01 63 60 F3 66 00 00 00 00 90 00 [03:56:31]wFMCommunicate OK [03:56:31]SAM_PROTO_GetShiftState done [03:56:31]FM_GetShiftState done [03:56:31]opened in 1727225955 [03:56:31]opened+sec_in_day 1727312355 [03:56:31]quantity*price = 9500 [03:56:31]sum+1 = 9501 [03:56:31]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 95.00 НСП 1% : 0.84 НДС 12% : 10.09 Наличными: 95.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 17 25.09.2024 03:56 Смена: 474 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 116161 ФПД: 93831562901789 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240925T035632&type=1&operation_type=1&fn_number=0000000000871830&fd_number=116161&fm=93831562901789&tin=02508201610067®Number=0000000000091831&sum=9500 0 [03:56:32]StoreToDocumentArchive [03:56:32]shift 474 fd 116161 [03:56:32]save to /storage/0474/doc_00116161 [03:56:32]save last doc name /storage/0474/doc_00116161 to /storage/kkm_last_doc_name [03:56:32]save OK [03:56:32]Clear old archive folders... [03:56:32]ProcessDocumentItem done err = 0, tmpTLVsize=281 [03:56:32]tlvbuf is 018CA530 [03:56:32]SAM_PROTO_ClearQueue [03:56:32]wFMCommunicate request_size=4 [03:56:32]MH_SAM_APDU [03:56:32]CAPDU: 80 09 00 00 [03:56:32]Write to MH i2c: E2 08 00 66 06 80 09 00 00 00 00 00 00 DE [03:56:32]Write i2c OK [03:56:32]MH_I2C_Read... [03:56:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [03:56:32]Read from MH i2c: E2 [03:56:32]MH_I2C_Read... [03:56:32]Read from MH i2c: E2 03 00 [03:56:32]MH_I2C_Read... [03:56:32]Read from MH i2c: E2 03 00 66 06 00 90 00 E0 [03:56:32]RAPDU: 90 00 [03:56:32]wFMCommunicate OK [03:56:32]SAM_PROTO_ClearQueue done [03:56:32]KKMCreateOFDPacket [03:56:32]OFDProtocolAddRootSTLVToBuf [03:56:32]FM_MakeSignedData [03:56:32]FM_MakeSignedData [03:56:32]SAM_PROTO_SignData [03:56:32]wFMCommunicate request_size=4 [03:56:32]MH_SAM_APDU [03:56:32]CAPDU: 80 0D 01 02 [03:56:32]Write to MH i2c: E2 08 00 67 06 80 0D 01 02 00 00 00 00 E6 [03:56:32]Write i2c OK [03:56:32]MH_I2C_Read... [03:56:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [03:56:32]Read from MH i2c: E2 [03:56:32]MH_I2C_Read... [03:56:32]Read from MH i2c: E2 03 00 [03:56:32]MH_I2C_Read... [03:56:32]Read from MH i2c: E2 03 00 67 06 00 90 00 E1 [03:56:32]RAPDU: 90 00 [03:56:32]wFMCommunicate OK [03:56:32]wFMCommunicate request_size=255 [03:56:32]MH_SAM_APDU [03:56:32]CAPDU: 80 0D 02 02 FA 03 00 19 01 1E 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 33 32 35 39 06 04 27 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 46 72 65 73 68 20 D0 9C D0 BE D1 85 D0 B8 D1 82 D0 BE FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 25 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 F0 89 F3 66 0E 04 04 00 DA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 [03:56:32]Write to MH i2c: E2 02 01 68 06 80 0D 02 02 FA 00 03 00 19 01 1E 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 33 32 35 39 06 04 27 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 46 72 65 73 68 20 D0 9C D0 BE D1 85 D0 B8 D1 82 D0 BE FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 25 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 F0 89 F3 66 0E 04 04 00 DA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 00 7E [03:56:32]Write i2c OK [03:56:32]MH_I2C_Read... [03:56:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:56:32]Read from MH i2c: E2 [03:56:32]MH_I2C_Read... [03:56:32]Read from MH i2c: E2 03 00 [03:56:32]MH_I2C_Read... [03:56:32]Read from MH i2c: E2 03 00 68 06 00 90 00 E2 [03:56:32]RAPDU: 90 00 [03:56:32]wFMCommunicate OK [03:56:32]wFMCommunicate request_size=40 [03:56:32]MH_SAM_APDU [03:56:32]CAPDU: 80 0D 02 02 23 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 C1 C5 01 00 35 04 06 00 55 56 DC F9 B9 1D [03:56:32]Write to MH i2c: E2 2B 00 69 06 80 0D 02 02 23 00 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 C1 C5 01 00 35 04 06 00 55 56 DC F9 B9 1D 00 00 7E [03:56:32]Write i2c OK [03:56:32]MH_I2C_Read... [03:56:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:56:32]Read from MH i2c: E2 [03:56:32]MH_I2C_Read... [03:56:32]Read from MH i2c: E2 03 00 [03:56:32]MH_I2C_Read... [03:56:32]Read from MH i2c: E2 03 00 69 06 00 90 00 E3 [03:56:32]RAPDU: 90 00 [03:56:32]wFMCommunicate OK [03:56:32]wFMCommunicate request_size=4 [03:56:32]MH_SAM_APDU [03:56:32]CAPDU: 80 0D 03 02 [03:56:32]Write to MH i2c: E2 08 00 6A 06 80 0D 03 02 00 00 00 00 EB [03:56:32]Write i2c OK [03:56:32]MH_I2C_Read... [03:56:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [03:56:32]Read from MH i2c: E2 [03:56:32]MH_I2C_Read... [03:56:32]Read from MH i2c: E2 0B 00 [03:56:32]MH_I2C_Read... [03:56:32]Read from MH i2c: E2 0B 00 6A 06 00 FE FF 31 44 8D 08 F9 B1 90 00 9D [03:56:32]RAPDU: FE FF 31 44 8D 08 F9 B1 90 00 [03:56:32]wFMCommunicate OK [03:56:32]SAM_PROTO_SignData done [03:56:32]FM_MakeSignedData done [03:56:32]CreateOFDProtocolMessage [03:56:32]wFMCommunicate request_size=4 [03:56:32]MH_SAM_APDU [03:56:32]CAPDU: 80 11 00 00 [03:56:32]Write to MH i2c: E2 08 00 6B 06 80 11 00 00 00 00 00 00 EB [03:56:32]Write i2c OK [03:56:32]MH_I2C_Read... [03:56:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:56:32]Read from MH i2c: E2 [03:56:32]MH_I2C_Read... [03:56:32]Read from MH i2c: E2 17 00 [03:56:32]MH_I2C_Read... [03:56:32]Read from MH i2c: E2 17 00 6B 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 39 [03:56:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [03:56:32]wFMCommunicate OK [03:56:32]CreateOFDProtocolMessage done [03:56:32]OFDSenderStorePacket 116161 [03:56:32]StoreOFDPacket docnum=116161 [03:56:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 2D 01 00 00 CF BD 25 01 E3 CC 5A 03 01 00 03 00 19 01 1E 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 33 32 35 39 06 04 27 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 46 72 65 73 68 20 D0 9C D0 BE D1 85 D0 B8 D1 82 D0 BE FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 25 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 F0 89 F3 66 0E 04 04 00 DA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 C1 C5 01 00 35 04 06 00 55 56 DC F9 B9 1D FE FF 31 44 8D 08 F9 B1 [03:56:32]CheckFolder [03:56:32]dirname=/storage/ofd_packets [03:56:32]CheckFolder done [03:56:32]ProducePacketName [03:56:32]name=ofd_packets/00116161 [03:56:32]NVStorageSaveData ofd_packets/00116161 [03:56:32]File name is /storage/ofd_packets/00116161 [03:56:32]Write 331 bytes [03:56:32]NVStorageSaveData done [03:56:32]OFDSenderStorePacket done [03:56:32]KKMCreateOFDPacket done [03:56:32]NVStorageSaveData kkm_last_timestamp [03:56:32]File name is /storage/kkm_last_timestamp [03:56:32]Write 4 bytes [03:56:32]NVStorageSaveData done [03:56:32]ExternCall_PrintAddStr [03:56:32]wPrintStart [03:56:32]Write to MH i2c: 01 00 00 6C 06 72 [03:56:32]Write i2c OK [03:56:32]MH_I2C_Read... [03:56:32]Read from MH i2c: 01 [03:56:32]MH_I2C_Read... [03:56:32]Read from MH i2c: 01 07 00 [03:56:32]MH_I2C_Read... [03:56:32]Read from MH i2c: 01 07 00 6C 06 00 00 00 00 00 FF 0F 87 [03:56:32]RasterBufferAndPrint [03:56:32]line Счет N : (3)344348 [03:56:32]line ИНН: 02508201610067 [03:56:32]line Контрольно-Кассовый Чек [03:56:32]line ПРОДАЖА [03:56:32]line Товар: 4700000483259 [03:56:32]line Напиток Nitro Fresh Мохито [03:56:32]line 1.000 * 95.00 [03:56:32]line = 95.00 [03:56:32]line НДС 12% НСП 1% [03:56:32]line > о реализуемом товаре [03:56:32]line ИТОГО: 95.00 [03:56:32]line НСП 1% : 0.84 [03:56:32]line НДС 12% : 10.09 [03:56:32]line Наличными: 95.00 [03:56:32]line Безнал.: 0.00 [03:56:32]line Место: АЗС № 90 "Партнер Нефть" [03:56:32]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [03:56:32]line СНО: Общий режим [03:56:32]line Чек 17 25.09.2024 03:56 [03:56:32]line Смена: 474 ФФД: 1.0 [03:56:32]line ЗНМ: 0300000120 [03:56:32]line РНМ: 0000000000091831 [03:56:32]line Версия ККМ: 001 [03:56:32]line ФМ: 0000000000871830 [03:56:32]line ФД: 116161 [03:56:33]line ФПД: 93831562901789 [03:56:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240925T035632&type=1&operation_type=1&fn_number=0000000000871830&fd_number=116161&fm=93831562901789&tin=02508201610067®Number=0000000000091831&sum=9500 [03:56:33]line 0 [03:56:33]OFD Sender: Processing packet 116161 [packets to send 482, broken 481] [03:56:33]ProducePacketName [03:56:33]name=ofd_packets/00116161 [03:56:33]OFD Sender: To server: pG, [03:56:33]CommunicateWithHost lk.salyk.kg:30040 [03:56:33]ConnectInit lk.salyk.kg [03:56:33]written 0, free lines is 4095 [03:56:33]Connected sock=10 [03:56:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 2D 01 00 00 CF BD 25 01 E3 CC 5A 03 01 00 03 00 19 01 1E 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 33 32 35 39 06 04 27 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 46 72 65 73 68 20 D0 9C D0 BE D1 85 D0 B8 D1 82 D0 BE FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 25 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 F0 89 F3 66 0E 04 04 00 DA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 C1 C5 01 00 35 04 06 00 55 56 DC F9 B9 1D FE FF 31 44 8D 08 F9 B1 [03:56:33]Write to MH i2c: 01 00 00 93 06 99 [03:56:33]Write i2c OK [03:56:33]MH_I2C_Read... [03:56:33]Read from MH i2c: 01 [03:56:33]MH_I2C_Read... [03:56:33]Read from MH i2c: 01 07 00 [03:56:33]MH_I2C_Read... [03:56:33]Read from MH i2c: 01 07 00 93 06 00 00 00 00 00 69 0C 15 [03:56:33]RasterBufferAndPrint [03:56:33]line [03:56:33]line [03:56:33]line [03:56:33]line [03:56:33]line [03:56:33]written 0, free lines is 3180 [03:56:33]MH_Cut [03:56:33]Write to MH i2c: D1 01 00 9A 06 01 72 [03:56:33]Write i2c OK [03:56:33]MH_I2C_Read... [03:56:33]Read from MH i2c: D1 [03:56:33]MH_I2C_Read... [03:56:33]Read from MH i2c: D1 01 00 [03:56:33]MH_I2C_Read... [03:56:33]Read from MH i2c: D1 01 00 9A 06 00 71 [03:56:33]Write to MH i2c: 01 00 00 9B 06 A1 [03:56:33]Write i2c OK [03:56:33]MH_I2C_Read... [03:56:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 1D 55 47 00 35 E0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 C1 C5 01 00 F4 03 04 00 2D 2F F3 66 B6 04 01 00 00 ED C6 D5 26 06 F1 53 80 [03:56:33]CommunicateWithHost err = 0 [03:56:33]CheckOFDResponse [03:56:33]1017 (14) - 77093643461234 [03:56:33]1041 (16) - 0000000000871830 [03:56:33]1040 (4) - 116161 [03:56:33]1012 (4) - 24.09.2024 21:29 [03:56:33]1206 (1) - 0 [03:56:33]OFD Sender: Remove packet 116161 [03:56:33]ProducePacketName [03:56:33]name=ofd_packets/00116161 [03:56:33]NVStorageDeleteData [03:56:34]OFD Sender: No OFD packet to send [03:56:35]*** Cut start [03:56:35]*** Partial cut [03:56:35]*** CUTSNS_PIN = 1 [03:56:35]*** CUTSNS_PIN = 0 [03:56:35]*** Brake cut motor [03:56:35]Read from MH i2c: 01 [03:56:35]MH_I2C_Read... [03:56:35]*** Stop cut motor [03:56:35]*** Cut end [03:56:35]Read from MH i2c: 01 07 00 [03:56:35]MH_I2C_Read... [03:56:35]Read from MH i2c: 01 07 00 9B 06 00 00 00 00 00 FF 0F B6 [03:56:35]process_action close_receipt done [03:56:35]requested_data is exist [03:56:35]produce_requested_data [03:56:35]requested_item fm.sn is exist - process it [03:56:35]wFMCommunicate request_size=4 [03:56:35]MH_SAM_APDU [03:56:35]CAPDU: 80 11 00 00 [03:56:35]Write to MH i2c: E2 08 00 9C 06 80 11 00 00 00 00 00 00 1C [03:56:35]Write i2c OK [03:56:35]MH_I2C_Read... [03:56:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:56:35]Read from MH i2c: E2 [03:56:35]MH_I2C_Read... [03:56:35]Read from MH i2c: E2 17 00 [03:56:35]MH_I2C_Read... [03:56:35]Read from MH i2c: E2 17 00 9C 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 6A [03:56:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [03:56:35]wFMCommunicate OK [03:56:35]requested_item fd.num is exist - process it [03:56:35]SAM_PROTO_GetFieldsCounters [03:56:35]wFMCommunicate request_size=4 [03:56:35]MH_SAM_APDU [03:56:35]CAPDU: 80 13 00 00 [03:56:35]Write to MH i2c: E2 08 00 9D 06 80 13 00 00 00 00 00 00 1F [03:56:35]Write i2c OK [03:56:35]MH_I2C_Read... [03:56:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [03:56:35]Read from MH i2c: E2 [03:56:35]MH_I2C_Read... [03:56:35]Read from MH i2c: E2 62 00 [03:56:35]MH_I2C_Read... [03:56:35]Read from MH i2c: E2 62 00 9D 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 C1 C5 01 00 0E 04 04 00 DA 01 00 00 12 04 04 00 11 00 00 00 5E 04 04 00 11 00 00 00 57 04 04 00 12 00 00 00 19 04 04 00 00 00 00 00 90 00 CD [03:56:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 C1 C5 01 00 0E 04 04 00 DA 01 00 00 12 04 04 00 11 00 00 00 5E 04 04 00 11 00 00 00 57 04 04 00 12 00 00 00 19 04 04 00 00 00 00 00 90 00 [03:56:35]wFMCommunicate OK [03:56:35]SAM_PROTO_GetFieldsCounters done [03:56:35]requested_item shift.num is exist - process it [03:56:35]requested_item shift.opened is exist - process it [03:56:35]req_shift_opened [03:56:35]FM_GetShiftState [03:56:35]SAM_PROTO_GetShiftState [03:56:35]wFMCommunicate request_size=4 [03:56:35]MH_SAM_APDU [03:56:35]CAPDU: 80 13 01 00 [03:56:35]Write to MH i2c: E2 08 00 9E 06 80 13 01 00 00 00 00 00 21 [03:56:35]Write i2c OK [03:56:35]MH_I2C_Read... [03:56:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:56:35]Read from MH i2c: E2 [03:56:35]MH_I2C_Read... [03:56:35]Read from MH i2c: E2 0E 00 [03:56:35]MH_I2C_Read... [03:56:35]Read from MH i2c: E2 0E 00 9E 06 00 09 00 01 63 60 F3 66 00 00 00 00 90 00 49 [03:56:35]RAPDU: 09 00 01 63 60 F3 66 00 00 00 00 90 00 [03:56:35]wFMCommunicate OK [03:56:35]SAM_PROTO_GetShiftState done [03:56:35]FM_GetShiftState done [03:56:35]req_shift_opened done [03:56:35]requested_item shift.open_date is exist - process it [03:56:35]req_shift_open_date [03:56:35]req_shift_open_date done [03:56:35]produce_requested_data done [03:56:35]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":116161,"shift.num":474,"shift.opened":1,"shift.open_date":1727225955} [03:56:35]process_action_free close_receipt [03:56:35]json_value_free [03:56:35]json_value_free done [03:56:35]process_json_proto returns [03:56:35]Send response to host [03:56:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":116161,"shift.num":474,"shift.opened":1,"shift.open_date":1727225955}}} [03:56:35]free response buf [03:56:35]execute_script done [03:56:35]execute_script returns [03:56:35]free content buf [03:56:35]Sock 8.Close socket [03:56:35]Sock 8.Thread stoped [03:56:39]OFD Sender: No OFD packet to send [03:56:44]OFD Sender: No OFD packet to send [03:56:49]OFD Sender: No OFD packet to send [03:56:54]OFD Sender: No OFD packet to send [03:56:59]OFD Sender: No OFD packet to send [03:57:04]OFD Sender: No OFD packet to send [03:57:09]OFD Sender: No OFD packet to send [03:57:14]OFD Sender: No OFD packet to send [03:57:19]OFD Sender: No OFD packet to send [03:57:24]OFD Sender: No OFD packet to send [03:57:29]OFD Sender: No OFD packet to send [03:57:34]OFD Sender: No OFD packet to send [03:57:39]OFD Sender: No OFD packet to send [03:57:44]OFD Sender: No OFD packet to send [03:57:49]OFD Sender: No OFD packet to send [03:57:54]OFD Sender: No OFD packet to send [03:57:59]OFD Sender: No OFD packet to send [03:58:04]OFD Sender: No OFD packet to send [03:58:09]OFD Sender: No OFD packet to send [03:58:14]OFD Sender: No OFD packet to send [03:58:19]OFD Sender: No OFD packet to send [03:58:24]OFD Sender: No OFD packet to send [03:58:29]OFD Sender: No OFD packet to send [03:58:34]OFD Sender: No OFD packet to send [03:58:39]OFD Sender: No OFD packet to send [03:58:44]OFD Sender: No OFD packet to send [03:58:49]OFD Sender: No OFD packet to send [03:58:54]OFD Sender: No OFD packet to send [03:58:59]OFD Sender: No OFD packet to send [03:59:04]OFD Sender: No OFD packet to send [03:59:09]OFD Sender: No OFD packet to send [03:59:14]OFD Sender: No OFD packet to send [03:59:19]OFD Sender: No OFD packet to send [03:59:24]OFD Sender: No OFD packet to send [03:59:29]OFD Sender: No OFD packet to send [03:59:34]OFD Sender: No OFD packet to send [03:59:39]OFD Sender: No OFD packet to send [03:59:44]OFD Sender: No OFD packet to send [03:59:49]OFD Sender: No OFD packet to send [03:59:54]OFD Sender: No OFD packet to send [03:59:59]OFD Sender: No OFD packet to send [04:00:04]OFD Sender: No OFD packet to send [04:00:09]OFD Sender: No OFD packet to send [04:00:14]OFD Sender: No OFD packet to send [04:00:19]OFD Sender: No OFD packet to send [04:00:24]OFD Sender: No OFD packet to send [04:00:29]OFD Sender: No OFD packet to send [04:00:34]OFD Sender: No OFD packet to send [04:00:39]OFD Sender: No OFD packet to send [04:00:44]OFD Sender: No OFD packet to send [04:00:49]OFD Sender: No OFD packet to send [04:00:54]OFD Sender: No OFD packet to send [04:00:59]OFD Sender: No OFD packet to send [04:01:04]OFD Sender: No OFD packet to send [04:01:09]OFD Sender: No OFD packet to send [04:01:14]OFD Sender: No OFD packet to send [04:01:19]OFD Sender: No OFD packet to send [04:01:24]OFD Sender: No OFD packet to send [04:01:30]OFD Sender: No OFD packet to send [04:01:35]OFD Sender: No OFD packet to send [04:01:40]OFD Sender: No OFD packet to send [04:01:45]OFD Sender: No OFD packet to send [04:01:50]OFD Sender: No OFD packet to send [04:01:55]OFD Sender: No OFD packet to send [04:02:00]OFD Sender: No OFD packet to send [04:02:05]OFD Sender: No OFD packet to send [04:02:10]OFD Sender: No OFD packet to send [04:02:15]OFD Sender: No OFD packet to send [04:02:20]OFD Sender: No OFD packet to send [04:02:25]OFD Sender: No OFD packet to send [04:02:30]OFD Sender: No OFD packet to send [04:02:35]OFD Sender: No OFD packet to send [04:02:40]OFD Sender: No OFD packet to send [04:02:45]OFD Sender: No OFD packet to send [04:02:50]OFD Sender: No OFD packet to send [04:02:55]OFD Sender: No OFD packet to send [04:03:00]OFD Sender: No OFD packet to send [04:03:05]OFD Sender: No OFD packet to send [04:03:10]OFD Sender: No OFD packet to send [04:03:15]OFD Sender: No OFD packet to send [04:03:20]OFD Sender: No OFD packet to send [04:03:25]OFD Sender: No OFD packet to send [04:03:30]OFD Sender: No OFD packet to send [04:03:35]OFD Sender: No OFD packet to send [04:03:40]OFD Sender: No OFD packet to send [04:03:45]OFD Sender: No OFD packet to send [04:03:50]OFD Sender: No OFD packet to send [04:03:55]OFD Sender: No OFD packet to send [04:04:00]OFD Sender: No OFD packet to send [04:04:05]OFD Sender: No OFD packet to send [04:04:10]OFD Sender: No OFD packet to send [04:04:15]OFD Sender: No OFD packet to send [04:04:20]OFD Sender: No OFD packet to send [04:04:25]OFD Sender: No OFD packet to send [04:04:30]OFD Sender: No OFD packet to send [04:04:35]OFD Sender: No OFD packet to send [04:04:40]OFD Sender: No OFD packet to send [04:04:45]OFD Sender: No OFD packet to send [04:04:50]OFD Sender: No OFD packet to send [04:04:55]OFD Sender: No OFD packet to send [04:05:00]OFD Sender: No OFD packet to send [04:05:05]OFD Sender: No OFD packet to send [04:05:10]OFD Sender: No OFD packet to send [04:05:15]OFD Sender: No OFD packet to send [04:05:20]OFD Sender: No OFD packet to send [04:05:25]OFD Sender: No OFD packet to send [04:05:30]OFD Sender: No OFD packet to send [04:05:35]OFD Sender: No OFD packet to send [04:05:40]OFD Sender: No OFD packet to send [04:05:44]accept exits with 9 [04:05:44]New connection [04:05:44]New thread 3067207012 created [04:05:44]Thread 3067350372 joined [04:05:44]Waiting for new connection... [04:05:44] Sock 9.Parse request [04:05:44]Sock 9.Check first char [04:05:44]Sock 9.First char is OK [04:05:44]request: POST /json_proto HTTP/1.0 [04:05:44]Method: POST [04:05:44]URL: /json_proto [04:05:44]Method is POST - this is cgi request [04:05:44]url: /json_proto [04:05:44]query_string will be loaded in cgi processing [04:05:44]execute_cgi json_proto POST (null) [04:05:44]execute_cgi path=json_proto method=POST [04:05:44]POST find Content-Length [04:05:44]Host: 172.17.41.136:8080 [04:05:44]Content-Length: 1248 [04:05:44]Content-Type: application/json [04:05:44] [04:05:44]POST finish read [04:05:44]Found Content-Length = 1248 [04:05:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)344349", "tax_sys" : 0, "items" : [ { "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Silver", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000310326", "name": "\u0412\u043E\u0434\u0430 \u0410\u0434\u044B\u0433\u0435\u043D\u0435 1\u043B \u0431/\u0433", "price" : 35.00, "quantity" : 1.000, "sum" : 35.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870202521254", "name": "\u0427\u0430\u0439 \u0445\u043E\u043B\u043E\u0434\u043D\u044B\u0439 MAXI \u0447\u0435\u0440\u043D\u044B\u0439 \u0441\u043E \u0432\u043A\u0443\u0441\u043E\u043C \u043A\u043B\u0443\u0431\u043D", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 304.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:05:44]execute_script... [04:05:44]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)344349", "tax_sys" : 0, "items" : [ { "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Silver", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000310326", "name": "\u0412\u043E\u0434\u0430 \u0410\u0434\u044B\u0433\u0435\u043D\u0435 1\u043B \u0431/\u0433", "price" : 35.00, "quantity" : 1.000, "sum" : 35.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870202521254", "name": "\u0427\u0430\u0439 \u0445\u043E\u043B\u043E\u0434\u043D\u044B\u0439 MAXI \u0447\u0435\u0440\u043D\u044B\u0439 \u0441\u043E \u0432\u043A\u0443\u0441\u043E\u043C \u043A\u043B\u0443\u0431\u043D", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 304.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:05:44]POST & json_proto [04:05:44]process_json_proto [04:05:44]json parsed OK: [04:05:44]protocol is kg_v1.0 [04:05:44]action value=close_receipt [04:05:44]process_action close_receipt [04:05:44]cmd_close_receipt [04:05:44]MH_GetDate [04:05:44]Write to MH i2c: F0 00 00 9F 06 94 [04:05:44]Write i2c OK [04:05:44]MH_I2C_Read... [04:05:44]Read from MH i2c: F0 [04:05:44]MH_I2C_Read... [04:05:44]Read from MH i2c: F0 09 00 [04:05:44]MH_I2C_Read... [04:05:44]Read from MH i2c: F0 09 00 9F 06 00 19 8C F3 66 1B D0 5A 64 44 [04:05:44]GetLastDocTimeStamp 1727236592 [04:05:44]current date 1727237145 [04:05:44]FM_GetShiftState [04:05:44]SAM_PROTO_GetShiftState [04:05:44]wFMCommunicate request_size=4 [04:05:44]MH_SAM_APDU [04:05:44]CAPDU: 80 13 01 00 [04:05:44]Write to MH i2c: E2 08 00 A0 06 80 13 01 00 00 00 00 00 23 [04:05:44]Write i2c OK [04:05:44]MH_I2C_Read... [04:05:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:05:44]Read from MH i2c: E2 [04:05:44]MH_I2C_Read... [04:05:44]Read from MH i2c: E2 0E 00 [04:05:44]MH_I2C_Read... [04:05:44]Read from MH i2c: E2 0E 00 A0 06 00 09 00 01 63 60 F3 66 00 00 00 00 90 00 4B [04:05:44]RAPDU: 09 00 01 63 60 F3 66 00 00 00 00 90 00 [04:05:44]wFMCommunicate OK [04:05:44]SAM_PROTO_GetShiftState done [04:05:44]FM_GetShiftState done [04:05:44]opened in 1727225955 [04:05:44]opened+sec_in_day 1727312355 [04:05:44]quantity*price = 14400 [04:05:44]sum+1 = 14401 [04:05:44]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700000310326 Вода Адыгене 1л б/г 1.000 * 35.00 = 35.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4870202521254 Чай холодный MAXI черный со вкусом клубн 1.000 * 125.00 = 125.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 304.00 НСП 1% : 2.69 НДС 12% : 32.28 Наличными: 304.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 18 25.09.2024 04:05 Смена: 474 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 116162 ФПД: 258486575017751 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240925T040546&type=1&operation_type=1&fn_number=0000000000871830&fd_number=116162&fm=258486575017751&tin=02508201610067®Number=0000000000091831&sum=30400 0 [04:05:45]StoreToDocumentArchive [04:05:45]shift 474 fd 116162 [04:05:45]save to /storage/0474/doc_00116162 [04:05:45]save last doc name /storage/0474/doc_00116162 to /storage/kkm_last_doc_name [04:05:45]save OK [04:05:45]Clear old archive folders... [04:05:45]ProcessDocumentItem done err = 0, tmpTLVsize=522 [04:05:45]tlvbuf is 018C9FD0 [04:05:45]SAM_PROTO_ClearQueue [04:05:45]wFMCommunicate request_size=4 [04:05:45]MH_SAM_APDU [04:05:45]CAPDU: 80 09 00 00 [04:05:45]Write to MH i2c: E2 08 00 AD 06 80 09 00 00 00 00 00 00 25 [04:05:45]Write i2c OK [04:05:45]MH_I2C_Read... [04:05:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [04:05:45]Read from MH i2c: E2 [04:05:45]MH_I2C_Read... [04:05:45]Read from MH i2c: E2 03 00 [04:05:45]MH_I2C_Read... [04:05:45]Read from MH i2c: E2 03 00 AD 06 00 90 00 27 [04:05:45]RAPDU: 90 00 [04:05:45]wFMCommunicate OK [04:05:45]SAM_PROTO_ClearQueue done [04:05:45]KKMCreateOFDPacket [04:05:45]OFDProtocolAddRootSTLVToBuf [04:05:45]FM_MakeSignedData [04:05:45]FM_MakeSignedData [04:05:45]SAM_PROTO_SignData [04:05:45]wFMCommunicate request_size=4 [04:05:45]MH_SAM_APDU [04:05:45]CAPDU: 80 0D 01 02 [04:05:45]Write to MH i2c: E2 08 00 AE 06 80 0D 01 02 00 00 00 00 2D [04:05:45]Write i2c OK [04:05:45]MH_I2C_Read... [04:05:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [04:05:46]Read from MH i2c: E2 [04:05:46]MH_I2C_Read... [04:05:46]Read from MH i2c: E2 03 00 [04:05:46]MH_I2C_Read... [04:05:46]Read from MH i2c: E2 03 00 AE 06 00 90 00 28 [04:05:46]RAPDU: 90 00 [04:05:46]wFMCommunicate OK [04:05:46]wFMCommunicate request_size=255 [04:05:46]MH_SAM_APDU [04:05:46]CAPDU: 80 0D 02 02 FA 03 00 0A 02 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 33 32 36 06 04 21 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 90 D0 B4 D1 8B D0 B3 D0 B5 D0 BD D0 B5 20 31 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 AC 0D 00 00 00 00 13 04 06 00 AC 0D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 8A 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 35 34 06 04 46 00 D0 A7 D0 B0 D0 B9 [04:05:46]Write to MH i2c: E2 02 01 AF 06 80 0D 02 02 FA 00 03 00 0A 02 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 33 32 36 06 04 21 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 90 D0 B4 D1 8B D0 B3 D0 B5 D0 BD D0 B5 20 31 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 AC 0D 00 00 00 00 13 04 06 00 AC 0D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 8A 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 35 34 06 04 46 00 D0 A7 D0 B0 D0 B9 00 00 AD [04:05:46]Write i2c OK [04:05:46]MH_I2C_Read... [04:05:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:05:46]Read from MH i2c: E2 [04:05:46]MH_I2C_Read... [04:05:46]Read from MH i2c: E2 03 00 [04:05:46]MH_I2C_Read... [04:05:46]Read from MH i2c: E2 03 00 AF 06 00 90 00 29 [04:05:46]RAPDU: 90 00 [04:05:46]wFMCommunicate OK [04:05:46]wFMCommunicate request_size=255 [04:05:46]MH_SAM_APDU [04:05:46]CAPDU: 80 0D 02 02 FA 20 D1 85 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 4D 41 58 49 20 D1 87 D0 B5 D1 80 D0 BD D1 8B D0 B9 20 D1 81 D0 BE 20 D0 B2 D0 BA D1 83 D1 81 D0 BE D0 BC 20 D0 BA D0 BB D1 83 D0 B1 D0 BD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 76 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0D 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C 0C 00 00 00 00 07 04 06 00 C0 76 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 1A 8C F3 66 0E 04 04 00 DA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 [04:05:46]Write to MH i2c: E2 02 01 B0 06 80 0D 02 02 FA 00 20 D1 85 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 4D 41 58 49 20 D1 87 D0 B5 D1 80 D0 BD D1 8B D0 B9 20 D1 81 D0 BE 20 D0 B2 D0 BA D1 83 D1 81 D0 BE D0 BC 20 D0 BA D0 BB D1 83 D0 B1 D0 BD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 76 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0D 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C 0C 00 00 00 00 07 04 06 00 C0 76 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 1A 8C F3 66 0E 04 04 00 DA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 00 00 32 [04:05:46]Write i2c OK [04:05:46]MH_I2C_Read... [04:05:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:05:46]Read from MH i2c: E2 [04:05:46]MH_I2C_Read... [04:05:46]Read from MH i2c: E2 03 00 [04:05:46]MH_I2C_Read... [04:05:46]Read from MH i2c: E2 03 00 B0 06 00 90 00 2A [04:05:46]RAPDU: 90 00 [04:05:46]wFMCommunicate OK [04:05:46]wFMCommunicate request_size=31 [04:05:46]MH_SAM_APDU [04:05:46]CAPDU: 80 0D 02 02 1A 30 30 38 37 31 38 33 30 10 04 04 00 C2 C5 01 00 35 04 06 00 EB 17 98 7B AF 17 [04:05:46]Write to MH i2c: E2 22 00 B1 06 80 0D 02 02 1A 00 30 30 38 37 31 38 33 30 10 04 04 00 C2 C5 01 00 35 04 06 00 EB 17 98 7B AF 17 00 00 BA [04:05:46]Write i2c OK [04:05:46]MH_I2C_Read... [04:05:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:05:46]Read from MH i2c: E2 [04:05:46]MH_I2C_Read... [04:05:46]Read from MH i2c: E2 03 00 [04:05:46]MH_I2C_Read... [04:05:46]Read from MH i2c: E2 03 00 B1 06 00 90 00 2B [04:05:46]RAPDU: 90 00 [04:05:46]wFMCommunicate OK [04:05:46]wFMCommunicate request_size=4 [04:05:46]MH_SAM_APDU [04:05:46]CAPDU: 80 0D 03 02 [04:05:46]Write to MH i2c: E2 08 00 B2 06 80 0D 03 02 00 00 00 00 33 [04:05:46]Write i2c OK [04:05:46]MH_I2C_Read... [04:05:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [04:05:46]Read from MH i2c: E2 [04:05:46]MH_I2C_Read... [04:05:46]Read from MH i2c: E2 0B 00 [04:05:46]MH_I2C_Read... [04:05:46]Read from MH i2c: E2 0B 00 B2 06 00 AD 7E F7 B3 C0 49 DE EC 90 00 DC [04:05:46]RAPDU: AD 7E F7 B3 C0 49 DE EC 90 00 [04:05:46]wFMCommunicate OK [04:05:46]SAM_PROTO_SignData done [04:05:46]FM_MakeSignedData done [04:05:46]CreateOFDProtocolMessage [04:05:46]wFMCommunicate request_size=4 [04:05:46]MH_SAM_APDU [04:05:46]CAPDU: 80 11 00 00 [04:05:46]Write to MH i2c: E2 08 00 B3 06 80 11 00 00 00 00 00 00 33 [04:05:46]Write i2c OK [04:05:46]MH_I2C_Read... [04:05:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:05:47]Read from MH i2c: E2 [04:05:47]MH_I2C_Read... [04:05:47]Read from MH i2c: E2 17 00 [04:05:47]MH_I2C_Read... [04:05:47]Read from MH i2c: E2 17 00 B3 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 81 [04:05:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [04:05:47]wFMCommunicate OK [04:05:47]CreateOFDProtocolMessage done [04:05:47]OFDSenderStorePacket 116162 [04:05:47]StoreOFDPacket docnum=116162 [04:05:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 1E 02 00 00 2F F1 16 02 3C 86 5A 03 01 00 03 00 0A 02 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 33 32 36 06 04 21 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 90 D0 B4 D1 8B D0 B3 D0 B5 D0 BD D0 B5 20 31 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 AC 0D 00 00 00 00 13 04 06 00 AC 0D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 8A 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 35 34 06 04 46 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 4D 41 58 49 20 D1 87 D0 B5 D1 80 D0 BD D1 8B D0 B9 20 D1 81 D0 BE 20 D0 B2 D0 BA D1 83 D1 81 D0 BE D0 BC 20 D0 BA D0 BB D1 83 D0 B1 D0 BD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 76 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0D 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C 0C 00 00 00 00 07 04 06 00 C0 76 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 1A 8C F3 66 0E 04 04 00 DA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 C2 C5 01 00 35 04 06 00 EB 17 98 7B AF 17 AD 7E F7 B3 C0 49 DE EC [04:05:47]CheckFolder [04:05:47]dirname=/storage/ofd_packets [04:05:47]CheckFolder done [04:05:47]ProducePacketName [04:05:47]name=ofd_packets/00116162 [04:05:47]NVStorageSaveData ofd_packets/00116162 [04:05:47]File name is /storage/ofd_packets/00116162 [04:05:47]Write 572 bytes [04:05:47]NVStorageSaveData done [04:05:47]OFDSenderStorePacket done [04:05:47]KKMCreateOFDPacket done [04:05:47]NVStorageSaveData kkm_last_timestamp [04:05:47]File name is /storage/kkm_last_timestamp [04:05:47]Write 4 bytes [04:05:47]NVStorageSaveData done [04:05:47]ExternCall_PrintAddStr [04:05:47]wPrintStart [04:05:47]Write to MH i2c: 01 00 00 B4 06 BA [04:05:47]Write i2c OK [04:05:47]MH_I2C_Read... [04:05:47]Read from MH i2c: 01 [04:05:47]MH_I2C_Read... [04:05:47]Read from MH i2c: 01 07 00 [04:05:47]MH_I2C_Read... [04:05:47]Read from MH i2c: 01 07 00 B4 06 00 00 00 00 00 FF 0F CF [04:05:47]RasterBufferAndPrint [04:05:47]line Счет N : (3)344349 [04:05:47]line ИНН: 02508201610067 [04:05:47]line Контрольно-Кассовый Чек [04:05:47]line ПРОДАЖА [04:05:47]line Товар: 48743587 [04:05:47]line Сигареты Winston XStyle Silver [04:05:47]line 1.000 * 144.00 [04:05:47]line = 144.00 [04:05:47]line НДС 12% НСП 1% [04:05:47]line > о реализуемом товаре [04:05:47]line Товар: 4700000310326 [04:05:47]line Вода Адыгене 1л б/г [04:05:47]line 1.000 * 35.00 [04:05:47]line = 35.00 [04:05:47]line НДС 12% НСП 1% [04:05:47]line > о реализуемом товаре [04:05:47]line Товар: 4870202521254 [04:05:47]line Чай холодный MAXI черный со вкусом клубн [04:05:47]line 1.000 * 125.00 [04:05:47]line = 125.00 [04:05:47]line НДС 12% НСП 1% [04:05:47]line > о реализуемом товаре [04:05:47]line ИТОГО: 304.00 [04:05:47]line НСП 1% : 2.69 [04:05:47]line НДС 12% : 32.28 [04:05:47]line Наличными: 304.00 [04:05:47]line Безнал.: 0.00 [04:05:47]line Место: АЗС № 90 "Партнер Нефть" [04:05:47]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [04:05:47]line СНО: Общий режим [04:05:47]line Чек 18 25.09.2024 04:05 [04:05:47]line Смена: 474 ФФД: 1.0 [04:05:47]line ЗНМ: 0300000120 [04:05:47]line РНМ: 0000000000091831 [04:05:47]line Версия ККМ: 001 [04:05:47]line ФМ: 0000000000871830 [04:05:47]line ФД: 116162 [04:05:47]line ФПД: 258486575017751 [04:05:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240925T040546&type=1&operation_type=1&fn_number=0000000000871830&fd_number=116162&fm=258486575017751&tin=02508201610067®Number=0000000000091831&sum=30400 [04:05:47]OFD Sender: Processing packet 116162 [packets to send 482, broken 481] [04:05:47]ProducePacketName [04:05:47]name=ofd_packets/00116162 [04:05:47]OFD Sender: To server: pG, [04:05:47]CommunicateWithHost lk.salyk.kg:30040 [04:05:47]ConnectInit lk.salyk.kg [04:05:47]line 0 [04:05:47]written 0, free lines is 4095 [04:05:47]Connected sock=10 [04:05:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 1E 02 00 00 2F F1 16 02 3C 86 5A 03 01 00 03 00 0A 02 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 33 32 36 06 04 21 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 90 D0 B4 D1 8B D0 B3 D0 B5 D0 BD D0 B5 20 31 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 AC 0D 00 00 00 00 13 04 06 00 AC 0D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 8A 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 35 34 06 04 46 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 4D 41 58 49 20 D1 87 D0 B5 D1 80 D0 BD D1 8B D0 B9 20 D1 81 D0 BE 20 D0 B2 D0 BA D1 83 D1 81 D0 BE D0 BC 20 D0 BA D0 BB D1 83 D0 B1 D0 BD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 76 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0D 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C 0C 00 00 00 00 07 04 06 00 C0 76 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 1A 8C F3 66 0E 04 04 00 DA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 C2 C5 01 00 35 04 06 00 EB 17 98 7B AF 17 AD 7E F7 B3 C0 49 DE EC [04:05:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 F0 4D 47 00 00 CA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 C2 C5 01 00 F4 03 04 00 57 31 F3 66 B6 04 01 00 00 DC 37 D6 3D 9F 77 A3 24 [04:05:47]CommunicateWithHost err = 0 [04:05:47]CheckOFDResponse [04:05:47]1017 (14) - 77093643461234 [04:05:47]1041 (16) - 0000000000871830 [04:05:47]1040 (4) - 116162 [04:05:47]1012 (4) - 24.09.2024 21:38 [04:05:47]1206 (1) - 0 [04:05:47]OFD Sender: Remove packet 116162 [04:05:47]ProducePacketName [04:05:47]name=ofd_packets/00116162 [04:05:47]NVStorageDeleteData [04:05:47]Write to MH i2c: 01 00 00 E9 06 EF [04:05:47]Write i2c OK [04:05:47]MH_I2C_Read... [04:05:47]Read from MH i2c: 01 [04:05:47]MH_I2C_Read... [04:05:47]Read from MH i2c: 01 07 00 [04:05:47]MH_I2C_Read... [04:05:47]Read from MH i2c: 01 07 00 E9 06 00 00 00 00 00 53 0B 54 [04:05:47]RasterBufferAndPrint [04:05:47]line [04:05:47]line [04:05:47]line [04:05:47]line [04:05:47]line [04:05:47]written 0, free lines is 2902 [04:05:47]MH_Cut [04:05:47]Write to MH i2c: D1 01 00 F0 06 01 C8 [04:05:47]Write i2c OK [04:05:47]MH_I2C_Read... [04:05:47]Read from MH i2c: D1 [04:05:47]MH_I2C_Read... [04:05:47]Read from MH i2c: D1 01 00 [04:05:47]MH_I2C_Read... [04:05:47]Read from MH i2c: D1 01 00 F0 06 00 C7 [04:05:47]Write to MH i2c: 01 00 00 F1 06 F7 [04:05:47]Write i2c OK [04:05:47]MH_I2C_Read... [04:05:48]OFD Sender: No OFD packet to send [04:05:49]*** Cut start [04:05:49]*** Partial cut [04:05:49]*** CUTSNS_PIN = 1 [04:05:49]*** CUTSNS_PIN = 0 [04:05:49]*** Brake cut motor [04:05:50]Read from MH i2c: 01 [04:05:50]MH_I2C_Read... [04:05:50]*** Stop cut motor [04:05:50]*** Cut end [04:05:50]Read from MH i2c: 01 07 00 [04:05:50]MH_I2C_Read... [04:05:50]Read from MH i2c: 01 07 00 F1 06 00 00 00 00 00 FF 0F 0C [04:05:50]process_action close_receipt done [04:05:50]requested_data is exist [04:05:50]produce_requested_data [04:05:50]requested_item fm.sn is exist - process it [04:05:50]wFMCommunicate request_size=4 [04:05:50]MH_SAM_APDU [04:05:50]CAPDU: 80 11 00 00 [04:05:50]Write to MH i2c: E2 08 00 F2 06 80 11 00 00 00 00 00 00 72 [04:05:50]Write i2c OK [04:05:50]MH_I2C_Read... [04:05:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:05:50]Read from MH i2c: E2 [04:05:50]MH_I2C_Read... [04:05:50]Read from MH i2c: E2 17 00 [04:05:50]MH_I2C_Read... [04:05:50]Read from MH i2c: E2 17 00 F2 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 C0 [04:05:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [04:05:50]wFMCommunicate OK [04:05:50]requested_item fd.num is exist - process it [04:05:50]SAM_PROTO_GetFieldsCounters [04:05:50]wFMCommunicate request_size=4 [04:05:50]MH_SAM_APDU [04:05:50]CAPDU: 80 13 00 00 [04:05:50]Write to MH i2c: E2 08 00 F3 06 80 13 00 00 00 00 00 00 75 [04:05:50]Write i2c OK [04:05:50]MH_I2C_Read... [04:05:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [04:05:50]Read from MH i2c: E2 [04:05:50]MH_I2C_Read... [04:05:50]Read from MH i2c: E2 62 00 [04:05:50]MH_I2C_Read... [04:05:50]Read from MH i2c: E2 62 00 F3 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 C2 C5 01 00 0E 04 04 00 DA 01 00 00 12 04 04 00 12 00 00 00 5E 04 04 00 12 00 00 00 57 04 04 00 13 00 00 00 19 04 04 00 00 00 00 00 90 00 27 [04:05:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 C2 C5 01 00 0E 04 04 00 DA 01 00 00 12 04 04 00 12 00 00 00 5E 04 04 00 12 00 00 00 57 04 04 00 13 00 00 00 19 04 04 00 00 00 00 00 90 00 [04:05:50]wFMCommunicate OK [04:05:50]SAM_PROTO_GetFieldsCounters done [04:05:50]requested_item shift.num is exist - process it [04:05:50]requested_item shift.opened is exist - process it [04:05:50]req_shift_opened [04:05:50]FM_GetShiftState [04:05:50]SAM_PROTO_GetShiftState [04:05:50]wFMCommunicate request_size=4 [04:05:50]MH_SAM_APDU [04:05:50]CAPDU: 80 13 01 00 [04:05:50]Write to MH i2c: E2 08 00 F4 06 80 13 01 00 00 00 00 00 77 [04:05:50]Write i2c OK [04:05:50]MH_I2C_Read... [04:05:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:05:50]Read from MH i2c: E2 [04:05:50]MH_I2C_Read... [04:05:50]Read from MH i2c: E2 0E 00 [04:05:50]MH_I2C_Read... [04:05:50]Read from MH i2c: E2 0E 00 F4 06 00 09 00 01 63 60 F3 66 00 00 00 00 90 00 9F [04:05:50]RAPDU: 09 00 01 63 60 F3 66 00 00 00 00 90 00 [04:05:50]wFMCommunicate OK [04:05:50]SAM_PROTO_GetShiftState done [04:05:50]FM_GetShiftState done [04:05:50]req_shift_opened done [04:05:50]requested_item shift.open_date is exist - process it [04:05:50]req_shift_open_date [04:05:50]req_shift_open_date done [04:05:50]produce_requested_data done [04:05:50]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":116162,"shift.num":474,"shift.opened":1,"shift.open_date":1727225955} [04:05:50]process_action_free close_receipt [04:05:50]json_value_free [04:05:50]json_value_free done [04:05:50]process_json_proto returns [04:05:50]Send response to host [04:05:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":116162,"shift.num":474,"shift.opened":1,"shift.open_date":1727225955}}} [04:05:50]free response buf [04:05:50]execute_script done [04:05:50]execute_script returns [04:05:50]free content buf [04:05:50]Sock 9.Close socket [04:05:50]Sock 9.Thread stoped [04:05:53]OFD Sender: No OFD packet to send [04:05:58]OFD Sender: No OFD packet to send [04:06:03]OFD Sender: No OFD packet to send [04:06:08]OFD Sender: No OFD packet to send [04:06:13]OFD Sender: No OFD packet to send [04:06:18]OFD Sender: No OFD packet to send [04:06:23]OFD Sender: No OFD packet to send [04:06:28]OFD Sender: No OFD packet to send [04:06:33]OFD Sender: No OFD packet to send [04:06:38]OFD Sender: No OFD packet to send [04:06:43]OFD Sender: No OFD packet to send [04:06:48]OFD Sender: No OFD packet to send [04:06:53]OFD Sender: No OFD packet to send [04:06:58]OFD Sender: No OFD packet to send [04:07:03]OFD Sender: No OFD packet to send [04:07:08]OFD Sender: No OFD packet to send [04:07:13]OFD Sender: No OFD packet to send [04:07:18]OFD Sender: No OFD packet to send [04:07:23]OFD Sender: No OFD packet to send [04:07:28]OFD Sender: No OFD packet to send [04:07:33]OFD Sender: No OFD packet to send [04:07:38]OFD Sender: No OFD packet to send [04:07:43]OFD Sender: No OFD packet to send [04:07:48]OFD Sender: No OFD packet to send [04:07:53]OFD Sender: No OFD packet to send [04:07:58]OFD Sender: No OFD packet to send [04:08:03]OFD Sender: No OFD packet to send [04:08:08]OFD Sender: No OFD packet to send [04:08:13]OFD Sender: No OFD packet to send [04:08:18]OFD Sender: No OFD packet to send [04:08:23]OFD Sender: No OFD packet to send [04:08:28]OFD Sender: No OFD packet to send [04:08:33]OFD Sender: No OFD packet to send [04:08:38]OFD Sender: No OFD packet to send [04:08:43]OFD Sender: No OFD packet to send [04:08:48]OFD Sender: No OFD packet to send [04:08:53]OFD Sender: No OFD packet to send [04:08:58]OFD Sender: No OFD packet to send [04:09:03]OFD Sender: No OFD packet to send [04:09:08]OFD Sender: No OFD packet to send [04:09:13]OFD Sender: No OFD packet to send [04:09:18]OFD Sender: No OFD packet to send [04:09:23]OFD Sender: No OFD packet to send [04:09:28]OFD Sender: No OFD packet to send [04:09:33]OFD Sender: No OFD packet to send [04:09:38]OFD Sender: No OFD packet to send [04:09:43]OFD Sender: No OFD packet to send [04:09:48]OFD Sender: No OFD packet to send [04:09:53]OFD Sender: No OFD packet to send [04:09:59]OFD Sender: No OFD packet to send [04:10:04]OFD Sender: No OFD packet to send [04:10:09]OFD Sender: No OFD packet to send [04:10:14]OFD Sender: No OFD packet to send [04:10:19]OFD Sender: No OFD packet to send [04:10:24]OFD Sender: No OFD packet to send [04:10:29]OFD Sender: No OFD packet to send [04:10:34]OFD Sender: No OFD packet to send [04:10:39]OFD Sender: No OFD packet to send [04:10:44]OFD Sender: No OFD packet to send [04:10:49]OFD Sender: No OFD packet to send [04:10:54]OFD Sender: No OFD packet to send [04:10:59]OFD Sender: No OFD packet to send [04:11:04]OFD Sender: No OFD packet to send [04:11:09]OFD Sender: No OFD packet to send [04:11:14]OFD Sender: No OFD packet to send [04:11:19]OFD Sender: No OFD packet to send [04:11:24]OFD Sender: No OFD packet to send [04:11:29]OFD Sender: No OFD packet to send [04:11:34]OFD Sender: No OFD packet to send [04:11:39]OFD Sender: No OFD packet to send [04:11:44]OFD Sender: No OFD packet to send [04:11:48]accept exits with 8 [04:11:48]New connection [04:11:48]New thread 3067350372 created [04:11:48]Thread 3067207012 joined [04:11:48]Waiting for new connection... [04:11:48] Sock 8.Parse request [04:11:48]Sock 8.Check first char [04:11:48]Sock 8.First char is OK [04:11:48]request: POST /json_proto HTTP/1.0 [04:11:48]Method: POST [04:11:48]URL: /json_proto [04:11:48]Method is POST - this is cgi request [04:11:48]url: /json_proto [04:11:48]query_string will be loaded in cgi processing [04:11:48]execute_cgi json_proto POST (null) [04:11:48]execute_cgi path=json_proto method=POST [04:11:48]POST find Content-Length [04:11:48]Host: 172.17.41.136:8080 [04:11:48]Content-Length: 1461 [04:11:48]Content-Type: application/json [04:11:48] [04:11:48]POST finish read [04:11:48]Found Content-Length = 1461 [04:11:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)344350", "tax_sys" : 0, "items" : [ { "code": "48741958", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Parliament Aqua Blue", "price" : 156.00, "quantity" : 1.000, "sum" : 156.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4640030091645", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B ESSE Exchange M", "price" : 150.00, "quantity" : 1.000, "sum" : 150.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870202521254", "name": "\u0427\u0430\u0439 \u0445\u043E\u043B\u043E\u0434\u043D\u044B\u0439 MAXI \u0447\u0435\u0440\u043D\u044B\u0439 \u0441\u043E \u0432\u043A\u0443\u0441\u043E\u043C \u043A\u043B\u0443\u0431\u043D", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 575.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:11:48]execute_script... [04:11: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 : (3)344350", "tax_sys" : 0, "items" : [ { "code": "48741958", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Parliament Aqua Blue", "price" : 156.00, "quantity" : 1.000, "sum" : 156.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4640030091645", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B ESSE Exchange M", "price" : 150.00, "quantity" : 1.000, "sum" : 150.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870202521254", "name": "\u0427\u0430\u0439 \u0445\u043E\u043B\u043E\u0434\u043D\u044B\u0439 MAXI \u0447\u0435\u0440\u043D\u044B\u0439 \u0441\u043E \u0432\u043A\u0443\u0441\u043E\u043C \u043A\u043B\u0443\u0431\u043D", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 575.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:11:48]POST & json_proto [04:11:48]process_json_proto [04:11:48]json parsed OK: [04:11:48]protocol is kg_v1.0 [04:11:48]action value=close_receipt [04:11:48]process_action close_receipt [04:11:48]cmd_close_receipt [04:11:48]MH_GetDate [04:11:48]Write to MH i2c: F0 00 00 F5 06 EA [04:11:48]Write i2c OK [04:11:48]MH_I2C_Read... [04:11:48]Read from MH i2c: F0 [04:11:48]MH_I2C_Read... [04:11:48]Read from MH i2c: F0 09 00 [04:11:48]MH_I2C_Read... [04:11:48]Read from MH i2c: F0 09 00 F5 06 00 85 8D F3 66 1B D0 5A 64 07 [04:11:48]GetLastDocTimeStamp 1727237146 [04:11:48]current date 1727237509 [04:11:48]FM_GetShiftState [04:11:48]SAM_PROTO_GetShiftState [04:11:49]wFMCommunicate request_size=4 [04:11:49]MH_SAM_APDU [04:11:49]CAPDU: 80 13 01 00 [04:11:49]Write to MH i2c: E2 08 00 F6 06 80 13 01 00 00 00 00 00 79 [04:11:49]Write i2c OK [04:11:49]MH_I2C_Read... [04:11:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:11:49]Read from MH i2c: E2 [04:11:49]MH_I2C_Read... [04:11:49]Read from MH i2c: E2 0E 00 [04:11:49]MH_I2C_Read... [04:11:49]Read from MH i2c: E2 0E 00 F6 06 00 09 00 01 63 60 F3 66 00 00 00 00 90 00 A1 [04:11:49]RAPDU: 09 00 01 63 60 F3 66 00 00 00 00 90 00 [04:11:49]wFMCommunicate OK [04:11:49]SAM_PROTO_GetShiftState done [04:11:49]FM_GetShiftState done [04:11:49]opened in 1727225955 [04:11:49]opened+sec_in_day 1727312355 [04:11:49]quantity*price = 15600 [04:11:49]sum+1 = 15601 [04:11:49]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4640030091645 Сигареты ESSE Exchange M 1.000 * 150.00 = 150.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 48743570 Сигареты Winston XStyle Blue 1.000 * 144.00 = 144.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4870202521254 Чай холодный MAXI черный со вкусом клубн 1.000 * 125.00 = 125.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 575.00 НСП 1% : 5.09 НДС 12% : 61.06 Наличными: 575.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 19 25.09.2024 04:11 Смена: 474 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 116163 ФПД: 271838822193387 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240925T041150&type=1&operation_type=1&fn_number=0000000000871830&fd_number=116163&fm=271838822193387&tin=02508201610067®Number=0000000000091831&sum=57500 0 [04:11:50]StoreToDocumentArchive [04:11:50]shift 474 fd 116163 [04:11:50]save to /storage/0474/doc_00116163 [04:11:50]save last doc name /storage/0474/doc_00116163 to /storage/kkm_last_doc_name [04:11:50]save OK [04:11:50]Clear old archive folders... [04:11:50]ProcessDocumentItem done err = 0, tmpTLVsize=623 [04:11:50]tlvbuf is 019C7F10 [04:11:50]SAM_PROTO_ClearQueue [04:11:50]wFMCommunicate request_size=4 [04:11:50]MH_SAM_APDU [04:11:50]CAPDU: 80 09 00 00 [04:11:50]Write to MH i2c: E2 08 00 03 07 80 09 00 00 00 00 00 00 7C [04:11:50]Write i2c OK [04:11:50]MH_I2C_Read... [04:11:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [04:11:50]Read from MH i2c: E2 [04:11:50]MH_I2C_Read... [04:11:50]Read from MH i2c: E2 03 00 [04:11:50]MH_I2C_Read... [04:11:50]Read from MH i2c: E2 03 00 03 07 00 90 00 7E [04:11:50]RAPDU: 90 00 [04:11:50]wFMCommunicate OK [04:11:50]SAM_PROTO_ClearQueue done [04:11:50]KKMCreateOFDPacket [04:11:50]OFDProtocolAddRootSTLVToBuf [04:11:50]FM_MakeSignedData [04:11:50]FM_MakeSignedData [04:11:50]SAM_PROTO_SignData [04:11:50]wFMCommunicate request_size=4 [04:11:50]MH_SAM_APDU [04:11:50]CAPDU: 80 0D 01 02 [04:11:50]Write to MH i2c: E2 08 00 04 07 80 0D 01 02 00 00 00 00 84 [04:11:50]Write i2c OK [04:11:50]MH_I2C_Read... [04:11:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [04:11:50]Read from MH i2c: E2 [04:11:50]MH_I2C_Read... [04:11:50]Read from MH i2c: E2 03 00 [04:11:50]MH_I2C_Read... [04:11:50]Read from MH i2c: E2 03 00 04 07 00 90 00 7F [04:11:50]RAPDU: 90 00 [04:11:50]wFMCommunicate OK [04:11:50]wFMCommunicate request_size=255 [04:11:50]MH_SAM_APDU [04:11:50]CAPDU: 80 0D 02 02 FA 03 00 6F 02 1E 04 01 00 01 23 04 64 00 8A 04 08 00 34 38 37 34 31 39 35 38 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 41 71 75 61 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F0 3C 00 00 00 00 13 04 06 00 F0 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 34 35 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 20 4D FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 [04:11:50]Write to MH i2c: E2 02 01 05 07 80 0D 02 02 FA 00 03 00 6F 02 1E 04 01 00 01 23 04 64 00 8A 04 08 00 34 38 37 34 31 39 35 38 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 41 71 75 61 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F0 3C 00 00 00 00 13 04 06 00 F0 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 34 35 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 20 4D FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 00 00 21 [04:11:50]Write i2c OK [04:11:50]MH_I2C_Read... [04:11:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:11:50]Read from MH i2c: E2 [04:11:50]MH_I2C_Read... [04:11:50]Read from MH i2c: E2 03 00 [04:11:50]MH_I2C_Read... [04:11:50]Read from MH i2c: E2 03 00 05 07 00 90 00 80 [04:11:50]RAPDU: 90 00 [04:11:50]wFMCommunicate OK [04:11:50]wFMCommunicate request_size=255 [04:11:50]MH_SAM_APDU [04:11:50]CAPDU: 80 0D 02 02 FA 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 8A 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 35 34 06 04 46 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 4D 41 58 49 20 D1 87 D0 B5 D1 80 D0 BD D1 8B D0 B9 20 D1 81 D0 BE 20 D0 B2 D0 BA D1 83 D1 81 D0 BE D0 BC 20 D0 BA D0 BB D1 83 D0 B1 D0 BD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C E0 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FD 01 00 00 00 00 EE 03 0F 00 F2 [04:11:50]Write to MH i2c: E2 02 01 06 07 80 0D 02 02 FA 00 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 8A 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 35 34 06 04 46 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 4D 41 58 49 20 D1 87 D0 B5 D1 80 D0 BD D1 8B D0 B9 20 D1 81 D0 BE 20 D0 B2 D0 BA D1 83 D1 81 D0 BE D0 BC 20 D0 BA D0 BB D1 83 D0 B1 D0 BD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C E0 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FD 01 00 00 00 00 EE 03 0F 00 F2 00 00 85 [04:11:50]Write i2c OK [04:11:50]MH_I2C_Read... [04:11:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:11:51]Read from MH i2c: E2 [04:11:51]MH_I2C_Read... [04:11:51]Read from MH i2c: E2 03 00 [04:11:51]MH_I2C_Read... [04:11:51]Read from MH i2c: E2 03 00 06 07 00 90 00 81 [04:11:51]RAPDU: 90 00 [04:11:51]wFMCommunicate OK [04:11:51]wFMCommunicate request_size=132 [04:11:51]MH_SAM_APDU [04:11:51]CAPDU: 80 0D 02 02 7F 03 01 00 01 F3 03 06 00 DA 17 00 00 00 00 07 04 06 00 9C E0 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 86 8D F3 66 0E 04 04 00 DA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 C3 C5 01 00 35 04 06 00 F7 3C 68 6E D8 EB [04:11:51]Write to MH i2c: E2 87 00 07 07 80 0D 02 02 7F 00 03 01 00 01 F3 03 06 00 DA 17 00 00 00 00 07 04 06 00 9C E0 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 86 8D F3 66 0E 04 04 00 DA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 C3 C5 01 00 35 04 06 00 F7 3C 68 6E D8 EB 00 00 D5 [04:11:51]Write i2c OK [04:11:51]MH_I2C_Read... [04:11:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:11:51]Read from MH i2c: E2 [04:11:51]MH_I2C_Read... [04:11:51]Read from MH i2c: E2 03 00 [04:11:51]MH_I2C_Read... [04:11:51]Read from MH i2c: E2 03 00 07 07 00 90 00 82 [04:11:51]RAPDU: 90 00 [04:11:51]wFMCommunicate OK [04:11:51]wFMCommunicate request_size=4 [04:11:51]MH_SAM_APDU [04:11:51]CAPDU: 80 0D 03 02 [04:11:51]Write to MH i2c: E2 08 00 08 07 80 0D 03 02 00 00 00 00 8A [04:11:51]Write i2c OK [04:11:51]MH_I2C_Read... [04:11:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [04:11:51]Read from MH i2c: E2 [04:11:51]MH_I2C_Read... [04:11:51]Read from MH i2c: E2 0B 00 [04:11:51]MH_I2C_Read... [04:11:51]Read from MH i2c: E2 0B 00 08 07 00 90 55 1B 24 E5 A6 64 9A 90 00 38 [04:11:51]RAPDU: 90 55 1B 24 E5 A6 64 9A 90 00 [04:11:51]wFMCommunicate OK [04:11:51]SAM_PROTO_SignData done [04:11:51]FM_MakeSignedData done [04:11:51]CreateOFDProtocolMessage [04:11:51]wFMCommunicate request_size=4 [04:11:51]MH_SAM_APDU [04:11:51]CAPDU: 80 11 00 00 [04:11:51]Write to MH i2c: E2 08 00 09 07 80 11 00 00 00 00 00 00 8A [04:11:51]Write i2c OK [04:11:51]MH_I2C_Read... [04:11:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:11:51]Read from MH i2c: E2 [04:11:51]MH_I2C_Read... [04:11:51]Read from MH i2c: E2 17 00 [04:11:51]MH_I2C_Read... [04:11:51]Read from MH i2c: E2 17 00 09 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 D8 [04:11:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [04:11:51]wFMCommunicate OK [04:11:51]CreateOFDProtocolMessage done [04:11:51]OFDSenderStorePacket 116163 [04:11:51]StoreOFDPacket docnum=116163 [04:11:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 83 02 00 00 36 43 7B 02 92 90 5A 03 01 00 03 00 6F 02 1E 04 01 00 01 23 04 64 00 8A 04 08 00 34 38 37 34 31 39 35 38 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 41 71 75 61 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F0 3C 00 00 00 00 13 04 06 00 F0 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 34 35 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 20 4D FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 8A 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 35 34 06 04 46 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 4D 41 58 49 20 D1 87 D0 B5 D1 80 D0 BD D1 8B D0 B9 20 D1 81 D0 BE 20 D0 B2 D0 BA D1 83 D1 81 D0 BE D0 BC 20 D0 BA D0 BB D1 83 D0 B1 D0 BD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C E0 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FD 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DA 17 00 00 00 00 07 04 06 00 9C E0 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 86 8D F3 66 0E 04 04 00 DA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 C3 C5 01 00 35 04 06 00 F7 3C 68 6E D8 EB 90 55 1B 24 E5 A6 64 9A [04:11:51]CheckFolder [04:11:51]dirname=/storage/ofd_packets [04:11:51]CheckFolder done [04:11:51]ProducePacketName [04:11:51]name=ofd_packets/00116163 [04:11:51]NVStorageSaveData ofd_packets/00116163 [04:11:51]File name is /storage/ofd_packets/00116163 [04:11:51]Write 673 bytes [04:11:51]NVStorageSaveData done [04:11:51]OFDSenderStorePacket done [04:11:51]KKMCreateOFDPacket done [04:11:51]NVStorageSaveData kkm_last_timestamp [04:11:51]File name is /storage/kkm_last_timestamp [04:11:51]Write 4 bytes [04:11:51]NVStorageSaveData done [04:11:51]ExternCall_PrintAddStr [04:11:51]wPrintStart [04:11:51]Write to MH i2c: 01 00 00 0A 07 11 [04:11:51]Write i2c OK [04:11:51]MH_I2C_Read... [04:11:51]Read from MH i2c: 01 [04:11:51]MH_I2C_Read... [04:11:51]Read from MH i2c: 01 07 00 [04:11:51]MH_I2C_Read... [04:11:51]Read from MH i2c: 01 07 00 0A 07 00 00 00 00 00 FF 0F 26 [04:11:51]RasterBufferAndPrint [04:11:51]line Счет N : (3)344350 [04:11:51]line ИНН: 02508201610067 [04:11:51]line Контрольно-Кассовый Чек [04:11:51]line ПРОДАЖА [04:11:51]line Товар: 48741958 [04:11:51]line Сигареты Parliament Aqua Blue [04:11:51]line 1.000 * 156.00 [04:11:51]line = 156.00 [04:11:51]line НДС 12% НСП 1% [04:11:51]line > о реализуемом товаре [04:11:51]line Товар: 4640030091645 [04:11:51]line Сигареты ESSE Exchange M [04:11:51]line 1.000 * 150.00 [04:11:51]line = 150.00 [04:11:51]line НДС 12% НСП 1% [04:11:51]line > о реализуемом товаре [04:11:51]line Товар: 48743570 [04:11:51]line Сигареты Winston XStyle Blue [04:11:51]line 1.000 * 144.00 [04:11:51]line = 144.00 [04:11:51]line НДС 12% НСП 1% [04:11:51]line > о реализуемом товаре [04:11:51]line Товар: 4870202521254 [04:11:51]line Чай холодный MAXI черный со вкусом клубн [04:11:51]line 1.000 * 125.00 [04:11:51]line = 125.00 [04:11:51]line НДС 12% НСП 1% [04:11:51]line > о реализуемом товаре [04:11:51]line ИТОГО: 575.00 [04:11:51]line НСП 1% : 5.09 [04:11:51]line НДС 12% : 61.06 [04:11:51]line Наличными: 575.00 [04:11:51]line Безнал.: 0.00 [04:11:51]line Место: АЗС № 90 "Партнер Нефть" [04:11:51]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [04:11:51]line СНО: Общий режим [04:11:51]line Чек 19 25.09.2024 04:11 [04:11:51]line Смена: 474 ФФД: 1.0 [04:11:51]line ЗНМ: 0300000120 [04:11:51]line РНМ: 0000000000091831 [04:11:51]line Версия ККМ: 001 [04:11:51]line ФМ: 0000000000871830 [04:11:51]line ФД: 116163 [04:11:51]line ФПД: 271838822193387 [04:11:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240925T041150&type=1&operation_type=1&fn_number=0000000000871830&fd_number=116163&fm=271838822193387&tin=02508201610067®Number=0000000000091831&sum=57500 [04:11:51]OFD Sender: Processing packet 116163 [packets to send 482, broken 481] [04:11:51]ProducePacketName [04:11:51]name=ofd_packets/00116163 [04:11:51]OFD Sender: To server: pG, [04:11:51]CommunicateWithHost lk.salyk.kg:30040 [04:11:51]ConnectInit lk.salyk.kg [04:11:51]line 0 [04:11:51]written 0, free lines is 4095 [04:11:51]Connected sock=10 [04:11:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 83 02 00 00 36 43 7B 02 92 90 5A 03 01 00 03 00 6F 02 1E 04 01 00 01 23 04 64 00 8A 04 08 00 34 38 37 34 31 39 35 38 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 41 71 75 61 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F0 3C 00 00 00 00 13 04 06 00 F0 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 34 35 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 20 4D FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 8A 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 35 34 06 04 46 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 4D 41 58 49 20 D1 87 D0 B5 D1 80 D0 BD D1 8B D0 B9 20 D1 81 D0 BE 20 D0 B2 D0 BA D1 83 D1 81 D0 BE D0 BC 20 D0 BA D0 BB D1 83 D0 B1 D0 BD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C E0 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FD 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DA 17 00 00 00 00 07 04 06 00 9C E0 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 86 8D F3 66 0E 04 04 00 DA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 C3 C5 01 00 35 04 06 00 F7 3C 68 6E D8 EB 90 55 1B 24 E5 A6 64 9A [04:11:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 6B 58 47 00 39 18 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 C3 C5 01 00 F4 03 04 00 C3 32 F3 66 B6 04 01 00 00 06 34 85 97 F1 CF FB 8A [04:11:52]CommunicateWithHost err = 0 [04:11:52]CheckOFDResponse [04:11:52]1017 (14) - 77093643461234 [04:11:52]1041 (16) - 0000000000871830 [04:11:52]1040 (4) - 116163 [04:11:52]1012 (4) - 24.09.2024 21:44 [04:11:52]1206 (1) - 0 [04:11:52]OFD Sender: Remove packet 116163 [04:11:52]ProducePacketName [04:11:52]name=ofd_packets/00116163 [04:11:52]NVStorageDeleteData [04:11:52]Write to MH i2c: 01 00 00 45 07 4C [04:11:52]Write i2c OK [04:11:52]MH_I2C_Read... [04:11:52]Read from MH i2c: 01 [04:11:52]MH_I2C_Read... [04:11:52]Read from MH i2c: 01 07 00 [04:11:52]MH_I2C_Read... [04:11:52]Read from MH i2c: 01 07 00 45 07 00 00 00 00 00 CF 0A 2C [04:11:52]RasterBufferAndPrint [04:11:52]line [04:11:52]line [04:11:52]line [04:11:52]line [04:11:52]line [04:11:52]written 0, free lines is 2770 [04:11:52]MH_Cut [04:11:52]Write to MH i2c: D1 01 00 4C 07 01 25 [04:11:52]Write i2c OK [04:11:52]MH_I2C_Read... [04:11:52]Read from MH i2c: D1 [04:11:52]MH_I2C_Read... [04:11:52]Read from MH i2c: D1 01 00 [04:11:52]MH_I2C_Read... [04:11:52]Read from MH i2c: D1 01 00 4C 07 00 24 [04:11:52]Write to MH i2c: 01 00 00 4D 07 54 [04:11:52]Write i2c OK [04:11:52]MH_I2C_Read... [04:11:52]OFD Sender: No OFD packet to send [04:11:54]*** Cut start [04:11:54]*** Partial cut [04:11:54]*** CUTSNS_PIN = 1 [04:11:54]*** CUTSNS_PIN = 0 [04:11:54]*** Brake cut motor [04:11:54]Read from MH i2c: 01 [04:11:54]MH_I2C_Read... [04:11:54]*** Stop cut motor [04:11:54]*** Cut end [04:11:54]Read from MH i2c: 01 07 00 [04:11:54]MH_I2C_Read... [04:11:54]Read from MH i2c: 01 07 00 4D 07 00 00 00 00 00 FF 0F 69 [04:11:54]process_action close_receipt done [04:11:54]requested_data is exist [04:11:54]produce_requested_data [04:11:54]requested_item fm.sn is exist - process it [04:11:54]wFMCommunicate request_size=4 [04:11:54]MH_SAM_APDU [04:11:54]CAPDU: 80 11 00 00 [04:11:54]Write to MH i2c: E2 08 00 4E 07 80 11 00 00 00 00 00 00 CF [04:11:54]Write i2c OK [04:11:54]MH_I2C_Read... [04:11:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:11:54]Read from MH i2c: E2 [04:11:54]MH_I2C_Read... [04:11:54]Read from MH i2c: E2 17 00 [04:11:54]MH_I2C_Read... [04:11:54]Read from MH i2c: E2 17 00 4E 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 1D [04:11:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [04:11:54]wFMCommunicate OK [04:11:54]requested_item fd.num is exist - process it [04:11:54]SAM_PROTO_GetFieldsCounters [04:11:54]wFMCommunicate request_size=4 [04:11:54]MH_SAM_APDU [04:11:54]CAPDU: 80 13 00 00 [04:11:54]Write to MH i2c: E2 08 00 4F 07 80 13 00 00 00 00 00 00 D2 [04:11:54]Write i2c OK [04:11:54]MH_I2C_Read... [04:11:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [04:11:54]Read from MH i2c: E2 [04:11:54]MH_I2C_Read... [04:11:54]Read from MH i2c: E2 62 00 [04:11:54]MH_I2C_Read... [04:11:54]Read from MH i2c: E2 62 00 4F 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 C3 C5 01 00 0E 04 04 00 DA 01 00 00 12 04 04 00 13 00 00 00 5E 04 04 00 13 00 00 00 57 04 04 00 14 00 00 00 19 04 04 00 00 00 00 00 90 00 88 [04:11:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 C3 C5 01 00 0E 04 04 00 DA 01 00 00 12 04 04 00 13 00 00 00 5E 04 04 00 13 00 00 00 57 04 04 00 14 00 00 00 19 04 04 00 00 00 00 00 90 00 [04:11:54]wFMCommunicate OK [04:11:54]SAM_PROTO_GetFieldsCounters done [04:11:54]requested_item shift.num is exist - process it [04:11:54]requested_item shift.opened is exist - process it [04:11:54]req_shift_opened [04:11:54]FM_GetShiftState [04:11:54]SAM_PROTO_GetShiftState [04:11:54]wFMCommunicate request_size=4 [04:11:54]MH_SAM_APDU [04:11:54]CAPDU: 80 13 01 00 [04:11:54]Write to MH i2c: E2 08 00 50 07 80 13 01 00 00 00 00 00 D4 [04:11:54]Write i2c OK [04:11:54]MH_I2C_Read... [04:11:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:11:55]Read from MH i2c: E2 [04:11:55]MH_I2C_Read... [04:11:55]Read from MH i2c: E2 0E 00 [04:11:55]MH_I2C_Read... [04:11:55]Read from MH i2c: E2 0E 00 50 07 00 09 00 01 63 60 F3 66 00 00 00 00 90 00 FC [04:11:55]RAPDU: 09 00 01 63 60 F3 66 00 00 00 00 90 00 [04:11:55]wFMCommunicate OK [04:11:55]SAM_PROTO_GetShiftState done [04:11:55]FM_GetShiftState done [04:11:55]req_shift_opened done [04:11:55]requested_item shift.open_date is exist - process it [04:11:55]req_shift_open_date [04:11:55]req_shift_open_date done [04:11:55]produce_requested_data done [04:11:55]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":116163,"shift.num":474,"shift.opened":1,"shift.open_date":1727225955} [04:11:55]process_action_free close_receipt [04:11:55]json_value_free [04:11:55]json_value_free done [04:11:55]process_json_proto returns [04:11:55]Send response to host [04:11:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":116163,"shift.num":474,"shift.opened":1,"shift.open_date":1727225955}}} [04:11:55]free response buf [04:11:55]execute_script done [04:11:55]execute_script returns [04:11:55]free content buf [04:11:55]Sock 8.Close socket [04:11:55]Sock 8.Thread stoped [04:11:57]OFD Sender: No OFD packet to send [04:12:02]OFD Sender: No OFD packet to send [04:12:07]OFD Sender: No OFD packet to send [04:12:12]OFD Sender: No OFD packet to send [04:12:17]OFD Sender: No OFD packet to send [04:12:22]OFD Sender: No OFD packet to send [04:12:27]OFD Sender: No OFD packet to send [04:12:32]OFD Sender: No OFD packet to send [04:12:37]OFD Sender: No OFD packet to send [04:12:42]OFD Sender: No OFD packet to send [04:12:47]OFD Sender: No OFD packet to send [04:12:52]OFD Sender: No OFD packet to send [04:12:57]OFD Sender: No OFD packet to send [04:13:02]OFD Sender: No OFD packet to send [04:13:07]OFD Sender: No OFD packet to send [04:13:12]OFD Sender: No OFD packet to send [04:13:17]OFD Sender: No OFD packet to send [04:13:22]OFD Sender: No OFD packet to send [04:13:27]OFD Sender: No OFD packet to send [04:13:32]OFD Sender: No OFD packet to send [04:13:37]OFD Sender: No OFD packet to send [04:13:42]OFD Sender: No OFD packet to send [04:13:47]OFD Sender: No OFD packet to send [04:13:52]OFD Sender: No OFD packet to send [04:13:57]OFD Sender: No OFD packet to send [04:14:03]OFD Sender: No OFD packet to send [04:14:08]OFD Sender: No OFD packet to send [04:14:13]OFD Sender: No OFD packet to send [04:14:18]OFD Sender: No OFD packet to send [04:14:23]OFD Sender: No OFD packet to send [04:14:28]OFD Sender: No OFD packet to send [04:14:33]OFD Sender: No OFD packet to send [04:14:38]OFD Sender: No OFD packet to send [04:14:43]OFD Sender: No OFD packet to send [04:14:48]OFD Sender: No OFD packet to send [04:14:53]OFD Sender: No OFD packet to send [04:14:58]OFD Sender: No OFD packet to send [04:15:03]OFD Sender: No OFD packet to send [04:15:08]OFD Sender: No OFD packet to send [04:15:13]OFD Sender: No OFD packet to send [04:15:18]OFD Sender: No OFD packet to send [04:15:23]OFD Sender: No OFD packet to send [04:15:28]OFD Sender: No OFD packet to send [04:15:33]OFD Sender: No OFD packet to send [04:15:38]OFD Sender: No OFD packet to send [04:15:43]OFD Sender: No OFD packet to send [04:15:48]OFD Sender: No OFD packet to send [04:15:53]OFD Sender: No OFD packet to send [04:15:58]OFD Sender: No OFD packet to send [04:15:58]accept exits with 9 [04:15:58]New connection [04:15:58]New thread 3067207012 created [04:15:58]Thread 3067350372 joined [04:15:58]Waiting for new connection... [04:15:58] Sock 9.Parse request [04:15:58]Sock 9.Check first char [04:15:58]Sock 9.First char is OK [04:15:58]request: POST /json_proto HTTP/1.0 [04:15:58]Method: POST [04:15:58]URL: /json_proto [04:15:58]Method is POST - this is cgi request [04:15:58]url: /json_proto [04:15:58]query_string will be loaded in cgi processing [04:15:58]execute_cgi json_proto POST (null) [04:15:58]execute_cgi path=json_proto method=POST [04:15:58]POST find Content-Length [04:15:58]Host: 172.17.41.136:8080 [04:15:58]Content-Length: 1325 [04:15:58]Content-Type: application/json [04:15:58] [04:15:58]POST finish read [04:15:58]Found Content-Length = 1325 [04:15:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)344351", "tax_sys" : 0, "items" : [ { "code": "48747059", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Legend Blue", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4640030091645", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B ESSE Exchange M", "price" : 150.00, "quantity" : 1.000, "sum" : 150.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "46214621", "name": "\u0420/\u0436 mentos \u0442\u0443\u0442\u0442\u0438-\u0444\u0440\u0443\u0442\u0442\u0438 \u0440\u043E\u043B\u043B 16\u0433", "price" : 49.00, "quantity" : 1.000, "sum" : 49.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 343.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:15:58]execute_script... [04:15: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 : (3)344351", "tax_sys" : 0, "items" : [ { "code": "48747059", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Legend Blue", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4640030091645", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B ESSE Exchange M", "price" : 150.00, "quantity" : 1.000, "sum" : 150.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "46214621", "name": "\u0420/\u0436 mentos \u0442\u0443\u0442\u0442\u0438-\u0444\u0440\u0443\u0442\u0442\u0438 \u0440\u043E\u043B\u043B 16\u0433", "price" : 49.00, "quantity" : 1.000, "sum" : 49.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 343.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:15:58]POST & json_proto [04:15:58]process_json_proto [04:15:58]json parsed OK: [04:15:58]protocol is kg_v1.0 [04:15:58]action value=close_receipt [04:15:58]process_action close_receipt [04:15:58]cmd_close_receipt [04:15:58]MH_GetDate [04:15:58]Write to MH i2c: F0 00 00 51 07 47 [04:15:58]Write i2c OK [04:15:58]MH_I2C_Read... [04:15:58]Read from MH i2c: F0 [04:15:58]MH_I2C_Read... [04:15:58]Read from MH i2c: F0 09 00 [04:15:58]MH_I2C_Read... [04:15:58]Read from MH i2c: F0 09 00 51 07 00 7F 8E F3 66 1B D0 5A 64 5F [04:15:58]GetLastDocTimeStamp 1727237510 [04:15:58]current date 1727237759 [04:15:58]FM_GetShiftState [04:15:58]SAM_PROTO_GetShiftState [04:15:58]wFMCommunicate request_size=4 [04:15:58]MH_SAM_APDU [04:15:58]CAPDU: 80 13 01 00 [04:15:58]Write to MH i2c: E2 08 00 52 07 80 13 01 00 00 00 00 00 D6 [04:15:58]Write i2c OK [04:15:58]MH_I2C_Read... [04:15:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:15:58]Read from MH i2c: E2 [04:15:58]MH_I2C_Read... [04:15:58]Read from MH i2c: E2 0E 00 [04:15:58]MH_I2C_Read... [04:15:58]Read from MH i2c: E2 0E 00 52 07 00 09 00 01 63 60 F3 66 00 00 00 00 90 00 FE [04:15:58]RAPDU: 09 00 01 63 60 F3 66 00 00 00 00 90 00 [04:15:58]wFMCommunicate OK [04:15:58]SAM_PROTO_GetShiftState done [04:15:58]FM_GetShiftState done [04:15:58]opened in 1727225955 [04:15:58]opened+sec_in_day 1727312355 [04:15:58]quantity*price = 14400 [04:15:58]sum+1 = 14401 [04:15:58]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4640030091645 Сигареты ESSE Exchange M 1.000 * 150.00 = 150.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 46214621 Р/ж mentos тутти-фрутти ролл 16г 1.000 * 49.00 = 49.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 343.00 НСП 1% : 3.03 НДС 12% : 36.42 Наличными: 0.00 Безнал.: 343.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 20 25.09.2024 04:16 Смена: 474 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000871830 ФД: 116164 ФПД: 64859836083182 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240925T041600&type=1&operation_type=1&fn_number=0000000000871830&fd_number=116164&fm=64859836083182&tin=02508201610067®Number=0000000000091831&sum=34300 0 [04:15:59]StoreToDocumentArchive [04:15:59]shift 474 fd 116164 [04:15:59]save to /storage/0474/doc_00116164 [04:15:59]save last doc name /storage/0474/doc_00116164 to /storage/kkm_last_doc_name [04:15:59]save OK [04:15:59]Clear old archive folders... [04:15:59]ProcessDocumentItem done err = 0, tmpTLVsize=494 [04:15:59]tlvbuf is 019D5A00 [04:15:59]SAM_PROTO_ClearQueue [04:15:59]wFMCommunicate request_size=4 [04:15:59]MH_SAM_APDU [04:15:59]CAPDU: 80 09 00 00 [04:15:59]Write to MH i2c: E2 08 00 5F 07 80 09 00 00 00 00 00 00 D8 [04:15:59]Write i2c OK [04:15:59]MH_I2C_Read... [04:15:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [04:15:59]Read from MH i2c: E2 [04:15:59]MH_I2C_Read... [04:15:59]Read from MH i2c: E2 03 00 [04:15:59]MH_I2C_Read... [04:15:59]Read from MH i2c: E2 03 00 5F 07 00 90 00 DA [04:15:59]RAPDU: 90 00 [04:15:59]wFMCommunicate OK [04:15:59]SAM_PROTO_ClearQueue done [04:15:59]KKMCreateOFDPacket [04:15:59]OFDProtocolAddRootSTLVToBuf [04:15:59]FM_MakeSignedData [04:15:59]FM_MakeSignedData [04:15:59]SAM_PROTO_SignData [04:15:59]wFMCommunicate request_size=4 [04:15:59]MH_SAM_APDU [04:15:59]CAPDU: 80 0D 01 02 [04:15:59]Write to MH i2c: E2 08 00 60 07 80 0D 01 02 00 00 00 00 E0 [04:15:59]Write i2c OK [04:15:59]MH_I2C_Read... [04:16:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [04:16:00]Read from MH i2c: E2 [04:16:00]MH_I2C_Read... [04:16:00]Read from MH i2c: E2 03 00 [04:16:00]MH_I2C_Read... [04:16:00]Read from MH i2c: E2 03 00 60 07 00 90 00 DB [04:16:00]RAPDU: 90 00 [04:16:00]wFMCommunicate OK [04:16:00]wFMCommunicate request_size=255 [04:16:00]MH_SAM_APDU [04:16:00]CAPDU: 80 0D 02 02 FA 03 00 EE 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 37 30 35 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 4C 65 67 65 6E 64 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 34 35 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 20 4D FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 71 00 8A 04 08 00 34 36 32 31 34 36 32 31 06 04 32 00 D0 A0 2F D0 B6 20 6D 65 6E 74 6F 73 20 D1 [04:16:00]Write to MH i2c: E2 02 01 61 07 80 0D 02 02 FA 00 03 00 EE 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 37 30 35 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 4C 65 67 65 6E 64 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 34 35 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 20 4D FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 71 00 8A 04 08 00 34 36 32 31 34 36 32 31 06 04 32 00 D0 A0 2F D0 B6 20 6D 65 6E 74 6F 73 20 D1 00 00 74 [04:16:00]Write i2c OK [04:16:00]MH_I2C_Read... [04:16:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:16:00]Read from MH i2c: E2 [04:16:00]MH_I2C_Read... [04:16:00]Read from MH i2c: E2 03 00 [04:16:00]MH_I2C_Read... [04:16:00]Read from MH i2c: E2 03 00 61 07 00 90 00 DC [04:16:00]RAPDU: 90 00 [04:16:00]wFMCommunicate OK [04:16:00]wFMCommunicate request_size=253 [04:16:00]MH_SAM_APDU [04:16:00]CAPDU: 80 0D 02 02 F8 82 D1 83 D1 82 D1 82 D0 B8 2D D1 84 D1 80 D1 83 D1 82 D1 82 D0 B8 20 D1 80 D0 BE D0 BB D0 BB 20 31 36 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 13 00 00 00 00 13 04 06 00 24 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 85 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2F 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3A 0E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 FC 85 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 80 8E F3 66 0E 04 04 00 DA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 C4 C5 01 00 35 04 06 00 3A FD 5B 7D 6B EE [04:16:00]Write to MH i2c: E2 00 01 62 07 80 0D 02 02 F8 00 82 D1 83 D1 82 D1 82 D0 B8 2D D1 84 D1 80 D1 83 D1 82 D1 82 D0 B8 20 D1 80 D0 BE D0 BB D0 BB 20 31 36 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 13 00 00 00 00 13 04 06 00 24 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 85 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2F 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3A 0E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 FC 85 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 80 8E F3 66 0E 04 04 00 DA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 C4 C5 01 00 35 04 06 00 3A FD 5B 7D 6B EE 00 00 C0 [04:16:00]Write i2c OK [04:16:00]MH_I2C_Read... [04:16:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:16:00]Read from MH i2c: E2 [04:16:00]MH_I2C_Read... [04:16:00]Read from MH i2c: E2 03 00 [04:16:00]MH_I2C_Read... [04:16:00]Read from MH i2c: E2 03 00 62 07 00 90 00 DD [04:16:00]RAPDU: 90 00 [04:16:00]wFMCommunicate OK [04:16:00]wFMCommunicate request_size=4 [04:16:00]MH_SAM_APDU [04:16:00]CAPDU: 80 0D 03 02 [04:16:00]Write to MH i2c: E2 08 00 63 07 80 0D 03 02 00 00 00 00 E5 [04:16:00]Write i2c OK [04:16:00]MH_I2C_Read... [04:16:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [04:16:00]Read from MH i2c: E2 [04:16:00]MH_I2C_Read... [04:16:00]Read from MH i2c: E2 0B 00 [04:16:00]MH_I2C_Read... [04:16:00]Read from MH i2c: E2 0B 00 63 07 00 64 4D 9B D0 47 E7 FA 4D 90 00 77 [04:16:00]RAPDU: 64 4D 9B D0 47 E7 FA 4D 90 00 [04:16:00]wFMCommunicate OK [04:16:00]SAM_PROTO_SignData done [04:16:00]FM_MakeSignedData done [04:16:00]CreateOFDProtocolMessage [04:16:00]wFMCommunicate request_size=4 [04:16:00]MH_SAM_APDU [04:16:00]CAPDU: 80 11 00 00 [04:16:00]Write to MH i2c: E2 08 00 64 07 80 11 00 00 00 00 00 00 E5 [04:16:00]Write i2c OK [04:16:00]MH_I2C_Read... [04:16:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:16:00]Read from MH i2c: E2 [04:16:00]MH_I2C_Read... [04:16:00]Read from MH i2c: E2 17 00 [04:16:00]MH_I2C_Read... [04:16:00]Read from MH i2c: E2 17 00 64 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 33 [04:16:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [04:16:00]wFMCommunicate OK [04:16:00]CreateOFDProtocolMessage done [04:16:00]OFDSenderStorePacket 116164 [04:16:00]StoreOFDPacket docnum=116164 [04:16:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 02 02 00 00 7E 31 FA 01 06 86 5A 03 01 00 03 00 EE 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 37 30 35 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 4C 65 67 65 6E 64 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 34 35 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 20 4D FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 71 00 8A 04 08 00 34 36 32 31 34 36 32 31 06 04 32 00 D0 A0 2F D0 B6 20 6D 65 6E 74 6F 73 20 D1 82 D1 83 D1 82 D1 82 D0 B8 2D D1 84 D1 80 D1 83 D1 82 D1 82 D0 B8 20 D1 80 D0 BE D0 BB D0 BB 20 31 36 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 13 00 00 00 00 13 04 06 00 24 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 85 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2F 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3A 0E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 FC 85 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 80 8E F3 66 0E 04 04 00 DA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 C4 C5 01 00 35 04 06 00 3A FD 5B 7D 6B EE 64 4D 9B D0 47 E7 FA 4D [04:16:00]CheckFolder [04:16:00]dirname=/storage/ofd_packets [04:16:00]CheckFolder done [04:16:00]ProducePacketName [04:16:00]name=ofd_packets/00116164 [04:16:00]NVStorageSaveData ofd_packets/00116164 [04:16:00]File name is /storage/ofd_packets/00116164 [04:16:00]Write 544 bytes [04:16:00]NVStorageSaveData done [04:16:00]OFDSenderStorePacket done [04:16:00]KKMCreateOFDPacket done [04:16:00]NVStorageSaveData kkm_last_timestamp [04:16:00]File name is /storage/kkm_last_timestamp [04:16:00]Write 4 bytes [04:16:00]NVStorageSaveData done [04:16:01]ExternCall_PrintAddStr [04:16:01]wPrintStart [04:16:01]Write to MH i2c: 01 00 00 65 07 6C [04:16:01]Write i2c OK [04:16:01]MH_I2C_Read... [04:16:01]Read from MH i2c: 01 [04:16:01]MH_I2C_Read... [04:16:01]Read from MH i2c: 01 07 00 [04:16:01]MH_I2C_Read... [04:16:01]Read from MH i2c: 01 07 00 65 07 00 00 00 00 00 FF 0F 81 [04:16:01]RasterBufferAndPrint [04:16:01]line Счет N : (3)344351 [04:16:01]line ИНН: 02508201610067 [04:16:01]line Контрольно-Кассовый Чек [04:16:01]line ПРОДАЖА [04:16:01]line Товар: 48747059 [04:16:01]line Сигареты Winston Legend Blue [04:16:01]line 1.000 * 144.00 [04:16:01]line = 144.00 [04:16:01]line НДС 12% НСП 1% [04:16:01]line > о реализуемом товаре [04:16:01]line Товар: 4640030091645 [04:16:01]line Сигареты ESSE Exchange M [04:16:01]line 1.000 * 150.00 [04:16:01]line = 150.00 [04:16:01]line НДС 12% НСП 1% [04:16:01]line > о реализуемом товаре [04:16:01]line Товар: 46214621 [04:16:01]line Р/ж mentos тутти-фрутти ролл 16г [04:16:01]line 1.000 * 49.00 [04:16:01]line = 49.00 [04:16:01]line НДС 12% НСП 1% [04:16:01]line > о реализуемом товаре [04:16:01]line ИТОГО: 343.00 [04:16:01]line НСП 1% : 3.03 [04:16:01]line НДС 12% : 36.42 [04:16:01]line Наличными: 0.00 [04:16:01]line Безнал.: 343.00 [04:16:01]line Место: АЗС № 90 "Партнер Нефть" [04:16:01]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [04:16:01]line СНО: Общий режим [04:16:01]line Чек 20 25.09.2024 04:16 [04:16:01]line Смена: 474 ФФД: 1.0 [04:16:01]line ЗНМ: 0300000120 [04:16:01]line РНМ: 0000000000091831 [04:16:01]line Версия ККМ: 001 [04:16:01]line Платежная система: Бакай Банк [04:16:01]line ФМ: 0000000000871830 [04:16:01]line ФД: 116164 [04:16:01]line ФПД: 64859836083182 [04:16:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240925T041600&type=1&operation_type=1&fn_number=0000000000871830&fd_number=116164&fm=64859836083182&tin=02508201610067®Number=0000000000091831&sum=34300 [04:16:01]line 0 [04:16:01]written 0, free lines is 4095 [04:16:01]OFD Sender: Processing packet 116164 [packets to send 482, broken 481] [04:16:01]ProducePacketName [04:16:01]name=ofd_packets/00116164 [04:16:01]OFD Sender: To server: pG, [04:16:01]CommunicateWithHost lk.salyk.kg:30040 [04:16:01]ConnectInit lk.salyk.kg [04:16:01]Connected sock=10 [04:16:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 02 02 00 00 7E 31 FA 01 06 86 5A 03 01 00 03 00 EE 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 37 30 35 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 4C 65 67 65 6E 64 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 34 35 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 20 4D FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 71 00 8A 04 08 00 34 36 32 31 34 36 32 31 06 04 32 00 D0 A0 2F D0 B6 20 6D 65 6E 74 6F 73 20 D1 82 D1 83 D1 82 D1 82 D0 B8 2D D1 84 D1 80 D1 83 D1 82 D1 82 D0 B8 20 D1 80 D0 BE D0 BB D0 BB 20 31 36 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 13 00 00 00 00 13 04 06 00 24 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 85 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2F 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3A 0E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 FC 85 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 80 8E F3 66 0E 04 04 00 DA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 C4 C5 01 00 35 04 06 00 3A FD 5B 7D 6B EE 64 4D 9B D0 47 E7 FA 4D [04:16:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 A5 03 47 00 65 1D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 C4 C5 01 00 F4 03 04 00 BD 33 F3 66 B6 04 01 00 00 58 1C 72 6F 3E C5 65 6D [04:16:01]CommunicateWithHost err = 0 [04:16:01]CheckOFDResponse [04:16:01]1017 (14) - 77093643461234 [04:16:01]1041 (16) - 0000000000871830 [04:16:01]1040 (4) - 116164 [04:16:01]1012 (4) - 24.09.2024 21:48 [04:16:01]1206 (1) - 0 [04:16:01]OFD Sender: Remove packet 116164 [04:16:01]ProducePacketName [04:16:01]name=ofd_packets/00116164 [04:16:01]NVStorageDeleteData [04:16:01]Write to MH i2c: 01 00 00 9C 07 A3 [04:16:01]Write i2c OK [04:16:01]MH_I2C_Read... [04:16:01]Read from MH i2c: 01 [04:16:01]MH_I2C_Read... [04:16:01]Read from MH i2c: 01 07 00 [04:16:01]MH_I2C_Read... [04:16:01]Read from MH i2c: 01 07 00 9C 07 00 00 00 00 00 19 0B CE [04:16:01]RasterBufferAndPrint [04:16:01]line [04:16:01]line [04:16:01]line [04:16:01]line [04:16:01]line [04:16:01]written 0, free lines is 2844 [04:16:01]MH_Cut [04:16:01]Write to MH i2c: D1 01 00 A3 07 01 7C [04:16:01]Write i2c OK [04:16:01]MH_I2C_Read... [04:16:01]Read from MH i2c: D1 [04:16:01]MH_I2C_Read... [04:16:01]Read from MH i2c: D1 01 00 [04:16:01]MH_I2C_Read... [04:16:01]Read from MH i2c: D1 01 00 A3 07 00 7B [04:16:01]Write to MH i2c: 01 00 00 A4 07 AB [04:16:01]Write i2c OK [04:16:01]MH_I2C_Read... [04:16:02]OFD Sender: No OFD packet to send [04:16:03]*** Cut start [04:16:03]*** Partial cut [04:16:03]*** CUTSNS_PIN = 1 [04:16:03]*** CUTSNS_PIN = 0 [04:16:03]*** Brake cut motor [04:16:03]Read from MH i2c: 01 [04:16:03]MH_I2C_Read... [04:16:03]*** Stop cut motor [04:16:03]*** Cut end [04:16:03]Read from MH i2c: 01 07 00 [04:16:03]MH_I2C_Read... [04:16:03]Read from MH i2c: 01 07 00 A4 07 00 00 00 00 00 FF 0F C0 [04:16:03]process_action close_receipt done [04:16:03]requested_data is exist [04:16:03]produce_requested_data [04:16:03]requested_item fm.sn is exist - process it [04:16:03]wFMCommunicate request_size=4 [04:16:03]MH_SAM_APDU [04:16:03]CAPDU: 80 11 00 00 [04:16:03]Write to MH i2c: E2 08 00 A5 07 80 11 00 00 00 00 00 00 26 [04:16:03]Write i2c OK [04:16:03]MH_I2C_Read... [04:16:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:16:04]Read from MH i2c: E2 [04:16:04]MH_I2C_Read... [04:16:04]Read from MH i2c: E2 17 00 [04:16:04]MH_I2C_Read... [04:16:04]Read from MH i2c: E2 17 00 A5 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 74 [04:16:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [04:16:04]wFMCommunicate OK [04:16:04]requested_item fd.num is exist - process it [04:16:04]SAM_PROTO_GetFieldsCounters [04:16:04]wFMCommunicate request_size=4 [04:16:04]MH_SAM_APDU [04:16:04]CAPDU: 80 13 00 00 [04:16:04]Write to MH i2c: E2 08 00 A6 07 80 13 00 00 00 00 00 00 29 [04:16:04]Write i2c OK [04:16:04]MH_I2C_Read... [04:16:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [04:16:04]Read from MH i2c: E2 [04:16:04]MH_I2C_Read... [04:16:04]Read from MH i2c: E2 62 00 [04:16:04]MH_I2C_Read... [04:16:04]Read from MH i2c: E2 62 00 A6 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 C4 C5 01 00 0E 04 04 00 DA 01 00 00 12 04 04 00 14 00 00 00 5E 04 04 00 14 00 00 00 57 04 04 00 15 00 00 00 19 04 04 00 00 00 00 00 90 00 E3 [04:16:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 C4 C5 01 00 0E 04 04 00 DA 01 00 00 12 04 04 00 14 00 00 00 5E 04 04 00 14 00 00 00 57 04 04 00 15 00 00 00 19 04 04 00 00 00 00 00 90 00 [04:16:04]wFMCommunicate OK [04:16:04]SAM_PROTO_GetFieldsCounters done [04:16:04]requested_item shift.num is exist - process it [04:16:04]requested_item shift.opened is exist - process it [04:16:04]req_shift_opened [04:16:04]FM_GetShiftState [04:16:04]SAM_PROTO_GetShiftState [04:16:04]wFMCommunicate request_size=4 [04:16:04]MH_SAM_APDU [04:16:04]CAPDU: 80 13 01 00 [04:16:04]Write to MH i2c: E2 08 00 A7 07 80 13 01 00 00 00 00 00 2B [04:16:04]Write i2c OK [04:16:04]MH_I2C_Read... [04:16:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:16:04]Read from MH i2c: E2 [04:16:04]MH_I2C_Read... [04:16:04]Read from MH i2c: E2 0E 00 [04:16:04]MH_I2C_Read... [04:16:04]Read from MH i2c: E2 0E 00 A7 07 00 09 00 01 63 60 F3 66 00 00 00 00 90 00 53 [04:16:04]RAPDU: 09 00 01 63 60 F3 66 00 00 00 00 90 00 [04:16:04]wFMCommunicate OK [04:16:04]SAM_PROTO_GetShiftState done [04:16:04]FM_GetShiftState done [04:16:04]req_shift_opened done [04:16:04]requested_item shift.open_date is exist - process it [04:16:04]req_shift_open_date [04:16:04]req_shift_open_date done [04:16:04]produce_requested_data done [04:16:04]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":116164,"shift.num":474,"shift.opened":1,"shift.open_date":1727225955} [04:16:04]process_action_free close_receipt [04:16:04]json_value_free [04:16:04]json_value_free done [04:16:04]process_json_proto returns [04:16:04]Send response to host [04:16:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":116164,"shift.num":474,"shift.opened":1,"shift.open_date":1727225955}}} [04:16:04]free response buf [04:16:04]execute_script done [04:16:04]execute_script returns [04:16:04]free content buf [04:16:04]Sock 9.Close socket [04:16:04]Sock 9.Thread stoped [04:16:07]OFD Sender: No OFD packet to send [04:16:12]OFD Sender: No OFD packet to send [04:16:17]OFD Sender: No OFD packet to send [04:16:22]OFD Sender: No OFD packet to send [04:16:27]OFD Sender: No OFD packet to send [04:16:32]OFD Sender: No OFD packet to send [04:16:37]OFD Sender: No OFD packet to send [04:16:42]OFD Sender: No OFD packet to send [04:16:47]OFD Sender: No OFD packet to send [04:16:52]OFD Sender: No OFD packet to send [04:16:57]OFD Sender: No OFD packet to send [04:17:02]OFD Sender: No OFD packet to send [04:17:07]OFD Sender: No OFD packet to send [04:17:12]OFD Sender: No OFD packet to send [04:17:17]OFD Sender: No OFD packet to send [04:17:22]OFD Sender: No OFD packet to send [04:17:27]OFD Sender: No OFD packet to send [04:17:32]OFD Sender: No OFD packet to send [04:17:37]OFD Sender: No OFD packet to send [04:17:42]OFD Sender: No OFD packet to send [04:17:47]OFD Sender: No OFD packet to send [04:17:52]OFD Sender: No OFD packet to send [04:17:57]OFD Sender: No OFD packet to send [04:18:02]OFD Sender: No OFD packet to send [04:18:07]OFD Sender: No OFD packet to send [04:18:12]OFD Sender: No OFD packet to send [04:18:17]OFD Sender: No OFD packet to send [04:18:22]OFD Sender: No OFD packet to send [04:18:27]OFD Sender: No OFD packet to send [04:18:32]OFD Sender: No OFD packet to send [04:18:37]OFD Sender: No OFD packet to send [04:18:42]OFD Sender: No OFD packet to send [04:18:47]OFD Sender: No OFD packet to send [04:18:52]OFD Sender: No OFD packet to send [04:18:57]OFD Sender: No OFD packet to send [04:19:02]OFD Sender: No OFD packet to send [04:19:07]OFD Sender: No OFD packet to send [04:19:12]OFD Sender: No OFD packet to send [04:19:17]OFD Sender: No OFD packet to send [04:19:22]OFD Sender: No OFD packet to send [04:19:27]OFD Sender: No OFD packet to send [04:19:32]OFD Sender: No OFD packet to send [04:19:37]OFD Sender: No OFD packet to send [04:19:42]OFD Sender: No OFD packet to send [04:19:47]OFD Sender: No OFD packet to send [04:19:52]OFD Sender: No OFD packet to send [04:19:57]OFD Sender: No OFD packet to send [04:20:02]OFD Sender: No OFD packet to send [04:20:07]OFD Sender: No OFD packet to send [04:20:12]OFD Sender: No OFD packet to send [04:20:17]OFD Sender: No OFD packet to send [04:20:22]OFD Sender: No OFD packet to send [04:20:27]OFD Sender: No OFD packet to send [04:20:32]OFD Sender: No OFD packet to send [04:20:37]OFD Sender: No OFD packet to send [04:20:42]OFD Sender: No OFD packet to send [04:20:47]OFD Sender: No OFD packet to send [04:20:52]OFD Sender: No OFD packet to send [04:20:57]OFD Sender: No OFD packet to send [04:21:02]OFD Sender: No OFD packet to send [04:21:07]OFD Sender: No OFD packet to send [04:21:12]OFD Sender: No OFD packet to send [04:21:17]OFD Sender: No OFD packet to send [04:21:22]OFD Sender: No OFD packet to send [04:21:27]OFD Sender: No OFD packet to send [04:21:32]OFD Sender: No OFD packet to send [04:21:37]OFD Sender: No OFD packet to send [04:21:42]OFD Sender: No OFD packet to send [04:21:47]OFD Sender: No OFD packet to send [04:21:52]OFD Sender: No OFD packet to send [04:21:57]OFD Sender: No OFD packet to send [04:22:02]OFD Sender: No OFD packet to send [04:22:07]OFD Sender: No OFD packet to send [04:22:12]OFD Sender: No OFD packet to send [04:22:17]OFD Sender: No OFD packet to send [04:22:22]OFD Sender: No OFD packet to send [04:22:27]OFD Sender: No OFD packet to send [04:22:32]OFD Sender: No OFD packet to send [04:22:38]OFD Sender: No OFD packet to send [04:22:43]OFD Sender: No OFD packet to send [04:22:48]OFD Sender: No OFD packet to send [04:22:53]OFD Sender: No OFD packet to send [04:22:58]OFD Sender: No OFD packet to send [04:23:03]OFD Sender: No OFD packet to send [04:23:08]OFD Sender: No OFD packet to send [04:23:13]OFD Sender: No OFD packet to send [04:23:18]OFD Sender: No OFD packet to send [04:23:23]OFD Sender: No OFD packet to send [04:23:28]OFD Sender: No OFD packet to send [04:23:33]OFD Sender: No OFD packet to send [04:23:38]OFD Sender: No OFD packet to send [04:23:43]OFD Sender: No OFD packet to send [04:23:48]OFD Sender: No OFD packet to send [04:23:53]OFD Sender: No OFD packet to send [04:23:58]OFD Sender: No OFD packet to send [04:24:03]OFD Sender: No OFD packet to send [04:24:08]OFD Sender: No OFD packet to send [04:24:13]OFD Sender: No OFD packet to send [04:24:18]OFD Sender: No OFD packet to send [04:24:23]OFD Sender: No OFD packet to send [04:24:28]OFD Sender: No OFD packet to send [04:24:33]OFD Sender: No OFD packet to send [04:24:38]OFD Sender: No OFD packet to send [04:24:43]OFD Sender: No OFD packet to send [04:24:48]OFD Sender: No OFD packet to send [04:24:53]OFD Sender: No OFD packet to send [04:24:58]OFD Sender: No OFD packet to send [04:25:03]OFD Sender: No OFD packet to send [04:25:08]OFD Sender: No OFD packet to send [04:25:13]OFD Sender: No OFD packet to send [04:25:18]OFD Sender: No OFD packet to send [04:25:23]OFD Sender: No OFD packet to send [04:25:28]OFD Sender: No OFD packet to send [04:25:33]OFD Sender: No OFD packet to send [04:25:38]OFD Sender: No OFD packet to send [04:25:43]OFD Sender: No OFD packet to send [04:25:48]OFD Sender: No OFD packet to send [04:25:53]OFD Sender: No OFD packet to send [04:25:58]OFD Sender: No OFD packet to send [04:26:03]OFD Sender: No OFD packet to send [04:26:08]OFD Sender: No OFD packet to send [04:26:13]OFD Sender: No OFD packet to send [04:26:18]OFD Sender: No OFD packet to send [04:26:23]OFD Sender: No OFD packet to send [04:26:28]OFD Sender: No OFD packet to send [04:26:33]OFD Sender: No OFD packet to send [04:26:38]OFD Sender: No OFD packet to send [04:26:43]OFD Sender: No OFD packet to send [04:26:48]OFD Sender: No OFD packet to send [04:26:53]OFD Sender: No OFD packet to send [04:26:58]OFD Sender: No OFD packet to send [04:27:03]OFD Sender: No OFD packet to send [04:27:08]OFD Sender: No OFD packet to send [04:27:13]OFD Sender: No OFD packet to send [04:27:18]OFD Sender: No OFD packet to send [04:27:23]OFD Sender: No OFD packet to send [04:27:28]OFD Sender: No OFD packet to send [04:27:33]OFD Sender: No OFD packet to send [04:27:38]OFD Sender: No OFD packet to send [04:27:43]OFD Sender: No OFD packet to send [04:27:48]OFD Sender: No OFD packet to send [04:27:53]OFD Sender: No OFD packet to send [04:27:58]OFD Sender: No OFD packet to send [04:28:03]OFD Sender: No OFD packet to send [04:28:08]OFD Sender: No OFD packet to send [04:28:13]OFD Sender: No OFD packet to send [04:28:18]OFD Sender: No OFD packet to send [04:28:23]OFD Sender: No OFD packet to send [04:28:28]OFD Sender: No OFD packet to send [04:28:33]OFD Sender: No OFD packet to send [04:28:38]OFD Sender: No OFD packet to send [04:28:43]OFD Sender: No OFD packet to send [04:28:48]OFD Sender: No OFD packet to send [04:28:53]OFD Sender: No OFD packet to send [04:28:58]OFD Sender: No OFD packet to send [04:29:03]OFD Sender: No OFD packet to send [04:29:08]OFD Sender: No OFD packet to send [04:29:13]OFD Sender: No OFD packet to send [04:29:18]OFD Sender: No OFD packet to send [04:29:23]OFD Sender: No OFD packet to send [04:29:28]OFD Sender: No OFD packet to send [04:29:33]OFD Sender: No OFD packet to send [04:29:38]OFD Sender: No OFD packet to send [04:29:44]OFD Sender: No OFD packet to send [04:29:49]OFD Sender: No OFD packet to send [04:29:54]OFD Sender: No OFD packet to send [04:29:59]OFD Sender: No OFD packet to send [04:30:04]OFD Sender: No OFD packet to send [04:30:09]OFD Sender: No OFD packet to send [04:30:14]OFD Sender: No OFD packet to send [04:30:19]OFD Sender: No OFD packet to send [04:30:24]OFD Sender: No OFD packet to send [04:30:29]OFD Sender: No OFD packet to send [04:30:34]OFD Sender: No OFD packet to send [04:30:39]OFD Sender: No OFD packet to send [04:30:44]OFD Sender: No OFD packet to send [04:30:49]OFD Sender: No OFD packet to send [04:30:54]OFD Sender: No OFD packet to send [04:30:59]OFD Sender: No OFD packet to send [04:31:04]OFD Sender: No OFD packet to send [04:31:09]OFD Sender: No OFD packet to send [04:31:14]OFD Sender: No OFD packet to send [04:31:19]OFD Sender: No OFD packet to send [04:31:24]OFD Sender: No OFD packet to send [04:31:29]OFD Sender: No OFD packet to send [04:31:34]OFD Sender: No OFD packet to send [04:31:39]OFD Sender: No OFD packet to send [04:31:44]OFD Sender: No OFD packet to send [04:31:49]OFD Sender: No OFD packet to send [04:31:54]OFD Sender: No OFD packet to send [04:31:59]OFD Sender: No OFD packet to send [04:32:04]OFD Sender: No OFD packet to send [04:32:09]OFD Sender: No OFD packet to send [04:32:14]OFD Sender: No OFD packet to send [04:32:19]OFD Sender: No OFD packet to send [04:32:24]OFD Sender: No OFD packet to send [04:32:29]OFD Sender: No OFD packet to send [04:32:34]OFD Sender: No OFD packet to send [04:32:39]OFD Sender: No OFD packet to send [04:32:44]OFD Sender: No OFD packet to send [04:32:49]OFD Sender: No OFD packet to send [04:32:54]OFD Sender: No OFD packet to send [04:32:59]OFD Sender: No OFD packet to send [04:33:04]OFD Sender: No OFD packet to send [04:33:09]OFD Sender: No OFD packet to send [04:33:14]OFD Sender: No OFD packet to send [04:33:19]OFD Sender: No OFD packet to send [04:33:24]OFD Sender: No OFD packet to send [04:33:29]OFD Sender: No OFD packet to send [04:33:34]OFD Sender: No OFD packet to send [04:33:39]OFD Sender: No OFD packet to send [04:33:44]OFD Sender: No OFD packet to send [04:33:49]OFD Sender: No OFD packet to send [04:33:54]OFD Sender: No OFD packet to send [04:33:59]OFD Sender: No OFD packet to send [04:34:04]OFD Sender: No OFD packet to send [04:34:09]OFD Sender: No OFD packet to send [04:34:14]OFD Sender: No OFD packet to send [04:34:19]OFD Sender: No OFD packet to send [04:34:24]OFD Sender: No OFD packet to send [04:34:29]OFD Sender: No OFD packet to send [04:34:34]OFD Sender: No OFD packet to send [04:34:39]OFD Sender: No OFD packet to send [04:34:44]OFD Sender: No OFD packet to send [04:34:49]OFD Sender: No OFD packet to send [04:34:54]OFD Sender: No OFD packet to send [04:34:59]OFD Sender: No OFD packet to send [04:35:04]OFD Sender: No OFD packet to send [04:35:09]OFD Sender: No OFD packet to send [04:35:14]OFD Sender: No OFD packet to send [04:35:19]OFD Sender: No OFD packet to send [04:35:24]OFD Sender: No OFD packet to send [04:35:29]OFD Sender: No OFD packet to send [04:35:34]OFD Sender: No OFD packet to send [04:35:39]OFD Sender: No OFD packet to send [04:35:44]OFD Sender: No OFD packet to send [04:35:49]OFD Sender: No OFD packet to send [04:35:54]OFD Sender: No OFD packet to send [04:35:59]OFD Sender: No OFD packet to send [04:36:04]OFD Sender: No OFD packet to send [04:36:09]OFD Sender: No OFD packet to send [04:36:14]OFD Sender: No OFD packet to send [04:36:19]OFD Sender: No OFD packet to send [04:36:24]OFD Sender: No OFD packet to send [04:36:29]OFD Sender: No OFD packet to send [04:36:34]OFD Sender: No OFD packet to send [04:36:39]OFD Sender: No OFD packet to send [04:36:44]OFD Sender: No OFD packet to send [04:36:50]OFD Sender: No OFD packet to send [04:36:55]OFD Sender: No OFD packet to send [04:37:00]OFD Sender: No OFD packet to send [04:37:05]OFD Sender: No OFD packet to send [04:37:10]OFD Sender: No OFD packet to send [04:37:15]OFD Sender: No OFD packet to send [04:37:20]OFD Sender: No OFD packet to send [04:37:25]OFD Sender: No OFD packet to send [04:37:30]OFD Sender: No OFD packet to send [04:37:35]OFD Sender: No OFD packet to send [04:37:40]OFD Sender: No OFD packet to send [04:37:45]OFD Sender: No OFD packet to send [04:37:50]OFD Sender: No OFD packet to send [04:37:55]OFD Sender: No OFD packet to send [04:38:00]OFD Sender: No OFD packet to send [04:38:05]OFD Sender: No OFD packet to send [04:38:10]OFD Sender: No OFD packet to send [04:38:15]OFD Sender: No OFD packet to send [04:38:20]OFD Sender: No OFD packet to send [04:38:25]OFD Sender: No OFD packet to send [04:38:30]OFD Sender: No OFD packet to send [04:38:35]OFD Sender: No OFD packet to send [04:38:40]OFD Sender: No OFD packet to send [04:38:45]OFD Sender: No OFD packet to send [04:38:50]OFD Sender: No OFD packet to send [04:38:55]OFD Sender: No OFD packet to send [04:39:00]OFD Sender: No OFD packet to send [04:39:05]OFD Sender: No OFD packet to send [04:39:10]OFD Sender: No OFD packet to send [04:39:15]OFD Sender: No OFD packet to send [04:39:20]OFD Sender: No OFD packet to send [04:39:25]OFD Sender: No OFD packet to send [04:39:30]OFD Sender: No OFD packet to send [04:39:35]OFD Sender: No OFD packet to send [04:39:40]OFD Sender: No OFD packet to send [04:39:45]OFD Sender: No OFD packet to send [04:39:50]OFD Sender: No OFD packet to send [04:39:55]OFD Sender: No OFD packet to send [04:40:00]OFD Sender: No OFD packet to send [04:40:05]OFD Sender: No OFD packet to send [04:40:10]OFD Sender: No OFD packet to send [04:40:15]OFD Sender: No OFD packet to send [04:40:20]OFD Sender: No OFD packet to send [04:40:25]OFD Sender: No OFD packet to send [04:40:30]OFD Sender: No OFD packet to send [04:40:35]OFD Sender: No OFD packet to send [04:40:40]OFD Sender: No OFD packet to send [04:40:45]OFD Sender: No OFD packet to send [04:40:50]OFD Sender: No OFD packet to send [04:40:55]OFD Sender: No OFD packet to send [04:41:00]OFD Sender: No OFD packet to send [04:41:05]OFD Sender: No OFD packet to send [04:41:10]OFD Sender: No OFD packet to send [04:41:15]OFD Sender: No OFD packet to send [04:41:20]OFD Sender: No OFD packet to send [04:41:25]OFD Sender: No OFD packet to send [04:41:30]OFD Sender: No OFD packet to send [04:41:35]OFD Sender: No OFD packet to send [04:41:40]OFD Sender: No OFD packet to send [04:41:45]OFD Sender: No OFD packet to send [04:41:50]OFD Sender: No OFD packet to send [04:41:55]OFD Sender: No OFD packet to send [04:42:00]OFD Sender: No OFD packet to send [04:42:05]OFD Sender: No OFD packet to send [04:42:10]OFD Sender: No OFD packet to send [04:42:15]OFD Sender: No OFD packet to send [04:42:20]OFD Sender: No OFD packet to send [04:42:25]OFD Sender: No OFD packet to send [04:42:30]OFD Sender: No OFD packet to send [04:42:35]OFD Sender: No OFD packet to send [04:42:40]OFD Sender: No OFD packet to send [04:42:45]OFD Sender: No OFD packet to send [04:42:50]OFD Sender: No OFD packet to send [04:42:55]OFD Sender: No OFD packet to send [04:43:00]OFD Sender: No OFD packet to send [04:43:05]OFD Sender: No OFD packet to send [04:43:10]OFD Sender: No OFD packet to send [04:43:15]OFD Sender: No OFD packet to send [04:43:20]OFD Sender: No OFD packet to send [04:43:25]OFD Sender: No OFD packet to send [04:43:30]OFD Sender: No OFD packet to send [04:43:35]OFD Sender: No OFD packet to send [04:43:40]OFD Sender: No OFD packet to send [04:43:45]OFD Sender: No OFD packet to send [04:43:50]OFD Sender: No OFD packet to send [04:43:56]OFD Sender: No OFD packet to send [04:44:01]OFD Sender: No OFD packet to send [04:44:06]OFD Sender: No OFD packet to send [04:44:11]OFD Sender: No OFD packet to send [04:44:16]OFD Sender: No OFD packet to send [04:44:21]OFD Sender: No OFD packet to send [04:44:26]OFD Sender: No OFD packet to send [04:44:31]OFD Sender: No OFD packet to send [04:44:36]OFD Sender: No OFD packet to send [04:44:41]OFD Sender: No OFD packet to send [04:44:46]OFD Sender: No OFD packet to send [04:44:51]OFD Sender: No OFD packet to send [04:44:56]OFD Sender: No OFD packet to send [04:45:01]OFD Sender: No OFD packet to send [04:45:06]OFD Sender: No OFD packet to send [04:45:11]OFD Sender: No OFD packet to send [04:45:16]OFD Sender: No OFD packet to send [04:45:21]OFD Sender: No OFD packet to send [04:45:26]OFD Sender: No OFD packet to send [04:45:31]OFD Sender: No OFD packet to send [04:45:36]OFD Sender: No OFD packet to send [04:45:41]OFD Sender: No OFD packet to send [04:45:46]OFD Sender: No OFD packet to send [04:45:51]OFD Sender: No OFD packet to send [04:45:56]OFD Sender: No OFD packet to send [04:46:01]OFD Sender: No OFD packet to send [04:46:06]OFD Sender: No OFD packet to send [04:46:11]OFD Sender: No OFD packet to send [04:46:16]OFD Sender: No OFD packet to send [04:46:21]OFD Sender: No OFD packet to send [04:46:26]OFD Sender: No OFD packet to send [04:46:31]OFD Sender: No OFD packet to send [04:46:36]OFD Sender: No OFD packet to send [04:46:41]OFD Sender: No OFD packet to send [04:46:46]OFD Sender: No OFD packet to send [04:46:51]OFD Sender: No OFD packet to send [04:46:56]OFD Sender: No OFD packet to send [04:47:01]OFD Sender: No OFD packet to send [04:47:06]OFD Sender: No OFD packet to send [04:47:11]OFD Sender: No OFD packet to send [04:47:16]OFD Sender: No OFD packet to send [04:47:21]OFD Sender: No OFD packet to send [04:47:26]OFD Sender: No OFD packet to send [04:47:31]OFD Sender: No OFD packet to send [04:47:36]OFD Sender: No OFD packet to send [04:47:41]OFD Sender: No OFD packet to send [04:47:46]OFD Sender: No OFD packet to send [04:47:51]OFD Sender: No OFD packet to send [04:47:56]OFD Sender: No OFD packet to send [04:48:01]OFD Sender: No OFD packet to send [04:48:06]OFD Sender: No OFD packet to send [04:48:11]OFD Sender: No OFD packet to send [04:48:16]OFD Sender: No OFD packet to send [04:48:21]OFD Sender: No OFD packet to send [04:48:26]OFD Sender: No OFD packet to send [04:48:31]OFD Sender: No OFD packet to send [04:48:36]OFD Sender: No OFD packet to send [04:48:41]OFD Sender: No OFD packet to send [04:48:46]OFD Sender: No OFD packet to send [04:48:51]OFD Sender: No OFD packet to send [04:48:56]OFD Sender: No OFD packet to send [04:49:01]OFD Sender: No OFD packet to send [04:49:06]OFD Sender: No OFD packet to send [04:49:11]OFD Sender: No OFD packet to send [04:49:16]OFD Sender: No OFD packet to send [04:49:21]OFD Sender: No OFD packet to send [04:49:26]OFD Sender: No OFD packet to send [04:49:31]OFD Sender: No OFD packet to send [04:49:36]OFD Sender: No OFD packet to send [04:49:41]OFD Sender: No OFD packet to send [04:49:46]OFD Sender: No OFD packet to send [04:49:51]OFD Sender: No OFD packet to send [04:49:56]OFD Sender: No OFD packet to send [04:50:01]OFD Sender: No OFD packet to send [04:50:06]OFD Sender: No OFD packet to send [04:50:11]OFD Sender: No OFD packet to send [04:50:16]OFD Sender: No OFD packet to send [04:50:21]OFD Sender: No OFD packet to send [04:50:26]OFD Sender: No OFD packet to send [04:50:31]OFD Sender: No OFD packet to send [04:50:36]OFD Sender: No OFD packet to send [04:50:41]OFD Sender: No OFD packet to send [04:50:46]OFD Sender: No OFD packet to send [04:50:51]OFD Sender: No OFD packet to send [04:50:57]OFD Sender: No OFD packet to send [04:51:02]OFD Sender: No OFD packet to send [04:51:07]OFD Sender: No OFD packet to send [04:51:12]OFD Sender: No OFD packet to send [04:51:17]OFD Sender: No OFD packet to send [04:51:22]OFD Sender: No OFD packet to send [04:51:27]OFD Sender: No OFD packet to send [04:51:32]OFD Sender: No OFD packet to send [04:51:37]OFD Sender: No OFD packet to send [04:51:42]OFD Sender: No OFD packet to send [04:51:47]OFD Sender: No OFD packet to send [04:51:52]OFD Sender: No OFD packet to send [04:51:57]OFD Sender: No OFD packet to send [04:52:02]OFD Sender: No OFD packet to send [04:52:07]OFD Sender: No OFD packet to send [04:52:12]OFD Sender: No OFD packet to send [04:52:17]OFD Sender: No OFD packet to send [04:52:22]OFD Sender: No OFD packet to send [04:52:27]OFD Sender: No OFD packet to send [04:52:32]OFD Sender: No OFD packet to send [04:52:37]OFD Sender: No OFD packet to send [04:52:42]OFD Sender: No OFD packet to send [04:52:47]OFD Sender: No OFD packet to send [04:52:52]OFD Sender: No OFD packet to send [04:52:57]OFD Sender: No OFD packet to send [04:53:02]OFD Sender: No OFD packet to send [04:53:07]OFD Sender: No OFD packet to send [04:53:12]OFD Sender: No OFD packet to send [04:53:17]OFD Sender: No OFD packet to send [04:53:22]OFD Sender: No OFD packet to send [04:53:27]OFD Sender: No OFD packet to send [04:53:32]OFD Sender: No OFD packet to send [04:53:37]OFD Sender: No OFD packet to send [04:53:42]OFD Sender: No OFD packet to send [04:53:47]OFD Sender: No OFD packet to send [04:53:52]OFD Sender: No OFD packet to send [04:53:57]OFD Sender: No OFD packet to send [04:54:02]OFD Sender: No OFD packet to send [04:54:07]OFD Sender: No OFD packet to send [04:54:12]OFD Sender: No OFD packet to send [04:54:17]OFD Sender: No OFD packet to send [04:54:22]OFD Sender: No OFD packet to send [04:54:27]OFD Sender: No OFD packet to send [04:54:32]OFD Sender: No OFD packet to send [04:54:37]OFD Sender: No OFD packet to send [04:54:42]OFD Sender: No OFD packet to send [04:54:47]OFD Sender: No OFD packet to send [04:54:52]OFD Sender: No OFD packet to send [04:54:57]OFD Sender: No OFD packet to send [04:55:02]OFD Sender: No OFD packet to send [04:55:07]OFD Sender: No OFD packet to send [04:55:12]OFD Sender: No OFD packet to send [04:55:17]OFD Sender: No OFD packet to send [04:55:22]OFD Sender: No OFD packet to send [04:55:27]OFD Sender: No OFD packet to send [04:55:32]OFD Sender: No OFD packet to send [04:55:37]OFD Sender: No OFD packet to send [04:55:42]OFD Sender: No OFD packet to send [04:55:47]OFD Sender: No OFD packet to send [04:55:52]OFD Sender: No OFD packet to send [04:55:57]OFD Sender: No OFD packet to send [04:56:02]OFD Sender: No OFD packet to send [04:56:07]OFD Sender: No OFD packet to send [04:56:12]OFD Sender: No OFD packet to send [04:56:17]OFD Sender: No OFD packet to send [04:56:22]OFD Sender: No OFD packet to send [04:56:27]OFD Sender: No OFD packet to send [04:56:32]OFD Sender: No OFD packet to send [04:56:37]OFD Sender: No OFD packet to send [04:56:42]OFD Sender: No OFD packet to send [04:56:47]OFD Sender: No OFD packet to send [04:56:52]OFD Sender: No OFD packet to send [04:56:57]OFD Sender: No OFD packet to send [04:57:02]OFD Sender: No OFD packet to send [04:57:07]OFD Sender: No OFD packet to send [04:57:12]OFD Sender: No OFD packet to send [04:57:17]OFD Sender: No OFD packet to send [04:57:22]OFD Sender: No OFD packet to send [04:57:27]OFD Sender: No OFD packet to send [04:57:32]OFD Sender: No OFD packet to send [04:57:37]OFD Sender: No OFD packet to send [04:57:42]OFD Sender: No OFD packet to send [04:57:47]OFD Sender: No OFD packet to send [04:57:53]OFD Sender: No OFD packet to send [04:57:58]OFD Sender: No OFD packet to send [04:58:03]OFD Sender: No OFD packet to send [04:58:08]OFD Sender: No OFD packet to send [04:58:13]OFD Sender: No OFD packet to send [04:58:18]OFD Sender: No OFD packet to send [04:58:23]OFD Sender: No OFD packet to send [04:58:28]OFD Sender: No OFD packet to send [04:58:33]OFD Sender: No OFD packet to send [04:58:38]OFD Sender: No OFD packet to send [04:58:43]OFD Sender: No OFD packet to send [04:58:48]OFD Sender: No OFD packet to send [04:58:53]OFD Sender: No OFD packet to send [04:58:58]OFD Sender: No OFD packet to send [04:59:03]OFD Sender: No OFD packet to send [04:59:08]OFD Sender: No OFD packet to send [04:59:13]OFD Sender: No OFD packet to send [04:59:18]OFD Sender: No OFD packet to send [04:59:23]OFD Sender: No OFD packet to send [04:59:28]OFD Sender: No OFD packet to send [04:59:33]OFD Sender: No OFD packet to send [04:59:38]OFD Sender: No OFD packet to send [04:59:43]OFD Sender: No OFD packet to send [04:59:48]OFD Sender: No OFD packet to send [04:59:53]OFD Sender: No OFD packet to send [04:59:58]OFD Sender: No OFD packet to send [05:00:03]OFD Sender: No OFD packet to send [05:00:08]OFD Sender: No OFD packet to send [05:00:13]OFD Sender: No OFD packet to send [05:00:18]OFD Sender: No OFD packet to send [05:00:23]OFD Sender: No OFD packet to send [05:00:28]OFD Sender: No OFD packet to send [05:00:33]OFD Sender: No OFD packet to send [05:00:38]OFD Sender: No OFD packet to send [05:00:43]OFD Sender: No OFD packet to send [05:00:48]OFD Sender: No OFD packet to send [05:00:53]OFD Sender: No OFD packet to send [05:00:58]OFD Sender: No OFD packet to send [05:01:03]OFD Sender: No OFD packet to send [05:01:08]OFD Sender: No OFD packet to send [05:01:13]OFD Sender: No OFD packet to send [05:01:18]OFD Sender: No OFD packet to send [05:01:23]OFD Sender: No OFD packet to send [05:01:28]OFD Sender: No OFD packet to send [05:01:33]OFD Sender: No OFD packet to send [05:01:38]OFD Sender: No OFD packet to send [05:01:43]OFD Sender: No OFD packet to send [05:01:48]OFD Sender: No OFD packet to send [05:01:53]OFD Sender: No OFD packet to send [05:01:58]OFD Sender: No OFD packet to send [05:02:03]OFD Sender: No OFD packet to send [05:02:08]OFD Sender: No OFD packet to send [05:02:13]OFD Sender: No OFD packet to send [05:02:18]OFD Sender: No OFD packet to send [05:02:23]OFD Sender: No OFD packet to send [05:02:28]OFD Sender: No OFD packet to send [05:02:33]OFD Sender: No OFD packet to send [05:02:38]OFD Sender: No OFD packet to send [05:02:43]OFD Sender: No OFD packet to send [05:02:48]OFD Sender: No OFD packet to send [05:02:53]OFD Sender: No OFD packet to send [05:02:58]OFD Sender: No OFD packet to send [05:03:03]OFD Sender: No OFD packet to send [05:03:08]OFD Sender: No OFD packet to send [05:03:13]OFD Sender: No OFD packet to send [05:03:18]OFD Sender: No OFD packet to send [05:03:23]OFD Sender: No OFD packet to send [05:03:28]OFD Sender: No OFD packet to send [05:03:33]OFD Sender: No OFD packet to send [05:03:38]OFD Sender: No OFD packet to send [05:03:43]OFD Sender: No OFD packet to send [05:03:48]OFD Sender: No OFD packet to send [05:03:53]OFD Sender: No OFD packet to send [05:03:58]OFD Sender: No OFD packet to send [05:04:03]OFD Sender: No OFD packet to send [05:04:08]OFD Sender: No OFD packet to send [05:04:13]OFD Sender: No OFD packet to send [05:04:18]OFD Sender: No OFD packet to send [05:04:23]OFD Sender: No OFD packet to send [05:04:28]OFD Sender: No OFD packet to send [05:04:33]OFD Sender: No OFD packet to send [05:04:38]OFD Sender: No OFD packet to send [05:04:43]OFD Sender: No OFD packet to send [05:04:48]OFD Sender: No OFD packet to send [05:04:54]OFD Sender: No OFD packet to send [05:04:59]OFD Sender: No OFD packet to send [05:05:04]OFD Sender: No OFD packet to send [05:05:09]OFD Sender: No OFD packet to send [05:05:14]OFD Sender: No OFD packet to send [05:05:19]OFD Sender: No OFD packet to send [05:05:24]OFD Sender: No OFD packet to send [05:05:29]OFD Sender: No OFD packet to send [05:05:34]OFD Sender: No OFD packet to send [05:05:39]OFD Sender: No OFD packet to send [05:05:44]OFD Sender: No OFD packet to send [05:05:49]OFD Sender: No OFD packet to send [05:05:54]OFD Sender: No OFD packet to send [05:05:59]OFD Sender: No OFD packet to send [05:06:04]OFD Sender: No OFD packet to send [05:06:09]OFD Sender: No OFD packet to send [05:06:14]OFD Sender: No OFD packet to send [05:06:19]OFD Sender: No OFD packet to send [05:06:24]OFD Sender: No OFD packet to send [05:06:29]OFD Sender: No OFD packet to send [05:06:34]OFD Sender: No OFD packet to send [05:06:39]OFD Sender: No OFD packet to send [05:06:44]OFD Sender: No OFD packet to send [05:06:49]OFD Sender: No OFD packet to send [05:06:54]OFD Sender: No OFD packet to send [05:06:59]OFD Sender: No OFD packet to send [05:07:04]OFD Sender: No OFD packet to send [05:07:09]OFD Sender: No OFD packet to send [05:07:14]OFD Sender: No OFD packet to send [05:07:19]OFD Sender: No OFD packet to send [05:07:24]OFD Sender: No OFD packet to send [05:07:29]OFD Sender: No OFD packet to send [05:07:34]OFD Sender: No OFD packet to send [05:07:39]OFD Sender: No OFD packet to send [05:07:44]OFD Sender: No OFD packet to send [05:07:49]OFD Sender: No OFD packet to send [05:07:54]OFD Sender: No OFD packet to send [05:07:59]OFD Sender: No OFD packet to send [05:08:04]OFD Sender: No OFD packet to send [05:08:09]OFD Sender: No OFD packet to send [05:08:14]OFD Sender: No OFD packet to send [05:08:19]OFD Sender: No OFD packet to send [05:08:24]OFD Sender: No OFD packet to send [05:08:29]OFD Sender: No OFD packet to send [05:08:34]OFD Sender: No OFD packet to send [05:08:39]OFD Sender: No OFD packet to send [05:08:44]OFD Sender: No OFD packet to send [05:08:49]OFD Sender: No OFD packet to send [05:08:54]OFD Sender: No OFD packet to send [05:08:59]OFD Sender: No OFD packet to send [05:09:04]OFD Sender: No OFD packet to send [05:09:09]OFD Sender: No OFD packet to send [05:09:14]OFD Sender: No OFD packet to send [05:09:19]OFD Sender: No OFD packet to send [05:09:24]OFD Sender: No OFD packet to send [05:09:29]OFD Sender: No OFD packet to send [05:09:34]OFD Sender: No OFD packet to send [05:09:39]OFD Sender: No OFD packet to send [05:09:44]OFD Sender: No OFD packet to send [05:09:49]OFD Sender: No OFD packet to send [05:09:54]OFD Sender: No OFD packet to send [05:09:59]OFD Sender: No OFD packet to send [05:10:04]OFD Sender: No OFD packet to send [05:10:09]OFD Sender: No OFD packet to send [05:10:14]OFD Sender: No OFD packet to send [05:10:19]OFD Sender: No OFD packet to send [05:10:24]OFD Sender: No OFD packet to send [05:10:29]OFD Sender: No OFD packet to send [05:10:34]OFD Sender: No OFD packet to send [05:10:39]OFD Sender: No OFD packet to send [05:10:44]OFD Sender: No OFD packet to send [05:10:49]OFD Sender: No OFD packet to send [05:10:54]OFD Sender: No OFD packet to send [05:10:59]OFD Sender: No OFD packet to send [05:11:04]OFD Sender: No OFD packet to send [05:11:09]OFD Sender: No OFD packet to send [05:11:14]OFD Sender: No OFD packet to send [05:11:19]OFD Sender: No OFD packet to send [05:11:24]OFD Sender: No OFD packet to send [05:11:29]OFD Sender: No OFD packet to send [05:11:34]OFD Sender: No OFD packet to send [05:11:39]OFD Sender: No OFD packet to send [05:11:44]OFD Sender: No OFD packet to send [05:11:49]OFD Sender: No OFD packet to send [05:11:55]OFD Sender: No OFD packet to send [05:12:00]OFD Sender: No OFD packet to send [05:12:05]OFD Sender: No OFD packet to send [05:12:10]OFD Sender: No OFD packet to send [05:12:15]OFD Sender: No OFD packet to send [05:12:20]OFD Sender: No OFD packet to send [05:12:25]OFD Sender: No OFD packet to send [05:12:30]OFD Sender: No OFD packet to send [05:12:35]OFD Sender: No OFD packet to send [05:12:40]OFD Sender: No OFD packet to send [05:12:45]OFD Sender: No OFD packet to send [05:12:50]OFD Sender: No OFD packet to send [05:12:55]OFD Sender: No OFD packet to send [05:13:00]OFD Sender: No OFD packet to send [05:13:05]OFD Sender: No OFD packet to send [05:13:10]OFD Sender: No OFD packet to send [05:13:15]OFD Sender: No OFD packet to send [05:13:20]OFD Sender: No OFD packet to send [05:13:25]OFD Sender: No OFD packet to send [05:13:30]OFD Sender: No OFD packet to send [05:13:35]OFD Sender: No OFD packet to send [05:13:40]OFD Sender: No OFD packet to send [05:13:45]OFD Sender: No OFD packet to send [05:13:50]OFD Sender: No OFD packet to send [05:13:55]OFD Sender: No OFD packet to send [05:14:00]OFD Sender: No OFD packet to send [05:14:05]OFD Sender: No OFD packet to send [05:14:10]OFD Sender: No OFD packet to send [05:14:15]OFD Sender: No OFD packet to send [05:14:20]OFD Sender: No OFD packet to send [05:14:25]OFD Sender: No OFD packet to send [05:14:30]OFD Sender: No OFD packet to send [05:14:35]OFD Sender: No OFD packet to send [05:14:40]OFD Sender: No OFD packet to send [05:14:45]OFD Sender: No OFD packet to send [05:14:50]OFD Sender: No OFD packet to send [05:14:55]OFD Sender: No OFD packet to send [05:15:00]OFD Sender: No OFD packet to send [05:15:05]OFD Sender: No OFD packet to send [05:15:10]OFD Sender: No OFD packet to send [05:15:15]OFD Sender: No OFD packet to send [05:15:20]OFD Sender: No OFD packet to send [05:15:25]OFD Sender: No OFD packet to send [05:15:30]OFD Sender: No OFD packet to send [05:15:35]OFD Sender: No OFD packet to send [05:15:40]OFD Sender: No OFD packet to send [05:15:45]OFD Sender: No OFD packet to send [05:15:50]OFD Sender: No OFD packet to send [05:15:55]OFD Sender: No OFD packet to send [05:16:00]OFD Sender: No OFD packet to send [05:16:05]OFD Sender: No OFD packet to send [05:16:10]OFD Sender: No OFD packet to send [05:16:15]OFD Sender: No OFD packet to send [05:16:20]OFD Sender: No OFD packet to send [05:16:25]OFD Sender: No OFD packet to send [05:16:30]OFD Sender: No OFD packet to send [05:16:35]OFD Sender: No OFD packet to send [05:16:40]OFD Sender: No OFD packet to send [05:16:45]OFD Sender: No OFD packet to send [05:16:50]OFD Sender: No OFD packet to send [05:16:55]OFD Sender: No OFD packet to send [05:17:00]OFD Sender: No OFD packet to send [05:17:05]OFD Sender: No OFD packet to send [05:17:10]OFD Sender: No OFD packet to send [05:17:15]OFD Sender: No OFD packet to send [05:17:20]OFD Sender: No OFD packet to send [05:17:25]OFD Sender: No OFD packet to send [05:17:30]OFD Sender: No OFD packet to send [05:17:35]OFD Sender: No OFD packet to send [05:17:40]OFD Sender: No OFD packet to send [05:17:45]OFD Sender: No OFD packet to send [05:17:50]OFD Sender: No OFD packet to send [05:17:55]OFD Sender: No OFD packet to send [05:18:00]OFD Sender: No OFD packet to send [05:18:05]OFD Sender: No OFD packet to send [05:18:10]OFD Sender: No OFD packet to send [05:18:15]OFD Sender: No OFD packet to send [05:18:20]OFD Sender: No OFD packet to send [05:18:25]OFD Sender: No OFD packet to send [05:18:30]OFD Sender: No OFD packet to send [05:18:35]OFD Sender: No OFD packet to send [05:18:40]OFD Sender: No OFD packet to send [05:18:45]OFD Sender: No OFD packet to send [05:18:50]OFD Sender: No OFD packet to send [05:18:55]OFD Sender: No OFD packet to send [05:19:00]OFD Sender: No OFD packet to send [05:19:06]OFD Sender: No OFD packet to send [05:19:11]OFD Sender: No OFD packet to send [05:19:16]OFD Sender: No OFD packet to send [05:19:21]OFD Sender: No OFD packet to send [05:19:26]OFD Sender: No OFD packet to send [05:19:31]OFD Sender: No OFD packet to send [05:19:36]OFD Sender: No OFD packet to send [05:19:41]OFD Sender: No OFD packet to send [05:19:46]OFD Sender: No OFD packet to send [05:19:51]OFD Sender: No OFD packet to send [05:19:56]OFD Sender: No OFD packet to send [05:20:01]OFD Sender: No OFD packet to send [05:20:06]OFD Sender: No OFD packet to send [05:20:11]OFD Sender: No OFD packet to send [05:20:16]OFD Sender: No OFD packet to send [05:20:21]OFD Sender: No OFD packet to send [05:20:26]OFD Sender: No OFD packet to send [05:20:31]OFD Sender: No OFD packet to send [05:20:36]OFD Sender: No OFD packet to send [05:20:41]OFD Sender: No OFD packet to send [05:20:46]OFD Sender: No OFD packet to send [05:20:51]OFD Sender: No OFD packet to send [05:20:56]OFD Sender: No OFD packet to send [05:21:01]OFD Sender: No OFD packet to send [05:21:06]OFD Sender: No OFD packet to send [05:21:11]OFD Sender: No OFD packet to send [05:21:16]OFD Sender: No OFD packet to send [05:21:21]OFD Sender: No OFD packet to send [05:21:26]OFD Sender: No OFD packet to send [05:21:31]OFD Sender: No OFD packet to send [05:21:36]OFD Sender: No OFD packet to send [05:21:41]OFD Sender: No OFD packet to send [05:21:46]OFD Sender: No OFD packet to send [05:21:51]OFD Sender: No OFD packet to send [05:21:56]OFD Sender: No OFD packet to send [05:22:01]OFD Sender: No OFD packet to send [05:22:06]OFD Sender: No OFD packet to send [05:22:11]OFD Sender: No OFD packet to send [05:22:16]OFD Sender: No OFD packet to send [05:22:21]OFD Sender: No OFD packet to send [05:22:26]OFD Sender: No OFD packet to send [05:22:31]OFD Sender: No OFD packet to send [05:22:36]OFD Sender: No OFD packet to send [05:22:41]OFD Sender: No OFD packet to send [05:22:46]OFD Sender: No OFD packet to send [05:22:51]OFD Sender: No OFD packet to send [05:22:56]OFD Sender: No OFD packet to send [05:23:01]OFD Sender: No OFD packet to send [05:23:06]OFD Sender: No OFD packet to send [05:23:11]OFD Sender: No OFD packet to send [05:23:16]OFD Sender: No OFD packet to send [05:23:21]OFD Sender: No OFD packet to send [05:23:26]OFD Sender: No OFD packet to send [05:23:31]OFD Sender: No OFD packet to send [05:23:36]OFD Sender: No OFD packet to send [05:23:41]OFD Sender: No OFD packet to send [05:23:46]OFD Sender: No OFD packet to send [05:23:51]OFD Sender: No OFD packet to send [05:23:56]OFD Sender: No OFD packet to send [05:24:01]OFD Sender: No OFD packet to send [05:24:06]OFD Sender: No OFD packet to send [05:24:11]OFD Sender: No OFD packet to send [05:24:16]OFD Sender: No OFD packet to send [05:24:21]OFD Sender: No OFD packet to send [05:24:26]OFD Sender: No OFD packet to send [05:24:31]OFD Sender: No OFD packet to send [05:24:35]accept exits with 8 [05:24:35]New connection [05:24:35]New thread 3067350372 created [05:24:35]Thread 3067207012 joined [05:24:35]Waiting for new connection... [05:24:35] Sock 8.Parse request [05:24:35]Sock 8.Check first char [05:24:35]Sock 8.First char is OK [05:24:35]request: POST /json_proto HTTP/1.0 [05:24:35]Method: POST [05:24:35]URL: /json_proto [05:24:35]Method is POST - this is cgi request [05:24:35]url: /json_proto [05:24:35]query_string will be loaded in cgi processing [05:24:35]execute_cgi json_proto POST (null) [05:24:35]execute_cgi path=json_proto method=POST [05:24:35]POST find Content-Length [05:24:35]Host: 172.17.41.136:8080 [05:24:35]Content-Length: 621 [05:24:35]Content-Type: application/json [05:24:35] [05:24:35]POST finish read [05:24:35]Found Content-Length = 621 [05:24:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)344352", "tax_sys" : 0, "items" : [ { "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 144.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:24:35]execute_script... [05:24: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 : (3)344352", "tax_sys" : 0, "items" : [ { "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 144.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:24:35]POST & json_proto [05:24:35]process_json_proto [05:24:35]json parsed OK: [05:24:35]protocol is kg_v1.0 [05:24:35]action value=close_receipt [05:24:35]process_action close_receipt [05:24:35]cmd_close_receipt [05:24:35]MH_GetDate [05:24:35]Write to MH i2c: F0 00 00 A8 07 9E [05:24:35]Write i2c OK [05:24:35]MH_I2C_Read... [05:24:35]Read from MH i2c: F0 [05:24:35]MH_I2C_Read... [05:24:35]Read from MH i2c: F0 09 00 [05:24:35]MH_I2C_Read... [05:24:35]Read from MH i2c: F0 09 00 A8 07 00 94 9E F3 66 1B D0 5A 64 DB [05:24:35]GetLastDocTimeStamp 1727237760 [05:24:35]current date 1727241876 [05:24:35]FM_GetShiftState [05:24:35]SAM_PROTO_GetShiftState [05:24:35]wFMCommunicate request_size=4 [05:24:35]MH_SAM_APDU [05:24:35]CAPDU: 80 13 01 00 [05:24:35]Write to MH i2c: E2 08 00 A9 07 80 13 01 00 00 00 00 00 2D [05:24:35]Write i2c OK [05:24:35]MH_I2C_Read... [05:24:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:24:35]Read from MH i2c: E2 [05:24:35]MH_I2C_Read... [05:24:35]Read from MH i2c: E2 0E 00 [05:24:35]MH_I2C_Read... [05:24:35]Read from MH i2c: E2 0E 00 A9 07 00 09 00 01 63 60 F3 66 00 00 00 00 90 00 55 [05:24:35]RAPDU: 09 00 01 63 60 F3 66 00 00 00 00 90 00 [05:24:35]wFMCommunicate OK [05:24:35]SAM_PROTO_GetShiftState done [05:24:35]FM_GetShiftState done [05:24:35]opened in 1727225955 [05:24:35]opened+sec_in_day 1727312355 [05:24:35]quantity*price = 14400 [05:24:35]sum+1 = 14401 [05:24:35]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 144.00 НСП 1% : 1.27 НДС 12% : 15.29 Наличными: 144.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 21 25.09.2024 05:24 Смена: 474 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 116165 ФПД: 22967462836994 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240925T052436&type=1&operation_type=1&fn_number=0000000000871830&fd_number=116165&fm=22967462836994&tin=02508201610067®Number=0000000000091831&sum=14400 0 [05:24:36]StoreToDocumentArchive [05:24:36]shift 474 fd 116165 [05:24:36]save to /storage/0474/doc_00116165 [05:24:36]save last doc name /storage/0474/doc_00116165 to /storage/kkm_last_doc_name [05:24:36]save OK [05:24:36]Clear old archive folders... [05:24:36]ProcessDocumentItem done err = 0, tmpTLVsize=273 [05:24:36]tlvbuf is 018CE0E0 [05:24:36]SAM_PROTO_ClearQueue [05:24:36]wFMCommunicate request_size=4 [05:24:36]MH_SAM_APDU [05:24:36]CAPDU: 80 09 00 00 [05:24:36]Write to MH i2c: E2 08 00 B6 07 80 09 00 00 00 00 00 00 2F [05:24:36]Write i2c OK [05:24:36]MH_I2C_Read... [05:24:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [05:24:36]Read from MH i2c: E2 [05:24:36]MH_I2C_Read... [05:24:36]Read from MH i2c: E2 03 00 [05:24:36]MH_I2C_Read... [05:24:36]Read from MH i2c: E2 03 00 B6 07 00 90 00 31 [05:24:36]RAPDU: 90 00 [05:24:36]wFMCommunicate OK [05:24:36]SAM_PROTO_ClearQueue done [05:24:36]KKMCreateOFDPacket [05:24:36]OFDProtocolAddRootSTLVToBuf [05:24:36]FM_MakeSignedData [05:24:36]FM_MakeSignedData [05:24:36]SAM_PROTO_SignData [05:24:36]wFMCommunicate request_size=4 [05:24:36]MH_SAM_APDU [05:24:36]CAPDU: 80 0D 01 02 [05:24:36]Write to MH i2c: E2 08 00 B7 07 80 0D 01 02 00 00 00 00 37 [05:24:36]Write i2c OK [05:24:36]MH_I2C_Read... [05:24:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [05:24:36]Read from MH i2c: E2 [05:24:36]MH_I2C_Read... [05:24:36]Read from MH i2c: E2 03 00 [05:24:36]MH_I2C_Read... [05:24:36]Read from MH i2c: E2 03 00 B7 07 00 90 00 32 [05:24:36]RAPDU: 90 00 [05:24:36]wFMCommunicate OK [05:24:36]wFMCommunicate request_size=255 [05:24:36]MH_SAM_APDU [05:24:36]CAPDU: 80 0D 02 02 FA 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 38 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 00 00 00 F4 03 04 00 94 9E F3 66 0E 04 04 00 DA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 [05:24:36]Write to MH i2c: E2 02 01 B8 07 80 0D 02 02 FA 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 38 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 00 00 00 F4 03 04 00 94 9E F3 66 0E 04 04 00 DA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 00 00 19 [05:24:36]Write i2c OK [05:24:36]MH_I2C_Read... [05:24:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:24:36]Read from MH i2c: E2 [05:24:36]MH_I2C_Read... [05:24:36]Read from MH i2c: E2 03 00 [05:24:36]MH_I2C_Read... [05:24:36]Read from MH i2c: E2 03 00 B8 07 00 90 00 33 [05:24:36]RAPDU: 90 00 [05:24:36]wFMCommunicate OK [05:24:36]wFMCommunicate request_size=32 [05:24:36]MH_SAM_APDU [05:24:36]CAPDU: 80 0D 02 02 1B 30 30 30 38 37 31 38 33 30 10 04 04 00 C5 C5 01 00 35 04 06 00 14 E3 87 76 BB 02 [05:24:36]Write to MH i2c: E2 23 00 B9 07 80 0D 02 02 1B 00 30 30 30 38 37 31 38 33 30 10 04 04 00 C5 C5 01 00 35 04 06 00 14 E3 87 76 BB 02 00 00 CE [05:24:36]Write i2c OK [05:24:36]MH_I2C_Read... [05:24:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:24:36]Read from MH i2c: E2 [05:24:36]MH_I2C_Read... [05:24:36]Read from MH i2c: E2 03 00 [05:24:36]MH_I2C_Read... [05:24:36]Read from MH i2c: E2 03 00 B9 07 00 90 00 34 [05:24:36]RAPDU: 90 00 [05:24:36]wFMCommunicate OK [05:24:36]wFMCommunicate request_size=4 [05:24:36]MH_SAM_APDU [05:24:36]CAPDU: 80 0D 03 02 [05:24:36]Write to MH i2c: E2 08 00 BA 07 80 0D 03 02 00 00 00 00 3C [05:24:36]Write i2c OK [05:24:36]MH_I2C_Read... [05:24:36]OFD Sender: No OFD packet to send [05:24:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [05:24:36]Read from MH i2c: E2 [05:24:36]MH_I2C_Read... [05:24:36]Read from MH i2c: E2 0B 00 [05:24:36]MH_I2C_Read... [05:24:36]Read from MH i2c: E2 0B 00 BA 07 00 50 73 7E 9D A4 23 64 68 90 00 AE [05:24:36]RAPDU: 50 73 7E 9D A4 23 64 68 90 00 [05:24:36]wFMCommunicate OK [05:24:36]SAM_PROTO_SignData done [05:24:36]FM_MakeSignedData done [05:24:36]CreateOFDProtocolMessage [05:24:36]wFMCommunicate request_size=4 [05:24:36]MH_SAM_APDU [05:24:36]CAPDU: 80 11 00 00 [05:24:36]Write to MH i2c: E2 08 00 BB 07 80 11 00 00 00 00 00 00 3C [05:24:36]Write i2c OK [05:24:36]MH_I2C_Read... [05:24:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:24:36]Read from MH i2c: E2 [05:24:36]MH_I2C_Read... [05:24:36]Read from MH i2c: E2 17 00 [05:24:36]MH_I2C_Read... [05:24:36]Read from MH i2c: E2 17 00 BB 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 8A [05:24:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [05:24:36]wFMCommunicate OK [05:24:36]CreateOFDProtocolMessage done [05:24:36]OFDSenderStorePacket 116165 [05:24:36]StoreOFDPacket docnum=116165 [05:24:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 25 01 00 00 3D C6 1D 01 7E 83 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 38 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 00 00 00 F4 03 04 00 94 9E F3 66 0E 04 04 00 DA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 C5 C5 01 00 35 04 06 00 14 E3 87 76 BB 02 50 73 7E 9D A4 23 64 68 [05:24:36]CheckFolder [05:24:36]dirname=/storage/ofd_packets [05:24:36]CheckFolder done [05:24:36]ProducePacketName [05:24:36]name=ofd_packets/00116165 [05:24:36]NVStorageSaveData ofd_packets/00116165 [05:24:36]File name is /storage/ofd_packets/00116165 [05:24:36]Write 323 bytes [05:24:36]NVStorageSaveData done [05:24:36]OFDSenderStorePacket done [05:24:36]KKMCreateOFDPacket done [05:24:36]NVStorageSaveData kkm_last_timestamp [05:24:36]File name is /storage/kkm_last_timestamp [05:24:36]Write 4 bytes [05:24:36]NVStorageSaveData done [05:24:36]ExternCall_PrintAddStr [05:24:36]wPrintStart [05:24:36]Write to MH i2c: 01 00 00 BC 07 C3 [05:24:36]Write i2c OK [05:24:36]MH_I2C_Read... [05:24:36]Read from MH i2c: 01 [05:24:36]MH_I2C_Read... [05:24:36]Read from MH i2c: 01 07 00 [05:24:36]MH_I2C_Read... [05:24:36]Read from MH i2c: 01 07 00 BC 07 00 00 00 00 00 FF 0F D8 [05:24:36]RasterBufferAndPrint [05:24:36]line Счет N : (3)344352 [05:24:36]line ИНН: 02508201610067 [05:24:36]line Контрольно-Кассовый Чек [05:24:36]line ПРОДАЖА [05:24:36]line Товар: 48743570 [05:24:36]line Сигареты Winston XStyle Blue [05:24:36]line 1.000 * 144.00 [05:24:36]line = 144.00 [05:24:36]line НДС 12% НСП 1% [05:24:36]line > о реализуемом товаре [05:24:36]line ИТОГО: 144.00 [05:24:36]line НСП 1% : 1.27 [05:24:36]line НДС 12% : 15.29 [05:24:36]line Наличными: 144.00 [05:24:36]line Безнал.: 0.00 [05:24:36]line Место: АЗС № 90 "Партнер Нефть" [05:24:36]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [05:24:36]line СНО: Общий режим [05:24:36]line Чек 21 25.09.2024 05:24 [05:24:36]line Смена: 474 ФФД: 1.0 [05:24:36]line ЗНМ: 0300000120 [05:24:36]line РНМ: 0000000000091831 [05:24:36]line Версия ККМ: 001 [05:24:36]line ФМ: 0000000000871830 [05:24:36]line ФД: 116165 [05:24:36]line ФПД: 22967462836994 [05:24:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240925T052436&type=1&operation_type=1&fn_number=0000000000871830&fd_number=116165&fm=22967462836994&tin=02508201610067®Number=0000000000091831&sum=14400 [05:24:36]line 0 [05:24:36]written 0, free lines is 4095 [05:24:36]OFD Sender: Processing packet 116165 [packets to send 482, broken 481] [05:24:36]ProducePacketName [05:24:36]name=ofd_packets/00116165 [05:24:36]OFD Sender: To server: pG, [05:24:36]CommunicateWithHost lk.salyk.kg:30040 [05:24:36]ConnectInit lk.salyk.kg [05:24:37]Connected sock=11 [05:24:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 25 01 00 00 3D C6 1D 01 7E 83 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 38 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 00 00 00 F4 03 04 00 94 9E F3 66 0E 04 04 00 DA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 C5 C5 01 00 35 04 06 00 14 E3 87 76 BB 02 50 73 7E 9D A4 23 64 68 [05:24:37]Write to MH i2c: 01 00 00 E3 07 EA [05:24:37]Write i2c OK [05:24:37]MH_I2C_Read... [05:24:37]Read from MH i2c: 01 [05:24:37]MH_I2C_Read... [05:24:37]Read from MH i2c: 01 07 00 [05:24:37]MH_I2C_Read... [05:24:37]Read from MH i2c: 01 07 00 E3 07 00 00 00 00 00 74 0C 71 [05:24:37]RasterBufferAndPrint [05:24:37]line [05:24:37]line [05:24:37]line [05:24:37]line [05:24:37]line [05:24:37]written 0, free lines is 3191 [05:24:37]MH_Cut [05:24:37]Write to MH i2c: D1 01 00 EA 07 01 C3 [05:24:37]Write i2c OK [05:24:37]MH_I2C_Read... [05:24:37]Read from MH i2c: D1 [05:24:37]MH_I2C_Read... [05:24:37]Read from MH i2c: D1 01 00 [05:24:37]MH_I2C_Read... [05:24:37]Read from MH i2c: D1 01 00 EA 07 00 C2 [05:24:37]Write to MH i2c: 01 00 00 EB 07 F2 [05:24:37]Write i2c OK [05:24:37]MH_I2C_Read... [05:24:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 64 15 47 00 B1 AC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 C5 C5 01 00 F4 03 04 00 D1 43 F3 66 B6 04 01 00 00 1E BE 60 08 30 E9 4E 3A [05:24:37]CommunicateWithHost err = 0 [05:24:37]CheckOFDResponse [05:24:37]1017 (14) - 77093643461234 [05:24:37]1041 (16) - 0000000000871830 [05:24:37]1040 (4) - 116165 [05:24:37]1012 (4) - 24.09.2024 22:57 [05:24:37]1206 (1) - 0 [05:24:37]OFD Sender: Remove packet 116165 [05:24:37]ProducePacketName [05:24:37]name=ofd_packets/00116165 [05:24:37]NVStorageDeleteData [05:24:37]OFD Sender: No OFD packet to send [05:24:38]*** Cut start [05:24:38]*** Partial cut [05:24:38]*** CUTSNS_PIN = 1 [05:24:38]*** CUTSNS_PIN = 0 [05:24:38]*** Brake cut motor [05:24:39]Read from MH i2c: 01 [05:24:39]MH_I2C_Read... [05:24:39]*** Stop cut motor [05:24:39]*** Cut end [05:24:39]Read from MH i2c: 01 07 00 [05:24:39]MH_I2C_Read... [05:24:39]Read from MH i2c: 01 07 00 EB 07 00 00 00 00 00 FF 0F 07 [05:24:39]process_action close_receipt done [05:24:39]requested_data is exist [05:24:39]produce_requested_data [05:24:39]requested_item fm.sn is exist - process it [05:24:39]wFMCommunicate request_size=4 [05:24:39]MH_SAM_APDU [05:24:39]CAPDU: 80 11 00 00 [05:24:39]Write to MH i2c: E2 08 00 EC 07 80 11 00 00 00 00 00 00 6D [05:24:39]Write i2c OK [05:24:39]MH_I2C_Read... [05:24:39]Read from MH i2c: E2 [05:24:39]MH_I2C_Read... [05:24:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:24:39]Read from MH i2c: E2 17 00 [05:24:39]MH_I2C_Read... [05:24:39]Read from MH i2c: E2 17 00 EC 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 BB [05:24:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [05:24:39]wFMCommunicate OK [05:24:39]requested_item fd.num is exist - process it [05:24:39]SAM_PROTO_GetFieldsCounters [05:24:39]wFMCommunicate request_size=4 [05:24:39]MH_SAM_APDU [05:24:39]CAPDU: 80 13 00 00 [05:24:39]Write to MH i2c: E2 08 00 ED 07 80 13 00 00 00 00 00 00 70 [05:24:39]Write i2c OK [05:24:39]MH_I2C_Read... [05:24:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [05:24:39]Read from MH i2c: E2 [05:24:39]MH_I2C_Read... [05:24:39]Read from MH i2c: E2 62 00 [05:24:39]MH_I2C_Read... [05:24:39]Read from MH i2c: E2 62 00 ED 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 C5 C5 01 00 0E 04 04 00 DA 01 00 00 12 04 04 00 15 00 00 00 5E 04 04 00 15 00 00 00 57 04 04 00 16 00 00 00 19 04 04 00 00 00 00 00 90 00 2E [05:24:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 C5 C5 01 00 0E 04 04 00 DA 01 00 00 12 04 04 00 15 00 00 00 5E 04 04 00 15 00 00 00 57 04 04 00 16 00 00 00 19 04 04 00 00 00 00 00 90 00 [05:24:39]wFMCommunicate OK [05:24:39]SAM_PROTO_GetFieldsCounters done [05:24:39]requested_item shift.num is exist - process it [05:24:39]requested_item shift.opened is exist - process it [05:24:39]req_shift_opened [05:24:39]FM_GetShiftState [05:24:39]SAM_PROTO_GetShiftState [05:24:39]wFMCommunicate request_size=4 [05:24:39]MH_SAM_APDU [05:24:39]CAPDU: 80 13 01 00 [05:24:39]Write to MH i2c: E2 08 00 EE 07 80 13 01 00 00 00 00 00 72 [05:24:39]Write i2c OK [05:24:39]MH_I2C_Read... [05:24:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:24:39]Read from MH i2c: E2 [05:24:39]MH_I2C_Read... [05:24:39]Read from MH i2c: E2 0E 00 [05:24:39]MH_I2C_Read... [05:24:39]Read from MH i2c: E2 0E 00 EE 07 00 09 00 01 63 60 F3 66 00 00 00 00 90 00 9A [05:24:39]RAPDU: 09 00 01 63 60 F3 66 00 00 00 00 90 00 [05:24:39]wFMCommunicate OK [05:24:39]SAM_PROTO_GetShiftState done [05:24:39]FM_GetShiftState done [05:24:39]req_shift_opened done [05:24:39]requested_item shift.open_date is exist - process it [05:24:39]req_shift_open_date [05:24:39]req_shift_open_date done [05:24:39]produce_requested_data done [05:24:39]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":116165,"shift.num":474,"shift.opened":1,"shift.open_date":1727225955} [05:24:39]process_action_free close_receipt [05:24:39]json_value_free [05:24:39]json_value_free done [05:24:39]process_json_proto returns [05:24:39]Send response to host [05:24:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":116165,"shift.num":474,"shift.opened":1,"shift.open_date":1727225955}}} [05:24:39]free response buf [05:24:39]execute_script done [05:24:39]execute_script returns [05:24:39]free content buf [05:24:39]Sock 8.Close socket [05:24:39]Sock 8.Thread stoped [05:24:42]OFD Sender: No OFD packet to send [05:24:47]OFD Sender: No OFD packet to send [05:24:52]OFD Sender: No OFD packet to send [05:24:58]OFD Sender: No OFD packet to send [05:25:03]OFD Sender: No OFD packet to send [05:25:08]OFD Sender: No OFD packet to send [05:25:13]OFD Sender: No OFD packet to send [05:25:18]OFD Sender: No OFD packet to send [05:25:23]OFD Sender: No OFD packet to send [05:25:28]OFD Sender: No OFD packet to send [05:25:33]OFD Sender: No OFD packet to send [05:25:38]OFD Sender: No OFD packet to send [05:25:43]OFD Sender: No OFD packet to send [05:25:48]OFD Sender: No OFD packet to send [05:25:53]OFD Sender: No OFD packet to send [05:25:58]OFD Sender: No OFD packet to send [05:26:03]OFD Sender: No OFD packet to send [05:26:08]OFD Sender: No OFD packet to send [05:26:13]OFD Sender: No OFD packet to send [05:26:18]OFD Sender: No OFD packet to send [05:26:23]OFD Sender: No OFD packet to send [05:26:28]OFD Sender: No OFD packet to send [05:26:33]OFD Sender: No OFD packet to send [05:26:38]OFD Sender: No OFD packet to send [05:26:43]OFD Sender: No OFD packet to send [05:26:48]OFD Sender: No OFD packet to send [05:26:53]OFD Sender: No OFD packet to send [05:26:58]OFD Sender: No OFD packet to send [05:27:03]OFD Sender: No OFD packet to send [05:27:08]OFD Sender: No OFD packet to send [05:27:13]OFD Sender: No OFD packet to send [05:27:18]OFD Sender: No OFD packet to send [05:27:23]OFD Sender: No OFD packet to send [05:27:28]OFD Sender: No OFD packet to send [05:27:33]OFD Sender: No OFD packet to send [05:27:38]OFD Sender: No OFD packet to send [05:27:43]OFD Sender: No OFD packet to send [05:27:48]OFD Sender: No OFD packet to send [05:27:53]OFD Sender: No OFD packet to send [05:27:58]OFD Sender: No OFD packet to send [05:28:03]OFD Sender: No OFD packet to send [05:28:08]OFD Sender: No OFD packet to send [05:28:13]OFD Sender: No OFD packet to send [05:28:18]OFD Sender: No OFD packet to send [05:28:23]OFD Sender: No OFD packet to send [05:28:28]OFD Sender: No OFD packet to send [05:28:33]OFD Sender: No OFD packet to send [05:28:38]OFD Sender: No OFD packet to send [05:28:43]OFD Sender: No OFD packet to send [05:28:48]OFD Sender: No OFD packet to send [05:28:53]OFD Sender: No OFD packet to send [05:28:58]OFD Sender: No OFD packet to send [05:29:03]OFD Sender: No OFD packet to send [05:29:08]OFD Sender: No OFD packet to send [05:29:13]OFD Sender: No OFD packet to send [05:29:18]OFD Sender: No OFD packet to send [05:29:23]OFD Sender: No OFD packet to send [05:29:28]OFD Sender: No OFD packet to send [05:29:33]OFD Sender: No OFD packet to send [05:29:38]OFD Sender: No OFD packet to send [05:29:43]OFD Sender: No OFD packet to send [05:29:48]OFD Sender: No OFD packet to send [05:29:53]OFD Sender: No OFD packet to send [05:29:58]OFD Sender: No OFD packet to send [05:30:03]OFD Sender: No OFD packet to send [05:30:08]OFD Sender: No OFD packet to send [05:30:13]OFD Sender: No OFD packet to send [05:30:18]OFD Sender: No OFD packet to send [05:30:23]OFD Sender: No OFD packet to send [05:30:28]OFD Sender: No OFD packet to send [05:30:33]OFD Sender: No OFD packet to send [05:30:38]OFD Sender: No OFD packet to send [05:30:43]OFD Sender: No OFD packet to send [05:30:48]OFD Sender: No OFD packet to send [05:30:53]OFD Sender: No OFD packet to send [05:30:58]OFD Sender: No OFD packet to send [05:31:03]OFD Sender: No OFD packet to send [05:31:08]OFD Sender: No OFD packet to send [05:31:13]OFD Sender: No OFD packet to send [05:31:18]OFD Sender: No OFD packet to send [05:31:23]OFD Sender: No OFD packet to send [05:31:28]OFD Sender: No OFD packet to send [05:31:33]OFD Sender: No OFD packet to send [05:31:38]OFD Sender: No OFD packet to send [05:31:43]OFD Sender: No OFD packet to send [05:31:48]OFD Sender: No OFD packet to send [05:31:53]OFD Sender: No OFD packet to send [05:31:58]OFD Sender: No OFD packet to send [05:32:04]OFD Sender: No OFD packet to send [05:32:09]OFD Sender: No OFD packet to send [05:32:14]OFD Sender: No OFD packet to send [05:32:19]OFD Sender: No OFD packet to send [05:32:24]OFD Sender: No OFD packet to send [05:32:29]OFD Sender: No OFD packet to send [05:32:34]OFD Sender: No OFD packet to send [05:32:39]OFD Sender: No OFD packet to send [05:32:44]OFD Sender: No OFD packet to send [05:32:49]OFD Sender: No OFD packet to send [05:32:54]OFD Sender: No OFD packet to send [05:32:59]OFD Sender: No OFD packet to send [05:33:04]OFD Sender: No OFD packet to send [05:33:09]OFD Sender: No OFD packet to send [05:33:14]OFD Sender: No OFD packet to send [05:33:19]OFD Sender: No OFD packet to send [05:33:24]OFD Sender: No OFD packet to send [05:33:29]OFD Sender: No OFD packet to send [05:33:34]OFD Sender: No OFD packet to send [05:33:39]OFD Sender: No OFD packet to send [05:33:44]OFD Sender: No OFD packet to send [05:33:49]OFD Sender: No OFD packet to send [05:33:54]OFD Sender: No OFD packet to send [05:33:59]OFD Sender: No OFD packet to send [05:34:04]OFD Sender: No OFD packet to send [05:34:09]OFD Sender: No OFD packet to send [05:34:14]OFD Sender: No OFD packet to send [05:34:19]OFD Sender: No OFD packet to send [05:34:24]OFD Sender: No OFD packet to send [05:34:29]OFD Sender: No OFD packet to send [05:34:34]OFD Sender: No OFD packet to send [05:34:39]OFD Sender: No OFD packet to send [05:34:44]OFD Sender: No OFD packet to send [05:34:49]OFD Sender: No OFD packet to send [05:34:54]OFD Sender: No OFD packet to send [05:34:59]OFD Sender: No OFD packet to send [05:35:04]OFD Sender: No OFD packet to send [05:35:09]OFD Sender: No OFD packet to send [05:35:14]OFD Sender: No OFD packet to send [05:35:19]OFD Sender: No OFD packet to send [05:35:24]OFD Sender: No OFD packet to send [05:35:29]OFD Sender: No OFD packet to send [05:35:34]OFD Sender: No OFD packet to send [05:35:39]OFD Sender: No OFD packet to send [05:35:44]OFD Sender: No OFD packet to send [05:35:49]OFD Sender: No OFD packet to send [05:35:54]OFD Sender: No OFD packet to send [05:35:59]OFD Sender: No OFD packet to send [05:36:04]OFD Sender: No OFD packet to send [05:36:09]OFD Sender: No OFD packet to send [05:36:14]OFD Sender: No OFD packet to send [05:36:19]OFD Sender: No OFD packet to send [05:36:24]OFD Sender: No OFD packet to send [05:36:29]OFD Sender: No OFD packet to send [05:36:34]OFD Sender: No OFD packet to send [05:36:39]OFD Sender: No OFD packet to send [05:36:44]OFD Sender: No OFD packet to send [05:36:49]OFD Sender: No OFD packet to send [05:36:54]OFD Sender: No OFD packet to send [05:36:59]OFD Sender: No OFD packet to send [05:37:04]OFD Sender: No OFD packet to send [05:37:09]OFD Sender: No OFD packet to send [05:37:14]OFD Sender: No OFD packet to send [05:37:19]OFD Sender: No OFD packet to send [05:37:24]OFD Sender: No OFD packet to send [05:37:29]OFD Sender: No OFD packet to send [05:37:34]OFD Sender: No OFD packet to send [05:37:39]OFD Sender: No OFD packet to send [05:37:44]OFD Sender: No OFD packet to send [05:37:49]OFD Sender: No OFD packet to send [05:37:54]OFD Sender: No OFD packet to send [05:37:59]OFD Sender: No OFD packet to send [05:38:04]OFD Sender: No OFD packet to send [05:38:09]OFD Sender: No OFD packet to send [05:38:14]OFD Sender: No OFD packet to send [05:38:19]OFD Sender: No OFD packet to send [05:38:24]OFD Sender: No OFD packet to send [05:38:29]OFD Sender: No OFD packet to send [05:38:34]OFD Sender: No OFD packet to send [05:38:39]OFD Sender: No OFD packet to send [05:38:44]OFD Sender: No OFD packet to send [05:38:49]OFD Sender: No OFD packet to send [05:38:54]OFD Sender: No OFD packet to send [05:38:59]OFD Sender: No OFD packet to send [05:39:04]OFD Sender: No OFD packet to send [05:39:10]OFD Sender: No OFD packet to send [05:39:15]OFD Sender: No OFD packet to send [05:39:20]OFD Sender: No OFD packet to send [05:39:25]OFD Sender: No OFD packet to send [05:39:30]OFD Sender: No OFD packet to send [05:39:35]OFD Sender: No OFD packet to send [05:39:40]OFD Sender: No OFD packet to send [05:39:45]OFD Sender: No OFD packet to send [05:39:50]OFD Sender: No OFD packet to send [05:39:55]OFD Sender: No OFD packet to send [05:40:00]OFD Sender: No OFD packet to send [05:40:05]OFD Sender: No OFD packet to send [05:40:10]OFD Sender: No OFD packet to send [05:40:15]OFD Sender: No OFD packet to send [05:40:20]OFD Sender: No OFD packet to send [05:40:25]OFD Sender: No OFD packet to send [05:40:30]OFD Sender: No OFD packet to send [05:40:35]OFD Sender: No OFD packet to send [05:40:40]OFD Sender: No OFD packet to send [05:40:45]OFD Sender: No OFD packet to send [05:40:50]OFD Sender: No OFD packet to send [05:40:55]OFD Sender: No OFD packet to send [05:41:00]OFD Sender: No OFD packet to send [05:41:05]OFD Sender: No OFD packet to send [05:41:10]OFD Sender: No OFD packet to send [05:41:15]OFD Sender: No OFD packet to send [05:41:20]OFD Sender: No OFD packet to send [05:41:25]OFD Sender: No OFD packet to send [05:41:30]OFD Sender: No OFD packet to send [05:41:40]OFD Sender: No OFD packet to send [05:41:45]OFD Sender: No OFD packet to send [05:41:50]OFD Sender: No OFD packet to send [05:41:55]OFD Sender: No OFD packet to send [05:42:00]OFD Sender: No OFD packet to send [05:42:05]OFD Sender: No OFD packet to send [05:42:10]OFD Sender: No OFD packet to send [05:42:15]OFD Sender: No OFD packet to send [05:42:20]OFD Sender: No OFD packet to send [05:42:25]OFD Sender: No OFD packet to send [05:42:30]OFD Sender: No OFD packet to send [05:42:35]OFD Sender: No OFD packet to send [05:42:40]OFD Sender: No OFD packet to send [05:42:45]OFD Sender: No OFD packet to send [05:42:50]OFD Sender: No OFD packet to send [05:42:55]OFD Sender: No OFD packet to send [05:43:00]OFD Sender: No OFD packet to send [05:43:05]OFD Sender: No OFD packet to send [05:43:10]OFD Sender: No OFD packet to send [05:43:15]OFD Sender: No OFD packet to send [05:43:20]OFD Sender: No OFD packet to send [05:43:25]OFD Sender: No OFD packet to send [05:43:30]OFD Sender: No OFD packet to send [05:43:35]OFD Sender: No OFD packet to send [05:43:40]OFD Sender: No OFD packet to send [05:43:45]OFD Sender: No OFD packet to send [05:43:49]ConnectInit Can't connect to host [05:43:50]OFD Sender: No OFD packet to send [05:43:55]OFD Sender: No OFD packet to send [05:44:00]OFD Sender: No OFD packet to send [05:44:05]OFD Sender: No OFD packet to send [05:44:10]OFD Sender: No OFD packet to send [05:44:15]OFD Sender: No OFD packet to send [05:44:20]OFD Sender: No OFD packet to send [05:44:25]OFD Sender: No OFD packet to send [05:44:30]OFD Sender: No OFD packet to send [05:44:35]OFD Sender: No OFD packet to send [05:44:40]OFD Sender: No OFD packet to send [05:44:45]OFD Sender: No OFD packet to send [05:44:50]OFD Sender: No OFD packet to send [05:44:55]OFD Sender: No OFD packet to send [05:45:00]OFD Sender: No OFD packet to send [05:45:05]OFD Sender: No OFD packet to send [05:45:10]OFD Sender: No OFD packet to send [05:45:15]OFD Sender: No OFD packet to send [05:45:20]OFD Sender: No OFD packet to send [05:45:25]OFD Sender: No OFD packet to send [05:45:30]OFD Sender: No OFD packet to send [05:45:35]OFD Sender: No OFD packet to send [05:45:40]OFD Sender: No OFD packet to send [05:45:45]OFD Sender: No OFD packet to send [05:45:50]OFD Sender: No OFD packet to send [05:45:55]OFD Sender: No OFD packet to send [05:46:00]OFD Sender: No OFD packet to send [05:46:05]OFD Sender: No OFD packet to send [05:46:10]OFD Sender: No OFD packet to send [05:46:16]OFD Sender: No OFD packet to send [05:46:21]OFD Sender: No OFD packet to send [05:46:26]OFD Sender: No OFD packet to send [05:46:31]OFD Sender: No OFD packet to send [05:46:36]OFD Sender: No OFD packet to send [05:46:41]OFD Sender: No OFD packet to send [05:46:46]OFD Sender: No OFD packet to send [05:46:51]OFD Sender: No OFD packet to send [05:46:56]OFD Sender: No OFD packet to send [05:47:01]OFD Sender: No OFD packet to send [05:47:06]OFD Sender: No OFD packet to send [05:47:11]OFD Sender: No OFD packet to send [05:47:16]OFD Sender: No OFD packet to send [05:47:21]OFD Sender: No OFD packet to send [05:47:26]OFD Sender: No OFD packet to send [05:47:31]OFD Sender: No OFD packet to send [05:47:36]OFD Sender: No OFD packet to send [05:47:41]OFD Sender: No OFD packet to send [05:47:46]OFD Sender: No OFD packet to send [05:47:51]OFD Sender: No OFD packet to send [05:47:56]OFD Sender: No OFD packet to send [05:48:01]OFD Sender: No OFD packet to send [05:48:06]OFD Sender: No OFD packet to send [05:48:11]OFD Sender: No OFD packet to send [05:48:16]OFD Sender: No OFD packet to send [05:48:21]OFD Sender: No OFD packet to send [05:48:26]OFD Sender: No OFD packet to send [05:48:31]OFD Sender: No OFD packet to send [05:48:36]OFD Sender: No OFD packet to send [05:48:41]OFD Sender: No OFD packet to send [05:48:46]OFD Sender: No OFD packet to send [05:48:51]OFD Sender: No OFD packet to send [05:48:56]OFD Sender: No OFD packet to send [05:49:01]OFD Sender: No OFD packet to send [05:49:06]OFD Sender: No OFD packet to send [05:49:11]OFD Sender: No OFD packet to send [05:49:16]OFD Sender: No OFD packet to send [05:49:21]OFD Sender: No OFD packet to send [05:49:26]OFD Sender: No OFD packet to send [05:49:31]OFD Sender: No OFD packet to send [05:49:36]OFD Sender: No OFD packet to send [05:49:41]OFD Sender: No OFD packet to send [05:49:46]OFD Sender: No OFD packet to send [05:49:51]OFD Sender: No OFD packet to send [05:49:56]OFD Sender: No OFD packet to send [05:50:01]OFD Sender: No OFD packet to send [05:50:06]OFD Sender: No OFD packet to send [05:50:11]OFD Sender: No OFD packet to send [05:50:16]OFD Sender: No OFD packet to send [05:50:21]OFD Sender: No OFD packet to send [05:50:26]OFD Sender: No OFD packet to send [05:50:31]OFD Sender: No OFD packet to send [05:50:36]OFD Sender: No OFD packet to send [05:50:41]OFD Sender: No OFD packet to send [05:50:46]OFD Sender: No OFD packet to send [05:50:51]OFD Sender: No OFD packet to send [05:50:56]OFD Sender: No OFD packet to send [05:51:01]OFD Sender: No OFD packet to send [05:51:06]OFD Sender: No OFD packet to send [05:51:11]OFD Sender: No OFD packet to send [05:51:16]OFD Sender: No OFD packet to send [05:51:21]OFD Sender: No OFD packet to send [05:51:26]OFD Sender: No OFD packet to send [05:51:31]OFD Sender: No OFD packet to send [05:51:36]OFD Sender: No OFD packet to send [05:51:41]OFD Sender: No OFD packet to send [05:51:46]OFD Sender: No OFD packet to send [05:51:51]OFD Sender: No OFD packet to send [05:51:56]OFD Sender: No OFD packet to send [05:52:01]OFD Sender: No OFD packet to send [05:52:06]OFD Sender: No OFD packet to send [05:52:11]OFD Sender: No OFD packet to send [05:52:16]OFD Sender: No OFD packet to send [05:52:21]OFD Sender: No OFD packet to send [05:52:26]OFD Sender: No OFD packet to send [05:52:31]accept exits with 9 [05:52:31]New connection [05:52:31]New thread 3067207012 created [05:52:31]Thread 3067350372 joined [05:52:31]Waiting for new connection... [05:52:31] Sock 9.Parse request [05:52:31]Sock 9.Check first char [05:52:31]Sock 9.First char is OK [05:52:31]request: POST /json_proto HTTP/1.0 [05:52:31]Method: POST [05:52:31]URL: /json_proto [05:52:31]Method is POST - this is cgi request [05:52:31]url: /json_proto [05:52:31]query_string will be loaded in cgi processing [05:52:31]execute_cgi json_proto POST (null) [05:52:31]execute_cgi path=json_proto method=POST [05:52:31]POST find Content-Length [05:52:31]Host: 172.17.41.136:8080 [05:52:31]Content-Length: 1922 [05:52:31]Content-Type: application/json [05:52:31] [05:52:31]POST finish read [05:52:31]Found Content-Length = 1922 [05:52:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)344353", "tax_sys" : 0, "items" : [ { "code": "5000159381178", "name": "\u0428\u043E\u043A \u0411\u0430\u0442\u043E\u043D\u0447\u0438\u043A \u0411\u0430\u0443\u043D\u0442\u0438 \u0422\u0440\u0438\u043E 82,5\u0433", "price" : 89.00, "quantity" : 1.000, "sum" : 89.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "46196613", "name": "\u0420/\u0436 Orbit XXL white c\u043E\u0447\u043D\u043E\u0435 \u044F\u0431\u043B\u043E\u043A\u043E 20,4\u0433", "price" : 51.00, "quantity" : 1.000, "sum" : 51.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000034730018", "name": "\u041A\u043E\u0444\u0435 \u0410\u043C\u0435\u0440\u0438\u043A\u0430\u043D\u043E (GABB TRADE)", "price" : 105.00, "quantity" : 1.000, "sum" : 105.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000036230011", "name": "\u041A\u043E\u0444\u0435 \u041B\u0430\u0442\u0442\u0435 XL(GABB TRADE)", "price" : 130.00, "quantity" : 2.000, "sum" : 260.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700041420145", "name": "\u0421\u0430\u043B\u0444\u0435\u0442\u043A\u0438 \u0432\u043B\u0430\u0436\u043D BEST GOLD 100\u0448\u0442", "price" : 190.00, "quantity" : 1.000, "sum" : 190.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 695.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:52:31]execute_script... [05:52:32]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)344353", "tax_sys" : 0, "items" : [ { "code": "5000159381178", "name": "\u0428\u043E\u043A \u0411\u0430\u0442\u043E\u043D\u0447\u0438\u043A \u0411\u0430\u0443\u043D\u0442\u0438 \u0422\u0440\u0438\u043E 82,5\u0433", "price" : 89.00, "quantity" : 1.000, "sum" : 89.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "46196613", "name": "\u0420/\u0436 Orbit XXL white c\u043E\u0447\u043D\u043E\u0435 \u044F\u0431\u043B\u043E\u043A\u043E 20,4\u0433", "price" : 51.00, "quantity" : 1.000, "sum" : 51.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000034730018", "name": "\u041A\u043E\u0444\u0435 \u0410\u043C\u0435\u0440\u0438\u043A\u0430\u043D\u043E (GABB TRADE)", "price" : 105.00, "quantity" : 1.000, "sum" : 105.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000036230011", "name": "\u041A\u043E\u0444\u0435 \u041B\u0430\u0442\u0442\u0435 XL(GABB TRADE)", "price" : 130.00, "quantity" : 2.000, "sum" : 260.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700041420145", "name": "\u0421\u0430\u043B\u0444\u0435\u0442\u043A\u0438 \u0432\u043B\u0430\u0436\u043D BEST GOLD 100\u0448\u0442", "price" : 190.00, "quantity" : 1.000, "sum" : 190.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 695.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:52:32]POST & json_proto [05:52:32]process_json_proto [05:52:32]json parsed OK: [05:52:32]protocol is kg_v1.0 [05:52:32]action value=close_receipt [05:52:32]process_action close_receipt [05:52:32]cmd_close_receipt [05:52:32]MH_GetDate [05:52:32]Write to MH i2c: F0 00 00 EF 07 E5 [05:52:32]OFD Sender: No OFD packet to send [05:52:32]Write i2c OK [05:52:32]MH_I2C_Read... [05:52:32]Read from MH i2c: F0 [05:52:32]MH_I2C_Read... [05:52:32]Read from MH i2c: F0 09 00 [05:52:32]MH_I2C_Read... [05:52:32]Read from MH i2c: F0 09 00 EF 07 00 21 A5 F3 66 1B D0 5A 64 B6 [05:52:32]GetLastDocTimeStamp 1727241876 [05:52:32]current date 1727243553 [05:52:32]FM_GetShiftState [05:52:32]SAM_PROTO_GetShiftState [05:52:32]wFMCommunicate request_size=4 [05:52:32]MH_SAM_APDU [05:52:32]CAPDU: 80 13 01 00 [05:52:32]Write to MH i2c: E2 08 00 F0 07 80 13 01 00 00 00 00 00 74 [05:52:32]Write i2c OK [05:52:32]MH_I2C_Read... [05:52:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:52:32]Read from MH i2c: E2 [05:52:32]MH_I2C_Read... [05:52:32]Read from MH i2c: E2 0E 00 [05:52:32]MH_I2C_Read... [05:52:32]Read from MH i2c: E2 0E 00 F0 07 00 09 00 01 63 60 F3 66 00 00 00 00 90 00 9C [05:52:32]RAPDU: 09 00 01 63 60 F3 66 00 00 00 00 90 00 [05:52:32]wFMCommunicate OK [05:52:32]SAM_PROTO_GetShiftState done [05:52:32]FM_GetShiftState done [05:52:32]opened in 1727225955 [05:52:32]opened+sec_in_day 1727312355 [05:52:32]quantity*price = 8900 [05:52:32]sum+1 = 8901 [05:52:32]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 46196613 Р/ж Orbit XXL white cочное яблоко 20,4г 1.000 * 51.00 = 51.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 2000034730018 Кофе Американо (GABB TRADE) 1.000 * 105.00 = 105.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 2000036230011 Кофе Латте XL(GABB TRADE) 2.000 * 130.00 = 260.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4700041420145 Салфетки влажн BEST GOLD 100шт 1.000 * 190.00 = 190.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 695.00 НСП 1% : 6.15 НДС 12% : 73.81 Наличными: 0.00 Безнал.: 695.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 22 25.09.2024 05:52 Смена: 474 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871830 ФД: 116166 ФПД: 249657208150385 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240925T055233&type=1&operation_type=1&fn_number=0000000000871830&fd_number=116166&fm=249657208150385&tin=02508201610067®Number=0000000000091831&sum=69500 0 [05:52:33]StoreToDocumentArchive [05:52:33]shift 474 fd 116166 [05:52:33]save to /storage/0474/doc_00116166 [05:52:33]save last doc name /storage/0474/doc_00116166 to /storage/kkm_last_doc_name [05:52:33]save OK [05:52:33]Clear old archive folders... [05:52:33]ProcessDocumentItem done err = 0, tmpTLVsize=749 [05:52:33]tlvbuf is 019C5260 [05:52:33]SAM_PROTO_ClearQueue [05:52:33]wFMCommunicate request_size=4 [05:52:33]MH_SAM_APDU [05:52:33]CAPDU: 80 09 00 00 [05:52:33]Write to MH i2c: E2 08 00 FD 07 80 09 00 00 00 00 00 00 76 [05:52:33]Write i2c OK [05:52:33]MH_I2C_Read... [05:52:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [05:52:33]Read from MH i2c: E2 [05:52:33]MH_I2C_Read... [05:52:33]Read from MH i2c: E2 03 00 [05:52:33]MH_I2C_Read... [05:52:33]Read from MH i2c: E2 03 00 FD 07 00 90 00 78 [05:52:33]RAPDU: 90 00 [05:52:33]wFMCommunicate OK [05:52:33]SAM_PROTO_ClearQueue done [05:52:33]KKMCreateOFDPacket [05:52:33]OFDProtocolAddRootSTLVToBuf [05:52:33]FM_MakeSignedData [05:52:33]FM_MakeSignedData [05:52:33]SAM_PROTO_SignData [05:52:33]wFMCommunicate request_size=4 [05:52:33]MH_SAM_APDU [05:52:33]CAPDU: 80 0D 01 02 [05:52:33]Write to MH i2c: E2 08 00 FE 07 80 0D 01 02 00 00 00 00 7E [05:52:33]Write i2c OK [05:52:33]MH_I2C_Read... [05:52:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [05:52:33]Read from MH i2c: E2 [05:52:33]MH_I2C_Read... [05:52:33]Read from MH i2c: E2 03 00 [05:52:33]MH_I2C_Read... [05:52:33]Read from MH i2c: E2 03 00 FE 07 00 90 00 79 [05:52:33]RAPDU: 90 00 [05:52:33]wFMCommunicate OK [05:52:33]wFMCommunicate request_size=255 [05:52:33]MH_SAM_APDU [05:52:33]CAPDU: 80 0D 02 02 FA 03 00 ED 02 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 35 30 30 30 31 35 39 33 38 31 31 37 38 06 04 34 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 91 D0 B0 D1 83 D0 BD D1 82 D0 B8 20 D0 A2 D1 80 D0 B8 D0 BE 20 38 32 2C 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C4 22 00 00 00 00 13 04 06 00 C4 22 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 74 00 8A 04 08 00 34 36 31 39 36 36 31 33 06 04 35 00 D0 A0 2F D0 B6 20 4F 72 62 69 74 20 58 58 4C 20 77 68 69 74 65 20 63 D0 BE D1 87 D0 BD D0 BE D0 B5 20 D1 8F D0 B1 D0 BB D0 BE D0 BA D0 BE 20 32 30 2C 34 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 13 00 00 00 00 13 04 06 00 EC 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 [05:52:33]Write to MH i2c: E2 02 01 FF 07 80 0D 02 02 FA 00 03 00 ED 02 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 35 30 30 30 31 35 39 33 38 31 31 37 38 06 04 34 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 91 D0 B0 D1 83 D0 BD D1 82 D0 B8 20 D0 A2 D1 80 D0 B8 D0 BE 20 38 32 2C 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C4 22 00 00 00 00 13 04 06 00 C4 22 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 74 00 8A 04 08 00 34 36 31 39 36 36 31 33 06 04 35 00 D0 A0 2F D0 B6 20 4F 72 62 69 74 20 58 58 4C 20 77 68 69 74 65 20 63 D0 BE D1 87 D0 BD D0 BE D0 B5 20 D1 8F D0 B1 D0 BB D0 BE D0 BA D0 BE 20 32 30 2C 34 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 13 00 00 00 00 13 04 06 00 EC 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 00 00 62 [05:52:33]Write i2c OK [05:52:33]MH_I2C_Read... [05:52:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:52:34]Read from MH i2c: E2 [05:52:34]MH_I2C_Read... [05:52:34]Read from MH i2c: E2 03 00 [05:52:34]MH_I2C_Read... [05:52:34]Read from MH i2c: E2 03 00 FF 07 00 90 00 7A [05:52:34]RAPDU: 90 00 [05:52:34]wFMCommunicate OK [05:52:34]wFMCommunicate request_size=255 [05:52:34]MH_SAM_APDU [05:52:34]CAPDU: 80 0D 02 02 FA 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 34 37 33 30 30 31 38 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 66 00 8A 04 0D 00 32 30 30 30 30 33 36 32 33 30 30 31 31 06 04 22 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 90 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 71 00 8A 04 0D 00 34 37 30 30 30 34 31 34 32 30 31 34 35 06 04 2D 00 D0 A1 D0 B0 [05:52:34]Write to MH i2c: E2 02 01 00 08 80 0D 02 02 FA 00 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 34 37 33 30 30 31 38 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 66 00 8A 04 0D 00 32 30 30 30 30 33 36 32 33 30 30 31 31 06 04 22 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 90 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 71 00 8A 04 0D 00 34 37 30 30 30 34 31 34 32 30 31 34 35 06 04 2D 00 D0 A1 D0 B0 00 00 96 [05:52:34]Write i2c OK [05:52:34]MH_I2C_Read... [05:52:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:52:34]Read from MH i2c: E2 [05:52:34]MH_I2C_Read... [05:52:34]Read from MH i2c: E2 03 00 [05:52:34]MH_I2C_Read... [05:52:34]Read from MH i2c: E2 03 00 00 08 00 90 00 7C [05:52:34]RAPDU: 90 00 [05:52:34]wFMCommunicate OK [05:52:34]wFMCommunicate request_size=255 [05:52:34]MH_SAM_APDU [05:52:34]CAPDU: 80 0D 02 02 FA D0 BB D1 84 D0 B5 D1 82 D0 BA D0 B8 20 D0 B2 D0 BB D0 B0 D0 B6 D0 BD 20 42 45 53 54 20 47 4F 4C 44 20 31 30 30 D1 88 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 38 4A 00 00 00 00 13 04 06 00 38 4A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7C 0F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 67 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D5 1C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 7C 0F 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 00 00 00 F4 03 04 00 21 A5 F3 66 0E 04 04 00 DA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 C6 C5 01 00 35 04 06 00 E3 0F D9 [05:52:34]Write to MH i2c: E2 02 01 01 08 80 0D 02 02 FA 00 D0 BB D1 84 D0 B5 D1 82 D0 BA D0 B8 20 D0 B2 D0 BB D0 B0 D0 B6 D0 BD 20 42 45 53 54 20 47 4F 4C 44 20 31 30 30 D1 88 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 38 4A 00 00 00 00 13 04 06 00 38 4A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7C 0F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 67 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D5 1C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 7C 0F 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 00 00 00 F4 03 04 00 21 A5 F3 66 0E 04 04 00 DA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 C6 C5 01 00 35 04 06 00 E3 0F D9 00 00 14 [05:52:34]Write i2c OK [05:52:34]MH_I2C_Read... [05:52:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:52:34]Read from MH i2c: E2 [05:52:34]MH_I2C_Read... [05:52:34]Read from MH i2c: E2 03 00 [05:52:34]MH_I2C_Read... [05:52:34]Read from MH i2c: E2 03 00 01 08 00 90 00 7D [05:52:34]RAPDU: 90 00 [05:52:34]wFMCommunicate OK [05:52:34]wFMCommunicate request_size=8 [05:52:34]MH_SAM_APDU [05:52:34]CAPDU: 80 0D 02 02 03 35 19 71 [05:52:34]Write to MH i2c: E2 0B 00 02 08 80 0D 02 02 03 00 35 19 71 00 00 49 [05:52:34]Write i2c OK [05:52:34]MH_I2C_Read... [05:52:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:52:34]Read from MH i2c: E2 [05:52:34]MH_I2C_Read... [05:52:34]Read from MH i2c: E2 03 00 [05:52:34]MH_I2C_Read... [05:52:34]Read from MH i2c: E2 03 00 02 08 00 90 00 7E [05:52:34]RAPDU: 90 00 [05:52:34]wFMCommunicate OK [05:52:34]wFMCommunicate request_size=4 [05:52:34]MH_SAM_APDU [05:52:34]CAPDU: 80 0D 03 02 [05:52:34]Write to MH i2c: E2 08 00 03 08 80 0D 03 02 00 00 00 00 86 [05:52:34]Write i2c OK [05:52:34]MH_I2C_Read... [05:52:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [05:52:34]Read from MH i2c: E2 [05:52:34]MH_I2C_Read... [05:52:34]Read from MH i2c: E2 0B 00 [05:52:34]MH_I2C_Read... [05:52:34]Read from MH i2c: E2 0B 00 03 08 00 C9 8D D1 C0 90 25 E8 7D 90 00 88 [05:52:34]RAPDU: C9 8D D1 C0 90 25 E8 7D 90 00 [05:52:34]wFMCommunicate OK [05:52:34]SAM_PROTO_SignData done [05:52:34]FM_MakeSignedData done [05:52:34]CreateOFDProtocolMessage [05:52:34]wFMCommunicate request_size=4 [05:52:34]MH_SAM_APDU [05:52:34]CAPDU: 80 11 00 00 [05:52:34]Write to MH i2c: E2 08 00 04 08 80 11 00 00 00 00 00 00 86 [05:52:34]Write i2c OK [05:52:34]MH_I2C_Read... [05:52:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:52:34]Read from MH i2c: E2 [05:52:34]MH_I2C_Read... [05:52:34]Read from MH i2c: E2 17 00 [05:52:34]MH_I2C_Read... [05:52:34]Read from MH i2c: E2 17 00 04 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 D4 [05:52:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [05:52:34]wFMCommunicate OK [05:52:34]CreateOFDProtocolMessage done [05:52:34]OFDSenderStorePacket 116166 [05:52:34]StoreOFDPacket docnum=116166 [05:52:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 01 03 00 00 5D 32 F9 02 E0 EF 5A 03 01 00 03 00 ED 02 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 35 30 30 30 31 35 39 33 38 31 31 37 38 06 04 34 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 91 D0 B0 D1 83 D0 BD D1 82 D0 B8 20 D0 A2 D1 80 D0 B8 D0 BE 20 38 32 2C 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C4 22 00 00 00 00 13 04 06 00 C4 22 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 74 00 8A 04 08 00 34 36 31 39 36 36 31 33 06 04 35 00 D0 A0 2F D0 B6 20 4F 72 62 69 74 20 58 58 4C 20 77 68 69 74 65 20 63 D0 BE D1 87 D0 BD D0 BE D0 B5 20 D1 8F D0 B1 D0 BB D0 BE D0 BA D0 BE 20 32 30 2C 34 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 13 00 00 00 00 13 04 06 00 EC 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 34 37 33 30 30 31 38 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 66 00 8A 04 0D 00 32 30 30 30 30 33 36 32 33 30 30 31 31 06 04 22 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 90 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 71 00 8A 04 0D 00 34 37 30 30 30 34 31 34 32 30 31 34 35 06 04 2D 00 D0 A1 D0 B0 D0 BB D1 84 D0 B5 D1 82 D0 BA D0 B8 20 D0 B2 D0 BB D0 B0 D0 B6 D0 BD 20 42 45 53 54 20 47 4F 4C 44 20 31 30 30 D1 88 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 38 4A 00 00 00 00 13 04 06 00 38 4A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7C 0F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 67 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D5 1C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 7C 0F 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 00 00 00 F4 03 04 00 21 A5 F3 66 0E 04 04 00 DA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 C6 C5 01 00 35 04 06 00 E3 0F D9 35 19 71 C9 8D D1 C0 90 25 E8 7D [05:52:34]CheckFolder [05:52:34]dirname=/storage/ofd_packets [05:52:34]CheckFolder done [05:52:34]ProducePacketName [05:52:34]name=ofd_packets/00116166 [05:52:34]NVStorageSaveData ofd_packets/00116166 [05:52:34]File name is /storage/ofd_packets/00116166 [05:52:34]Write 799 bytes [05:52:34]NVStorageSaveData done [05:52:34]OFDSenderStorePacket done [05:52:34]KKMCreateOFDPacket done [05:52:34]NVStorageSaveData kkm_last_timestamp [05:52:34]File name is /storage/kkm_last_timestamp [05:52:34]Write 4 bytes [05:52:34]NVStorageSaveData done [05:52:34]ExternCall_PrintAddStr [05:52:34]wPrintStart [05:52:34]Write to MH i2c: 01 00 00 05 08 0D [05:52:34]Write i2c OK [05:52:34]MH_I2C_Read... [05:52:34]Read from MH i2c: 01 [05:52:34]MH_I2C_Read... [05:52:34]Read from MH i2c: 01 07 00 [05:52:34]MH_I2C_Read... [05:52:34]Read from MH i2c: 01 07 00 05 08 00 00 00 00 00 FF 0F 22 [05:52:34]RasterBufferAndPrint [05:52:34]line Счет N : (3)344353 [05:52:34]line ИНН: 02508201610067 [05:52:34]line Контрольно-Кассовый Чек [05:52:34]line ПРОДАЖА [05:52:34]line Товар: 5000159381178 [05:52:34]line Шок Батончик Баунти Трио 82,5г [05:52:34]line 1.000 * 89.00 [05:52:34]line = 89.00 [05:52:34]line НДС 12% НСП 1% [05:52:34]line > о реализуемом товаре [05:52:34]line Товар: 46196613 [05:52:34]line Р/ж Orbit XXL white cочное яблоко 20,4г [05:52:34]line 1.000 * 51.00 [05:52:34]line = 51.00 [05:52:34]line НДС 12% НСП 1% [05:52:34]line > о реализуемом товаре [05:52:34]line Товар: 2000034730018 [05:52:34]line Кофе Американо (GABB TRADE) [05:52:34]line 1.000 * 105.00 [05:52:34]line = 105.00 [05:52:34]line НДС 12% НСП 1% [05:52:34]line > о реализуемом товаре [05:52:34]line Товар: 2000036230011 [05:52:34]line Кофе Латте XL(GABB TRADE) [05:52:34]line 2.000 * 130.00 [05:52:34]line = 260.00 [05:52:34]line НДС 12% НСП 1% [05:52:35]line > о реализуемом товаре [05:52:35]line Товар: 4700041420145 [05:52:35]line Салфетки влажн BEST GOLD 100шт [05:52:35]line 1.000 * 190.00 [05:52:35]line = 190.00 [05:52:35]line НДС 12% НСП 1% [05:52:35]line > о реализуемом товаре [05:52:35]line ИТОГО: 695.00 [05:52:35]line НСП 1% : 6.15 [05:52:35]line НДС 12% : 73.81 [05:52:35]line Наличными: 0.00 [05:52:35]line Безнал.: 695.00 [05:52:35]line Место: АЗС № 90 "Партнер Нефть" [05:52:35]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [05:52:35]line СНО: Общий режим [05:52:35]line Чек 22 25.09.2024 05:52 [05:52:35]line Смена: 474 ФФД: 1.0 [05:52:35]line ЗНМ: 0300000120 [05:52:35]line РНМ: 0000000000091831 [05:52:35]line Версия ККМ: 001 [05:52:35]line Платежная система: O! деньги [05:52:35]line ФМ: 0000000000871830 [05:52:35]line ФД: 116166 [05:52:35]line ФПД: 249657208150385 [05:52:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240925T055233&type=1&operation_type=1&fn_number=0000000000871830&fd_number=116166&fm=249657208150385&tin=02508201610067®Number=0000000000091831&sum=69500 [05:52:35]line 0 [05:52:35]OFD Sender: Processing packet 116166 [packets to send 482, broken 481] [05:52:35]ProducePacketName [05:52:35]name=ofd_packets/00116166 [05:52:35]OFD Sender: To server: pG, [05:52:35]CommunicateWithHost lk.salyk.kg:30040 [05:52:35]ConnectInit lk.salyk.kg [05:52:35]written 0, free lines is 4095 [05:52:35]Connected sock=10 [05:52:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 01 03 00 00 5D 32 F9 02 E0 EF 5A 03 01 00 03 00 ED 02 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 35 30 30 30 31 35 39 33 38 31 31 37 38 06 04 34 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 91 D0 B0 D1 83 D0 BD D1 82 D0 B8 20 D0 A2 D1 80 D0 B8 D0 BE 20 38 32 2C 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C4 22 00 00 00 00 13 04 06 00 C4 22 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 74 00 8A 04 08 00 34 36 31 39 36 36 31 33 06 04 35 00 D0 A0 2F D0 B6 20 4F 72 62 69 74 20 58 58 4C 20 77 68 69 74 65 20 63 D0 BE D1 87 D0 BD D0 BE D0 B5 20 D1 8F D0 B1 D0 BB D0 BE D0 BA D0 BE 20 32 30 2C 34 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 13 00 00 00 00 13 04 06 00 EC 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 34 37 33 30 30 31 38 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 66 00 8A 04 0D 00 32 30 30 30 30 33 36 32 33 30 30 31 31 06 04 22 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 90 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 71 00 8A 04 0D 00 34 37 30 30 30 34 31 34 32 30 31 34 35 06 04 2D 00 D0 A1 D0 B0 D0 BB D1 84 D0 B5 D1 82 D0 BA D0 B8 20 D0 B2 D0 BB D0 B0 D0 B6 D0 BD 20 42 45 53 54 20 47 4F 4C 44 20 31 30 30 D1 88 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 38 4A 00 00 00 00 13 04 06 00 38 4A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7C 0F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 67 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D5 1C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 7C 0F 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 00 00 00 F4 03 04 00 21 A5 F3 66 0E 04 04 00 DA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 C6 C5 01 00 35 04 06 00 E3 0F D9 35 19 71 C9 8D D1 C0 90 25 E8 7D [05:52:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 4D C3 47 00 19 A7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 C6 C5 01 00 F4 03 04 00 5F 4A F3 66 B6 04 01 00 00 BA 1D 4C 10 03 9D 50 0C [05:52:35]CommunicateWithHost err = 0 [05:52:35]CheckOFDResponse [05:52:35]1017 (14) - 77093643461234 [05:52:35]1041 (16) - 0000000000871830 [05:52:35]1040 (4) - 116166 [05:52:35]1012 (4) - 24.09.2024 23:25 [05:52:35]1206 (1) - 0 [05:52:35]OFD Sender: Remove packet 116166 [05:52:35]ProducePacketName [05:52:35]name=ofd_packets/00116166 [05:52:35]NVStorageDeleteData [05:52:35]Write to MH i2c: 01 00 00 4A 08 52 [05:52:35]Write i2c OK [05:52:35]MH_I2C_Read... [05:52:35]Read from MH i2c: 01 [05:52:35]MH_I2C_Read... [05:52:35]Read from MH i2c: 01 07 00 [05:52:35]MH_I2C_Read... [05:52:35]Read from MH i2c: 01 07 00 4A 08 00 00 00 00 00 F0 09 52 [05:52:35]RasterBufferAndPrint [05:52:35]line [05:52:35]line [05:52:35]line [05:52:35]line [05:52:35]line [05:52:35]written 0, free lines is 2550 [05:52:35]MH_Cut [05:52:35]Write to MH i2c: D1 01 00 51 08 01 2B [05:52:35]Write i2c OK [05:52:35]MH_I2C_Read... [05:52:35]Read from MH i2c: D1 [05:52:35]MH_I2C_Read... [05:52:35]Read from MH i2c: D1 01 00 [05:52:35]MH_I2C_Read... [05:52:35]Read from MH i2c: D1 01 00 51 08 00 2A [05:52:35]Write to MH i2c: 01 00 00 52 08 5A [05:52:35]Write i2c OK [05:52:35]MH_I2C_Read... [05:52:36]OFD Sender: No OFD packet to send [05:52:38]*** Cut start [05:52:38]*** Partial cut [05:52:38]*** CUTSNS_PIN = 1 [05:52:38]*** CUTSNS_PIN = 0 [05:52:38]*** Brake cut motor [05:52:38]Read from MH i2c: 01 [05:52:38]MH_I2C_Read... [05:52:38]*** Stop cut motor [05:52:38]*** Cut end [05:52:38]Read from MH i2c: 01 07 00 [05:52:38]MH_I2C_Read... [05:52:38]Read from MH i2c: 01 07 00 52 08 00 00 00 00 00 FF 0F 6F [05:52:38]process_action close_receipt done [05:52:38]requested_data is exist [05:52:38]produce_requested_data [05:52:38]requested_item fm.sn is exist - process it [05:52:38]wFMCommunicate request_size=4 [05:52:38]MH_SAM_APDU [05:52:38]CAPDU: 80 11 00 00 [05:52:38]Write to MH i2c: E2 08 00 53 08 80 11 00 00 00 00 00 00 D5 [05:52:38]Write i2c OK [05:52:38]MH_I2C_Read... [05:52:38]Read from MH i2c: E2 [05:52:38]MH_I2C_Read... [05:52:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:52:38]Read from MH i2c: E2 17 00 [05:52:38]MH_I2C_Read... [05:52:38]Read from MH i2c: E2 17 00 53 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 23 [05:52:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [05:52:38]wFMCommunicate OK [05:52:38]requested_item fd.num is exist - process it [05:52:38]SAM_PROTO_GetFieldsCounters [05:52:38]wFMCommunicate request_size=4 [05:52:38]MH_SAM_APDU [05:52:38]CAPDU: 80 13 00 00 [05:52:38]Write to MH i2c: E2 08 00 54 08 80 13 00 00 00 00 00 00 D8 [05:52:38]Write i2c OK [05:52:38]MH_I2C_Read... [05:52:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [05:52:38]Read from MH i2c: E2 [05:52:38]MH_I2C_Read... [05:52:38]Read from MH i2c: E2 62 00 [05:52:38]MH_I2C_Read... [05:52:38]Read from MH i2c: E2 62 00 54 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 C6 C5 01 00 0E 04 04 00 DA 01 00 00 12 04 04 00 16 00 00 00 5E 04 04 00 16 00 00 00 57 04 04 00 17 00 00 00 19 04 04 00 00 00 00 00 90 00 9A [05:52:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 C6 C5 01 00 0E 04 04 00 DA 01 00 00 12 04 04 00 16 00 00 00 5E 04 04 00 16 00 00 00 57 04 04 00 17 00 00 00 19 04 04 00 00 00 00 00 90 00 [05:52:38]wFMCommunicate OK [05:52:38]SAM_PROTO_GetFieldsCounters done [05:52:38]requested_item shift.num is exist - process it [05:52:38]requested_item shift.opened is exist - process it [05:52:38]req_shift_opened [05:52:38]FM_GetShiftState [05:52:38]SAM_PROTO_GetShiftState [05:52:38]wFMCommunicate request_size=4 [05:52:38]MH_SAM_APDU [05:52:38]CAPDU: 80 13 01 00 [05:52:38]Write to MH i2c: E2 08 00 55 08 80 13 01 00 00 00 00 00 DA [05:52:38]Write i2c OK [05:52:38]MH_I2C_Read... [05:52:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:52:38]Read from MH i2c: E2 [05:52:38]MH_I2C_Read... [05:52:38]Read from MH i2c: E2 0E 00 [05:52:38]MH_I2C_Read... [05:52:38]Read from MH i2c: E2 0E 00 55 08 00 09 00 01 63 60 F3 66 00 00 00 00 90 00 02 [05:52:38]RAPDU: 09 00 01 63 60 F3 66 00 00 00 00 90 00 [05:52:38]wFMCommunicate OK [05:52:38]SAM_PROTO_GetShiftState done [05:52:38]FM_GetShiftState done [05:52:38]req_shift_opened done [05:52:38]requested_item shift.open_date is exist - process it [05:52:38]req_shift_open_date [05:52:38]req_shift_open_date done [05:52:38]produce_requested_data done [05:52:38]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":116166,"shift.num":474,"shift.opened":1,"shift.open_date":1727225955} [05:52:38]process_action_free close_receipt [05:52:38]json_value_free [05:52:38]json_value_free done [05:52:38]process_json_proto returns [05:52:38]Send response to host [05:52:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":116166,"shift.num":474,"shift.opened":1,"shift.open_date":1727225955}}} [05:52:38]free response buf [05:52:38]execute_script done [05:52:38]execute_script returns [05:52:38]free content buf [05:52:38]Sock 9.Close socket [05:52:38]Sock 9.Thread stoped [05:52:41]OFD Sender: No OFD packet to send [05:52:46]OFD Sender: No OFD packet to send [05:52:51]OFD Sender: No OFD packet to send [05:52:56]OFD Sender: No OFD packet to send [05:53:01]OFD Sender: No OFD packet to send [05:53:06]OFD Sender: No OFD packet to send [05:53:11]OFD Sender: No OFD packet to send [05:53:16]OFD Sender: No OFD packet to send [05:53:21]OFD Sender: No OFD packet to send [05:53:26]OFD Sender: No OFD packet to send [05:53:31]OFD Sender: No OFD packet to send [05:53:36]OFD Sender: No OFD packet to send [05:53:41]OFD Sender: No OFD packet to send [05:53:46]OFD Sender: No OFD packet to send [05:53:51]OFD Sender: No OFD packet to send [05:53:56]OFD Sender: No OFD packet to send [05:54:01]OFD Sender: No OFD packet to send [05:54:06]OFD Sender: No OFD packet to send [05:54:11]OFD Sender: No OFD packet to send [05:54:16]OFD Sender: No OFD packet to send [05:54:21]OFD Sender: No OFD packet to send [05:54:26]OFD Sender: No OFD packet to send [05:54:31]OFD Sender: No OFD packet to send [05:54:36]OFD Sender: No OFD packet to send [05:54:41]OFD Sender: No OFD packet to send [05:54:46]OFD Sender: No OFD packet to send [05:54:51]OFD Sender: No OFD packet to send [05:54:56]OFD Sender: No OFD packet to send [05:55:01]OFD Sender: No OFD packet to send [05:55:06]OFD Sender: No OFD packet to send [05:55:11]OFD Sender: No OFD packet to send [05:55:16]OFD Sender: No OFD packet to send [05:55:21]OFD Sender: No OFD packet to send [05:55:26]OFD Sender: No OFD packet to send [05:55:31]OFD Sender: No OFD packet to send [05:55:36]OFD Sender: No OFD packet to send [05:55:41]OFD Sender: No OFD packet to send [05:55:46]OFD Sender: No OFD packet to send [05:55:51]OFD Sender: No OFD packet to send [05:55:56]OFD Sender: No OFD packet to send [05:56:01]OFD Sender: No OFD packet to send [05:56:06]OFD Sender: No OFD packet to send [05:56:11]OFD Sender: No OFD packet to send [05:56:16]OFD Sender: No OFD packet to send [05:56:21]OFD Sender: No OFD packet to send [05:56:26]OFD Sender: No OFD packet to send [05:56:31]OFD Sender: No OFD packet to send [05:56:36]OFD Sender: No OFD packet to send [05:56:41]OFD Sender: No OFD packet to send [05:56:46]OFD Sender: No OFD packet to send [05:56:51]OFD Sender: No OFD packet to send [05:56:56]OFD Sender: No OFD packet to send [05:57:01]OFD Sender: No OFD packet to send [05:57:06]OFD Sender: No OFD packet to send [05:57:11]OFD Sender: No OFD packet to send [05:57:16]OFD Sender: No OFD packet to send [05:57:21]OFD Sender: No OFD packet to send [05:57:26]OFD Sender: No OFD packet to send [05:57:31]OFD Sender: No OFD packet to send [05:57:36]OFD Sender: No OFD packet to send [05:57:41]OFD Sender: No OFD packet to send [05:57:46]OFD Sender: No OFD packet to send [05:57:51]OFD Sender: No OFD packet to send [05:57:56]OFD Sender: No OFD packet to send [05:58:01]OFD Sender: No OFD packet to send [05:58:06]OFD Sender: No OFD packet to send [05:58:11]OFD Sender: No OFD packet to send [05:58:16]OFD Sender: No OFD packet to send [05:58:22]OFD Sender: No OFD packet to send [05:58:27]OFD Sender: No OFD packet to send [05:58:32]OFD Sender: No OFD packet to send [05:58:37]OFD Sender: No OFD packet to send [05:58:42]OFD Sender: No OFD packet to send [05:58:47]OFD Sender: No OFD packet to send [05:58:52]OFD Sender: No OFD packet to send [05:58:57]OFD Sender: No OFD packet to send [05:59:02]OFD Sender: No OFD packet to send [05:59:07]OFD Sender: No OFD packet to send [05:59:12]OFD Sender: No OFD packet to send [05:59:17]OFD Sender: No OFD packet to send [05:59:22]OFD Sender: No OFD packet to send [05:59:27]OFD Sender: No OFD packet to send [05:59:32]OFD Sender: No OFD packet to send [05:59:37]OFD Sender: No OFD packet to send [05:59:42]OFD Sender: No OFD packet to send [05:59:47]OFD Sender: No OFD packet to send [05:59:52]OFD Sender: No OFD packet to send [05:59:57]OFD Sender: No OFD packet to send [06:00:02]OFD Sender: No OFD packet to send [06:00:07]OFD Sender: No OFD packet to send [06:00:12]OFD Sender: No OFD packet to send [06:00:17]OFD Sender: No OFD packet to send [06:00:22]OFD Sender: No OFD packet to send [06:00:27]OFD Sender: No OFD packet to send [06:00:32]OFD Sender: No OFD packet to send [06:00:37]OFD Sender: No OFD packet to send [06:00:42]OFD Sender: No OFD packet to send [06:00:47]OFD Sender: No OFD packet to send [06:00:52]OFD Sender: No OFD packet to send [06:00:57]OFD Sender: No OFD packet to send [06:01:02]OFD Sender: No OFD packet to send [06:01:07]OFD Sender: No OFD packet to send [06:01:12]OFD Sender: No OFD packet to send [06:01:17]OFD Sender: No OFD packet to send [06:01:22]OFD Sender: No OFD packet to send [06:01:27]OFD Sender: No OFD packet to send [06:01:32]OFD Sender: No OFD packet to send [06:01:37]OFD Sender: No OFD packet to send [06:01:42]OFD Sender: No OFD packet to send [06:01:47]OFD Sender: No OFD packet to send [06:01:52]OFD Sender: No OFD packet to send [06:01:57]OFD Sender: No OFD packet to send [06:02:02]OFD Sender: No OFD packet to send [06:02:07]OFD Sender: No OFD packet to send [06:02:12]OFD Sender: No OFD packet to send [06:02:17]OFD Sender: No OFD packet to send [06:02:22]OFD Sender: No OFD packet to send [06:02:27]OFD Sender: No OFD packet to send [06:02:32]OFD Sender: No OFD packet to send [06:02:37]OFD Sender: No OFD packet to send [06:02:42]OFD Sender: No OFD packet to send [06:02:47]OFD Sender: No OFD packet to send [06:02:52]OFD Sender: No OFD packet to send [06:02:57]OFD Sender: No OFD packet to send [06:03:02]OFD Sender: No OFD packet to send [06:03:07]OFD Sender: No OFD packet to send [06:03:12]OFD Sender: No OFD packet to send [06:03:17]OFD Sender: No OFD packet to send [06:03:22]OFD Sender: No OFD packet to send [06:03:27]OFD Sender: No OFD packet to send [06:03:32]OFD Sender: No OFD packet to send [06:03:34]accept exits with 8 [06:03:34]New connection [06:03:34]New thread 3067350372 created [06:03:34]Thread 3067207012 joined [06:03:34]Waiting for new connection... [06:03:34] Sock 8.Parse request [06:03:34]Sock 8.Check first char [06:03:34]Sock 8.First char is OK [06:03:34]request: POST /json_proto HTTP/1.0 [06:03:34]Method: POST [06:03:34]URL: /json_proto [06:03:34]Method is POST - this is cgi request [06:03:34]url: /json_proto [06:03:34]query_string will be loaded in cgi processing [06:03:34]execute_cgi json_proto POST (null) [06:03:34]execute_cgi path=json_proto method=POST [06:03:34]POST find Content-Length [06:03:34]Host: 172.17.41.136:8080 [06:03:34]Content-Length: 791 [06:03:34]Content-Type: application/json [06:03:34] [06:03:34]POST finish read [06:03:34]Found Content-Length = 791 [06:03:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)24618999", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 45", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 50.790, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A82303", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:03:34]execute_script... [06:03:34]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)24618999", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 45", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 50.790, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A82303", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:03:34]POST & json_proto [06:03:34]process_json_proto [06:03:34]json parsed OK: [06:03:34]protocol is kg_v1.0 [06:03:34]action value=close_receipt [06:03:34]process_action close_receipt [06:03:34]cmd_close_receipt [06:03:34]MH_GetDate [06:03:34]Write to MH i2c: F0 00 00 56 08 4D [06:03:34]Write i2c OK [06:03:34]MH_I2C_Read... [06:03:34]Read from MH i2c: F0 [06:03:34]MH_I2C_Read... [06:03:34]Read from MH i2c: F0 09 00 [06:03:34]MH_I2C_Read... [06:03:34]Read from MH i2c: F0 09 00 56 08 00 B8 A7 F3 66 1B D0 5A 64 B7 [06:03:34]GetLastDocTimeStamp 1727243553 [06:03:34]current date 1727244216 [06:03:34]FM_GetShiftState [06:03:34]SAM_PROTO_GetShiftState [06:03:34]wFMCommunicate request_size=4 [06:03:34]MH_SAM_APDU [06:03:34]CAPDU: 80 13 01 00 [06:03:34]Write to MH i2c: E2 08 00 57 08 80 13 01 00 00 00 00 00 DC [06:03:34]Write i2c OK [06:03:34]MH_I2C_Read... [06:03:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:03:34]Read from MH i2c: E2 [06:03:34]MH_I2C_Read... [06:03:34]Read from MH i2c: E2 0E 00 [06:03:34]MH_I2C_Read... [06:03:34]Read from MH i2c: E2 0E 00 57 08 00 09 00 01 63 60 F3 66 00 00 00 00 90 00 04 [06:03:34]RAPDU: 09 00 01 63 60 F3 66 00 00 00 00 90 00 [06:03:34]wFMCommunicate OK [06:03:34]SAM_PROTO_GetShiftState done [06:03:34]FM_GetShiftState done [06:03:34]opened in 1727225955 [06:03:34]opened+sec_in_day 1727312355 [06:03:34]quantity*price = 0 [06:03:34]sum+1 = 1 [06:03:34]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 23 25.09.2024 06:03 Смена: 474 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 Талоны: Топливная Карта 82303 ФМ: 0000000000871830 ФД: 116167 ФПД: 61040900694213 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240925T060336&type=1&operation_type=1&fn_number=0000000000871830&fd_number=116167&fm=61040900694213&tin=02508201610067®Number=0000000000091831&sum=0 [06:03:35]StoreToDocumentArchive [06:03:35]shift 474 fd 116167 [06:03:35]save to /storage/0474/doc_00116167 [06:03:35]save last doc name /storage/0474/doc_00116167 to /storage/kkm_last_doc_name [06:03:35]save OK [06:03:35]Clear old archive folders... [06:03:35]ProcessDocumentItem done err = 0, tmpTLVsize=248 [06:03:35]tlvbuf is 018D0CA0 [06:03:35]SAM_PROTO_ClearQueue [06:03:35]wFMCommunicate request_size=4 [06:03:35]MH_SAM_APDU [06:03:35]CAPDU: 80 09 00 00 [06:03:35]Write to MH i2c: E2 08 00 64 08 80 09 00 00 00 00 00 00 DE [06:03:35]Write i2c OK [06:03:35]MH_I2C_Read... [06:03:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:03:35]Read from MH i2c: E2 [06:03:35]MH_I2C_Read... [06:03:35]Read from MH i2c: E2 03 00 [06:03:35]MH_I2C_Read... [06:03:35]Read from MH i2c: E2 03 00 64 08 00 90 00 E0 [06:03:35]RAPDU: 90 00 [06:03:35]wFMCommunicate OK [06:03:35]SAM_PROTO_ClearQueue done [06:03:35]KKMCreateOFDPacket [06:03:35]OFDProtocolAddRootSTLVToBuf [06:03:35]FM_MakeSignedData [06:03:35]FM_MakeSignedData [06:03:35]SAM_PROTO_SignData [06:03:35]wFMCommunicate request_size=4 [06:03:35]MH_SAM_APDU [06:03:35]CAPDU: 80 0D 01 02 [06:03:35]Write to MH i2c: E2 08 00 65 08 80 0D 01 02 00 00 00 00 E6 [06:03:35]Write i2c OK [06:03:35]MH_I2C_Read... [06:03:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:03:36]Read from MH i2c: E2 [06:03:36]MH_I2C_Read... [06:03:36]Read from MH i2c: E2 03 00 [06:03:36]MH_I2C_Read... [06:03:36]Read from MH i2c: E2 03 00 65 08 00 90 00 E1 [06:03:36]RAPDU: 90 00 [06:03:36]wFMCommunicate OK [06:03:36]wFMCommunicate request_size=255 [06:03:36]MH_SAM_APDU [06:03:36]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 66 C6 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 B8 A7 F3 66 0E 04 04 00 DA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 C7 C5 01 00 35 04 06 00 37 84 31 33 [06:03:36]Write to MH i2c: E2 02 01 66 08 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 66 C6 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 B8 A7 F3 66 0E 04 04 00 DA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 C7 C5 01 00 35 04 06 00 37 84 31 33 00 00 BD [06:03:36]Write i2c OK [06:03:36]MH_I2C_Read... [06:03:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:03:36]Read from MH i2c: E2 [06:03:36]MH_I2C_Read... [06:03:36]Read from MH i2c: E2 03 00 [06:03:36]MH_I2C_Read... [06:03:36]Read from MH i2c: E2 03 00 66 08 00 90 00 E2 [06:03:36]RAPDU: 90 00 [06:03:36]wFMCommunicate OK [06:03:36]wFMCommunicate request_size=7 [06:03:36]MH_SAM_APDU [06:03:36]CAPDU: 80 0D 02 02 02 E0 C5 [06:03:36]Write to MH i2c: E2 0A 00 67 08 80 0D 02 02 02 00 E0 C5 00 00 92 [06:03:36]Write i2c OK [06:03:36]MH_I2C_Read... [06:03:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:03:36]Read from MH i2c: E2 [06:03:36]MH_I2C_Read... [06:03:36]Read from MH i2c: E2 03 00 [06:03:36]MH_I2C_Read... [06:03:36]Read from MH i2c: E2 03 00 67 08 00 90 00 E3 [06:03:36]RAPDU: 90 00 [06:03:36]wFMCommunicate OK [06:03:36]wFMCommunicate request_size=4 [06:03:36]MH_SAM_APDU [06:03:36]CAPDU: 80 0D 03 02 [06:03:36]Write to MH i2c: E2 08 00 68 08 80 0D 03 02 00 00 00 00 EB [06:03:36]Write i2c OK [06:03:36]MH_I2C_Read... [06:03:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:03:36]Read from MH i2c: E2 [06:03:36]MH_I2C_Read... [06:03:36]Read from MH i2c: E2 0B 00 [06:03:36]MH_I2C_Read... [06:03:36]Read from MH i2c: E2 0B 00 68 08 00 8C 49 4A 56 36 68 76 56 90 00 CB [06:03:36]RAPDU: 8C 49 4A 56 36 68 76 56 90 00 [06:03:36]wFMCommunicate OK [06:03:36]SAM_PROTO_SignData done [06:03:36]FM_MakeSignedData done [06:03:36]CreateOFDProtocolMessage [06:03:36]wFMCommunicate request_size=4 [06:03:36]MH_SAM_APDU [06:03:36]CAPDU: 80 11 00 00 [06:03:36]Write to MH i2c: E2 08 00 69 08 80 11 00 00 00 00 00 00 EB [06:03:36]Write i2c OK [06:03:36]MH_I2C_Read... [06:03:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:03:36]Read from MH i2c: E2 [06:03:36]MH_I2C_Read... [06:03:36]Read from MH i2c: E2 17 00 [06:03:36]MH_I2C_Read... [06:03:36]Read from MH i2c: E2 17 00 69 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 39 [06:03:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [06:03:36]wFMCommunicate OK [06:03:36]CreateOFDProtocolMessage done [06:03:36]OFDSenderStorePacket 116167 [06:03:36]StoreOFDPacket docnum=116167 [06:03:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0C 01 00 00 35 59 04 01 71 E1 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 66 C6 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 B8 A7 F3 66 0E 04 04 00 DA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 C7 C5 01 00 35 04 06 00 37 84 31 33 E0 C5 8C 49 4A 56 36 68 76 56 [06:03:36]CheckFolder [06:03:36]dirname=/storage/ofd_packets [06:03:36]CheckFolder done [06:03:36]ProducePacketName [06:03:36]name=ofd_packets/00116167 [06:03:36]NVStorageSaveData ofd_packets/00116167 [06:03:36]File name is /storage/ofd_packets/00116167 [06:03:36]Write 298 bytes [06:03:36]NVStorageSaveData done [06:03:36]OFDSenderStorePacket done [06:03:36]KKMCreateOFDPacket done [06:03:36]NVStorageSaveData kkm_last_timestamp [06:03:36]File name is /storage/kkm_last_timestamp [06:03:36]Write 4 bytes [06:03:36]NVStorageSaveData done [06:03:36]ExternCall_PrintAddStr [06:03:36]wPrintStart [06:03:36]Write to MH i2c: 01 00 00 6A 08 72 [06:03:36]Write i2c OK [06:03:36]MH_I2C_Read... [06:03:36]Read from MH i2c: 01 [06:03:36]MH_I2C_Read... [06:03:36]Read from MH i2c: 01 07 00 [06:03:36]MH_I2C_Read... [06:03:36]Read from MH i2c: 01 07 00 6A 08 00 00 00 00 00 FF 0F 87 [06:03:36]RasterBufferAndPrint [06:03:36]line Счет N : (1)24618999 [06:03:36]line ИНН: 02508201610067 [06:03:36]line Контрольно-Кассовый Чек [06:03:36]line ПРОДАЖА [06:03:36]line ТРК (МРК, ГНК) : 45 [06:03:36]line Товар: 2710194210 [06:03:36]line ДТ-К-5 [06:03:36]line 50.790 * 0.00 [06:03:36]line = 0.00 [06:03:36]line НДС 12% НСП 1% [06:03:36]line > о реализуемом товаре [06:03:36]line ИТОГО: 0.00 [06:03:36]line НСП 1% : 0.00 [06:03:36]line НДС 12% : 0.00 [06:03:36]line Наличными: 0.00 [06:03:36]line Безнал.: 0.00 [06:03:36]line Место: АЗС № 90 "Партнер Нефть" [06:03:36]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [06:03:36]line СНО: Общий режим [06:03:36]line Чек 23 25.09.2024 06:03 [06:03:36]line Смена: 474 ФФД: 1.0 [06:03:36]line ЗНМ: 0300000120 [06:03:36]line РНМ: 0000000000091831 [06:03:36]line Версия ККМ: 001 [06:03:36]line Талоны: Топливная Карта [06:03:36]line 82303 [06:03:36]line ФМ: 0000000000871830 [06:03:36]line ФД: 116167 [06:03:36]line ФПД: 61040900694213 [06:03:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240925T060336&type=1&operation_type=1&fn_number=0000000000871830&fd_number=116167&fm=61040900694213&tin=02508201610067®Number=0000000000091831&sum=0 [06:03:36]written 0, free lines is 4095 [06:03:36]OFD Sender: Processing packet 116167 [packets to send 482, broken 481] [06:03:36]ProducePacketName [06:03:36]name=ofd_packets/00116167 [06:03:36]OFD Sender: To server: pG, [06:03:36]CommunicateWithHost lk.salyk.kg:30040 [06:03:36]ConnectInit lk.salyk.kg [06:03:36]Connected sock=10 [06:03:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0C 01 00 00 35 59 04 01 71 E1 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 66 C6 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 B8 A7 F3 66 0E 04 04 00 DA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 C7 C5 01 00 35 04 06 00 37 84 31 33 E0 C5 8C 49 4A 56 36 68 76 56 [06:03:36]Write to MH i2c: 01 00 00 93 08 9B [06:03:36]Write i2c OK [06:03:36]MH_I2C_Read... [06:03:36]Read from MH i2c: 01 [06:03:36]MH_I2C_Read... [06:03:36]Read from MH i2c: 01 07 00 [06:03:36]MH_I2C_Read... [06:03:36]Read from MH i2c: 01 07 00 93 08 00 00 00 00 00 61 0C 0F [06:03:36]RasterBufferAndPrint [06:03:36]line [06:03:36]line [06:03:36]line [06:03:36]line [06:03:36]line [06:03:36]written 0, free lines is 3173 [06:03:36]MH_Cut [06:03:36]Write to MH i2c: D1 01 00 9A 08 01 74 [06:03:36]Write i2c OK [06:03:36]MH_I2C_Read... [06:03:36]Read from MH i2c: D1 [06:03:36]MH_I2C_Read... [06:03:36]Read from MH i2c: D1 01 00 [06:03:36]MH_I2C_Read... [06:03:36]Read from MH i2c: D1 01 00 9A 08 00 73 [06:03:36]Write to MH i2c: 01 00 00 9B 08 A3 [06:03:36]Write i2c OK [06:03:36]MH_I2C_Read... [06:03:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 A0 56 47 00 67 0A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 C7 C5 01 00 F4 03 04 00 F4 4C F3 66 B6 04 01 00 00 85 B4 BE 49 C9 47 61 55 [06:03:37]CommunicateWithHost err = 0 [06:03:37]CheckOFDResponse [06:03:37]1017 (14) - 77093643461234 [06:03:37]1041 (16) - 0000000000871830 [06:03:37]1040 (4) - 116167 [06:03:37]1012 (4) - 24.09.2024 23:36 [06:03:37]1206 (1) - 0 [06:03:37]OFD Sender: Remove packet 116167 [06:03:37]ProducePacketName [06:03:37]name=ofd_packets/00116167 [06:03:37]NVStorageDeleteData [06:03:37]OFD Sender: No OFD packet to send [06:03:38]*** Cut start [06:03:38]*** Partial cut [06:03:38]*** CUTSNS_PIN = 1 [06:03:38]*** CUTSNS_PIN = 0 [06:03:38]*** Brake cut motor [06:03:38]Read from MH i2c: 01 [06:03:38]MH_I2C_Read... [06:03:38]*** Stop cut motor [06:03:38]*** Cut end [06:03:38]Read from MH i2c: 01 07 00 [06:03:38]MH_I2C_Read... [06:03:38]Read from MH i2c: 01 07 00 9B 08 00 00 00 00 00 FF 0F B8 [06:03:38]process_action close_receipt done [06:03:38]requested_data is exist [06:03:38]produce_requested_data [06:03:38]requested_item fm.sn is exist - process it [06:03:38]wFMCommunicate request_size=4 [06:03:38]MH_SAM_APDU [06:03:38]CAPDU: 80 11 00 00 [06:03:38]Write to MH i2c: E2 08 00 9C 08 80 11 00 00 00 00 00 00 1E [06:03:38]Write i2c OK [06:03:38]MH_I2C_Read... [06:03:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:03:38]Read from MH i2c: E2 [06:03:38]MH_I2C_Read... [06:03:38]Read from MH i2c: E2 17 00 [06:03:38]MH_I2C_Read... [06:03:38]Read from MH i2c: E2 17 00 9C 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 6C [06:03:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [06:03:38]wFMCommunicate OK [06:03:38]requested_item fd.num is exist - process it [06:03:38]SAM_PROTO_GetFieldsCounters [06:03:38]wFMCommunicate request_size=4 [06:03:38]MH_SAM_APDU [06:03:38]CAPDU: 80 13 00 00 [06:03:38]Write to MH i2c: E2 08 00 9D 08 80 13 00 00 00 00 00 00 21 [06:03:38]Write i2c OK [06:03:38]MH_I2C_Read... [06:03:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:03:39]Read from MH i2c: E2 [06:03:39]MH_I2C_Read... [06:03:39]Read from MH i2c: E2 62 00 [06:03:39]MH_I2C_Read... [06:03:39]Read from MH i2c: E2 62 00 9D 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 C7 C5 01 00 0E 04 04 00 DA 01 00 00 12 04 04 00 17 00 00 00 5E 04 04 00 17 00 00 00 57 04 04 00 18 00 00 00 19 04 04 00 00 00 00 00 90 00 E7 [06:03:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 C7 C5 01 00 0E 04 04 00 DA 01 00 00 12 04 04 00 17 00 00 00 5E 04 04 00 17 00 00 00 57 04 04 00 18 00 00 00 19 04 04 00 00 00 00 00 90 00 [06:03:39]wFMCommunicate OK [06:03:39]SAM_PROTO_GetFieldsCounters done [06:03:39]requested_item shift.num is exist - process it [06:03:39]requested_item shift.opened is exist - process it [06:03:39]req_shift_opened [06:03:39]FM_GetShiftState [06:03:39]SAM_PROTO_GetShiftState [06:03:39]wFMCommunicate request_size=4 [06:03:39]MH_SAM_APDU [06:03:39]CAPDU: 80 13 01 00 [06:03:39]Write to MH i2c: E2 08 00 9E 08 80 13 01 00 00 00 00 00 23 [06:03:39]Write i2c OK [06:03:39]MH_I2C_Read... [06:03:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:03:39]Read from MH i2c: E2 [06:03:39]MH_I2C_Read... [06:03:39]Read from MH i2c: E2 0E 00 [06:03:39]MH_I2C_Read... [06:03:39]Read from MH i2c: E2 0E 00 9E 08 00 09 00 01 63 60 F3 66 00 00 00 00 90 00 4B [06:03:39]RAPDU: 09 00 01 63 60 F3 66 00 00 00 00 90 00 [06:03:39]wFMCommunicate OK [06:03:39]SAM_PROTO_GetShiftState done [06:03:39]FM_GetShiftState done [06:03:39]req_shift_opened done [06:03:39]requested_item shift.open_date is exist - process it [06:03:39]req_shift_open_date [06:03:39]req_shift_open_date done [06:03:39]produce_requested_data done [06:03:39]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":116167,"shift.num":474,"shift.opened":1,"shift.open_date":1727225955} [06:03:39]process_action_free close_receipt [06:03:39]json_value_free [06:03:39]json_value_free done [06:03:39]process_json_proto returns [06:03:39]Send response to host [06:03:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":116167,"shift.num":474,"shift.opened":1,"shift.open_date":1727225955}}} [06:03:39]free response buf [06:03:39]execute_script done [06:03:39]execute_script returns [06:03:39]free content buf [06:03:39]Sock 8.Close socket [06:03:39]Sock 8.Thread stoped [06:03:42]OFD Sender: No OFD packet to send [06:03:47]OFD Sender: No OFD packet to send [06:03:52]OFD Sender: No OFD packet to send [06:03:57]OFD Sender: No OFD packet to send [06:04:02]OFD Sender: No OFD packet to send [06:04:07]OFD Sender: No OFD packet to send [06:04:12]OFD Sender: No OFD packet to send [06:04:17]OFD Sender: No OFD packet to send [06:04:22]OFD Sender: No OFD packet to send [06:04:27]OFD Sender: No OFD packet to send [06:04:32]OFD Sender: No OFD packet to send [06:04:37]OFD Sender: No OFD packet to send [06:04:42]OFD Sender: No OFD packet to send [06:04:47]OFD Sender: No OFD packet to send [06:04:52]OFD Sender: No OFD packet to send [06:04:57]OFD Sender: No OFD packet to send [06:05:02]OFD Sender: No OFD packet to send [06:05:07]OFD Sender: No OFD packet to send [06:05:12]OFD Sender: No OFD packet to send [06:05:17]OFD Sender: No OFD packet to send [06:05:22]OFD Sender: No OFD packet to send [06:05:27]OFD Sender: No OFD packet to send [06:05:32]OFD Sender: No OFD packet to send [06:05:37]OFD Sender: No OFD packet to send [06:05:42]OFD Sender: No OFD packet to send [06:05:47]OFD Sender: No OFD packet to send [06:05:52]OFD Sender: No OFD packet to send [06:05:57]OFD Sender: No OFD packet to send [06:06:02]OFD Sender: No OFD packet to send [06:06:07]OFD Sender: No OFD packet to send [06:06:12]OFD Sender: No OFD packet to send [06:06:17]OFD Sender: No OFD packet to send [06:06:22]OFD Sender: No OFD packet to send [06:06:27]OFD Sender: No OFD packet to send [06:06:32]OFD Sender: No OFD packet to send [06:06:37]OFD Sender: No OFD packet to send [06:06:42]OFD Sender: No OFD packet to send [06:06:47]OFD Sender: No OFD packet to send [06:06:52]OFD Sender: No OFD packet to send [06:06:58]OFD Sender: No OFD packet to send [06:07:03]OFD Sender: No OFD packet to send [06:07:08]OFD Sender: No OFD packet to send [06:07:13]OFD Sender: No OFD packet to send [06:07:18]OFD Sender: No OFD packet to send [06:07:23]OFD Sender: No OFD packet to send [06:07:28]OFD Sender: No OFD packet to send [06:07:33]OFD Sender: No OFD packet to send [06:07:38]OFD Sender: No OFD packet to send [06:07:43]OFD Sender: No OFD packet to send [06:07:48]OFD Sender: No OFD packet to send [06:07:53]OFD Sender: No OFD packet to send [06:07:58]OFD Sender: No OFD packet to send [06:08:03]OFD Sender: No OFD packet to send [06:08:08]OFD Sender: No OFD packet to send [06:08:13]OFD Sender: No OFD packet to send [06:08:18]OFD Sender: No OFD packet to send [06:08:23]OFD Sender: No OFD packet to send [06:08:28]OFD Sender: No OFD packet to send [06:08:33]OFD Sender: No OFD packet to send [06:08:38]OFD Sender: No OFD packet to send [06:08:43]OFD Sender: No OFD packet to send [06:08:48]OFD Sender: No OFD packet to send [06:08:53]OFD Sender: No OFD packet to send [06:08:58]OFD Sender: No OFD packet to send [06:09:03]OFD Sender: No OFD packet to send [06:09:08]OFD Sender: No OFD packet to send [06:09:13]OFD Sender: No OFD packet to send [06:09:18]OFD Sender: No OFD packet to send [06:09:23]OFD Sender: No OFD packet to send [06:09:28]OFD Sender: No OFD packet to send [06:09:33]OFD Sender: No OFD packet to send [06:09:38]OFD Sender: No OFD packet to send [06:09:43]OFD Sender: No OFD packet to send [06:09:48]OFD Sender: No OFD packet to send [06:09:53]OFD Sender: No OFD packet to send [06:09:58]OFD Sender: No OFD packet to send [06:10:03]OFD Sender: No OFD packet to send [06:10:08]OFD Sender: No OFD packet to send [06:10:13]OFD Sender: No OFD packet to send [06:10:18]OFD Sender: No OFD packet to send [06:10:23]OFD Sender: No OFD packet to send [06:10:28]OFD Sender: No OFD packet to send [06:10:33]OFD Sender: No OFD packet to send [06:10:38]OFD Sender: No OFD packet to send [06:10:43]OFD Sender: No OFD packet to send [06:10:48]OFD Sender: No OFD packet to send [06:10:53]OFD Sender: No OFD packet to send [06:10:58]OFD Sender: No OFD packet to send [06:11:03]OFD Sender: No OFD packet to send [06:11:08]OFD Sender: No OFD packet to send [06:11:13]OFD Sender: No OFD packet to send [06:11:18]OFD Sender: No OFD packet to send [06:11:23]OFD Sender: No OFD packet to send [06:11:28]OFD Sender: No OFD packet to send [06:11:33]OFD Sender: No OFD packet to send [06:11:38]OFD Sender: No OFD packet to send [06:11:43]OFD Sender: No OFD packet to send [06:11:48]OFD Sender: No OFD packet to send [06:11:53]OFD Sender: No OFD packet to send [06:11:58]OFD Sender: No OFD packet to send [06:12:03]OFD Sender: No OFD packet to send [06:12:08]OFD Sender: No OFD packet to send [06:12:13]OFD Sender: No OFD packet to send [06:12:18]OFD Sender: No OFD packet to send [06:12:23]OFD Sender: No OFD packet to send [06:12:28]OFD Sender: No OFD packet to send [06:12:33]OFD Sender: No OFD packet to send [06:12:38]OFD Sender: No OFD packet to send [06:12:43]OFD Sender: No OFD packet to send [06:12:48]OFD Sender: No OFD packet to send [06:12:53]OFD Sender: No OFD packet to send [06:12:58]OFD Sender: No OFD packet to send [06:13:03]OFD Sender: No OFD packet to send [06:13:08]OFD Sender: No OFD packet to send [06:13:13]OFD Sender: No OFD packet to send [06:13:18]OFD Sender: No OFD packet to send [06:13:23]OFD Sender: No OFD packet to send [06:13:28]OFD Sender: No OFD packet to send [06:13:33]OFD Sender: No OFD packet to send [06:13:38]OFD Sender: No OFD packet to send [06:13:43]OFD Sender: No OFD packet to send [06:13:48]OFD Sender: No OFD packet to send [06:13:53]OFD Sender: No OFD packet to send [06:13:59]OFD Sender: No OFD packet to send [06:14:04]OFD Sender: No OFD packet to send [06:14:09]OFD Sender: No OFD packet to send [06:14:14]OFD Sender: No OFD packet to send [06:14:19]OFD Sender: No OFD packet to send [06:14:24]OFD Sender: No OFD packet to send [06:14:29]OFD Sender: No OFD packet to send [06:14:34]OFD Sender: No OFD packet to send [06:14:39]OFD Sender: No OFD packet to send [06:14:44]OFD Sender: No OFD packet to send [06:14:49]OFD Sender: No OFD packet to send [06:14:54]OFD Sender: No OFD packet to send [06:14:59]OFD Sender: No OFD packet to send [06:15:04]OFD Sender: No OFD packet to send [06:15:09]OFD Sender: No OFD packet to send [06:15:14]OFD Sender: No OFD packet to send [06:15:19]OFD Sender: No OFD packet to send [06:15:24]OFD Sender: No OFD packet to send [06:15:29]OFD Sender: No OFD packet to send [06:15:34]OFD Sender: No OFD packet to send [06:15:39]OFD Sender: No OFD packet to send [06:15:44]OFD Sender: No OFD packet to send [06:15:49]OFD Sender: No OFD packet to send [06:15:54]OFD Sender: No OFD packet to send [06:15:59]OFD Sender: No OFD packet to send [06:16:04]OFD Sender: No OFD packet to send [06:16:09]OFD Sender: No OFD packet to send [06:16:14]OFD Sender: No OFD packet to send [06:16:19]OFD Sender: No OFD packet to send [06:16:24]OFD Sender: No OFD packet to send [06:16:29]OFD Sender: No OFD packet to send [06:16:34]OFD Sender: No OFD packet to send [06:16:39]OFD Sender: No OFD packet to send [06:16:44]OFD Sender: No OFD packet to send [06:16:49]OFD Sender: No OFD packet to send [06:16:54]OFD Sender: No OFD packet to send [06:16:59]OFD Sender: No OFD packet to send [06:17:04]OFD Sender: No OFD packet to send [06:17:09]OFD Sender: No OFD packet to send [06:17:14]OFD Sender: No OFD packet to send [06:17:19]OFD Sender: No OFD packet to send [06:17:24]OFD Sender: No OFD packet to send [06:17:29]OFD Sender: No OFD packet to send [06:17:34]OFD Sender: No OFD packet to send [06:17:39]OFD Sender: No OFD packet to send [06:17:44]OFD Sender: No OFD packet to send [06:17:49]OFD Sender: No OFD packet to send [06:17:54]OFD Sender: No OFD packet to send [06:17:59]OFD Sender: No OFD packet to send [06:18:04]OFD Sender: No OFD packet to send [06:18:09]OFD Sender: No OFD packet to send [06:18:14]OFD Sender: No OFD packet to send [06:18:19]OFD Sender: No OFD packet to send [06:18:24]OFD Sender: No OFD packet to send [06:18:29]OFD Sender: No OFD packet to send [06:18:34]OFD Sender: No OFD packet to send [06:18:39]OFD Sender: No OFD packet to send [06:18:44]OFD Sender: No OFD packet to send [06:18:49]OFD Sender: No OFD packet to send [06:18:54]OFD Sender: No OFD packet to send [06:18:59]OFD Sender: No OFD packet to send [06:19:04]OFD Sender: No OFD packet to send [06:19:09]OFD Sender: No OFD packet to send [06:19:14]OFD Sender: No OFD packet to send [06:19:19]OFD Sender: No OFD packet to send [06:19:24]OFD Sender: No OFD packet to send [06:19:29]OFD Sender: No OFD packet to send [06:19:34]OFD Sender: No OFD packet to send [06:19:39]OFD Sender: No OFD packet to send [06:19:44]OFD Sender: No OFD packet to send [06:19:49]OFD Sender: No OFD packet to send [06:19:54]OFD Sender: No OFD packet to send [06:19:59]OFD Sender: No OFD packet to send [06:20:04]OFD Sender: No OFD packet to send [06:20:09]OFD Sender: No OFD packet to send [06:20:14]OFD Sender: No OFD packet to send [06:20:19]OFD Sender: No OFD packet to send [06:20:24]OFD Sender: No OFD packet to send [06:20:29]OFD Sender: No OFD packet to send [06:20:34]OFD Sender: No OFD packet to send [06:20:39]OFD Sender: No OFD packet to send [06:20:44]OFD Sender: No OFD packet to send [06:20:49]OFD Sender: No OFD packet to send [06:20:54]OFD Sender: No OFD packet to send [06:21:00]OFD Sender: No OFD packet to send [06:21:05]OFD Sender: No OFD packet to send [06:21:10]OFD Sender: No OFD packet to send [06:21:15]OFD Sender: No OFD packet to send [06:21:20]OFD Sender: No OFD packet to send [06:21:25]OFD Sender: No OFD packet to send [06:21:30]OFD Sender: No OFD packet to send [06:21:35]OFD Sender: No OFD packet to send [06:21:40]OFD Sender: No OFD packet to send [06:21:45]OFD Sender: No OFD packet to send [06:21:50]OFD Sender: No OFD packet to send [06:21:55]OFD Sender: No OFD packet to send [06:22:00]OFD Sender: No OFD packet to send [06:22:05]OFD Sender: No OFD packet to send [06:22:10]OFD Sender: No OFD packet to send [06:22:15]OFD Sender: No OFD packet to send [06:22:20]OFD Sender: No OFD packet to send [06:22:25]OFD Sender: No OFD packet to send [06:22:30]OFD Sender: No OFD packet to send [06:22:35]OFD Sender: No OFD packet to send [06:22:40]OFD Sender: No OFD packet to send [06:22:45]OFD Sender: No OFD packet to send [06:22:50]OFD Sender: No OFD packet to send [06:22:55]OFD Sender: No OFD packet to send [06:23:00]OFD Sender: No OFD packet to send [06:23:05]OFD Sender: No OFD packet to send [06:23:10]OFD Sender: No OFD packet to send [06:23:15]OFD Sender: No OFD packet to send [06:23:20]OFD Sender: No OFD packet to send [06:23:25]OFD Sender: No OFD packet to send [06:23:30]OFD Sender: No OFD packet to send [06:23:35]OFD Sender: No OFD packet to send [06:23:40]OFD Sender: No OFD packet to send [06:23:45]OFD Sender: No OFD packet to send [06:23:50]OFD Sender: No OFD packet to send [06:23:55]OFD Sender: No OFD packet to send [06:24:00]OFD Sender: No OFD packet to send [06:24:05]OFD Sender: No OFD packet to send [06:24:10]OFD Sender: No OFD packet to send [06:24:15]OFD Sender: No OFD packet to send [06:24:20]OFD Sender: No OFD packet to send [06:24:25]OFD Sender: No OFD packet to send [06:24:30]OFD Sender: No OFD packet to send [06:24:35]OFD Sender: No OFD packet to send [06:24:40]OFD Sender: No OFD packet to send [06:24:45]OFD Sender: No OFD packet to send [06:24:50]OFD Sender: No OFD packet to send [06:24:55]OFD Sender: No OFD packet to send [06:25:00]OFD Sender: No OFD packet to send [06:25:05]OFD Sender: No OFD packet to send [06:25:10]OFD Sender: No OFD packet to send [06:25:15]OFD Sender: No OFD packet to send [06:25:20]OFD Sender: No OFD packet to send [06:25:25]OFD Sender: No OFD packet to send [06:25:30]OFD Sender: No OFD packet to send [06:25:35]OFD Sender: No OFD packet to send [06:25:40]OFD Sender: No OFD packet to send [06:25:45]OFD Sender: No OFD packet to send [06:25:50]OFD Sender: No OFD packet to send [06:25:55]OFD Sender: No OFD packet to send [06:26:00]OFD Sender: No OFD packet to send [06:26:05]OFD Sender: No OFD packet to send [06:26:10]OFD Sender: No OFD packet to send [06:26:15]OFD Sender: No OFD packet to send [06:26:20]OFD Sender: No OFD packet to send [06:26:25]OFD Sender: No OFD packet to send [06:26:30]OFD Sender: No OFD packet to send [06:26:35]OFD Sender: No OFD packet to send [06:26:40]OFD Sender: No OFD packet to send [06:26:45]OFD Sender: No OFD packet to send [06:26:50]OFD Sender: No OFD packet to send [06:26:55]OFD Sender: No OFD packet to send [06:27:00]OFD Sender: No OFD packet to send [06:27:05]OFD Sender: No OFD packet to send [06:27:10]OFD Sender: No OFD packet to send [06:27:15]OFD Sender: No OFD packet to send [06:27:20]OFD Sender: No OFD packet to send [06:27:25]OFD Sender: No OFD packet to send [06:27:30]OFD Sender: No OFD packet to send [06:27:35]OFD Sender: No OFD packet to send [06:27:40]OFD Sender: No OFD packet to send [06:27:45]OFD Sender: No OFD packet to send [06:27:50]OFD Sender: No OFD packet to send [06:27:55]OFD Sender: No OFD packet to send [06:28:01]OFD Sender: No OFD packet to send [06:28:06]OFD Sender: No OFD packet to send [06:28:11]OFD Sender: No OFD packet to send [06:28:16]OFD Sender: No OFD packet to send [06:28:21]OFD Sender: No OFD packet to send [06:28:26]OFD Sender: No OFD packet to send [06:28:31]OFD Sender: No OFD packet to send [06:28:36]OFD Sender: No OFD packet to send [06:28:41]OFD Sender: No OFD packet to send [06:28:46]OFD Sender: No OFD packet to send [06:28:51]OFD Sender: No OFD packet to send [06:28:56]OFD Sender: No OFD packet to send [06:29:01]OFD Sender: No OFD packet to send [06:29:06]OFD Sender: No OFD packet to send [06:29:11]OFD Sender: No OFD packet to send [06:29:16]OFD Sender: No OFD packet to send [06:29:21]OFD Sender: No OFD packet to send [06:29:26]OFD Sender: No OFD packet to send [06:29:31]OFD Sender: No OFD packet to send [06:29:36]OFD Sender: No OFD packet to send [06:29:41]OFD Sender: No OFD packet to send [06:29:46]OFD Sender: No OFD packet to send [06:29:51]OFD Sender: No OFD packet to send [06:29:56]OFD Sender: No OFD packet to send [06:30:01]OFD Sender: No OFD packet to send [06:30:06]OFD Sender: No OFD packet to send [06:30:11]OFD Sender: No OFD packet to send [06:30:16]OFD Sender: No OFD packet to send [06:30:21]OFD Sender: No OFD packet to send [06:30:26]OFD Sender: No OFD packet to send [06:30:31]OFD Sender: No OFD packet to send [06:30:35]accept exits with 9 [06:30:35]New connection [06:30:35]New thread 3067207012 created [06:30:35]Thread 3067350372 joined [06:30:35]Waiting for new connection... [06:30:35] Sock 9.Parse request [06:30:35]Sock 9.Check first char [06:30:35]Sock 9.First char is OK [06:30:35]request: POST /json_proto HTTP/1.0 [06:30:35]Method: POST [06:30:35]URL: /json_proto [06:30:35]Method is POST - this is cgi request [06:30:35]url: /json_proto [06:30:35]query_string will be loaded in cgi processing [06:30:35]execute_cgi json_proto POST (null) [06:30:35]execute_cgi path=json_proto method=POST [06:30:35]POST find Content-Length [06:30:35]Host: 172.17.41.136:8080 [06:30:35]Content-Length: 791 [06:30:35]Content-Type: application/json [06:30:35] [06:30:35]POST finish read [06:30:35]Found Content-Length = 791 [06:30:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)24619001", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 65", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 52.500, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A82303", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:30:35]execute_script... [06:30: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)24619001", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 65", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 52.500, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A82303", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:30:35]POST & json_proto [06:30:35]process_json_proto [06:30:35]json parsed OK: [06:30:35]protocol is kg_v1.0 [06:30:35]action value=close_receipt [06:30:35]process_action close_receipt [06:30:35]cmd_close_receipt [06:30:35]MH_GetDate [06:30:35]Write to MH i2c: F0 00 00 9F 08 96 [06:30:35]Write i2c OK [06:30:35]MH_I2C_Read... [06:30:35]Read from MH i2c: F0 [06:30:35]MH_I2C_Read... [06:30:35]Read from MH i2c: F0 09 00 [06:30:35]MH_I2C_Read... [06:30:35]Read from MH i2c: F0 09 00 9F 08 00 0D AE F3 66 1B D0 5A 64 5C [06:30:35]GetLastDocTimeStamp 1727244216 [06:30:35]current date 1727245837 [06:30:35]FM_GetShiftState [06:30:35]SAM_PROTO_GetShiftState [06:30:35]wFMCommunicate request_size=4 [06:30:35]MH_SAM_APDU [06:30:35]CAPDU: 80 13 01 00 [06:30:35]Write to MH i2c: E2 08 00 A0 08 80 13 01 00 00 00 00 00 25 [06:30:35]Write i2c OK [06:30:35]MH_I2C_Read... [06:30:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:30:35]Read from MH i2c: E2 [06:30:35]MH_I2C_Read... [06:30:35]Read from MH i2c: E2 0E 00 [06:30:35]MH_I2C_Read... [06:30:35]Read from MH i2c: E2 0E 00 A0 08 00 09 00 01 63 60 F3 66 00 00 00 00 90 00 4D [06:30:35]RAPDU: 09 00 01 63 60 F3 66 00 00 00 00 90 00 [06:30:35]wFMCommunicate OK [06:30:35]SAM_PROTO_GetShiftState done [06:30:35]FM_GetShiftState done [06:30:35]opened in 1727225955 [06:30:35]opened+sec_in_day 1727312355 [06:30:35]quantity*price = 0 [06:30:35]sum+1 = 1 [06:30:35]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 24 25.09.2024 06:30 Смена: 474 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 Талоны: Топливная Карта 82303 ФМ: 0000000000871830 ФД: 116168 ФПД: 217816154066290 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240925T063037&type=1&operation_type=1&fn_number=0000000000871830&fd_number=116168&fm=217816154066290&tin=02508201610067®Number=0000000000091831&sum=0 [06:30:36]StoreToDocumentArchive [06:30:36]shift 474 fd 116168 [06:30:36]save to /storage/0474/doc_00116168 [06:30:36]save last doc name /storage/0474/doc_00116168 to /storage/kkm_last_doc_name [06:30:36]save OK [06:30:36]Clear old archive folders... [06:30:36]ProcessDocumentItem done err = 0, tmpTLVsize=248 [06:30:36]tlvbuf is 019C5460 [06:30:36]SAM_PROTO_ClearQueue [06:30:36]wFMCommunicate request_size=4 [06:30:36]MH_SAM_APDU [06:30:36]CAPDU: 80 09 00 00 [06:30:36]Write to MH i2c: E2 08 00 AD 08 80 09 00 00 00 00 00 00 27 [06:30:36]Write i2c OK [06:30:36]MH_I2C_Read... [06:30:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:30:36]Read from MH i2c: E2 [06:30:36]MH_I2C_Read... [06:30:36]Read from MH i2c: E2 03 00 [06:30:36]MH_I2C_Read... [06:30:36]Read from MH i2c: E2 03 00 AD 08 00 90 00 29 [06:30:36]RAPDU: 90 00 [06:30:36]wFMCommunicate OK [06:30:36]SAM_PROTO_ClearQueue done [06:30:36]KKMCreateOFDPacket [06:30:36]OFDProtocolAddRootSTLVToBuf [06:30:36]FM_MakeSignedData [06:30:36]FM_MakeSignedData [06:30:36]SAM_PROTO_SignData [06:30:36]wFMCommunicate request_size=4 [06:30:36]MH_SAM_APDU [06:30:36]CAPDU: 80 0D 01 02 [06:30:36]Write to MH i2c: E2 08 00 AE 08 80 0D 01 02 00 00 00 00 2F [06:30:36]Write i2c OK [06:30:36]MH_I2C_Read... [06:30:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:30:36]Read from MH i2c: E2 [06:30:36]MH_I2C_Read... [06:30:36]Read from MH i2c: E2 03 00 [06:30:36]MH_I2C_Read... [06:30:36]Read from MH i2c: E2 03 00 AE 08 00 90 00 2A [06:30:36]RAPDU: 90 00 [06:30:36]wFMCommunicate OK [06:30:36]wFMCommunicate request_size=255 [06:30:36]MH_SAM_APDU [06:30:36]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 14 CD 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 0D AE F3 66 0E 04 04 00 DA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 C8 C5 01 00 35 04 06 00 C6 1A 46 7D [06:30:36]Write to MH i2c: E2 02 01 AF 08 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 14 CD 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 0D AE F3 66 0E 04 04 00 DA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 C8 C5 01 00 35 04 06 00 C6 1A 46 7D 00 00 9D [06:30:36]Write i2c OK [06:30:36]MH_I2C_Read... [06:30:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:30:37]Read from MH i2c: E2 [06:30:37]MH_I2C_Read... [06:30:37]Read from MH i2c: E2 03 00 [06:30:37]MH_I2C_Read... [06:30:37]Read from MH i2c: E2 03 00 AF 08 00 90 00 2B [06:30:37]RAPDU: 90 00 [06:30:37]wFMCommunicate OK [06:30:37]wFMCommunicate request_size=7 [06:30:37]MH_SAM_APDU [06:30:37]CAPDU: 80 0D 02 02 02 4D 72 [06:30:37]Write to MH i2c: E2 0A 00 B0 08 80 0D 02 02 02 00 4D 72 00 00 F5 [06:30:37]Write i2c OK [06:30:37]MH_I2C_Read... [06:30:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:30:37]Read from MH i2c: E2 [06:30:37]MH_I2C_Read... [06:30:37]Read from MH i2c: E2 03 00 [06:30:37]MH_I2C_Read... [06:30:37]Read from MH i2c: E2 03 00 B0 08 00 90 00 2C [06:30:37]RAPDU: 90 00 [06:30:37]wFMCommunicate OK [06:30:37]wFMCommunicate request_size=4 [06:30:37]MH_SAM_APDU [06:30:37]CAPDU: 80 0D 03 02 [06:30:37]Write to MH i2c: E2 08 00 B1 08 80 0D 03 02 00 00 00 00 34 [06:30:37]Write i2c OK [06:30:37]MH_I2C_Read... [06:30:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:30:37]Read from MH i2c: E2 [06:30:37]MH_I2C_Read... [06:30:37]Read from MH i2c: E2 0B 00 [06:30:37]MH_I2C_Read... [06:30:37]Read from MH i2c: E2 0B 00 B1 08 00 69 50 47 30 CB BE 04 E2 90 00 D4 [06:30:37]RAPDU: 69 50 47 30 CB BE 04 E2 90 00 [06:30:37]wFMCommunicate OK [06:30:37]SAM_PROTO_SignData done [06:30:37]FM_MakeSignedData done [06:30:37]CreateOFDProtocolMessage [06:30:37]wFMCommunicate request_size=4 [06:30:37]MH_SAM_APDU [06:30:37]CAPDU: 80 11 00 00 [06:30:37]Write to MH i2c: E2 08 00 B2 08 80 11 00 00 00 00 00 00 34 [06:30:37]Write i2c OK [06:30:37]MH_I2C_Read... [06:30:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:30:37]Read from MH i2c: E2 [06:30:37]MH_I2C_Read... [06:30:37]Read from MH i2c: E2 17 00 [06:30:37]MH_I2C_Read... [06:30:37]Read from MH i2c: E2 17 00 B2 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 82 [06:30:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [06:30:37]wFMCommunicate OK [06:30:37]CreateOFDProtocolMessage done [06:30:37]OFDSenderStorePacket 116168 [06:30:37]StoreOFDPacket docnum=116168 [06:30:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0C 01 00 00 88 C3 04 01 04 57 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 14 CD 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 0D AE F3 66 0E 04 04 00 DA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 C8 C5 01 00 35 04 06 00 C6 1A 46 7D 4D 72 69 50 47 30 CB BE 04 E2 [06:30:37]CheckFolder [06:30:37]dirname=/storage/ofd_packets [06:30:37]CheckFolder done [06:30:37]ProducePacketName [06:30:37]name=ofd_packets/00116168 [06:30:37]NVStorageSaveData ofd_packets/00116168 [06:30:37]File name is /storage/ofd_packets/00116168 [06:30:37]Write 298 bytes [06:30:37]NVStorageSaveData done [06:30:37]OFDSenderStorePacket done [06:30:37]KKMCreateOFDPacket done [06:30:37]NVStorageSaveData kkm_last_timestamp [06:30:37]File name is /storage/kkm_last_timestamp [06:30:37]Write 4 bytes [06:30:37]NVStorageSaveData done [06:30:37]ExternCall_PrintAddStr [06:30:37]wPrintStart [06:30:37]Write to MH i2c: 01 00 00 B3 08 BB [06:30:37]Write i2c OK [06:30:37]MH_I2C_Read... [06:30:37]Read from MH i2c: 01 [06:30:37]MH_I2C_Read... [06:30:37]Read from MH i2c: 01 07 00 [06:30:37]MH_I2C_Read... [06:30:37]Read from MH i2c: 01 07 00 B3 08 00 00 00 00 00 FF 0F D0 [06:30:37]RasterBufferAndPrint [06:30:37]line Счет N : (1)24619001 [06:30:37]line ИНН: 02508201610067 [06:30:37]line Контрольно-Кассовый Чек [06:30:37]line ПРОДАЖА [06:30:37]line ТРК (МРК, ГНК) : 65 [06:30:37]line Товар: 2710194210 [06:30:37]line ДТ-К-5 [06:30:37]line 52.500 * 0.00 [06:30:37]line = 0.00 [06:30:37]line НДС 12% НСП 1% [06:30:37]line > о реализуемом товаре [06:30:37]line ИТОГО: 0.00 [06:30:37]line НСП 1% : 0.00 [06:30:37]line НДС 12% : 0.00 [06:30:37]line Наличными: 0.00 [06:30:37]line Безнал.: 0.00 [06:30:37]line Место: АЗС № 90 "Партнер Нефть" [06:30:37]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [06:30:37]line СНО: Общий режим [06:30:37]line Чек 24 25.09.2024 06:30 [06:30:37]line Смена: 474 ФФД: 1.0 [06:30:37]line ЗНМ: 0300000120 [06:30:37]line РНМ: 0000000000091831 [06:30:37]line Версия ККМ: 001 [06:30:37]line Талоны: Топливная Карта [06:30:37]line 82303 [06:30:37]line ФМ: 0000000000871830 [06:30:37]line ФД: 116168 [06:30:37]line ФПД: 217816154066290 [06:30:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240925T063037&type=1&operation_type=1&fn_number=0000000000871830&fd_number=116168&fm=217816154066290&tin=02508201610067®Number=0000000000091831&sum=0 [06:30:37]written 0, free lines is 4095 [06:30:37]OFD Sender: Processing packet 116168 [packets to send 482, broken 481] [06:30:37]ProducePacketName [06:30:37]name=ofd_packets/00116168 [06:30:37]OFD Sender: To server: pG, [06:30:37]CommunicateWithHost lk.salyk.kg:30040 [06:30:37]ConnectInit lk.salyk.kg [06:30:37]Write to MH i2c: 01 00 00 DC 08 E4 [06:30:37]Write i2c OK [06:30:37]MH_I2C_Read... [06:30:37]Read from MH i2c: 01 [06:30:37]MH_I2C_Read... [06:30:37]Read from MH i2c: 01 07 00 [06:30:37]MH_I2C_Read... [06:30:37]Read from MH i2c: 01 07 00 DC 08 00 00 00 00 00 5B 0C 52 [06:30:37]RasterBufferAndPrint [06:30:37]line [06:30:37]line [06:30:37]line [06:30:37]line [06:30:37]line [06:30:37]written 0, free lines is 3167 [06:30:37]MH_Cut [06:30:37]Write to MH i2c: D1 01 00 E3 08 01 BD [06:30:37]Write i2c OK [06:30:37]MH_I2C_Read... [06:30:37]Read from MH i2c: D1 [06:30:37]MH_I2C_Read... [06:30:37]Read from MH i2c: D1 01 00 [06:30:37]MH_I2C_Read... [06:30:37]Read from MH i2c: D1 01 00 E3 08 00 BC [06:30:37]Write to MH i2c: 01 00 00 E4 08 EC [06:30:37]Write i2c OK [06:30:37]MH_I2C_Read... [06:30:37]Connected sock=10 [06:30:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0C 01 00 00 88 C3 04 01 04 57 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 14 CD 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 0D AE F3 66 0E 04 04 00 DA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 C8 C5 01 00 35 04 06 00 C6 1A 46 7D 4D 72 69 50 47 30 CB BE 04 E2 [06:30:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 FE F7 47 00 CA 8D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 C8 C5 01 00 F4 03 04 00 4A 53 F3 66 B6 04 01 00 00 CF E7 A2 DE C6 7B BF 16 [06:30:38]CommunicateWithHost err = 0 [06:30:38]CheckOFDResponse [06:30:38]1017 (14) - 77093643461234 [06:30:38]1041 (16) - 0000000000871830 [06:30:38]1040 (4) - 116168 [06:30:38]1012 (4) - 25.09.2024 00:03 [06:30:38]1206 (1) - 0 [06:30:38]OFD Sender: Remove packet 116168 [06:30:38]ProducePacketName [06:30:38]name=ofd_packets/00116168 [06:30:38]NVStorageDeleteData [06:30:38]OFD Sender: No OFD packet to send [06:30:39]*** Cut start [06:30:39]*** Partial cut [06:30:39]*** CUTSNS_PIN = 1 [06:30:39]*** CUTSNS_PIN = 0 [06:30:39]*** Brake cut motor [06:30:39]Read from MH i2c: 01 [06:30:39]MH_I2C_Read... [06:30:39]*** Stop cut motor [06:30:39]*** Cut end [06:30:39]Read from MH i2c: 01 07 00 [06:30:39]MH_I2C_Read... [06:30:39]Read from MH i2c: 01 07 00 E4 08 00 00 00 00 00 FF 0F 01 [06:30:39]process_action close_receipt done [06:30:39]requested_data is exist [06:30:39]produce_requested_data [06:30:39]requested_item fm.sn is exist - process it [06:30:39]wFMCommunicate request_size=4 [06:30:39]MH_SAM_APDU [06:30:39]CAPDU: 80 11 00 00 [06:30:39]Write to MH i2c: E2 08 00 E5 08 80 11 00 00 00 00 00 00 67 [06:30:39]Write i2c OK [06:30:39]MH_I2C_Read... [06:30:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:30:39]Read from MH i2c: E2 [06:30:39]MH_I2C_Read... [06:30:39]Read from MH i2c: E2 17 00 [06:30:39]MH_I2C_Read... [06:30:39]Read from MH i2c: E2 17 00 E5 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 B5 [06:30:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [06:30:39]wFMCommunicate OK [06:30:39]requested_item fd.num is exist - process it [06:30:39]SAM_PROTO_GetFieldsCounters [06:30:39]wFMCommunicate request_size=4 [06:30:39]MH_SAM_APDU [06:30:39]CAPDU: 80 13 00 00 [06:30:39]Write to MH i2c: E2 08 00 E6 08 80 13 00 00 00 00 00 00 6A [06:30:39]Write i2c OK [06:30:39]MH_I2C_Read... [06:30:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:30:39]Read from MH i2c: E2 [06:30:39]MH_I2C_Read... [06:30:39]Read from MH i2c: E2 62 00 [06:30:39]MH_I2C_Read... [06:30:39]Read from MH i2c: E2 62 00 E6 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 C8 C5 01 00 0E 04 04 00 DA 01 00 00 12 04 04 00 18 00 00 00 5E 04 04 00 18 00 00 00 57 04 04 00 19 00 00 00 19 04 04 00 00 00 00 00 90 00 34 [06:30:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 C8 C5 01 00 0E 04 04 00 DA 01 00 00 12 04 04 00 18 00 00 00 5E 04 04 00 18 00 00 00 57 04 04 00 19 00 00 00 19 04 04 00 00 00 00 00 90 00 [06:30:39]wFMCommunicate OK [06:30:39]SAM_PROTO_GetFieldsCounters done [06:30:39]requested_item shift.num is exist - process it [06:30:39]requested_item shift.opened is exist - process it [06:30:39]req_shift_opened [06:30:39]FM_GetShiftState [06:30:39]SAM_PROTO_GetShiftState [06:30:39]wFMCommunicate request_size=4 [06:30:39]MH_SAM_APDU [06:30:39]CAPDU: 80 13 01 00 [06:30:39]Write to MH i2c: E2 08 00 E7 08 80 13 01 00 00 00 00 00 6C [06:30:39]Write i2c OK [06:30:39]MH_I2C_Read... [06:30:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:30:39]Read from MH i2c: E2 [06:30:39]MH_I2C_Read... [06:30:39]Read from MH i2c: E2 0E 00 [06:30:39]MH_I2C_Read... [06:30:39]Read from MH i2c: E2 0E 00 E7 08 00 09 00 01 63 60 F3 66 00 00 00 00 90 00 94 [06:30:39]RAPDU: 09 00 01 63 60 F3 66 00 00 00 00 90 00 [06:30:39]wFMCommunicate OK [06:30:39]SAM_PROTO_GetShiftState done [06:30:39]FM_GetShiftState done [06:30:39]req_shift_opened done [06:30:39]requested_item shift.open_date is exist - process it [06:30:39]req_shift_open_date [06:30:39]req_shift_open_date done [06:30:39]produce_requested_data done [06:30:39]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":116168,"shift.num":474,"shift.opened":1,"shift.open_date":1727225955} [06:30:39]process_action_free close_receipt [06:30:39]json_value_free [06:30:39]json_value_free done [06:30:39]process_json_proto returns [06:30:39]Send response to host [06:30:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":116168,"shift.num":474,"shift.opened":1,"shift.open_date":1727225955}}} [06:30:39]free response buf [06:30:39]execute_script done [06:30:39]execute_script returns [06:30:39]free content buf [06:30:39]Sock 9.Close socket [06:30:39]Sock 9.Thread stoped [06:30:43]OFD Sender: No OFD packet to send [06:30:48]OFD Sender: No OFD packet to send [06:30:53]OFD Sender: No OFD packet to send [06:30:58]OFD Sender: No OFD packet to send [06:31:03]OFD Sender: No OFD packet to send [06:31:08]OFD Sender: No OFD packet to send [06:31:13]OFD Sender: No OFD packet to send [06:31:18]OFD Sender: No OFD packet to send [06:31:23]OFD Sender: No OFD packet to send [06:31:28]OFD Sender: No OFD packet to send [06:31:33]OFD Sender: No OFD packet to send [06:31:38]OFD Sender: No OFD packet to send [06:31:43]OFD Sender: No OFD packet to send [06:31:48]OFD Sender: No OFD packet to send [06:31:53]OFD Sender: No OFD packet to send [06:31:58]OFD Sender: No OFD packet to send [06:32:03]OFD Sender: No OFD packet to send [06:32:08]OFD Sender: No OFD packet to send [06:32:13]OFD Sender: No OFD packet to send [06:32:18]OFD Sender: No OFD packet to send [06:32:23]OFD Sender: No OFD packet to send [06:32:29]OFD Sender: No OFD packet to send [06:32:34]OFD Sender: No OFD packet to send [06:32:39]OFD Sender: No OFD packet to send [06:32:44]OFD Sender: No OFD packet to send [06:32:49]OFD Sender: No OFD packet to send [06:32:54]OFD Sender: No OFD packet to send [06:32:59]OFD Sender: No OFD packet to send [06:33:04]OFD Sender: No OFD packet to send [06:33:09]OFD Sender: No OFD packet to send [06:33:14]OFD Sender: No OFD packet to send [06:33:19]OFD Sender: No OFD packet to send [06:33:24]OFD Sender: No OFD packet to send [06:33:29]OFD Sender: No OFD packet to send [06:33:34]OFD Sender: No OFD packet to send [06:33:39]OFD Sender: No OFD packet to send [06:33:44]OFD Sender: No OFD packet to send [06:33:49]OFD Sender: No OFD packet to send [06:33:54]OFD Sender: No OFD packet to send [06:33:59]OFD Sender: No OFD packet to send [06:34:04]OFD Sender: No OFD packet to send [06:34:09]OFD Sender: No OFD packet to send [06:34:14]OFD Sender: No OFD packet to send [06:34:19]OFD Sender: No OFD packet to send [06:34:24]OFD Sender: No OFD packet to send [06:34:29]OFD Sender: No OFD packet to send [06:34:34]OFD Sender: No OFD packet to send [06:34:39]OFD Sender: No OFD packet to send [06:34:44]OFD Sender: No OFD packet to send [06:34:49]OFD Sender: No OFD packet to send [06:34:54]OFD Sender: No OFD packet to send [06:34:59]OFD Sender: No OFD packet to send [06:35:04]OFD Sender: No OFD packet to send [06:35:09]OFD Sender: No OFD packet to send [06:35:14]OFD Sender: No OFD packet to send [06:35:19]OFD Sender: No OFD packet to send [06:35:24]OFD Sender: No OFD packet to send [06:35:29]OFD Sender: No OFD packet to send [06:35:34]OFD Sender: No OFD packet to send [06:35:39]OFD Sender: No OFD packet to send [06:35:44]OFD Sender: No OFD packet to send [06:35:49]OFD Sender: No OFD packet to send [06:35:54]OFD Sender: No OFD packet to send [06:35:59]OFD Sender: No OFD packet to send [06:36:04]OFD Sender: No OFD packet to send [06:36:09]OFD Sender: No OFD packet to send [06:36:14]OFD Sender: No OFD packet to send [06:36:19]OFD Sender: No OFD packet to send [06:36:24]OFD Sender: No OFD packet to send [06:36:29]OFD Sender: No OFD packet to send [06:36:34]OFD Sender: No OFD packet to send [06:36:39]OFD Sender: No OFD packet to send [06:36:44]OFD Sender: No OFD packet to send [06:36:49]OFD Sender: No OFD packet to send [06:36:54]OFD Sender: No OFD packet to send [06:36:59]OFD Sender: No OFD packet to send [06:37:04]OFD Sender: No OFD packet to send [06:37:09]OFD Sender: No OFD packet to send [06:37:14]OFD Sender: No OFD packet to send [06:37:19]OFD Sender: No OFD packet to send [06:37:24]OFD Sender: No OFD packet to send [06:37:29]OFD Sender: No OFD packet to send [06:37:34]OFD Sender: No OFD packet to send [06:37:39]OFD Sender: No OFD packet to send [06:37:44]OFD Sender: No OFD packet to send [06:37:49]OFD Sender: No OFD packet to send [06:37:54]OFD Sender: No OFD packet to send [06:37:59]OFD Sender: No OFD packet to send [06:38:04]OFD Sender: No OFD packet to send [06:38:09]OFD Sender: No OFD packet to send [06:38:14]OFD Sender: No OFD packet to send [06:38:19]OFD Sender: No OFD packet to send [06:38:24]OFD Sender: No OFD packet to send [06:38:29]OFD Sender: No OFD packet to send [06:38:34]OFD Sender: No OFD packet to send [06:38:39]OFD Sender: No OFD packet to send [06:38:44]OFD Sender: No OFD packet to send [06:38:49]OFD Sender: No OFD packet to send [06:38:54]OFD Sender: No OFD packet to send [06:38:59]OFD Sender: No OFD packet to send [06:39:04]OFD Sender: No OFD packet to send [06:39:09]OFD Sender: No OFD packet to send [06:39:14]OFD Sender: No OFD packet to send [06:39:19]OFD Sender: No OFD packet to send [06:39:24]OFD Sender: No OFD packet to send [06:39:29]OFD Sender: No OFD packet to send [06:39:35]OFD Sender: No OFD packet to send [06:39:40]OFD Sender: No OFD packet to send [06:39:45]OFD Sender: No OFD packet to send [06:39:50]OFD Sender: No OFD packet to send [06:39:55]OFD Sender: No OFD packet to send [06:40:00]OFD Sender: No OFD packet to send [06:40:05]OFD Sender: No OFD packet to send [06:40:10]OFD Sender: No OFD packet to send [06:40:15]OFD Sender: No OFD packet to send [06:40:20]OFD Sender: No OFD packet to send [06:40:25]OFD Sender: No OFD packet to send [06:40:30]OFD Sender: No OFD packet to send [06:40:35]OFD Sender: No OFD packet to send [06:40:40]OFD Sender: No OFD packet to send [06:40:45]OFD Sender: No OFD packet to send [06:40:50]OFD Sender: No OFD packet to send [06:40:55]OFD Sender: No OFD packet to send [06:41:00]OFD Sender: No OFD packet to send [06:41:05]OFD Sender: No OFD packet to send [06:41:08]accept exits with 8 [06:41:08]New connection [06:41:08]New thread 3067350372 created [06:41:08]Thread 3067207012 joined [06:41:08]Waiting for new connection... [06:41:08] Sock 8.Parse request [06:41:08]Sock 8.Check first char [06:41:08]Sock 8.First char is OK [06:41:08]request: POST /json_proto HTTP/1.0 [06:41:08]Method: POST [06:41:08]URL: /json_proto [06:41:08]Method is POST - this is cgi request [06:41:08]url: /json_proto [06:41:08]query_string will be loaded in cgi processing [06:41:08]execute_cgi json_proto POST (null) [06:41:08]execute_cgi path=json_proto method=POST [06:41:08]POST find Content-Length [06:41:08]Host: 172.17.41.136:8080 [06:41:08]Content-Length: 647 [06:41:08]Content-Type: application/json [06:41:08] [06:41:08]POST finish read [06:41:08]Found Content-Length = 647 [06:41:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)344354", "tax_sys" : 0, "items" : [ { "code": "47011656", "name": "\u0412\u043E\u0434\u043A\u0430 \u041F\u0448\u0435\u043D\u0438\u0447\u043D\u0430\u044F 0,1\u043B", "price" : 65.00, "quantity" : 2.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:41:08]execute_script... [06:41: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 : (3)344354", "tax_sys" : 0, "items" : [ { "code": "47011656", "name": "\u0412\u043E\u0434\u043A\u0430 \u041F\u0448\u0435\u043D\u0438\u0447\u043D\u0430\u044F 0,1\u043B", "price" : 65.00, "quantity" : 2.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:41:08]POST & json_proto [06:41:08]process_json_proto [06:41:08]json parsed OK: [06:41:08]protocol is kg_v1.0 [06:41:08]action value=close_receipt [06:41:08]process_action close_receipt [06:41:08]cmd_close_receipt [06:41:08]MH_GetDate [06:41:08]Write to MH i2c: F0 00 00 E8 08 DF [06:41:08]Write i2c OK [06:41:08]MH_I2C_Read... [06:41:08]Read from MH i2c: F0 [06:41:08]MH_I2C_Read... [06:41:08]Read from MH i2c: F0 09 00 [06:41:08]MH_I2C_Read... [06:41:08]Read from MH i2c: F0 09 00 E8 08 00 85 B0 F3 66 1B D0 5A 64 1F [06:41:08]GetLastDocTimeStamp 1727245837 [06:41:08]current date 1727246469 [06:41:08]FM_GetShiftState [06:41:08]SAM_PROTO_GetShiftState [06:41:08]wFMCommunicate request_size=4 [06:41:08]MH_SAM_APDU [06:41:08]CAPDU: 80 13 01 00 [06:41:08]Write to MH i2c: E2 08 00 E9 08 80 13 01 00 00 00 00 00 6E [06:41:08]Write i2c OK [06:41:08]MH_I2C_Read... [06:41:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:41:08]Read from MH i2c: E2 [06:41:08]MH_I2C_Read... [06:41:08]Read from MH i2c: E2 0E 00 [06:41:08]MH_I2C_Read... [06:41:08]Read from MH i2c: E2 0E 00 E9 08 00 09 00 01 63 60 F3 66 00 00 00 00 90 00 96 [06:41:08]RAPDU: 09 00 01 63 60 F3 66 00 00 00 00 90 00 [06:41:08]wFMCommunicate OK [06:41:08]SAM_PROTO_GetShiftState done [06:41:08]FM_GetShiftState done [06:41:08]opened in 1727225955 [06:41:08]opened+sec_in_day 1727312355 [06:41:08]quantity*price = 13000 [06:41:08]sum+1 = 13001 [06:41:08]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 130.00 НСП 1% : 1.15 НДС 12% : 13.80 Наличными: 130.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 25 25.09.2024 06:41 Смена: 474 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 116169 ФПД: 216330613489975 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240925T064109&type=1&operation_type=1&fn_number=0000000000871830&fd_number=116169&fm=216330613489975&tin=02508201610067®Number=0000000000091831&sum=13000 0 [06:41:09]StoreToDocumentArchive [06:41:09]shift 474 fd 116169 [06:41:09]save to /storage/0474/doc_00116169 [06:41:09]save last doc name /storage/0474/doc_00116169 to /storage/kkm_last_doc_name [06:41:09]save OK [06:41:09]Clear old archive folders... [06:41:09]ProcessDocumentItem done err = 0, tmpTLVsize=272 [06:41:09]tlvbuf is 019C6530 [06:41:09]SAM_PROTO_ClearQueue [06:41:09]wFMCommunicate request_size=4 [06:41:09]MH_SAM_APDU [06:41:09]CAPDU: 80 09 00 00 [06:41:09]Write to MH i2c: E2 08 00 F6 08 80 09 00 00 00 00 00 00 70 [06:41:09]Write i2c OK [06:41:09]MH_I2C_Read... [06:41:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:41:09]Read from MH i2c: E2 [06:41:09]MH_I2C_Read... [06:41:09]Read from MH i2c: E2 03 00 [06:41:09]MH_I2C_Read... [06:41:09]Read from MH i2c: E2 03 00 F6 08 00 90 00 72 [06:41:09]RAPDU: 90 00 [06:41:09]wFMCommunicate OK [06:41:09]SAM_PROTO_ClearQueue done [06:41:09]KKMCreateOFDPacket [06:41:09]OFDProtocolAddRootSTLVToBuf [06:41:09]FM_MakeSignedData [06:41:09]FM_MakeSignedData [06:41:09]SAM_PROTO_SignData [06:41:09]wFMCommunicate request_size=4 [06:41:09]MH_SAM_APDU [06:41:09]CAPDU: 80 0D 01 02 [06:41:09]Write to MH i2c: E2 08 00 F7 08 80 0D 01 02 00 00 00 00 78 [06:41:09]Write i2c OK [06:41:09]MH_I2C_Read... [06:41:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:41:09]Read from MH i2c: E2 [06:41:09]MH_I2C_Read... [06:41:09]Read from MH i2c: E2 03 00 [06:41:09]MH_I2C_Read... [06:41:09]Read from MH i2c: E2 03 00 F7 08 00 90 00 73 [06:41:09]RAPDU: 90 00 [06:41:09]wFMCommunicate OK [06:41:09]wFMCommunicate request_size=255 [06:41:09]MH_SAM_APDU [06:41:09]CAPDU: 80 0D 02 02 FA 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 37 30 31 31 36 35 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 9F D1 88 D0 B5 D0 BD D0 B8 D1 87 D0 BD D0 B0 D1 8F 20 30 2C 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 00 00 00 F4 03 04 00 85 B0 F3 66 0E 04 04 00 DA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 [06:41:09]Write to MH i2c: E2 02 01 F8 08 80 0D 02 02 FA 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 37 30 31 31 36 35 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 9F D1 88 D0 B5 D0 BD D0 B8 D1 87 D0 BD D0 B0 D1 8F 20 30 2C 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 00 00 00 F4 03 04 00 85 B0 F3 66 0E 04 04 00 DA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 00 00 95 [06:41:09]Write i2c OK [06:41:09]MH_I2C_Read... [06:41:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:41:09]Read from MH i2c: E2 [06:41:09]MH_I2C_Read... [06:41:09]Read from MH i2c: E2 03 00 [06:41:09]MH_I2C_Read... [06:41:09]Read from MH i2c: E2 03 00 F8 08 00 90 00 74 [06:41:09]RAPDU: 90 00 [06:41:09]wFMCommunicate OK [06:41:09]wFMCommunicate request_size=31 [06:41:09]MH_SAM_APDU [06:41:09]CAPDU: 80 0D 02 02 1A 30 30 38 37 31 38 33 30 10 04 04 00 C9 C5 01 00 35 04 06 00 C4 C0 65 5F 01 37 [06:41:09]Write to MH i2c: E2 22 00 F9 08 80 0D 02 02 1A 00 30 30 38 37 31 38 33 30 10 04 04 00 C9 C5 01 00 35 04 06 00 C4 C0 65 5F 01 37 00 00 B0 [06:41:09]Write i2c OK [06:41:09]MH_I2C_Read... [06:41:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:41:09]Read from MH i2c: E2 [06:41:09]MH_I2C_Read... [06:41:09]Read from MH i2c: E2 03 00 [06:41:09]MH_I2C_Read... [06:41:09]Read from MH i2c: E2 03 00 F9 08 00 90 00 75 [06:41:09]RAPDU: 90 00 [06:41:09]wFMCommunicate OK [06:41:09]wFMCommunicate request_size=4 [06:41:09]MH_SAM_APDU [06:41:09]CAPDU: 80 0D 03 02 [06:41:09]Write to MH i2c: E2 08 00 FA 08 80 0D 03 02 00 00 00 00 7D [06:41:09]Write i2c OK [06:41:09]MH_I2C_Read... [06:41:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:41:09]Read from MH i2c: E2 [06:41:09]MH_I2C_Read... [06:41:09]Read from MH i2c: E2 0B 00 [06:41:09]MH_I2C_Read... [06:41:09]Read from MH i2c: E2 0B 00 FA 08 00 FD 9B 38 FA 6E E5 69 EB 90 00 EF [06:41:09]RAPDU: FD 9B 38 FA 6E E5 69 EB 90 00 [06:41:09]wFMCommunicate OK [06:41:09]SAM_PROTO_SignData done [06:41:09]FM_MakeSignedData done [06:41:09]CreateOFDProtocolMessage [06:41:09]wFMCommunicate request_size=4 [06:41:09]MH_SAM_APDU [06:41:09]CAPDU: 80 11 00 00 [06:41:09]Write to MH i2c: E2 08 00 FB 08 80 11 00 00 00 00 00 00 7D [06:41:09]Write i2c OK [06:41:09]MH_I2C_Read... [06:41:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:41:09]Read from MH i2c: E2 [06:41:09]MH_I2C_Read... [06:41:09]Read from MH i2c: E2 17 00 [06:41:09]MH_I2C_Read... [06:41:09]Read from MH i2c: E2 17 00 FB 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 CB [06:41:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [06:41:09]wFMCommunicate OK [06:41:09]CreateOFDProtocolMessage done [06:41:09]OFDSenderStorePacket 116169 [06:41:09]StoreOFDPacket docnum=116169 [06:41:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 24 01 00 00 03 2E 1C 01 59 69 5A 03 01 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 37 30 31 31 36 35 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 9F D1 88 D0 B5 D0 BD D0 B8 D1 87 D0 BD D0 B0 D1 8F 20 30 2C 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 00 00 00 F4 03 04 00 85 B0 F3 66 0E 04 04 00 DA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 C9 C5 01 00 35 04 06 00 C4 C0 65 5F 01 37 FD 9B 38 FA 6E E5 69 EB [06:41:09]CheckFolder [06:41:09]dirname=/storage/ofd_packets [06:41:09]CheckFolder done [06:41:09]ProducePacketName [06:41:09]name=ofd_packets/00116169 [06:41:09]NVStorageSaveData ofd_packets/00116169 [06:41:09]File name is /storage/ofd_packets/00116169 [06:41:09]Write 322 bytes [06:41:09]NVStorageSaveData done [06:41:09]OFDSenderStorePacket done [06:41:09]KKMCreateOFDPacket done [06:41:09]NVStorageSaveData kkm_last_timestamp [06:41:09]File name is /storage/kkm_last_timestamp [06:41:09]Write 4 bytes [06:41:09]NVStorageSaveData done [06:41:09]ExternCall_PrintAddStr [06:41:09]wPrintStart [06:41:09]Write to MH i2c: 01 00 00 FC 08 04 [06:41:09]Write i2c OK [06:41:09]MH_I2C_Read... [06:41:09]Read from MH i2c: 01 [06:41:09]MH_I2C_Read... [06:41:09]Read from MH i2c: 01 07 00 [06:41:09]MH_I2C_Read... [06:41:09]Read from MH i2c: 01 07 00 FC 08 00 00 00 00 00 FF 0F 19 [06:41:09]RasterBufferAndPrint [06:41:09]line Счет N : (3)344354 [06:41:09]line ИНН: 02508201610067 [06:41:09]line Контрольно-Кассовый Чек [06:41:09]line ПРОДАЖА [06:41:09]line Товар: 47011656 [06:41:09]line Водка Пшеничная 0,1л [06:41:09]line 2.000 * 65.00 [06:41:09]line = 130.00 [06:41:09]line НДС 12% НСП 1% [06:41:09]line > о реализуемом товаре [06:41:09]line ИТОГО: 130.00 [06:41:09]line НСП 1% : 1.15 [06:41:09]line НДС 12% : 13.80 [06:41:09]line Наличными: 130.00 [06:41:09]line Безнал.: 0.00 [06:41:09]line Место: АЗС № 90 "Партнер Нефть" [06:41:09]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [06:41:09]line СНО: Общий режим [06:41:09]line Чек 25 25.09.2024 06:41 [06:41:09]line Смена: 474 ФФД: 1.0 [06:41:09]line ЗНМ: 0300000120 [06:41:09]line РНМ: 0000000000091831 [06:41:09]line Версия ККМ: 001 [06:41:09]line ФМ: 0000000000871830 [06:41:09]line ФД: 116169 [06:41:09]line ФПД: 216330613489975 [06:41:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240925T064109&type=1&operation_type=1&fn_number=0000000000871830&fd_number=116169&fm=216330613489975&tin=02508201610067®Number=0000000000091831&sum=13000 [06:41:09]line 0 [06:41:09]written 0, free lines is 4095 [06:41:09]OFD Sender: Processing packet 116169 [packets to send 482, broken 481] [06:41:09]ProducePacketName [06:41:09]name=ofd_packets/00116169 [06:41:09]OFD Sender: To server: pG, [06:41:09]CommunicateWithHost lk.salyk.kg:30040 [06:41:09]ConnectInit lk.salyk.kg [06:41:10]Connected sock=11 [06:41:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 24 01 00 00 03 2E 1C 01 59 69 5A 03 01 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 37 30 31 31 36 35 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 9F D1 88 D0 B5 D0 BD D0 B8 D1 87 D0 BD D0 B0 D1 8F 20 30 2C 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 00 00 00 F4 03 04 00 85 B0 F3 66 0E 04 04 00 DA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 C9 C5 01 00 35 04 06 00 C4 C0 65 5F 01 37 FD 9B 38 FA 6E E5 69 EB [06:41:10]Write to MH i2c: 01 00 00 23 09 2C [06:41:10]Write i2c OK [06:41:10]MH_I2C_Read... [06:41:10]Read from MH i2c: 01 [06:41:10]MH_I2C_Read... [06:41:10]Read from MH i2c: 01 07 00 [06:41:10]MH_I2C_Read... [06:41:10]Read from MH i2c: 01 07 00 23 09 00 00 00 00 00 87 0C C6 [06:41:10]RasterBufferAndPrint [06:41:10]line [06:41:10]line [06:41:10]line [06:41:10]line [06:41:10]line [06:41:10]written 0, free lines is 3211 [06:41:10]MH_Cut [06:41:10]Write to MH i2c: D1 01 00 2A 09 01 05 [06:41:10]Write i2c OK [06:41:10]MH_I2C_Read... [06:41:10]Read from MH i2c: D1 [06:41:10]MH_I2C_Read... [06:41:10]Read from MH i2c: D1 01 00 [06:41:10]MH_I2C_Read... [06:41:10]Read from MH i2c: D1 01 00 2A 09 00 04 [06:41:10]Write to MH i2c: 01 00 00 2B 09 34 [06:41:10]Write i2c OK [06:41:10]MH_I2C_Read... [06:41:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 7B 9C 47 00 12 47 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 C9 C5 01 00 F4 03 04 00 C2 55 F3 66 B6 04 01 00 00 34 F6 B4 E1 17 E9 78 B4 [06:41:10]CommunicateWithHost err = 0 [06:41:10]CheckOFDResponse [06:41:10]1017 (14) - 77093643461234 [06:41:10]1041 (16) - 0000000000871830 [06:41:10]1040 (4) - 116169 [06:41:10]1012 (4) - 25.09.2024 00:13 [06:41:10]1206 (1) - 0 [06:41:10]OFD Sender: Remove packet 116169 [06:41:10]ProducePacketName [06:41:10]name=ofd_packets/00116169 [06:41:10]NVStorageDeleteData [06:41:10]OFD Sender: No OFD packet to send [06:41:11]*** Cut start [06:41:11]*** Partial cut [06:41:11]*** CUTSNS_PIN = 1 [06:41:11]*** CUTSNS_PIN = 0 [06:41:11]*** Brake cut motor [06:41:12]Read from MH i2c: 01 [06:41:12]MH_I2C_Read... [06:41:12]*** Stop cut motor [06:41:12]*** Cut end [06:41:12]Read from MH i2c: 01 07 00 [06:41:12]MH_I2C_Read... [06:41:12]Read from MH i2c: 01 07 00 2B 09 00 00 00 00 00 FF 0F 49 [06:41:12]process_action close_receipt done [06:41:12]requested_data is exist [06:41:12]produce_requested_data [06:41:12]requested_item fm.sn is exist - process it [06:41:12]wFMCommunicate request_size=4 [06:41:12]MH_SAM_APDU [06:41:12]CAPDU: 80 11 00 00 [06:41:12]Write to MH i2c: E2 08 00 2C 09 80 11 00 00 00 00 00 00 AF [06:41:12]Write i2c OK [06:41:12]MH_I2C_Read... [06:41:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:41:12]Read from MH i2c: E2 [06:41:12]MH_I2C_Read... [06:41:12]Read from MH i2c: E2 17 00 [06:41:12]MH_I2C_Read... [06:41:12]Read from MH i2c: E2 17 00 2C 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 FD [06:41:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [06:41:12]wFMCommunicate OK [06:41:12]requested_item fd.num is exist - process it [06:41:12]SAM_PROTO_GetFieldsCounters [06:41:12]wFMCommunicate request_size=4 [06:41:12]MH_SAM_APDU [06:41:12]CAPDU: 80 13 00 00 [06:41:12]Write to MH i2c: E2 08 00 2D 09 80 13 00 00 00 00 00 00 B2 [06:41:12]Write i2c OK [06:41:12]MH_I2C_Read... [06:41:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:41:12]Read from MH i2c: E2 [06:41:12]MH_I2C_Read... [06:41:12]Read from MH i2c: E2 62 00 [06:41:12]MH_I2C_Read... [06:41:12]Read from MH i2c: E2 62 00 2D 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 C9 C5 01 00 0E 04 04 00 DA 01 00 00 12 04 04 00 19 00 00 00 5E 04 04 00 19 00 00 00 57 04 04 00 1A 00 00 00 19 04 04 00 00 00 00 00 90 00 80 [06:41:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 C9 C5 01 00 0E 04 04 00 DA 01 00 00 12 04 04 00 19 00 00 00 5E 04 04 00 19 00 00 00 57 04 04 00 1A 00 00 00 19 04 04 00 00 00 00 00 90 00 [06:41:12]wFMCommunicate OK [06:41:12]SAM_PROTO_GetFieldsCounters done [06:41:12]requested_item shift.num is exist - process it [06:41:12]requested_item shift.opened is exist - process it [06:41:12]req_shift_opened [06:41:12]FM_GetShiftState [06:41:12]SAM_PROTO_GetShiftState [06:41:12]wFMCommunicate request_size=4 [06:41:12]MH_SAM_APDU [06:41:12]CAPDU: 80 13 01 00 [06:41:12]Write to MH i2c: E2 08 00 2E 09 80 13 01 00 00 00 00 00 B4 [06:41:12]Write i2c OK [06:41:12]MH_I2C_Read... [06:41:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:41:12]Read from MH i2c: E2 [06:41:12]MH_I2C_Read... [06:41:12]Read from MH i2c: E2 0E 00 [06:41:12]MH_I2C_Read... [06:41:12]Read from MH i2c: E2 0E 00 2E 09 00 09 00 01 63 60 F3 66 00 00 00 00 90 00 DC [06:41:12]RAPDU: 09 00 01 63 60 F3 66 00 00 00 00 90 00 [06:41:12]wFMCommunicate OK [06:41:12]SAM_PROTO_GetShiftState done [06:41:12]FM_GetShiftState done [06:41:12]req_shift_opened done [06:41:12]requested_item shift.open_date is exist - process it [06:41:12]req_shift_open_date [06:41:12]req_shift_open_date done [06:41:12]produce_requested_data done [06:41:12]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":116169,"shift.num":474,"shift.opened":1,"shift.open_date":1727225955} [06:41:12]process_action_free close_receipt [06:41:12]json_value_free [06:41:12]json_value_free done [06:41:12]process_json_proto returns [06:41:12]Send response to host [06:41:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":116169,"shift.num":474,"shift.opened":1,"shift.open_date":1727225955}}} [06:41:12]free response buf [06:41:12]execute_script done [06:41:12]execute_script returns [06:41:12]free content buf [06:41:12]Sock 8.Close socket [06:41:12]Sock 8.Thread stoped [06:41:15]OFD Sender: No OFD packet to send [06:41:20]OFD Sender: No OFD packet to send [06:41:25]OFD Sender: No OFD packet to send [06:41:30]OFD Sender: No OFD packet to send [06:41:35]OFD Sender: No OFD packet to send [06:41:40]OFD Sender: No OFD packet to send [06:41:46]OFD Sender: No OFD packet to send [06:41:51]OFD Sender: No OFD packet to send [06:41:56]OFD Sender: No OFD packet to send [06:42:01]OFD Sender: No OFD packet to send [06:42:06]OFD Sender: No OFD packet to send [06:42:11]OFD Sender: No OFD packet to send [06:42:16]OFD Sender: No OFD packet to send [06:42:21]OFD Sender: No OFD packet to send [06:42:26]OFD Sender: No OFD packet to send [06:42:31]OFD Sender: No OFD packet to send [06:42:36]OFD Sender: No OFD packet to send [06:42:41]OFD Sender: No OFD packet to send [06:42:42]accept exits with 9 [06:42:42]New connection [06:42:42]New thread 3067207012 created [06:42:42]Thread 3067350372 joined [06:42:42]Waiting for new connection... [06:42:42] Sock 9.Parse request [06:42:42]Sock 9.Check first char [06:42:42]Sock 9.First char is OK [06:42:42]request: POST /json_proto HTTP/1.0 [06:42:42]Method: POST [06:42:42]URL: /json_proto [06:42:42]Method is POST - this is cgi request [06:42:42]url: /json_proto [06:42:42]query_string will be loaded in cgi processing [06:42:42]execute_cgi json_proto POST (null) [06:42:42]execute_cgi path=json_proto method=POST [06:42:42]POST find Content-Length [06:42:42]Host: 172.17.41.136:8080 [06:42:42]Content-Length: 647 [06:42:42]Content-Type: application/json [06:42:42] [06:42:42]POST finish read [06:42:42]Found Content-Length = 647 [06:42:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)344355", "tax_sys" : 0, "items" : [ { "code": "47011656", "name": "\u0412\u043E\u0434\u043A\u0430 \u041F\u0448\u0435\u043D\u0438\u0447\u043D\u0430\u044F 0,1\u043B", "price" : 65.00, "quantity" : 2.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:42:42]execute_script... [06:42:42]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)344355", "tax_sys" : 0, "items" : [ { "code": "47011656", "name": "\u0412\u043E\u0434\u043A\u0430 \u041F\u0448\u0435\u043D\u0438\u0447\u043D\u0430\u044F 0,1\u043B", "price" : 65.00, "quantity" : 2.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:42:42]POST & json_proto [06:42:42]process_json_proto [06:42:42]json parsed OK: [06:42:42]protocol is kg_v1.0 [06:42:42]action value=close_receipt [06:42:42]process_action close_receipt [06:42:42]cmd_close_receipt [06:42:42]MH_GetDate [06:42:42]Write to MH i2c: F0 00 00 2F 09 27 [06:42:42]Write i2c OK [06:42:42]MH_I2C_Read... [06:42:42]Read from MH i2c: F0 [06:42:42]MH_I2C_Read... [06:42:42]Read from MH i2c: F0 09 00 [06:42:42]MH_I2C_Read... [06:42:42]Read from MH i2c: F0 09 00 2F 09 00 E4 B0 F3 66 1B D0 5A 64 C6 [06:42:42]GetLastDocTimeStamp 1727246469 [06:42:42]current date 1727246564 [06:42:42]FM_GetShiftState [06:42:42]SAM_PROTO_GetShiftState [06:42:42]wFMCommunicate request_size=4 [06:42:42]MH_SAM_APDU [06:42:42]CAPDU: 80 13 01 00 [06:42:42]Write to MH i2c: E2 08 00 30 09 80 13 01 00 00 00 00 00 B6 [06:42:42]Write i2c OK [06:42:42]MH_I2C_Read... [06:42:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:42:43]Read from MH i2c: E2 [06:42:43]MH_I2C_Read... [06:42:43]Read from MH i2c: E2 0E 00 [06:42:43]MH_I2C_Read... [06:42:43]Read from MH i2c: E2 0E 00 30 09 00 09 00 01 63 60 F3 66 00 00 00 00 90 00 DE [06:42:43]RAPDU: 09 00 01 63 60 F3 66 00 00 00 00 90 00 [06:42:43]wFMCommunicate OK [06:42:43]SAM_PROTO_GetShiftState done [06:42:43]FM_GetShiftState done [06:42:43]opened in 1727225955 [06:42:43]opened+sec_in_day 1727312355 [06:42:43]quantity*price = 13000 [06:42:43]sum+1 = 13001 [06:42:43]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 130.00 НСП 1% : 1.15 НДС 12% : 13.80 Наличными: 130.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 26 25.09.2024 06:42 Смена: 474 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 116170 ФПД: 230678654278864 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240925T064244&type=1&operation_type=1&fn_number=0000000000871830&fd_number=116170&fm=230678654278864&tin=02508201610067®Number=0000000000091831&sum=13000 0 [06:42:44]StoreToDocumentArchive [06:42:44]shift 474 fd 116170 [06:42:44]save to /storage/0474/doc_00116170 [06:42:44]save last doc name /storage/0474/doc_00116170 to /storage/kkm_last_doc_name [06:42:44]save OK [06:42:44]Clear old archive folders... [06:42:44]ProcessDocumentItem done err = 0, tmpTLVsize=272 [06:42:44]tlvbuf is 019C2E80 [06:42:44]SAM_PROTO_ClearQueue [06:42:44]wFMCommunicate request_size=4 [06:42:44]MH_SAM_APDU [06:42:44]CAPDU: 80 09 00 00 [06:42:44]Write to MH i2c: E2 08 00 3D 09 80 09 00 00 00 00 00 00 B8 [06:42:44]Write i2c OK [06:42:44]MH_I2C_Read... [06:42:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:42:44]Read from MH i2c: E2 [06:42:44]MH_I2C_Read... [06:42:44]Read from MH i2c: E2 03 00 [06:42:44]MH_I2C_Read... [06:42:44]Read from MH i2c: E2 03 00 3D 09 00 90 00 BA [06:42:44]RAPDU: 90 00 [06:42:44]wFMCommunicate OK [06:42:44]SAM_PROTO_ClearQueue done [06:42:44]KKMCreateOFDPacket [06:42:44]OFDProtocolAddRootSTLVToBuf [06:42:44]FM_MakeSignedData [06:42:44]FM_MakeSignedData [06:42:44]SAM_PROTO_SignData [06:42:44]wFMCommunicate request_size=4 [06:42:44]MH_SAM_APDU [06:42:44]CAPDU: 80 0D 01 02 [06:42:44]Write to MH i2c: E2 08 00 3E 09 80 0D 01 02 00 00 00 00 C0 [06:42:44]Write i2c OK [06:42:44]MH_I2C_Read... [06:42:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:42:44]Read from MH i2c: E2 [06:42:44]MH_I2C_Read... [06:42:44]Read from MH i2c: E2 03 00 [06:42:44]MH_I2C_Read... [06:42:44]Read from MH i2c: E2 03 00 3E 09 00 90 00 BB [06:42:44]RAPDU: 90 00 [06:42:44]wFMCommunicate OK [06:42:44]wFMCommunicate request_size=255 [06:42:44]MH_SAM_APDU [06:42:44]CAPDU: 80 0D 02 02 FA 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 37 30 31 31 36 35 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 9F D1 88 D0 B5 D0 BD D0 B8 D1 87 D0 BD D0 B0 D1 8F 20 30 2C 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 E4 B0 F3 66 0E 04 04 00 DA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 [06:42:44]Write to MH i2c: E2 02 01 3F 09 80 0D 02 02 FA 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 37 30 31 31 36 35 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 9F D1 88 D0 B5 D0 BD D0 B8 D1 87 D0 BD D0 B0 D1 8F 20 30 2C 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 E4 B0 F3 66 0E 04 04 00 DA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 00 00 3D [06:42:44]Write i2c OK [06:42:44]MH_I2C_Read... [06:42:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:42:44]Read from MH i2c: E2 [06:42:44]MH_I2C_Read... [06:42:44]Read from MH i2c: E2 03 00 [06:42:44]MH_I2C_Read... [06:42:44]Read from MH i2c: E2 03 00 3F 09 00 90 00 BC [06:42:44]RAPDU: 90 00 [06:42:44]wFMCommunicate OK [06:42:44]wFMCommunicate request_size=31 [06:42:44]MH_SAM_APDU [06:42:44]CAPDU: 80 0D 02 02 1A 30 30 38 37 31 38 33 30 10 04 04 00 CA C5 01 00 35 04 06 00 D1 CD 0F 3E DC D0 [06:42:44]Write to MH i2c: E2 22 00 40 09 80 0D 02 02 1A 00 30 30 38 37 31 38 33 30 10 04 04 00 CA C5 01 00 35 04 06 00 D1 CD 0F 3E DC D0 00 00 10 [06:42:44]Write i2c OK [06:42:44]MH_I2C_Read... [06:42:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:42:44]Read from MH i2c: E2 [06:42:44]MH_I2C_Read... [06:42:44]Read from MH i2c: E2 03 00 [06:42:44]MH_I2C_Read... [06:42:44]Read from MH i2c: E2 03 00 40 09 00 90 00 BD [06:42:44]RAPDU: 90 00 [06:42:44]wFMCommunicate OK [06:42:44]wFMCommunicate request_size=4 [06:42:44]MH_SAM_APDU [06:42:44]CAPDU: 80 0D 03 02 [06:42:44]Write to MH i2c: E2 08 00 41 09 80 0D 03 02 00 00 00 00 C5 [06:42:44]Write i2c OK [06:42:44]MH_I2C_Read... [06:42:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:42:44]Read from MH i2c: E2 [06:42:44]MH_I2C_Read... [06:42:44]Read from MH i2c: E2 0B 00 [06:42:44]MH_I2C_Read... [06:42:44]Read from MH i2c: E2 0B 00 41 09 00 A2 1E 75 65 70 AE 49 9C 90 00 63 [06:42:44]RAPDU: A2 1E 75 65 70 AE 49 9C 90 00 [06:42:44]wFMCommunicate OK [06:42:44]SAM_PROTO_SignData done [06:42:44]FM_MakeSignedData done [06:42:44]CreateOFDProtocolMessage [06:42:44]wFMCommunicate request_size=4 [06:42:44]MH_SAM_APDU [06:42:44]CAPDU: 80 11 00 00 [06:42:44]Write to MH i2c: E2 08 00 42 09 80 11 00 00 00 00 00 00 C5 [06:42:44]Write i2c OK [06:42:44]MH_I2C_Read... [06:42:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:42:44]Read from MH i2c: E2 [06:42:44]MH_I2C_Read... [06:42:44]Read from MH i2c: E2 17 00 [06:42:44]MH_I2C_Read... [06:42:44]Read from MH i2c: E2 17 00 42 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 13 [06:42:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [06:42:44]wFMCommunicate OK [06:42:44]CreateOFDProtocolMessage done [06:42:44]OFDSenderStorePacket 116170 [06:42:44]StoreOFDPacket docnum=116170 [06:42:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 24 01 00 00 7A 68 1C 01 F5 7D 5A 03 01 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 37 30 31 31 36 35 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 9F D1 88 D0 B5 D0 BD D0 B8 D1 87 D0 BD D0 B0 D1 8F 20 30 2C 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 E4 B0 F3 66 0E 04 04 00 DA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 CA C5 01 00 35 04 06 00 D1 CD 0F 3E DC D0 A2 1E 75 65 70 AE 49 9C [06:42:44]CheckFolder [06:42:44]dirname=/storage/ofd_packets [06:42:44]CheckFolder done [06:42:44]ProducePacketName [06:42:44]name=ofd_packets/00116170 [06:42:44]NVStorageSaveData ofd_packets/00116170 [06:42:44]File name is /storage/ofd_packets/00116170 [06:42:44]Write 322 bytes [06:42:44]NVStorageSaveData done [06:42:44]OFDSenderStorePacket done [06:42:44]KKMCreateOFDPacket done [06:42:44]NVStorageSaveData kkm_last_timestamp [06:42:44]File name is /storage/kkm_last_timestamp [06:42:44]Write 4 bytes [06:42:44]NVStorageSaveData done [06:42:44]ExternCall_PrintAddStr [06:42:44]wPrintStart [06:42:44]Write to MH i2c: 01 00 00 43 09 4C [06:42:44]Write i2c OK [06:42:44]MH_I2C_Read... [06:42:44]Read from MH i2c: 01 [06:42:44]MH_I2C_Read... [06:42:44]Read from MH i2c: 01 07 00 [06:42:44]MH_I2C_Read... [06:42:44]Read from MH i2c: 01 07 00 43 09 00 00 00 00 00 FF 0F 61 [06:42:44]RasterBufferAndPrint [06:42:44]line Счет N : (3)344355 [06:42:44]line ИНН: 02508201610067 [06:42:44]line Контрольно-Кассовый Чек [06:42:44]line ПРОДАЖА [06:42:44]line Товар: 47011656 [06:42:44]line Водка Пшеничная 0,1л [06:42:44]line 2.000 * 65.00 [06:42:44]line = 130.00 [06:42:44]line НДС 12% НСП 1% [06:42:44]line > о реализуемом товаре [06:42:44]line ИТОГО: 130.00 [06:42:44]line НСП 1% : 1.15 [06:42:44]line НДС 12% : 13.80 [06:42:44]line Наличными: 130.00 [06:42:44]line Безнал.: 0.00 [06:42:44]line Место: АЗС № 90 "Партнер Нефть" [06:42:44]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [06:42:44]line СНО: Общий режим [06:42:44]line Чек 26 25.09.2024 06:42 [06:42:44]line Смена: 474 ФФД: 1.0 [06:42:44]line ЗНМ: 0300000120 [06:42:44]line РНМ: 0000000000091831 [06:42:44]line Версия ККМ: 001 [06:42:44]line ФМ: 0000000000871830 [06:42:44]line ФД: 116170 [06:42:44]line ФПД: 230678654278864 [06:42:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240925T064244&type=1&operation_type=1&fn_number=0000000000871830&fd_number=116170&fm=230678654278864&tin=02508201610067®Number=0000000000091831&sum=13000 [06:42:44]line 0 [06:42:44]written 0, free lines is 4095 [06:42:44]OFD Sender: Processing packet 116170 [packets to send 482, broken 481] [06:42:44]ProducePacketName [06:42:44]name=ofd_packets/00116170 [06:42:44]OFD Sender: To server: pG, [06:42:44]CommunicateWithHost lk.salyk.kg:30040 [06:42:44]ConnectInit lk.salyk.kg [06:42:44]Connected sock=10 [06:42:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 24 01 00 00 7A 68 1C 01 F5 7D 5A 03 01 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 37 30 31 31 36 35 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 9F D1 88 D0 B5 D0 BD D0 B8 D1 87 D0 BD D0 B0 D1 8F 20 30 2C 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 E4 B0 F3 66 0E 04 04 00 DA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 CA C5 01 00 35 04 06 00 D1 CD 0F 3E DC D0 A2 1E 75 65 70 AE 49 9C [06:42:45]Write to MH i2c: 01 00 00 6A 09 73 [06:42:45]Write i2c OK [06:42:45]MH_I2C_Read... [06:42:45]Read from MH i2c: 01 [06:42:45]MH_I2C_Read... [06:42:45]Read from MH i2c: 01 07 00 [06:42:45]MH_I2C_Read... [06:42:45]Read from MH i2c: 01 07 00 6A 09 00 00 00 00 00 7F 0C 05 [06:42:45]RasterBufferAndPrint [06:42:45]line [06:42:45]line [06:42:45]line [06:42:45]line [06:42:45]line [06:42:45]written 0, free lines is 3204 [06:42:45]MH_Cut [06:42:45]Write to MH i2c: D1 01 00 71 09 01 4C [06:42:45]Write i2c OK [06:42:45]MH_I2C_Read... [06:42:45]Read from MH i2c: D1 [06:42:45]MH_I2C_Read... [06:42:45]Read from MH i2c: D1 01 00 [06:42:45]MH_I2C_Read... [06:42:45]Read from MH i2c: D1 01 00 71 09 00 4B [06:42:45]Write to MH i2c: 01 00 00 72 09 7B [06:42:45]Write i2c OK [06:42:45]MH_I2C_Read... [06:42:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 A4 DC 47 00 3B 74 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 CA C5 01 00 F4 03 04 00 21 56 F3 66 B6 04 01 00 00 5D 98 8B 19 B5 F7 4D 8C [06:42:45]CommunicateWithHost err = 0 [06:42:45]CheckOFDResponse [06:42:45]1017 (14) - 77093643461234 [06:42:45]1041 (16) - 0000000000871830 [06:42:45]1040 (4) - 116170 [06:42:45]1012 (4) - 25.09.2024 00:15 [06:42:45]1206 (1) - 0 [06:42:45]OFD Sender: Remove packet 116170 [06:42:45]ProducePacketName [06:42:45]name=ofd_packets/00116170 [06:42:45]NVStorageDeleteData [06:42:45]OFD Sender: No OFD packet to send [06:42:46]*** Cut start [06:42:46]*** Partial cut [06:42:46]*** CUTSNS_PIN = 1 [06:42:46]*** CUTSNS_PIN = 0 [06:42:46]*** Brake cut motor [06:42:47]Read from MH i2c: 01 [06:42:47]MH_I2C_Read... [06:42:47]*** Stop cut motor [06:42:47]*** Cut end [06:42:47]Read from MH i2c: 01 07 00 [06:42:47]MH_I2C_Read... [06:42:47]Read from MH i2c: 01 07 00 72 09 00 00 00 00 00 FF 0F 90 [06:42:47]process_action close_receipt done [06:42:47]requested_data is exist [06:42:47]produce_requested_data [06:42:47]requested_item fm.sn is exist - process it [06:42:47]wFMCommunicate request_size=4 [06:42:47]MH_SAM_APDU [06:42:47]CAPDU: 80 11 00 00 [06:42:47]Write to MH i2c: E2 08 00 73 09 80 11 00 00 00 00 00 00 F6 [06:42:47]Write i2c OK [06:42:47]MH_I2C_Read... [06:42:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:42:47]Read from MH i2c: E2 [06:42:47]MH_I2C_Read... [06:42:47]Read from MH i2c: E2 17 00 [06:42:47]MH_I2C_Read... [06:42:47]Read from MH i2c: E2 17 00 73 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 44 [06:42:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [06:42:47]wFMCommunicate OK [06:42:47]requested_item fd.num is exist - process it [06:42:47]SAM_PROTO_GetFieldsCounters [06:42:47]wFMCommunicate request_size=4 [06:42:47]MH_SAM_APDU [06:42:47]CAPDU: 80 13 00 00 [06:42:47]Write to MH i2c: E2 08 00 74 09 80 13 00 00 00 00 00 00 F9 [06:42:47]Write i2c OK [06:42:47]MH_I2C_Read... [06:42:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:42:47]Read from MH i2c: E2 [06:42:47]MH_I2C_Read... [06:42:47]Read from MH i2c: E2 62 00 [06:42:47]MH_I2C_Read... [06:42:47]Read from MH i2c: E2 62 00 74 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 CA C5 01 00 0E 04 04 00 DA 01 00 00 12 04 04 00 1A 00 00 00 5E 04 04 00 1A 00 00 00 57 04 04 00 1B 00 00 00 19 04 04 00 00 00 00 00 90 00 CB [06:42:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 CA C5 01 00 0E 04 04 00 DA 01 00 00 12 04 04 00 1A 00 00 00 5E 04 04 00 1A 00 00 00 57 04 04 00 1B 00 00 00 19 04 04 00 00 00 00 00 90 00 [06:42:47]wFMCommunicate OK [06:42:47]SAM_PROTO_GetFieldsCounters done [06:42:47]requested_item shift.num is exist - process it [06:42:47]requested_item shift.opened is exist - process it [06:42:47]req_shift_opened [06:42:47]FM_GetShiftState [06:42:47]SAM_PROTO_GetShiftState [06:42:47]wFMCommunicate request_size=4 [06:42:47]MH_SAM_APDU [06:42:47]CAPDU: 80 13 01 00 [06:42:47]Write to MH i2c: E2 08 00 75 09 80 13 01 00 00 00 00 00 FB [06:42:47]Write i2c OK [06:42:47]MH_I2C_Read... [06:42:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:42:47]Read from MH i2c: E2 [06:42:47]MH_I2C_Read... [06:42:47]Read from MH i2c: E2 0E 00 [06:42:47]MH_I2C_Read... [06:42:47]Read from MH i2c: E2 0E 00 75 09 00 09 00 01 63 60 F3 66 00 00 00 00 90 00 23 [06:42:47]RAPDU: 09 00 01 63 60 F3 66 00 00 00 00 90 00 [06:42:47]wFMCommunicate OK [06:42:47]SAM_PROTO_GetShiftState done [06:42:47]FM_GetShiftState done [06:42:47]req_shift_opened done [06:42:47]requested_item shift.open_date is exist - process it [06:42:47]req_shift_open_date [06:42:47]req_shift_open_date done [06:42:47]produce_requested_data done [06:42:47]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":116170,"shift.num":474,"shift.opened":1,"shift.open_date":1727225955} [06:42:47]process_action_free close_receipt [06:42:47]json_value_free [06:42:47]json_value_free done [06:42:47]process_json_proto returns [06:42:47]Send response to host [06:42:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":116170,"shift.num":474,"shift.opened":1,"shift.open_date":1727225955}}} [06:42:47]free response buf [06:42:47]execute_script done [06:42:47]execute_script returns [06:42:47]free content buf [06:42:47]Sock 9.Close socket [06:42:47]Sock 9.Thread stoped [06:42:50]OFD Sender: No OFD packet to send [06:42:55]OFD Sender: No OFD packet to send [06:43:00]OFD Sender: No OFD packet to send [06:43:05]OFD Sender: No OFD packet to send [06:43:10]OFD Sender: No OFD packet to send [06:43:15]OFD Sender: No OFD packet to send [06:43:20]OFD Sender: No OFD packet to send [06:43:25]OFD Sender: No OFD packet to send [06:43:30]OFD Sender: No OFD packet to send [06:43:35]OFD Sender: No OFD packet to send [06:43:40]OFD Sender: No OFD packet to send [06:43:45]OFD Sender: No OFD packet to send [06:43:50]OFD Sender: No OFD packet to send [06:43:56]OFD Sender: No OFD packet to send [06:44:01]OFD Sender: No OFD packet to send [06:44:06]OFD Sender: No OFD packet to send [06:44:11]OFD Sender: No OFD packet to send [06:44:16]OFD Sender: No OFD packet to send [06:44:21]OFD Sender: No OFD packet to send [06:44:26]OFD Sender: No OFD packet to send [06:44:31]OFD Sender: No OFD packet to send [06:44:36]OFD Sender: No OFD packet to send [06:44:41]OFD Sender: No OFD packet to send [06:44:46]OFD Sender: No OFD packet to send [06:44:51]OFD Sender: No OFD packet to send [06:44:56]OFD Sender: No OFD packet to send [06:45:01]OFD Sender: No OFD packet to send [06:45:06]OFD Sender: No OFD packet to send [06:45:11]OFD Sender: No OFD packet to send [06:45:16]OFD Sender: No OFD packet to send [06:45:21]OFD Sender: No OFD packet to send [06:45:26]OFD Sender: No OFD packet to send [06:45:31]OFD Sender: No OFD packet to send [06:45:36]OFD Sender: No OFD packet to send [06:45:41]OFD Sender: No OFD packet to send [06:45:46]OFD Sender: No OFD packet to send [06:45:51]OFD Sender: No OFD packet to send [06:45:56]OFD Sender: No OFD packet to send [06:46:01]OFD Sender: No OFD packet to send [06:46:06]OFD Sender: No OFD packet to send [06:46:11]OFD Sender: No OFD packet to send [06:46:16]OFD Sender: No OFD packet to send [06:46:21]OFD Sender: No OFD packet to send [06:46:26]OFD Sender: No OFD packet to send [06:46:31]OFD Sender: No OFD packet to send [06:46:36]OFD Sender: No OFD packet to send [06:46:41]OFD Sender: No OFD packet to send [06:46:46]OFD Sender: No OFD packet to send [06:46:51]OFD Sender: No OFD packet to send [06:46:56]OFD Sender: No OFD packet to send [06:47:01]OFD Sender: No OFD packet to send [06:47:06]OFD Sender: No OFD packet to send [06:47:11]OFD Sender: No OFD packet to send [06:47:16]OFD Sender: No OFD packet to send [06:47:21]OFD Sender: No OFD packet to send [06:47:26]OFD Sender: No OFD packet to send [06:47:31]OFD Sender: No OFD packet to send [06:47:36]OFD Sender: No OFD packet to send [06:47:41]OFD Sender: No OFD packet to send [06:47:46]OFD Sender: No OFD packet to send [06:47:51]OFD Sender: No OFD packet to send [06:47:56]OFD Sender: No OFD packet to send [06:48:01]OFD Sender: No OFD packet to send [06:48:06]OFD Sender: No OFD packet to send [06:48:11]OFD Sender: No OFD packet to send [06:48:16]OFD Sender: No OFD packet to send [06:48:21]OFD Sender: No OFD packet to send [06:48:26]OFD Sender: No OFD packet to send [06:48:31]OFD Sender: No OFD packet to send [06:48:36]OFD Sender: No OFD packet to send [06:48:41]OFD Sender: No OFD packet to send [06:48:46]OFD Sender: No OFD packet to send [06:48:51]OFD Sender: No OFD packet to send [06:48:56]OFD Sender: No OFD packet to send [06:49:01]OFD Sender: No OFD packet to send [06:49:06]OFD Sender: No OFD packet to send [06:49:11]OFD Sender: No OFD packet to send [06:49:16]OFD Sender: No OFD packet to send [06:49:21]OFD Sender: No OFD packet to send [06:49:26]OFD Sender: No OFD packet to send [06:49:31]OFD Sender: No OFD packet to send [06:49:36]OFD Sender: No OFD packet to send [06:49:41]OFD Sender: No OFD packet to send [06:49:46]OFD Sender: No OFD packet to send [06:49:51]OFD Sender: No OFD packet to send [06:49:56]OFD Sender: No OFD packet to send [06:50:01]OFD Sender: No OFD packet to send [06:50:06]OFD Sender: No OFD packet to send [06:50:11]OFD Sender: No OFD packet to send [06:50:16]OFD Sender: No OFD packet to send [06:50:21]OFD Sender: No OFD packet to send [06:50:26]OFD Sender: No OFD packet to send [06:50:31]OFD Sender: No OFD packet to send [06:50:36]OFD Sender: No OFD packet to send [06:50:41]OFD Sender: No OFD packet to send [06:50:46]OFD Sender: No OFD packet to send [06:50:51]OFD Sender: No OFD packet to send [06:50:56]OFD Sender: No OFD packet to send [06:51:02]OFD Sender: No OFD packet to send [06:51:07]OFD Sender: No OFD packet to send [06:51:12]OFD Sender: No OFD packet to send [06:51:17]OFD Sender: No OFD packet to send [06:51:22]OFD Sender: No OFD packet to send [06:51:27]OFD Sender: No OFD packet to send [06:51:32]OFD Sender: No OFD packet to send [06:51:37]OFD Sender: No OFD packet to send [06:51:42]OFD Sender: No OFD packet to send [06:51:47]OFD Sender: No OFD packet to send [06:51:52]OFD Sender: No OFD packet to send [06:51:57]OFD Sender: No OFD packet to send [06:52:02]OFD Sender: No OFD packet to send [06:52:07]OFD Sender: No OFD packet to send [06:52:12]OFD Sender: No OFD packet to send [06:52:17]OFD Sender: No OFD packet to send [06:52:22]OFD Sender: No OFD packet to send [06:52:27]OFD Sender: No OFD packet to send [06:52:32]OFD Sender: No OFD packet to send [06:52:37]OFD Sender: No OFD packet to send [06:52:42]OFD Sender: No OFD packet to send [06:52:47]OFD Sender: No OFD packet to send [06:52:52]OFD Sender: No OFD packet to send [06:52:57]OFD Sender: No OFD packet to send [06:53:02]OFD Sender: No OFD packet to send [06:53:07]OFD Sender: No OFD packet to send [06:53:12]OFD Sender: No OFD packet to send [06:53:17]OFD Sender: No OFD packet to send [06:53:22]OFD Sender: No OFD packet to send [06:53:27]OFD Sender: No OFD packet to send [06:53:32]OFD Sender: No OFD packet to send [06:53:37]OFD Sender: No OFD packet to send [06:53:42]OFD Sender: No OFD packet to send [06:53:47]OFD Sender: No OFD packet to send [06:53:52]OFD Sender: No OFD packet to send [06:53:57]OFD Sender: No OFD packet to send [06:54:02]OFD Sender: No OFD packet to send [06:54:07]OFD Sender: No OFD packet to send [06:54:12]OFD Sender: No OFD packet to send [06:54:17]OFD Sender: No OFD packet to send [06:54:22]OFD Sender: No OFD packet to send [06:54:27]OFD Sender: No OFD packet to send [06:54:32]OFD Sender: No OFD packet to send [06:54:37]OFD Sender: No OFD packet to send [06:54:42]OFD Sender: No OFD packet to send [06:54:47]OFD Sender: No OFD packet to send [06:54:52]OFD Sender: No OFD packet to send [06:54:57]OFD Sender: No OFD packet to send [06:55:02]OFD Sender: No OFD packet to send [06:55:07]OFD Sender: No OFD packet to send [06:55:12]OFD Sender: No OFD packet to send [06:55:17]OFD Sender: No OFD packet to send [06:55:22]OFD Sender: No OFD packet to send [06:55:27]OFD Sender: No OFD packet to send [06:55:32]OFD Sender: No OFD packet to send [06:55:37]OFD Sender: No OFD packet to send [06:55:42]OFD Sender: No OFD packet to send [06:55:47]OFD Sender: No OFD packet to send [06:55:52]OFD Sender: No OFD packet to send [06:55:57]OFD Sender: No OFD packet to send [06:56:02]OFD Sender: No OFD packet to send [06:56:07]OFD Sender: No OFD packet to send [06:56:12]OFD Sender: No OFD packet to send [06:56:17]OFD Sender: No OFD packet to send [06:56:22]OFD Sender: No OFD packet to send [06:56:27]OFD Sender: No OFD packet to send [06:56:32]OFD Sender: No OFD packet to send [06:56:37]OFD Sender: No OFD packet to send [06:56:42]OFD Sender: No OFD packet to send [06:56:47]OFD Sender: No OFD packet to send [06:56:52]OFD Sender: No OFD packet to send [06:56:57]OFD Sender: No OFD packet to send [06:57:02]OFD Sender: No OFD packet to send [06:57:07]OFD Sender: No OFD packet to send [06:57:12]OFD Sender: No OFD packet to send [06:57:17]OFD Sender: No OFD packet to send [06:57:22]OFD Sender: No OFD packet to send [06:57:27]OFD Sender: No OFD packet to send [06:57:32]OFD Sender: No OFD packet to send [06:57:37]OFD Sender: No OFD packet to send [06:57:42]OFD Sender: No OFD packet to send [06:57:47]OFD Sender: No OFD packet to send [06:57:52]OFD Sender: No OFD packet to send [06:57:57]OFD Sender: No OFD packet to send [06:58:03]OFD Sender: No OFD packet to send [06:58:08]OFD Sender: No OFD packet to send [06:58:13]OFD Sender: No OFD packet to send [06:58:18]OFD Sender: No OFD packet to send [06:58:23]OFD Sender: No OFD packet to send [06:58:28]OFD Sender: No OFD packet to send [06:58:33]OFD Sender: No OFD packet to send [06:58:38]OFD Sender: No OFD packet to send [06:58:43]OFD Sender: No OFD packet to send [06:58:48]OFD Sender: No OFD packet to send [06:58:53]OFD Sender: No OFD packet to send [06:58:58]OFD Sender: No OFD packet to send [06:59:03]OFD Sender: No OFD packet to send [06:59:08]OFD Sender: No OFD packet to send [06:59:13]OFD Sender: No OFD packet to send [06:59:18]OFD Sender: No OFD packet to send [06:59:23]OFD Sender: No OFD packet to send [06:59:28]OFD Sender: No OFD packet to send [06:59:33]OFD Sender: No OFD packet to send [06:59:38]OFD Sender: No OFD packet to send [06:59:43]OFD Sender: No OFD packet to send [06:59:48]OFD Sender: No OFD packet to send [06:59:53]OFD Sender: No OFD packet to send [06:59:58]OFD Sender: No OFD packet to send [07:00:03]OFD Sender: No OFD packet to send [07:00:08]OFD Sender: No OFD packet to send [07:00:13]OFD Sender: No OFD packet to send [07:00:18]OFD Sender: No OFD packet to send [07:00:23]OFD Sender: No OFD packet to send [07:00:28]OFD Sender: No OFD packet to send [07:00:33]OFD Sender: No OFD packet to send [07:00:38]OFD Sender: No OFD packet to send [07:00:43]OFD Sender: No OFD packet to send [07:00:48]OFD Sender: No OFD packet to send [07:00:53]OFD Sender: No OFD packet to send [07:00:58]OFD Sender: No OFD packet to send [07:01:03]OFD Sender: No OFD packet to send [07:01:08]OFD Sender: No OFD packet to send [07:01:13]OFD Sender: No OFD packet to send [07:01:18]OFD Sender: No OFD packet to send [07:01:23]OFD Sender: No OFD packet to send [07:01:28]OFD Sender: No OFD packet to send [07:01:33]OFD Sender: No OFD packet to send [07:01:38]OFD Sender: No OFD packet to send [07:01:43]OFD Sender: No OFD packet to send [07:01:48]OFD Sender: No OFD packet to send [07:01:53]OFD Sender: No OFD packet to send [07:01:58]OFD Sender: No OFD packet to send [07:02:03]OFD Sender: No OFD packet to send [07:02:08]OFD Sender: No OFD packet to send [07:02:13]OFD Sender: No OFD packet to send [07:02:18]OFD Sender: No OFD packet to send [07:02:23]OFD Sender: No OFD packet to send [07:02:28]OFD Sender: No OFD packet to send [07:02:33]OFD Sender: No OFD packet to send [07:02:38]OFD Sender: No OFD packet to send [07:02:43]OFD Sender: No OFD packet to send [07:02:48]OFD Sender: No OFD packet to send [07:02:53]OFD Sender: No OFD packet to send [07:02:58]OFD Sender: No OFD packet to send [07:03:03]OFD Sender: No OFD packet to send [07:03:08]OFD Sender: No OFD packet to send [07:03:13]OFD Sender: No OFD packet to send [07:03:18]OFD Sender: No OFD packet to send [07:03:23]OFD Sender: No OFD packet to send [07:03:28]OFD Sender: No OFD packet to send [07:03:33]OFD Sender: No OFD packet to send [07:03:38]OFD Sender: No OFD packet to send [07:03:43]OFD Sender: No OFD packet to send [07:03:48]OFD Sender: No OFD packet to send [07:03:53]OFD Sender: No OFD packet to send [07:03:58]OFD Sender: No OFD packet to send [07:04:03]OFD Sender: No OFD packet to send [07:04:08]OFD Sender: No OFD packet to send [07:04:13]OFD Sender: No OFD packet to send [07:04:18]OFD Sender: No OFD packet to send [07:04:23]OFD Sender: No OFD packet to send [07:04:28]OFD Sender: No OFD packet to send [07:04:33]OFD Sender: No OFD packet to send [07:04:38]OFD Sender: No OFD packet to send [07:04:43]OFD Sender: No OFD packet to send [07:04:48]OFD Sender: No OFD packet to send [07:04:53]OFD Sender: No OFD packet to send [07:04:58]OFD Sender: No OFD packet to send [07:05:04]OFD Sender: No OFD packet to send [07:05:09]OFD Sender: No OFD packet to send [07:05:14]OFD Sender: No OFD packet to send [07:05:19]OFD Sender: No OFD packet to send [07:05:24]OFD Sender: No OFD packet to send [07:05:29]OFD Sender: No OFD packet to send [07:05:34]OFD Sender: No OFD packet to send [07:05:39]OFD Sender: No OFD packet to send [07:05:44]OFD Sender: No OFD packet to send [07:05:49]OFD Sender: No OFD packet to send [07:05:54]OFD Sender: No OFD packet to send [07:05:59]OFD Sender: No OFD packet to send [07:06:04]OFD Sender: No OFD packet to send [07:06:09]OFD Sender: No OFD packet to send [07:06:14]OFD Sender: No OFD packet to send [07:06:19]OFD Sender: No OFD packet to send [07:06:24]OFD Sender: No OFD packet to send [07:06:29]OFD Sender: No OFD packet to send [07:06:34]OFD Sender: No OFD packet to send [07:06:39]OFD Sender: No OFD packet to send [07:06:44]OFD Sender: No OFD packet to send [07:06:49]OFD Sender: No OFD packet to send [07:06:54]OFD Sender: No OFD packet to send [07:06:59]OFD Sender: No OFD packet to send [07:07:04]OFD Sender: No OFD packet to send [07:07:09]OFD Sender: No OFD packet to send [07:07:14]OFD Sender: No OFD packet to send [07:07:19]OFD Sender: No OFD packet to send [07:07:24]OFD Sender: No OFD packet to send [07:07:29]OFD Sender: No OFD packet to send [07:07:34]OFD Sender: No OFD packet to send [07:07:39]OFD Sender: No OFD packet to send [07:07:44]OFD Sender: No OFD packet to send [07:07:49]OFD Sender: No OFD packet to send [07:07:54]OFD Sender: No OFD packet to send [07:07:59]OFD Sender: No OFD packet to send [07:08:04]OFD Sender: No OFD packet to send [07:08:09]OFD Sender: No OFD packet to send [07:08:14]OFD Sender: No OFD packet to send [07:08:19]OFD Sender: No OFD packet to send [07:08:24]OFD Sender: No OFD packet to send [07:08:29]OFD Sender: No OFD packet to send [07:08:34]OFD Sender: No OFD packet to send [07:08:39]OFD Sender: No OFD packet to send [07:08:44]OFD Sender: No OFD packet to send [07:08:49]OFD Sender: No OFD packet to send [07:08:54]OFD Sender: No OFD packet to send [07:08:59]OFD Sender: No OFD packet to send [07:09:04]OFD Sender: No OFD packet to send [07:09:09]OFD Sender: No OFD packet to send [07:09:14]OFD Sender: No OFD packet to send [07:09:19]OFD Sender: No OFD packet to send [07:09:24]OFD Sender: No OFD packet to send [07:09:29]OFD Sender: No OFD packet to send [07:09:34]OFD Sender: No OFD packet to send [07:09:39]OFD Sender: No OFD packet to send [07:09:44]OFD Sender: No OFD packet to send [07:09:49]OFD Sender: No OFD packet to send [07:09:54]OFD Sender: No OFD packet to send [07:09:59]OFD Sender: No OFD packet to send [07:10:04]OFD Sender: No OFD packet to send [07:10:09]OFD Sender: No OFD packet to send [07:10:14]OFD Sender: No OFD packet to send [07:10:19]OFD Sender: No OFD packet to send [07:10:24]OFD Sender: No OFD packet to send [07:10:29]OFD Sender: No OFD packet to send [07:10:34]OFD Sender: No OFD packet to send [07:10:39]OFD Sender: No OFD packet to send [07:10:44]OFD Sender: No OFD packet to send [07:10:49]OFD Sender: No OFD packet to send [07:10:54]OFD Sender: No OFD packet to send [07:10:59]OFD Sender: No OFD packet to send [07:11:04]OFD Sender: No OFD packet to send [07:11:09]OFD Sender: No OFD packet to send [07:11:14]OFD Sender: No OFD packet to send [07:11:19]OFD Sender: No OFD packet to send [07:11:24]OFD Sender: No OFD packet to send [07:11:29]OFD Sender: No OFD packet to send [07:11:34]OFD Sender: No OFD packet to send [07:11:39]OFD Sender: No OFD packet to send [07:11:44]OFD Sender: No OFD packet to send [07:11:49]OFD Sender: No OFD packet to send [07:11:54]OFD Sender: No OFD packet to send [07:12:00]OFD Sender: No OFD packet to send [07:12:05]OFD Sender: No OFD packet to send [07:12:10]OFD Sender: No OFD packet to send [07:12:15]OFD Sender: No OFD packet to send [07:12:20]OFD Sender: No OFD packet to send [07:12:25]OFD Sender: No OFD packet to send [07:12:30]OFD Sender: No OFD packet to send [07:12:35]OFD Sender: No OFD packet to send [07:12:40]OFD Sender: No OFD packet to send [07:12:45]OFD Sender: No OFD packet to send [07:12:50]OFD Sender: No OFD packet to send [07:12:55]OFD Sender: No OFD packet to send [07:13:00]OFD Sender: No OFD packet to send [07:13:05]OFD Sender: No OFD packet to send [07:13:10]OFD Sender: No OFD packet to send [07:13:15]OFD Sender: No OFD packet to send [07:13:20]OFD Sender: No OFD packet to send [07:13:25]OFD Sender: No OFD packet to send [07:13:30]OFD Sender: No OFD packet to send [07:13:35]OFD Sender: No OFD packet to send [07:13:40]OFD Sender: No OFD packet to send [07:13:45]OFD Sender: No OFD packet to send [07:13:50]OFD Sender: No OFD packet to send [07:13:55]OFD Sender: No OFD packet to send [07:14:00]OFD Sender: No OFD packet to send [07:14:05]OFD Sender: No OFD packet to send [07:14:10]OFD Sender: No OFD packet to send [07:14:15]OFD Sender: No OFD packet to send [07:14:20]OFD Sender: No OFD packet to send [07:14:25]OFD Sender: No OFD packet to send [07:14:30]OFD Sender: No OFD packet to send [07:14:35]OFD Sender: No OFD packet to send [07:14:40]OFD Sender: No OFD packet to send [07:14:45]OFD Sender: No OFD packet to send [07:14:50]OFD Sender: No OFD packet to send [07:14:55]OFD Sender: No OFD packet to send [07:15:00]OFD Sender: No OFD packet to send [07:15:05]OFD Sender: No OFD packet to send [07:15:10]OFD Sender: No OFD packet to send [07:15:15]OFD Sender: No OFD packet to send [07:15:20]OFD Sender: No OFD packet to send [07:15:25]OFD Sender: No OFD packet to send [07:15:30]OFD Sender: No OFD packet to send [07:15:35]OFD Sender: No OFD packet to send [07:15:40]OFD Sender: No OFD packet to send [07:15:45]OFD Sender: No OFD packet to send [07:15:50]OFD Sender: No OFD packet to send [07:15:55]OFD Sender: No OFD packet to send [07:16:00]OFD Sender: No OFD packet to send [07:16:05]OFD Sender: No OFD packet to send [07:16:10]OFD Sender: No OFD packet to send [07:16:15]OFD Sender: No OFD packet to send [07:16:20]OFD Sender: No OFD packet to send [07:16:25]OFD Sender: No OFD packet to send [07:16:30]OFD Sender: No OFD packet to send [07:16:35]OFD Sender: No OFD packet to send [07:16:40]OFD Sender: No OFD packet to send [07:16:45]OFD Sender: No OFD packet to send [07:16:50]OFD Sender: No OFD packet to send [07:16:55]OFD Sender: No OFD packet to send [07:17:00]OFD Sender: No OFD packet to send [07:17:05]OFD Sender: No OFD packet to send [07:17:10]OFD Sender: No OFD packet to send [07:17:15]OFD Sender: No OFD packet to send [07:17:20]OFD Sender: No OFD packet to send [07:17:25]OFD Sender: No OFD packet to send [07:17:30]OFD Sender: No OFD packet to send [07:17:34]accept exits with 8 [07:17:34]New connection [07:17:34]New thread 3067350372 created [07:17:34]Thread 3067207012 joined [07:17:34]Waiting for new connection... [07:17:34] Sock 8.Parse request [07:17:34]Sock 8.Check first char [07:17:34]Sock 8.First char is OK [07:17:34]request: POST /json_proto HTTP/1.0 [07:17:34]Method: POST [07:17:34]URL: /json_proto [07:17:34]Method is POST - this is cgi request [07:17:34]url: /json_proto [07:17:34]query_string will be loaded in cgi processing [07:17:34]execute_cgi json_proto POST (null) [07:17:34]execute_cgi path=json_proto method=POST [07:17:34]POST find Content-Length [07:17:34]Host: 172.17.41.136:8080 [07:17:34]Content-Length: 620 [07:17:34]Content-Type: application/json [07:17:34] [07:17:34]POST finish read [07:17:34]Found Content-Length = 620 [07:17:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)344356", "tax_sys" : 0, "items" : [ { "code": "48745000", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Purple Mix", "price" : 139.00, "quantity" : 1.000, "sum" : 139.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 139.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:17:34]execute_script... [07:17:34]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)344356", "tax_sys" : 0, "items" : [ { "code": "48745000", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Purple Mix", "price" : 139.00, "quantity" : 1.000, "sum" : 139.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 139.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:17:34]POST & json_proto [07:17:34]process_json_proto [07:17:34]json parsed OK: [07:17:34]protocol is kg_v1.0 [07:17:34]action value=close_receipt [07:17:34]process_action close_receipt [07:17:34]cmd_close_receipt [07:17:34]MH_GetDate [07:17:34]Write to MH i2c: F0 00 00 76 09 6E [07:17:34]Write i2c OK [07:17:34]MH_I2C_Read... [07:17:34]Read from MH i2c: F0 [07:17:34]MH_I2C_Read... [07:17:34]Read from MH i2c: F0 09 00 [07:17:34]MH_I2C_Read... [07:17:34]Read from MH i2c: F0 09 00 76 09 00 10 B9 F3 66 1B D0 5A 64 42 [07:17:34]GetLastDocTimeStamp 1727246564 [07:17:34]current date 1727248656 [07:17:34]FM_GetShiftState [07:17:34]SAM_PROTO_GetShiftState [07:17:34]wFMCommunicate request_size=4 [07:17:34]MH_SAM_APDU [07:17:34]CAPDU: 80 13 01 00 [07:17:34]Write to MH i2c: E2 08 00 77 09 80 13 01 00 00 00 00 00 FD [07:17:34]Write i2c OK [07:17:34]MH_I2C_Read... [07:17:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:17:34]Read from MH i2c: E2 [07:17:34]MH_I2C_Read... [07:17:34]Read from MH i2c: E2 0E 00 [07:17:34]MH_I2C_Read... [07:17:34]Read from MH i2c: E2 0E 00 77 09 00 09 00 01 63 60 F3 66 00 00 00 00 90 00 25 [07:17:34]RAPDU: 09 00 01 63 60 F3 66 00 00 00 00 90 00 [07:17:34]wFMCommunicate OK [07:17:34]SAM_PROTO_GetShiftState done [07:17:34]FM_GetShiftState done [07:17:34]opened in 1727225955 [07:17:34]opened+sec_in_day 1727312355 [07:17:34]quantity*price = 13900 [07:17:34]sum+1 = 13901 [07:17:34]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 139.00 НСП 1% : 1.23 НДС 12% : 14.76 Наличными: 139.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 27 25.09.2024 07:17 Смена: 474 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 116171 ФПД: 192667778920176 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240925T071736&type=1&operation_type=1&fn_number=0000000000871830&fd_number=116171&fm=192667778920176&tin=02508201610067®Number=0000000000091831&sum=13900 0 [07:17:35]StoreToDocumentArchive [07:17:35]shift 474 fd 116171 [07:17:35]save to /storage/0474/doc_00116171 [07:17:35]save last doc name /storage/0474/doc_00116171 to /storage/kkm_last_doc_name [07:17:35]save OK [07:17:35]Clear old archive folders... [07:17:35]ProcessDocumentItem done err = 0, tmpTLVsize=272 [07:17:35]tlvbuf is 018D5DA0 [07:17:35]SAM_PROTO_ClearQueue [07:17:35]wFMCommunicate request_size=4 [07:17:35]MH_SAM_APDU [07:17:35]CAPDU: 80 09 00 00 [07:17:35]Write to MH i2c: E2 08 00 84 09 80 09 00 00 00 00 00 00 FF [07:17:35]Write i2c OK [07:17:35]MH_I2C_Read... [07:17:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:17:36]Read from MH i2c: E2 [07:17:36]MH_I2C_Read... [07:17:36]Read from MH i2c: E2 03 00 [07:17:36]MH_I2C_Read... [07:17:36]Read from MH i2c: E2 03 00 84 09 00 90 00 01 [07:17:36]RAPDU: 90 00 [07:17:36]wFMCommunicate OK [07:17:36]SAM_PROTO_ClearQueue done [07:17:36]KKMCreateOFDPacket [07:17:36]OFDProtocolAddRootSTLVToBuf [07:17:36]FM_MakeSignedData [07:17:36]FM_MakeSignedData [07:17:36]SAM_PROTO_SignData [07:17:36]wFMCommunicate request_size=4 [07:17:36]MH_SAM_APDU [07:17:36]CAPDU: 80 0D 01 02 [07:17:36]Write to MH i2c: E2 08 00 85 09 80 0D 01 02 00 00 00 00 07 [07:17:36]Write i2c OK [07:17:36]MH_I2C_Read... [07:17:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:17:36]Read from MH i2c: E2 [07:17:36]MH_I2C_Read... [07:17:36]Read from MH i2c: E2 03 00 [07:17:36]MH_I2C_Read... [07:17:36]Read from MH i2c: E2 03 00 85 09 00 90 00 02 [07:17:36]RAPDU: 90 00 [07:17:36]wFMCommunicate OK [07:17:36]wFMCommunicate request_size=255 [07:17:36]MH_SAM_APDU [07:17:36]CAPDU: 80 0D 02 02 FA 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 38 37 34 35 30 30 30 06 04 23 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 50 75 72 70 6C 65 20 4D 69 78 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 36 00 00 00 00 13 04 06 00 4C 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 05 00 00 00 00 07 04 06 00 4C 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 00 00 00 F4 03 04 00 10 B9 F3 66 0E 04 04 00 DA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 [07:17:36]Write to MH i2c: E2 02 01 86 09 80 0D 02 02 FA 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 38 37 34 35 30 30 30 06 04 23 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 50 75 72 70 6C 65 20 4D 69 78 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 36 00 00 00 00 13 04 06 00 4C 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 05 00 00 00 00 07 04 06 00 4C 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 00 00 00 F4 03 04 00 10 B9 F3 66 0E 04 04 00 DA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 00 00 4D [07:17:36]Write i2c OK [07:17:36]MH_I2C_Read... [07:17:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:17:36]Read from MH i2c: E2 [07:17:36]MH_I2C_Read... [07:17:36]Read from MH i2c: E2 03 00 [07:17:36]MH_I2C_Read... [07:17:36]Read from MH i2c: E2 03 00 86 09 00 90 00 03 [07:17:36]RAPDU: 90 00 [07:17:36]wFMCommunicate OK [07:17:36]wFMCommunicate request_size=31 [07:17:36]MH_SAM_APDU [07:17:36]CAPDU: 80 0D 02 02 1A 30 30 38 37 31 38 33 30 10 04 04 00 CB C5 01 00 35 04 06 00 AF 3A F6 85 AE F0 [07:17:36]Write to MH i2c: E2 22 00 87 09 80 0D 02 02 1A 00 30 30 38 37 31 38 33 30 10 04 04 00 CB C5 01 00 35 04 06 00 AF 3A F6 85 AE F0 00 00 C3 [07:17:36]Write i2c OK [07:17:36]MH_I2C_Read... [07:17:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:17:36]Read from MH i2c: E2 [07:17:36]MH_I2C_Read... [07:17:36]Read from MH i2c: E2 03 00 [07:17:36]MH_I2C_Read... [07:17:36]Read from MH i2c: E2 03 00 87 09 00 90 00 04 [07:17:36]RAPDU: 90 00 [07:17:36]wFMCommunicate OK [07:17:36]wFMCommunicate request_size=4 [07:17:36]MH_SAM_APDU [07:17:36]CAPDU: 80 0D 03 02 [07:17:36]Write to MH i2c: E2 08 00 88 09 80 0D 03 02 00 00 00 00 0C [07:17:36]Write i2c OK [07:17:36]MH_I2C_Read... [07:17:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:17:36]Read from MH i2c: E2 [07:17:36]MH_I2C_Read... [07:17:36]Read from MH i2c: E2 0B 00 [07:17:36]MH_I2C_Read... [07:17:36]Read from MH i2c: E2 0B 00 88 09 00 D2 18 55 AE EC DC 6B 21 90 00 4E [07:17:36]RAPDU: D2 18 55 AE EC DC 6B 21 90 00 [07:17:36]wFMCommunicate OK [07:17:36]SAM_PROTO_SignData done [07:17:36]FM_MakeSignedData done [07:17:36]CreateOFDProtocolMessage [07:17:36]wFMCommunicate request_size=4 [07:17:36]MH_SAM_APDU [07:17:36]CAPDU: 80 11 00 00 [07:17:36]Write to MH i2c: E2 08 00 89 09 80 11 00 00 00 00 00 00 0C [07:17:36]Write i2c OK [07:17:36]MH_I2C_Read... [07:17:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:17:36]Read from MH i2c: E2 [07:17:36]MH_I2C_Read... [07:17:36]Read from MH i2c: E2 17 00 [07:17:36]MH_I2C_Read... [07:17:36]Read from MH i2c: E2 17 00 89 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 5A [07:17:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [07:17:36]wFMCommunicate OK [07:17:36]CreateOFDProtocolMessage done [07:17:36]OFDSenderStorePacket 116171 [07:17:36]StoreOFDPacket docnum=116171 [07:17:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 24 01 00 00 51 8F 1C 01 48 78 5A 03 01 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 38 37 34 35 30 30 30 06 04 23 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 50 75 72 70 6C 65 20 4D 69 78 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 36 00 00 00 00 13 04 06 00 4C 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 05 00 00 00 00 07 04 06 00 4C 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 00 00 00 F4 03 04 00 10 B9 F3 66 0E 04 04 00 DA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 CB C5 01 00 35 04 06 00 AF 3A F6 85 AE F0 D2 18 55 AE EC DC 6B 21 [07:17:36]CheckFolder [07:17:36]dirname=/storage/ofd_packets [07:17:36]CheckFolder done [07:17:36]ProducePacketName [07:17:36]name=ofd_packets/00116171 [07:17:36]NVStorageSaveData ofd_packets/00116171 [07:17:36]File name is /storage/ofd_packets/00116171 [07:17:36]Write 322 bytes [07:17:36]NVStorageSaveData done [07:17:36]OFDSenderStorePacket done [07:17:36]KKMCreateOFDPacket done [07:17:36]NVStorageSaveData kkm_last_timestamp [07:17:36]File name is /storage/kkm_last_timestamp [07:17:36]Write 4 bytes [07:17:36]NVStorageSaveData done [07:17:36]ExternCall_PrintAddStr [07:17:36]wPrintStart [07:17:36]Write to MH i2c: 01 00 00 8A 09 93 [07:17:36]OFD Sender: Processing packet 116171 [packets to send 482, broken 481] [07:17:36]ProducePacketName [07:17:36]name=ofd_packets/00116171 [07:17:36]Write i2c OK [07:17:36]MH_I2C_Read... [07:17:36]OFD Sender: To server: pG, [07:17:36]CommunicateWithHost lk.salyk.kg:30040 [07:17:36]ConnectInit lk.salyk.kg [07:17:36]Read from MH i2c: 01 [07:17:36]MH_I2C_Read... [07:17:36]Read from MH i2c: 01 07 00 [07:17:36]MH_I2C_Read... [07:17:36]Read from MH i2c: 01 07 00 8A 09 00 00 00 00 00 FF 0F A8 [07:17:36]RasterBufferAndPrint [07:17:36]line Счет N : (3)344356 [07:17:36]line ИНН: 02508201610067 [07:17:36]line Контрольно-Кассовый Чек [07:17:36]line ПРОДАЖА [07:17:36]line Товар: 48745000 [07:17:36]line Сигареты Winston Purple Mix [07:17:36]line 1.000 * 139.00 [07:17:36]line = 139.00 [07:17:36]line НДС 12% НСП 1% [07:17:36]line > о реализуемом товаре [07:17:36]line ИТОГО: 139.00 [07:17:36]line НСП 1% : 1.23 [07:17:36]line НДС 12% : 14.76 [07:17:36]line Наличными: 139.00 [07:17:36]line Безнал.: 0.00 [07:17:36]line Место: АЗС № 90 "Партнер Нефть" [07:17:36]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [07:17:36]line СНО: Общий режим [07:17:36]line Чек 27 25.09.2024 07:17 [07:17:36]line Смена: 474 ФФД: 1.0 [07:17:36]line ЗНМ: 0300000120 [07:17:36]line РНМ: 0000000000091831 [07:17:36]line Версия ККМ: 001 [07:17:36]line ФМ: 0000000000871830 [07:17:36]line ФД: 116171 [07:17:36]line ФПД: 192667778920176 [07:17:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240925T071736&type=1&operation_type=1&fn_number=0000000000871830&fd_number=116171&fm=192667778920176&tin=02508201610067®Number=0000000000091831&sum=13900 [07:17:36]line 0 [07:17:36]written 0, free lines is 4095 [07:17:36]Connected sock=9 [07:17:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 24 01 00 00 51 8F 1C 01 48 78 5A 03 01 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 38 37 34 35 30 30 30 06 04 23 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 50 75 72 70 6C 65 20 4D 69 78 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 36 00 00 00 00 13 04 06 00 4C 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 05 00 00 00 00 07 04 06 00 4C 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 00 00 00 F4 03 04 00 10 B9 F3 66 0E 04 04 00 DA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 CB C5 01 00 35 04 06 00 AF 3A F6 85 AE F0 D2 18 55 AE EC DC 6B 21 [07:17:36]Write to MH i2c: 01 00 00 B1 09 BA [07:17:36]Write i2c OK [07:17:36]MH_I2C_Read... [07:17:36]Read from MH i2c: 01 [07:17:36]MH_I2C_Read... [07:17:36]Read from MH i2c: 01 07 00 [07:17:36]MH_I2C_Read... [07:17:36]Read from MH i2c: 01 07 00 B1 09 00 00 00 00 00 6F 0C 3C [07:17:36]RasterBufferAndPrint [07:17:36]line [07:17:36]line [07:17:36]line [07:17:36]line [07:17:36]line [07:17:36]written 0, free lines is 3187 [07:17:37]MH_Cut [07:17:37]Write to MH i2c: D1 01 00 B8 09 01 93 [07:17:37]Write i2c OK [07:17:37]MH_I2C_Read... [07:17:37]Read from MH i2c: D1 [07:17:37]MH_I2C_Read... [07:17:37]Read from MH i2c: D1 01 00 [07:17:37]MH_I2C_Read... [07:17:37]Read from MH i2c: D1 01 00 B8 09 00 92 [07:17:37]Write to MH i2c: 01 00 00 B9 09 C2 [07:17:37]Write i2c OK [07:17:37]MH_I2C_Read... [07:17:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 D7 39 47 00 77 DB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 CB C5 01 00 F4 03 04 00 4D 5E F3 66 B6 04 01 00 00 37 8D CE C1 4D 28 35 B1 [07:17:37]CommunicateWithHost err = 0 [07:17:37]CheckOFDResponse [07:17:37]1017 (14) - 77093643461234 [07:17:37]1041 (16) - 0000000000871830 [07:17:37]1040 (4) - 116171 [07:17:37]1012 (4) - 25.09.2024 00:50 [07:17:37]1206 (1) - 0 [07:17:37]OFD Sender: Remove packet 116171 [07:17:37]ProducePacketName [07:17:37]name=ofd_packets/00116171 [07:17:37]NVStorageDeleteData [07:17:37]OFD Sender: No OFD packet to send [07:17:38]*** Cut start [07:17:38]*** Partial cut [07:17:38]*** CUTSNS_PIN = 1 [07:17:38]*** CUTSNS_PIN = 0 [07:17:38]*** Brake cut motor [07:17:38]Read from MH i2c: 01 [07:17:38]MH_I2C_Read... [07:17:38]*** Stop cut motor [07:17:38]*** Cut end [07:17:38]Read from MH i2c: 01 07 00 [07:17:38]MH_I2C_Read... [07:17:38]Read from MH i2c: 01 07 00 B9 09 00 00 00 00 00 FF 0F D7 [07:17:38]process_action close_receipt done [07:17:38]requested_data is exist [07:17:38]produce_requested_data [07:17:38]requested_item fm.sn is exist - process it [07:17:38]wFMCommunicate request_size=4 [07:17:38]MH_SAM_APDU [07:17:38]CAPDU: 80 11 00 00 [07:17:38]Write to MH i2c: E2 08 00 BA 09 80 11 00 00 00 00 00 00 3D [07:17:38]Write i2c OK [07:17:38]MH_I2C_Read... [07:17:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:17:38]Read from MH i2c: E2 [07:17:38]MH_I2C_Read... [07:17:38]Read from MH i2c: E2 17 00 [07:17:38]MH_I2C_Read... [07:17:38]Read from MH i2c: E2 17 00 BA 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 8B [07:17:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [07:17:39]wFMCommunicate OK [07:17:39]requested_item fd.num is exist - process it [07:17:39]SAM_PROTO_GetFieldsCounters [07:17:39]wFMCommunicate request_size=4 [07:17:39]MH_SAM_APDU [07:17:39]CAPDU: 80 13 00 00 [07:17:39]Write to MH i2c: E2 08 00 BB 09 80 13 00 00 00 00 00 00 40 [07:17:39]Write i2c OK [07:17:39]MH_I2C_Read... [07:17:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:17:39]Read from MH i2c: E2 [07:17:39]MH_I2C_Read... [07:17:39]Read from MH i2c: E2 62 00 [07:17:39]MH_I2C_Read... [07:17:39]Read from MH i2c: E2 62 00 BB 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 CB C5 01 00 0E 04 04 00 DA 01 00 00 12 04 04 00 1B 00 00 00 5E 04 04 00 1B 00 00 00 57 04 04 00 1C 00 00 00 19 04 04 00 00 00 00 00 90 00 16 [07:17:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 CB C5 01 00 0E 04 04 00 DA 01 00 00 12 04 04 00 1B 00 00 00 5E 04 04 00 1B 00 00 00 57 04 04 00 1C 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:17:39]wFMCommunicate OK [07:17:39]SAM_PROTO_GetFieldsCounters done [07:17:39]requested_item shift.num is exist - process it [07:17:39]requested_item shift.opened is exist - process it [07:17:39]req_shift_opened [07:17:39]FM_GetShiftState [07:17:39]SAM_PROTO_GetShiftState [07:17:39]wFMCommunicate request_size=4 [07:17:39]MH_SAM_APDU [07:17:39]CAPDU: 80 13 01 00 [07:17:39]Write to MH i2c: E2 08 00 BC 09 80 13 01 00 00 00 00 00 42 [07:17:39]Write i2c OK [07:17:39]MH_I2C_Read... [07:17:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:17:39]Read from MH i2c: E2 [07:17:39]MH_I2C_Read... [07:17:39]Read from MH i2c: E2 0E 00 [07:17:39]MH_I2C_Read... [07:17:39]Read from MH i2c: E2 0E 00 BC 09 00 09 00 01 63 60 F3 66 00 00 00 00 90 00 6A [07:17:39]RAPDU: 09 00 01 63 60 F3 66 00 00 00 00 90 00 [07:17:39]wFMCommunicate OK [07:17:39]SAM_PROTO_GetShiftState done [07:17:39]FM_GetShiftState done [07:17:39]req_shift_opened done [07:17:39]requested_item shift.open_date is exist - process it [07:17:39]req_shift_open_date [07:17:39]req_shift_open_date done [07:17:39]produce_requested_data done [07:17:39]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":116171,"shift.num":474,"shift.opened":1,"shift.open_date":1727225955} [07:17:39]process_action_free close_receipt [07:17:39]json_value_free [07:17:39]json_value_free done [07:17:39]process_json_proto returns [07:17:39]Send response to host [07:17:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":116171,"shift.num":474,"shift.opened":1,"shift.open_date":1727225955}}} [07:17:39]free response buf [07:17:39]execute_script done [07:17:39]execute_script returns [07:17:39]free content buf [07:17:39]Sock 8.Close socket [07:17:39]Sock 8.Thread stoped [07:17:42]OFD Sender: No OFD packet to send [07:17:47]OFD Sender: No OFD packet to send [07:17:52]OFD Sender: No OFD packet to send [07:17:57]OFD Sender: No OFD packet to send [07:18:02]OFD Sender: No OFD packet to send [07:18:07]OFD Sender: No OFD packet to send [07:18:12]OFD Sender: No OFD packet to send [07:18:17]OFD Sender: No OFD packet to send [07:18:22]OFD Sender: No OFD packet to send [07:18:26]accept exits with 10 [07:18:26]New connection [07:18:26]New thread 3067207012 created [07:18:26]Thread 3067350372 joined [07:18:26]Waiting for new connection... [07:18:26] Sock 10.Parse request [07:18:26]Sock 10.Check first char [07:18:26]Sock 10.First char is OK [07:18:26]request: POST /json_proto HTTP/1.0 [07:18:26]Method: POST [07:18:26]URL: /json_proto [07:18:26]Method is POST - this is cgi request [07:18:26]url: /json_proto [07:18:26]query_string will be loaded in cgi processing [07:18:26]execute_cgi json_proto POST (null) [07:18:26]execute_cgi path=json_proto method=POST [07:18:26]POST find Content-Length [07:18:26]Host: 172.17.41.136:8080 [07:18:26]Content-Length: 929 [07:18:26]Content-Type: application/json [07:18:26] [07:18:26]POST finish read [07:18:26]Found Content-Length = 929 [07:18:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)344357", "tax_sys" : 0, "items" : [ { "code": "4607015235784", "name": "\u041F\u0435\u0447. \u0441\u0434. \u042F\u0448\u043A\u0438\u043D\u043E \u043A\u043B\u0443\u0431\u043D\u0438\u043A\u0430 137\u0433", "price" : 90.00, "quantity" : 1.000, "sum" : 90.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000036230011", "name": "\u041A\u043E\u0444\u0435 \u041B\u0430\u0442\u0442\u0435 XL(GABB TRADE)", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 220.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:18:26]execute_script... [07:18: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 : (3)344357", "tax_sys" : 0, "items" : [ { "code": "4607015235784", "name": "\u041F\u0435\u0447. \u0441\u0434. \u042F\u0448\u043A\u0438\u043D\u043E \u043A\u043B\u0443\u0431\u043D\u0438\u043A\u0430 137\u0433", "price" : 90.00, "quantity" : 1.000, "sum" : 90.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000036230011", "name": "\u041A\u043E\u0444\u0435 \u041B\u0430\u0442\u0442\u0435 XL(GABB TRADE)", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 220.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:18:26]POST & json_proto [07:18:26]process_json_proto [07:18:26]json parsed OK: [07:18:26]protocol is kg_v1.0 [07:18:26]action value=close_receipt [07:18:26]process_action close_receipt [07:18:26]cmd_close_receipt [07:18:26]MH_GetDate [07:18:26]Write to MH i2c: F0 00 00 BD 09 B5 [07:18:26]Write i2c OK [07:18:26]MH_I2C_Read... [07:18:26]Read from MH i2c: F0 [07:18:26]MH_I2C_Read... [07:18:26]Read from MH i2c: F0 09 00 [07:18:26]MH_I2C_Read... [07:18:26]Read from MH i2c: F0 09 00 BD 09 00 43 B9 F3 66 1B D0 5A 64 BC [07:18:26]GetLastDocTimeStamp 1727248656 [07:18:26]current date 1727248707 [07:18:26]FM_GetShiftState [07:18:26]SAM_PROTO_GetShiftState [07:18:26]wFMCommunicate request_size=4 [07:18:26]MH_SAM_APDU [07:18:26]CAPDU: 80 13 01 00 [07:18:26]Write to MH i2c: E2 08 00 BE 09 80 13 01 00 00 00 00 00 44 [07:18:26]Write i2c OK [07:18:26]MH_I2C_Read... [07:18:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:18:26]Read from MH i2c: E2 [07:18:26]MH_I2C_Read... [07:18:26]Read from MH i2c: E2 0E 00 [07:18:26]MH_I2C_Read... [07:18:26]Read from MH i2c: E2 0E 00 BE 09 00 09 00 01 63 60 F3 66 00 00 00 00 90 00 6C [07:18:26]RAPDU: 09 00 01 63 60 F3 66 00 00 00 00 90 00 [07:18:26]wFMCommunicate OK [07:18:26]SAM_PROTO_GetShiftState done [07:18:26]FM_GetShiftState done [07:18:26]opened in 1727225955 [07:18:26]opened+sec_in_day 1727312355 [07:18:26]quantity*price = 9000 [07:18:26]sum+1 = 9001 [07:18:26]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 2000036230011 Кофе Латте XL(GABB TRADE) 1.000 * 130.00 = 130.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 220.00 НСП 1% : 1.95 НДС 12% : 23.36 Наличными: 220.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 28 25.09.2024 07:18 Смена: 474 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 116172 ФПД: 117469482029905 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240925T071827&type=1&operation_type=1&fn_number=0000000000871830&fd_number=116172&fm=117469482029905&tin=02508201610067®Number=0000000000091831&sum=22000 0 [07:18:27]StoreToDocumentArchive [07:18:27]shift 474 fd 116172 [07:18:27]save to /storage/0474/doc_00116172 [07:18:27]save last doc name /storage/0474/doc_00116172 to /storage/kkm_last_doc_name [07:18:27]save OK [07:18:27]Clear old archive folders... [07:18:27]ProcessDocumentItem done err = 0, tmpTLVsize=397 [07:18:27]tlvbuf is 018D5A50 [07:18:27]SAM_PROTO_ClearQueue [07:18:27]wFMCommunicate request_size=4 [07:18:27]MH_SAM_APDU [07:18:27]CAPDU: 80 09 00 00 [07:18:27]Write to MH i2c: E2 08 00 CB 09 80 09 00 00 00 00 00 00 46 [07:18:27]Write i2c OK [07:18:27]MH_I2C_Read... [07:18:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:18:27]Read from MH i2c: E2 [07:18:27]MH_I2C_Read... [07:18:27]Read from MH i2c: E2 03 00 [07:18:27]MH_I2C_Read... [07:18:27]Read from MH i2c: E2 03 00 CB 09 00 90 00 48 [07:18:27]RAPDU: 90 00 [07:18:27]wFMCommunicate OK [07:18:27]SAM_PROTO_ClearQueue done [07:18:27]KKMCreateOFDPacket [07:18:27]OFDProtocolAddRootSTLVToBuf [07:18:27]FM_MakeSignedData [07:18:27]FM_MakeSignedData [07:18:27]SAM_PROTO_SignData [07:18:27]wFMCommunicate request_size=4 [07:18:27]MH_SAM_APDU [07:18:27]CAPDU: 80 0D 01 02 [07:18:27]Write to MH i2c: E2 08 00 CC 09 80 0D 01 02 00 00 00 00 4E [07:18:27]Write i2c OK [07:18:27]MH_I2C_Read... [07:18:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:18:27]Read from MH i2c: E2 [07:18:27]MH_I2C_Read... [07:18:27]Read from MH i2c: E2 03 00 [07:18:27]MH_I2C_Read... [07:18:27]Read from MH i2c: E2 03 00 CC 09 00 90 00 49 [07:18:27]RAPDU: 90 00 [07:18:27]wFMCommunicate OK [07:18:27]wFMCommunicate request_size=255 [07:18:27]MH_SAM_APDU [07:18:27]CAPDU: 80 0D 02 02 FA 03 00 8D 01 1E 04 01 00 01 23 04 75 00 8A 04 0D 00 34 36 30 37 30 31 35 32 33 35 37 38 34 06 04 31 00 D0 9F D0 B5 D1 87 2E 20 D1 81 D0 B4 2E 20 D0 AF D1 88 D0 BA D0 B8 D0 BD D0 BE 20 D0 BA D0 BB D1 83 D0 B1 D0 BD D0 B8 D0 BA D0 B0 20 31 33 37 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 66 00 8A 04 0D 00 32 30 30 30 30 33 36 32 33 30 30 31 31 06 04 22 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 55 00 00 00 00 EB 03 26 00 [07:18:27]Write to MH i2c: E2 02 01 CD 09 80 0D 02 02 FA 00 03 00 8D 01 1E 04 01 00 01 23 04 75 00 8A 04 0D 00 34 36 30 37 30 31 35 32 33 35 37 38 34 06 04 31 00 D0 9F D0 B5 D1 87 2E 20 D1 81 D0 B4 2E 20 D0 AF D1 88 D0 BA D0 B8 D0 BD D0 BE 20 D0 BA D0 BB D1 83 D0 B1 D0 BD D0 B8 D0 BA D0 B0 20 31 33 37 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 66 00 8A 04 0D 00 32 30 30 30 30 33 36 32 33 30 30 31 31 06 04 22 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 55 00 00 00 00 EB 03 26 00 00 00 C5 [07:18:27]Write i2c OK [07:18:27]MH_I2C_Read... [07:18:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:18:27]Read from MH i2c: E2 [07:18:27]MH_I2C_Read... [07:18:27]Read from MH i2c: E2 03 00 [07:18:27]MH_I2C_Read... [07:18:27]Read from MH i2c: E2 03 00 CD 09 00 90 00 4A [07:18:27]RAPDU: 90 00 [07:18:27]wFMCommunicate OK [07:18:27]wFMCommunicate request_size=156 [07:18:27]MH_SAM_APDU [07:18:27]CAPDU: 80 0D 02 02 97 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 20 09 00 00 00 00 07 04 06 00 F0 55 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 43 B9 F3 66 0E 04 04 00 DA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 CC C5 01 00 35 04 06 00 6A D6 7E BF 93 51 [07:18:27]Write to MH i2c: E2 9F 00 CE 09 80 0D 02 02 97 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 20 09 00 00 00 00 07 04 06 00 F0 55 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 43 B9 F3 66 0E 04 04 00 DA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 CC C5 01 00 35 04 06 00 6A D6 7E BF 93 51 00 00 10 [07:18:27]Write i2c OK [07:18:27]MH_I2C_Read... [07:18:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:18:27]Read from MH i2c: E2 [07:18:27]MH_I2C_Read... [07:18:27]Read from MH i2c: E2 03 00 [07:18:27]MH_I2C_Read... [07:18:27]Read from MH i2c: E2 03 00 CE 09 00 90 00 4B [07:18:27]RAPDU: 90 00 [07:18:27]wFMCommunicate OK [07:18:27]wFMCommunicate request_size=4 [07:18:27]MH_SAM_APDU [07:18:27]CAPDU: 80 0D 03 02 [07:18:27]Write to MH i2c: E2 08 00 CF 09 80 0D 03 02 00 00 00 00 53 [07:18:27]Write i2c OK [07:18:27]MH_I2C_Read... [07:18:27]OFD Sender: No OFD packet to send [07:18:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:18:27]Read from MH i2c: E2 [07:18:27]MH_I2C_Read... [07:18:27]Read from MH i2c: E2 0B 00 [07:18:27]MH_I2C_Read... [07:18:27]Read from MH i2c: E2 0B 00 CF 09 00 49 A0 BE 81 EE 27 D3 81 90 00 E5 [07:18:27]RAPDU: 49 A0 BE 81 EE 27 D3 81 90 00 [07:18:27]wFMCommunicate OK [07:18:27]SAM_PROTO_SignData done [07:18:27]FM_MakeSignedData done [07:18:27]CreateOFDProtocolMessage [07:18:27]wFMCommunicate request_size=4 [07:18:27]MH_SAM_APDU [07:18:27]CAPDU: 80 11 00 00 [07:18:27]Write to MH i2c: E2 08 00 D0 09 80 11 00 00 00 00 00 00 53 [07:18:27]Write i2c OK [07:18:27]MH_I2C_Read... [07:18:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:18:27]Read from MH i2c: E2 [07:18:27]MH_I2C_Read... [07:18:27]Read from MH i2c: E2 17 00 [07:18:27]MH_I2C_Read... [07:18:27]Read from MH i2c: E2 17 00 D0 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 A1 [07:18:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [07:18:27]wFMCommunicate OK [07:18:27]CreateOFDProtocolMessage done [07:18:27]OFDSenderStorePacket 116172 [07:18:27]StoreOFDPacket docnum=116172 [07:18:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 A1 01 00 00 E1 F2 99 01 2D BA 5A 03 01 00 03 00 8D 01 1E 04 01 00 01 23 04 75 00 8A 04 0D 00 34 36 30 37 30 31 35 32 33 35 37 38 34 06 04 31 00 D0 9F D0 B5 D1 87 2E 20 D1 81 D0 B4 2E 20 D0 AF D1 88 D0 BA D0 B8 D0 BD D0 BE 20 D0 BA D0 BB D1 83 D0 B1 D0 BD D0 B8 D0 BA D0 B0 20 31 33 37 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 66 00 8A 04 0D 00 32 30 30 30 30 33 36 32 33 30 30 31 31 06 04 22 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 55 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 20 09 00 00 00 00 07 04 06 00 F0 55 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 43 B9 F3 66 0E 04 04 00 DA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 CC C5 01 00 35 04 06 00 6A D6 7E BF 93 51 49 A0 BE 81 EE 27 D3 81 [07:18:27]CheckFolder [07:18:27]dirname=/storage/ofd_packets [07:18:27]CheckFolder done [07:18:27]ProducePacketName [07:18:27]name=ofd_packets/00116172 [07:18:27]NVStorageSaveData ofd_packets/00116172 [07:18:27]File name is /storage/ofd_packets/00116172 [07:18:27]Write 447 bytes [07:18:27]NVStorageSaveData done [07:18:27]OFDSenderStorePacket done [07:18:27]KKMCreateOFDPacket done [07:18:27]NVStorageSaveData kkm_last_timestamp [07:18:27]File name is /storage/kkm_last_timestamp [07:18:27]Write 4 bytes [07:18:27]NVStorageSaveData done [07:18:27]ExternCall_PrintAddStr [07:18:27]wPrintStart [07:18:27]Write to MH i2c: 01 00 00 D1 09 DA [07:18:27]Write i2c OK [07:18:27]MH_I2C_Read... [07:18:27]Read from MH i2c: 01 [07:18:27]MH_I2C_Read... [07:18:27]Read from MH i2c: 01 07 00 [07:18:27]MH_I2C_Read... [07:18:27]Read from MH i2c: 01 07 00 D1 09 00 00 00 00 00 FF 0F EF [07:18:27]RasterBufferAndPrint [07:18:27]line Счет N : (3)344357 [07:18:27]line ИНН: 02508201610067 [07:18:27]line Контрольно-Кассовый Чек [07:18:27]line ПРОДАЖА [07:18:27]line Товар: 4607015235784 [07:18:27]line Печ. сд. Яшкино клубника 137г [07:18:27]line 1.000 * 90.00 [07:18:27]line = 90.00 [07:18:27]line НДС 12% НСП 1% [07:18:27]line > о реализуемом товаре [07:18:27]line Товар: 2000036230011 [07:18:27]line Кофе Латте XL(GABB TRADE) [07:18:27]line 1.000 * 130.00 [07:18:27]line = 130.00 [07:18:27]line НДС 12% НСП 1% [07:18:27]line > о реализуемом товаре [07:18:27]line ИТОГО: 220.00 [07:18:27]line НСП 1% : 1.95 [07:18:27]line НДС 12% : 23.36 [07:18:27]line Наличными: 220.00 [07:18:27]line Безнал.: 0.00 [07:18:27]line Место: АЗС № 90 "Партнер Нефть" [07:18:27]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [07:18:27]line СНО: Общий режим [07:18:27]line Чек 28 25.09.2024 07:18 [07:18:27]line Смена: 474 ФФД: 1.0 [07:18:27]line ЗНМ: 0300000120 [07:18:27]line РНМ: 0000000000091831 [07:18:28]line Версия ККМ: 001 [07:18:28]line ФМ: 0000000000871830 [07:18:28]line ФД: 116172 [07:18:28]line ФПД: 117469482029905 [07:18:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240925T071827&type=1&operation_type=1&fn_number=0000000000871830&fd_number=116172&fm=117469482029905&tin=02508201610067®Number=0000000000091831&sum=22000 [07:18:28]line 0 [07:18:28]OFD Sender: Processing packet 116172 [packets to send 482, broken 481] [07:18:28]ProducePacketName [07:18:28]name=ofd_packets/00116172 [07:18:28]OFD Sender: To server: pG, [07:18:28]CommunicateWithHost lk.salyk.kg:30040 [07:18:28]ConnectInit lk.salyk.kg [07:18:28]written 0, free lines is 4095 [07:18:28]Connected sock=9 [07:18:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 A1 01 00 00 E1 F2 99 01 2D BA 5A 03 01 00 03 00 8D 01 1E 04 01 00 01 23 04 75 00 8A 04 0D 00 34 36 30 37 30 31 35 32 33 35 37 38 34 06 04 31 00 D0 9F D0 B5 D1 87 2E 20 D1 81 D0 B4 2E 20 D0 AF D1 88 D0 BA D0 B8 D0 BD D0 BE 20 D0 BA D0 BB D1 83 D0 B1 D0 BD D0 B8 D0 BA D0 B0 20 31 33 37 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 66 00 8A 04 0D 00 32 30 30 30 30 33 36 32 33 30 30 31 31 06 04 22 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 55 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 20 09 00 00 00 00 07 04 06 00 F0 55 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 43 B9 F3 66 0E 04 04 00 DA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 CC C5 01 00 35 04 06 00 6A D6 7E BF 93 51 49 A0 BE 81 EE 27 D3 81 [07:18:28]Write to MH i2c: 01 00 00 FF 09 08 [07:18:28]Write i2c OK [07:18:28]MH_I2C_Read... [07:18:28]Read from MH i2c: 01 [07:18:28]MH_I2C_Read... [07:18:28]Read from MH i2c: 01 07 00 [07:18:28]MH_I2C_Read... [07:18:28]Read from MH i2c: 01 07 00 FF 09 00 00 00 00 00 EE 0B 08 [07:18:28]RasterBufferAndPrint [07:18:28]line [07:18:28]line [07:18:28]line [07:18:28]line [07:18:28]line [07:18:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 CC 56 47 00 2E 59 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 CC C5 01 00 F4 03 04 00 80 5E F3 66 B6 04 01 00 00 7F D2 F5 1B 38 37 57 40 [07:18:28]CommunicateWithHost err = 0 [07:18:28]CheckOFDResponse [07:18:28]1017 (14) - 77093643461234 [07:18:28]1041 (16) - 0000000000871830 [07:18:28]1040 (4) - 116172 [07:18:28]1012 (4) - 25.09.2024 00:51 [07:18:28]1206 (1) - 0 [07:18:28]OFD Sender: Remove packet 116172 [07:18:28]ProducePacketName [07:18:28]name=ofd_packets/00116172 [07:18:28]NVStorageDeleteData [07:18:28]written 0, free lines is 3062 [07:18:28]MH_Cut [07:18:28]Write to MH i2c: D1 01 00 06 0A 01 E2 [07:18:28]Write i2c OK [07:18:28]MH_I2C_Read... [07:18:28]Read from MH i2c: D1 [07:18:28]MH_I2C_Read... [07:18:28]Read from MH i2c: D1 01 00 [07:18:28]MH_I2C_Read... [07:18:28]Read from MH i2c: D1 01 00 06 0A 00 E1 [07:18:28]Write to MH i2c: 01 00 00 07 0A 11 [07:18:28]Write i2c OK [07:18:28]MH_I2C_Read... [07:18:29]OFD Sender: No OFD packet to send [07:18:30]*** Cut start [07:18:30]*** Partial cut [07:18:30]*** CUTSNS_PIN = 1 [07:18:30]*** CUTSNS_PIN = 0 [07:18:30]*** Brake cut motor [07:18:30]Read from MH i2c: 01 [07:18:30]MH_I2C_Read... [07:18:30]*** Stop cut motor [07:18:30]*** Cut end [07:18:30]Read from MH i2c: 01 07 00 [07:18:30]MH_I2C_Read... [07:18:30]Read from MH i2c: 01 07 00 07 0A 00 00 00 00 00 FF 0F 26 [07:18:30]process_action close_receipt done [07:18:30]requested_data is exist [07:18:30]produce_requested_data [07:18:30]requested_item fm.sn is exist - process it [07:18:30]wFMCommunicate request_size=4 [07:18:30]MH_SAM_APDU [07:18:30]CAPDU: 80 11 00 00 [07:18:30]Write to MH i2c: E2 08 00 08 0A 80 11 00 00 00 00 00 00 8C [07:18:30]Write i2c OK [07:18:30]MH_I2C_Read... [07:18:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:18:30]Read from MH i2c: E2 [07:18:30]MH_I2C_Read... [07:18:30]Read from MH i2c: E2 17 00 [07:18:30]MH_I2C_Read... [07:18:30]Read from MH i2c: E2 17 00 08 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 DA [07:18:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [07:18:30]wFMCommunicate OK [07:18:30]requested_item fd.num is exist - process it [07:18:30]SAM_PROTO_GetFieldsCounters [07:18:30]wFMCommunicate request_size=4 [07:18:30]MH_SAM_APDU [07:18:30]CAPDU: 80 13 00 00 [07:18:30]Write to MH i2c: E2 08 00 09 0A 80 13 00 00 00 00 00 00 8F [07:18:30]Write i2c OK [07:18:30]MH_I2C_Read... [07:18:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:18:31]Read from MH i2c: E2 [07:18:31]MH_I2C_Read... [07:18:31]Read from MH i2c: E2 62 00 [07:18:31]MH_I2C_Read... [07:18:31]Read from MH i2c: E2 62 00 09 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 CC C5 01 00 0E 04 04 00 DA 01 00 00 12 04 04 00 1C 00 00 00 5E 04 04 00 1C 00 00 00 57 04 04 00 1D 00 00 00 19 04 04 00 00 00 00 00 90 00 69 [07:18:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 CC C5 01 00 0E 04 04 00 DA 01 00 00 12 04 04 00 1C 00 00 00 5E 04 04 00 1C 00 00 00 57 04 04 00 1D 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:18:31]wFMCommunicate OK [07:18:31]SAM_PROTO_GetFieldsCounters done [07:18:31]requested_item shift.num is exist - process it [07:18:31]requested_item shift.opened is exist - process it [07:18:31]req_shift_opened [07:18:31]FM_GetShiftState [07:18:31]SAM_PROTO_GetShiftState [07:18:31]wFMCommunicate request_size=4 [07:18:31]MH_SAM_APDU [07:18:31]CAPDU: 80 13 01 00 [07:18:31]Write to MH i2c: E2 08 00 0A 0A 80 13 01 00 00 00 00 00 91 [07:18:31]Write i2c OK [07:18:31]MH_I2C_Read... [07:18:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:18:31]Read from MH i2c: E2 [07:18:31]MH_I2C_Read... [07:18:31]Read from MH i2c: E2 0E 00 [07:18:31]MH_I2C_Read... [07:18:31]Read from MH i2c: E2 0E 00 0A 0A 00 09 00 01 63 60 F3 66 00 00 00 00 90 00 B9 [07:18:31]RAPDU: 09 00 01 63 60 F3 66 00 00 00 00 90 00 [07:18:31]wFMCommunicate OK [07:18:31]SAM_PROTO_GetShiftState done [07:18:31]FM_GetShiftState done [07:18:31]req_shift_opened done [07:18:31]requested_item shift.open_date is exist - process it [07:18:31]req_shift_open_date [07:18:31]req_shift_open_date done [07:18:31]produce_requested_data done [07:18:31]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":116172,"shift.num":474,"shift.opened":1,"shift.open_date":1727225955} [07:18:31]process_action_free close_receipt [07:18:31]json_value_free [07:18:31]json_value_free done [07:18:31]process_json_proto returns [07:18:31]Send response to host [07:18:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":116172,"shift.num":474,"shift.opened":1,"shift.open_date":1727225955}}} [07:18:31]free response buf [07:18:31]execute_script done [07:18:31]execute_script returns [07:18:31]free content buf [07:18:31]Sock 10.Close socket [07:18:31]Sock 10.Thread stoped [07:18:34]OFD Sender: No OFD packet to send [07:18:39]OFD Sender: No OFD packet to send [07:18:44]OFD Sender: No OFD packet to send [07:18:49]OFD Sender: No OFD packet to send [07:18:54]OFD Sender: No OFD packet to send [07:18:59]OFD Sender: No OFD packet to send [07:19:04]OFD Sender: No OFD packet to send [07:19:09]OFD Sender: No OFD packet to send [07:19:14]OFD Sender: No OFD packet to send [07:19:19]OFD Sender: No OFD packet to send [07:19:24]OFD Sender: No OFD packet to send [07:19:29]OFD Sender: No OFD packet to send [07:19:34]OFD Sender: No OFD packet to send [07:19:39]OFD Sender: No OFD packet to send [07:19:44]OFD Sender: No OFD packet to send [07:19:49]OFD Sender: No OFD packet to send [07:19:54]OFD Sender: No OFD packet to send [07:19:59]OFD Sender: No OFD packet to send [07:20:04]OFD Sender: No OFD packet to send [07:20:09]OFD Sender: No OFD packet to send [07:20:14]OFD Sender: No OFD packet to send [07:20:19]OFD Sender: No OFD packet to send [07:20:24]OFD Sender: No OFD packet to send [07:20:29]OFD Sender: No OFD packet to send [07:20:34]OFD Sender: No OFD packet to send [07:20:39]OFD Sender: No OFD packet to send [07:20:44]OFD Sender: No OFD packet to send [07:20:49]OFD Sender: No OFD packet to send [07:20:54]OFD Sender: No OFD packet to send [07:20:59]OFD Sender: No OFD packet to send [07:21:04]OFD Sender: No OFD packet to send [07:21:09]OFD Sender: No OFD packet to send [07:21:14]OFD Sender: No OFD packet to send [07:21:19]OFD Sender: No OFD packet to send [07:21:24]OFD Sender: No OFD packet to send [07:21:29]OFD Sender: No OFD packet to send [07:21:34]OFD Sender: No OFD packet to send [07:21:39]OFD Sender: No OFD packet to send [07:21:44]OFD Sender: No OFD packet to send [07:21:49]OFD Sender: No OFD packet to send [07:21:54]OFD Sender: No OFD packet to send [07:21:59]OFD Sender: No OFD packet to send [07:22:04]OFD Sender: No OFD packet to send [07:22:09]OFD Sender: No OFD packet to send [07:22:14]OFD Sender: No OFD packet to send [07:22:19]OFD Sender: No OFD packet to send [07:22:24]OFD Sender: No OFD packet to send [07:22:29]OFD Sender: No OFD packet to send [07:22:34]OFD Sender: No OFD packet to send [07:22:39]OFD Sender: No OFD packet to send [07:22:44]OFD Sender: No OFD packet to send [07:22:49]OFD Sender: No OFD packet to send [07:22:54]OFD Sender: No OFD packet to send [07:22:59]OFD Sender: No OFD packet to send [07:23:04]OFD Sender: No OFD packet to send [07:23:09]OFD Sender: No OFD packet to send [07:23:14]OFD Sender: No OFD packet to send [07:23:19]OFD Sender: No OFD packet to send [07:23:24]OFD Sender: No OFD packet to send [07:23:29]OFD Sender: No OFD packet to send [07:23:34]OFD Sender: No OFD packet to send [07:23:39]OFD Sender: No OFD packet to send [07:23:44]OFD Sender: No OFD packet to send [07:23:49]OFD Sender: No OFD packet to send [07:23:55]OFD Sender: No OFD packet to send [07:24:00]OFD Sender: No OFD packet to send [07:24:05]OFD Sender: No OFD packet to send [07:24:10]OFD Sender: No OFD packet to send [07:24:15]OFD Sender: No OFD packet to send [07:24:20]OFD Sender: No OFD packet to send [07:24:25]OFD Sender: No OFD packet to send [07:24:30]OFD Sender: No OFD packet to send [07:24:35]OFD Sender: No OFD packet to send [07:24:40]OFD Sender: No OFD packet to send [07:24:45]OFD Sender: No OFD packet to send [07:24:50]OFD Sender: No OFD packet to send [07:24:55]OFD Sender: No OFD packet to send [07:25:00]OFD Sender: No OFD packet to send [07:25:05]OFD Sender: No OFD packet to send [07:25:10]OFD Sender: No OFD packet to send [07:25:15]OFD Sender: No OFD packet to send [07:25:20]OFD Sender: No OFD packet to send [07:25:25]OFD Sender: No OFD packet to send [07:25:30]OFD Sender: No OFD packet to send [07:25:35]OFD Sender: No OFD packet to send [07:25:40]OFD Sender: No OFD packet to send [07:25:45]OFD Sender: No OFD packet to send [07:25:50]OFD Sender: No OFD packet to send [07:25:55]OFD Sender: No OFD packet to send [07:26:00]OFD Sender: No OFD packet to send [07:26:05]OFD Sender: No OFD packet to send [07:26:10]OFD Sender: No OFD packet to send [07:26:15]OFD Sender: No OFD packet to send [07:26:20]OFD Sender: No OFD packet to send [07:26:25]OFD Sender: No OFD packet to send [07:26:30]OFD Sender: No OFD packet to send [07:26:35]OFD Sender: No OFD packet to send [07:26:40]OFD Sender: No OFD packet to send [07:26:45]OFD Sender: No OFD packet to send [07:26:50]OFD Sender: No OFD packet to send [07:26:55]OFD Sender: No OFD packet to send [07:27:00]OFD Sender: No OFD packet to send [07:27:05]OFD Sender: No OFD packet to send [07:27:10]OFD Sender: No OFD packet to send [07:27:15]OFD Sender: No OFD packet to send [07:27:20]OFD Sender: No OFD packet to send [07:27:25]OFD Sender: No OFD packet to send [07:27:30]OFD Sender: No OFD packet to send [07:27:35]OFD Sender: No OFD packet to send [07:27:40]OFD Sender: No OFD packet to send [07:27:45]OFD Sender: No OFD packet to send [07:27:50]OFD Sender: No OFD packet to send [07:27:55]OFD Sender: No OFD packet to send [07:28:00]OFD Sender: No OFD packet to send [07:28:05]OFD Sender: No OFD packet to send [07:28:10]OFD Sender: No OFD packet to send [07:28:15]OFD Sender: No OFD packet to send [07:28:20]OFD Sender: No OFD packet to send [07:28:25]OFD Sender: No OFD packet to send [07:28:30]OFD Sender: No OFD packet to send [07:28:35]OFD Sender: No OFD packet to send [07:28:40]OFD Sender: No OFD packet to send [07:28:45]OFD Sender: No OFD packet to send [07:28:50]OFD Sender: No OFD packet to send [07:28:55]OFD Sender: No OFD packet to send [07:29:00]OFD Sender: No OFD packet to send [07:29:05]OFD Sender: No OFD packet to send [07:29:10]OFD Sender: No OFD packet to send [07:29:15]OFD Sender: No OFD packet to send [07:29:20]OFD Sender: No OFD packet to send [07:29:25]OFD Sender: No OFD packet to send [07:29:30]OFD Sender: No OFD packet to send [07:29:35]OFD Sender: No OFD packet to send [07:29:40]OFD Sender: No OFD packet to send [07:29:45]OFD Sender: No OFD packet to send [07:29:50]OFD Sender: No OFD packet to send [07:29:55]OFD Sender: No OFD packet to send [07:30:00]OFD Sender: No OFD packet to send [07:30:05]OFD Sender: No OFD packet to send [07:30:10]OFD Sender: No OFD packet to send [07:30:15]OFD Sender: No OFD packet to send [07:30:20]OFD Sender: No OFD packet to send [07:30:25]OFD Sender: No OFD packet to send [07:30:30]OFD Sender: No OFD packet to send [07:30:35]OFD Sender: No OFD packet to send [07:30:40]OFD Sender: No OFD packet to send [07:30:45]OFD Sender: No OFD packet to send [07:30:50]OFD Sender: No OFD packet to send [07:30:55]OFD Sender: No OFD packet to send [07:31:01]OFD Sender: No OFD packet to send [07:31:06]OFD Sender: No OFD packet to send [07:31:11]OFD Sender: No OFD packet to send [07:31:16]OFD Sender: No OFD packet to send [07:31:21]OFD Sender: No OFD packet to send [07:31:26]OFD Sender: No OFD packet to send [07:31:31]OFD Sender: No OFD packet to send [07:31:36]OFD Sender: No OFD packet to send [07:31:41]OFD Sender: No OFD packet to send [07:31:46]OFD Sender: No OFD packet to send [07:31:51]OFD Sender: No OFD packet to send [07:31:56]OFD Sender: No OFD packet to send [07:32:01]OFD Sender: No OFD packet to send [07:32:06]OFD Sender: No OFD packet to send [07:32:11]OFD Sender: No OFD packet to send [07:32:16]OFD Sender: No OFD packet to send [07:32:21]OFD Sender: No OFD packet to send [07:32:26]OFD Sender: No OFD packet to send [07:32:31]OFD Sender: No OFD packet to send [07:32:36]OFD Sender: No OFD packet to send [07:32:41]OFD Sender: No OFD packet to send [07:32:46]OFD Sender: No OFD packet to send [07:32:51]OFD Sender: No OFD packet to send [07:32:56]OFD Sender: No OFD packet to send [07:33:01]OFD Sender: No OFD packet to send [07:33:06]OFD Sender: No OFD packet to send [07:33:11]OFD Sender: No OFD packet to send [07:33:16]OFD Sender: No OFD packet to send [07:33:21]OFD Sender: No OFD packet to send [07:33:26]OFD Sender: No OFD packet to send [07:33:31]OFD Sender: No OFD packet to send [07:33:36]OFD Sender: No OFD packet to send [07:33:41]OFD Sender: No OFD packet to send [07:33:46]OFD Sender: No OFD packet to send [07:33:51]OFD Sender: No OFD packet to send [07:33:56]OFD Sender: No OFD packet to send [07:34:01]OFD Sender: No OFD packet to send [07:34:06]OFD Sender: No OFD packet to send [07:34:11]OFD Sender: No OFD packet to send [07:34:16]OFD Sender: No OFD packet to send [07:34:21]OFD Sender: No OFD packet to send [07:34:26]OFD Sender: No OFD packet to send [07:34:31]OFD Sender: No OFD packet to send [07:34:36]OFD Sender: No OFD packet to send [07:34:41]OFD Sender: No OFD packet to send [07:34:46]OFD Sender: No OFD packet to send [07:34:51]OFD Sender: No OFD packet to send [07:34:56]OFD Sender: No OFD packet to send [07:35:01]OFD Sender: No OFD packet to send [07:35:06]OFD Sender: No OFD packet to send [07:35:11]OFD Sender: No OFD packet to send [07:35:16]OFD Sender: No OFD packet to send [07:35:21]OFD Sender: No OFD packet to send [07:35:26]OFD Sender: No OFD packet to send [07:35:31]OFD Sender: No OFD packet to send [07:35:36]OFD Sender: No OFD packet to send [07:35:41]OFD Sender: No OFD packet to send [07:35:46]OFD Sender: No OFD packet to send [07:35:51]OFD Sender: No OFD packet to send [07:35:56]OFD Sender: No OFD packet to send [07:36:01]OFD Sender: No OFD packet to send [07:36:06]OFD Sender: No OFD packet to send [07:36:11]OFD Sender: No OFD packet to send [07:36:16]OFD Sender: No OFD packet to send [07:36:20]accept exits with 8 [07:36:20]New connection [07:36:20]New thread 3067350372 created [07:36:20]Thread 3067207012 joined [07:36:20]Waiting for new connection... [07:36:20] Sock 8.Parse request [07:36:20]Sock 8.Check first char [07:36:20]Sock 8.First char is OK [07:36:20]request: POST /json_proto HTTP/1.0 [07:36:20]Method: POST [07:36:20]URL: /json_proto [07:36:20]Method is POST - this is cgi request [07:36:20]url: /json_proto [07:36:20]query_string will be loaded in cgi processing [07:36:20]execute_cgi json_proto POST (null) [07:36:20]execute_cgi path=json_proto method=POST [07:36:20]POST find Content-Length [07:36:20]Host: 172.17.41.136:8080 [07:36:20]Content-Length: 681 [07:36:20]Content-Type: application/json [07:36:20] [07:36:20]POST finish read [07:36:20]Found Content-Length = 681 [07:36:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)24619018", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 19.690, "sum" : 1500.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:36:20]execute_script... [07:36:20]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)24619018", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 19.690, "sum" : 1500.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:36:20]POST & json_proto [07:36:20]process_json_proto [07:36:20]json parsed OK: [07:36:20]protocol is kg_v1.0 [07:36:20]action value=close_receipt [07:36:20]process_action close_receipt [07:36:20]cmd_close_receipt [07:36:20]MH_GetDate [07:36:20]Write to MH i2c: F0 00 00 0B 0A 04 [07:36:20]Write i2c OK [07:36:20]MH_I2C_Read... [07:36:20]Read from MH i2c: F0 [07:36:20]MH_I2C_Read... [07:36:20]Read from MH i2c: F0 09 00 [07:36:20]MH_I2C_Read... [07:36:20]Read from MH i2c: F0 09 00 0B 0A 00 76 BD F3 66 1B D0 5A 64 42 [07:36:20]GetLastDocTimeStamp 1727248707 [07:36:20]current date 1727249782 [07:36:20]FM_GetShiftState [07:36:20]SAM_PROTO_GetShiftState [07:36:20]wFMCommunicate request_size=4 [07:36:20]MH_SAM_APDU [07:36:20]CAPDU: 80 13 01 00 [07:36:20]Write to MH i2c: E2 08 00 0C 0A 80 13 01 00 00 00 00 00 93 [07:36:20]Write i2c OK [07:36:20]MH_I2C_Read... [07:36:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:36:20]Read from MH i2c: E2 [07:36:20]MH_I2C_Read... [07:36:20]Read from MH i2c: E2 0E 00 [07:36:21]MH_I2C_Read... [07:36:21]Read from MH i2c: E2 0E 00 0C 0A 00 09 00 01 63 60 F3 66 00 00 00 00 90 00 BB [07:36:21]RAPDU: 09 00 01 63 60 F3 66 00 00 00 00 90 00 [07:36:21]wFMCommunicate OK [07:36:21]SAM_PROTO_GetShiftState done [07:36:21]FM_GetShiftState done [07:36:21]opened in 1727225955 [07:36:21]opened+sec_in_day 1727312355 [07:36:21]quantity*price = 150037 [07:36:21]sum+1 = 150039 [07:36:21]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.33 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 29 25.09.2024 07:36 Смена: 474 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 116173 ФПД: 97848811557640 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240925T073622&type=1&operation_type=1&fn_number=0000000000871830&fd_number=116173&fm=97848811557640&tin=02508201610067®Number=0000000000091831&sum=150000 [07:36:22]StoreToDocumentArchive [07:36:22]shift 474 fd 116173 [07:36:22]save to /storage/0474/doc_00116173 [07:36:22]save last doc name /storage/0474/doc_00116173 to /storage/kkm_last_doc_name [07:36:22]save OK [07:36:22]Clear old archive folders... [07:36:22]ProcessDocumentItem done err = 0, tmpTLVsize=248 [07:36:22]tlvbuf is 018B9790 [07:36:22]SAM_PROTO_ClearQueue [07:36:22]wFMCommunicate request_size=4 [07:36:22]MH_SAM_APDU [07:36:22]CAPDU: 80 09 00 00 [07:36:22]Write to MH i2c: E2 08 00 19 0A 80 09 00 00 00 00 00 00 95 [07:36:22]Write i2c OK [07:36:22]MH_I2C_Read... [07:36:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:36:22]Read from MH i2c: E2 [07:36:22]MH_I2C_Read... [07:36:22]Read from MH i2c: E2 03 00 [07:36:22]MH_I2C_Read... [07:36:22]Read from MH i2c: E2 03 00 19 0A 00 90 00 97 [07:36:22]RAPDU: 90 00 [07:36:22]wFMCommunicate OK [07:36:22]SAM_PROTO_ClearQueue done [07:36:22]KKMCreateOFDPacket [07:36:22]OFDProtocolAddRootSTLVToBuf [07:36:22]FM_MakeSignedData [07:36:22]FM_MakeSignedData [07:36:22]SAM_PROTO_SignData [07:36:22]wFMCommunicate request_size=4 [07:36:22]MH_SAM_APDU [07:36:22]CAPDU: 80 0D 01 02 [07:36:22]Write to MH i2c: E2 08 00 1A 0A 80 0D 01 02 00 00 00 00 9D [07:36:22]Write i2c OK [07:36:22]MH_I2C_Read... [07:36:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:36:22]Read from MH i2c: E2 [07:36:22]MH_I2C_Read... [07:36:22]Read from MH i2c: E2 03 00 [07:36:22]MH_I2C_Read... [07:36:22]Read from MH i2c: E2 03 00 1A 0A 00 90 00 98 [07:36:22]RAPDU: 90 00 [07:36:22]wFMCommunicate OK [07:36:22]wFMCommunicate request_size=255 [07:36:22]MH_SAM_APDU [07:36:22]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 76 BD F3 66 0E 04 04 00 DA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 CD C5 01 00 35 04 06 00 58 FE 33 A7 [07:36:22]Write to MH i2c: E2 02 01 1B 0A 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 76 BD F3 66 0E 04 04 00 DA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 CD C5 01 00 35 04 06 00 58 FE 33 A7 00 00 D8 [07:36:22]Write i2c OK [07:36:22]MH_I2C_Read... [07:36:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:36:22]Read from MH i2c: E2 [07:36:22]MH_I2C_Read... [07:36:22]Read from MH i2c: E2 03 00 [07:36:22]MH_I2C_Read... [07:36:22]Read from MH i2c: E2 03 00 1B 0A 00 90 00 99 [07:36:22]RAPDU: 90 00 [07:36:22]wFMCommunicate OK [07:36:22]wFMCommunicate request_size=7 [07:36:22]MH_SAM_APDU [07:36:22]CAPDU: 80 0D 02 02 02 93 08 [07:36:22]Write to MH i2c: E2 0A 00 1C 0A 80 0D 02 02 02 00 93 08 00 00 3F [07:36:22]Write i2c OK [07:36:22]MH_I2C_Read... [07:36:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:36:22]Read from MH i2c: E2 [07:36:22]MH_I2C_Read... [07:36:22]Read from MH i2c: E2 03 00 [07:36:22]MH_I2C_Read... [07:36:22]Read from MH i2c: E2 03 00 1C 0A 00 90 00 9A [07:36:22]RAPDU: 90 00 [07:36:22]wFMCommunicate OK [07:36:22]wFMCommunicate request_size=4 [07:36:22]MH_SAM_APDU [07:36:22]CAPDU: 80 0D 03 02 [07:36:22]Write to MH i2c: E2 08 00 1D 0A 80 0D 03 02 00 00 00 00 A2 [07:36:22]Write i2c OK [07:36:22]MH_I2C_Read... [07:36:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:36:22]Read from MH i2c: E2 [07:36:22]MH_I2C_Read... [07:36:22]Read from MH i2c: E2 0B 00 [07:36:22]MH_I2C_Read... [07:36:22]Read from MH i2c: E2 0B 00 1D 0A 00 09 1E A1 AF 7B 25 1C BF 90 00 95 [07:36:22]RAPDU: 09 1E A1 AF 7B 25 1C BF 90 00 [07:36:22]wFMCommunicate OK [07:36:22]SAM_PROTO_SignData done [07:36:22]FM_MakeSignedData done [07:36:22]CreateOFDProtocolMessage [07:36:22]wFMCommunicate request_size=4 [07:36:22]MH_SAM_APDU [07:36:22]CAPDU: 80 11 00 00 [07:36:22]Write to MH i2c: E2 08 00 1E 0A 80 11 00 00 00 00 00 00 A2 [07:36:22]Write i2c OK [07:36:22]MH_I2C_Read... [07:36:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:36:22]Read from MH i2c: E2 [07:36:22]MH_I2C_Read... [07:36:22]Read from MH i2c: E2 17 00 [07:36:22]MH_I2C_Read... [07:36:22]Read from MH i2c: E2 17 00 1E 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 F0 [07:36:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [07:36:22]wFMCommunicate OK [07:36:22]CreateOFDProtocolMessage done [07:36:22]OFDSenderStorePacket 116173 [07:36:22]StoreOFDPacket docnum=116173 [07:36:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0C 01 00 00 97 75 04 01 3A AC 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 76 BD F3 66 0E 04 04 00 DA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 CD C5 01 00 35 04 06 00 58 FE 33 A7 93 08 09 1E A1 AF 7B 25 1C BF [07:36:22]CheckFolder [07:36:22]dirname=/storage/ofd_packets [07:36:22]CheckFolder done [07:36:22]ProducePacketName [07:36:22]name=ofd_packets/00116173 [07:36:22]NVStorageSaveData ofd_packets/00116173 [07:36:22]File name is /storage/ofd_packets/00116173 [07:36:22]Write 298 bytes [07:36:22]NVStorageSaveData done [07:36:22]OFDSenderStorePacket done [07:36:22]KKMCreateOFDPacket done [07:36:22]NVStorageSaveData kkm_last_timestamp [07:36:22]File name is /storage/kkm_last_timestamp [07:36:22]Write 4 bytes [07:36:22]NVStorageSaveData done [07:36:22]ExternCall_PrintAddStr [07:36:22]wPrintStart [07:36:22]Write to MH i2c: 01 00 00 1F 0A 29 [07:36:22]Write i2c OK [07:36:22]MH_I2C_Read... [07:36:22]Read from MH i2c: 01 [07:36:22]MH_I2C_Read... [07:36:22]Read from MH i2c: 01 07 00 [07:36:22]MH_I2C_Read... [07:36:22]Read from MH i2c: 01 07 00 1F 0A 00 00 00 00 00 FF 0F 3E [07:36:22]RasterBufferAndPrint [07:36:22]line Счет N : (1)24619018 [07:36:22]line ИНН: 02508201610067 [07:36:22]line Контрольно-Кассовый Чек [07:36:22]line ПРОДАЖА [07:36:22]line ТРК (МРК, ГНК) : 11 [07:36:22]line Товар: 2710194210 [07:36:22]line ДТ-К-5 [07:36:22]line 19.690 * 76.20 [07:36:22]line = 1500.38 [07:36:22]line НДС 12% НСП 1% [07:36:22]line > о реализуемом товаре [07:36:22]line ОКРУГЛЕНИЕ: -0.38 [07:36:22]line ИТОГО: 1500.00 [07:36:22]line Внесено: 1500.00 [07:36:22]line СДАЧА: 0.00 [07:36:22]line НСП 1% : 13.28 [07:36:22]line НДС 12% : 159.33 [07:36:22]line Наличными: 1500.00 [07:36:22]line Безнал.: 0.00 [07:36:22]line Место: АЗС № 90 "Партнер Нефть" [07:36:22]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [07:36:22]line СНО: Общий режим [07:36:22]line Чек 29 25.09.2024 07:36 [07:36:22]line Смена: 474 ФФД: 1.0 [07:36:22]line ЗНМ: 0300000120 [07:36:22]line РНМ: 0000000000091831 [07:36:22]line Версия ККМ: 001 [07:36:22]line ФМ: 0000000000871830 [07:36:22]line ФД: 116173 [07:36:22]line ФПД: 97848811557640 [07:36:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240925T073622&type=1&operation_type=1&fn_number=0000000000871830&fd_number=116173&fm=97848811557640&tin=02508201610067®Number=0000000000091831&sum=150000 [07:36:22]written 0, free lines is 4095 [07:36:22]OFD Sender: Processing packet 116173 [packets to send 482, broken 481] [07:36:22]ProducePacketName [07:36:22]name=ofd_packets/00116173 [07:36:22]OFD Sender: To server: pG, [07:36:22]CommunicateWithHost lk.salyk.kg:30040 [07:36:22]ConnectInit lk.salyk.kg [07:36:23]Write to MH i2c: 01 00 00 49 0A 53 [07:36:23]Write i2c OK [07:36:23]MH_I2C_Read... [07:36:23]Read from MH i2c: 01 [07:36:23]MH_I2C_Read... [07:36:23]Read from MH i2c: 01 07 00 [07:36:23]MH_I2C_Read... [07:36:23]Read from MH i2c: 01 07 00 49 0A 00 00 00 00 00 44 0C AA [07:36:23]RasterBufferAndPrint [07:36:23]line [07:36:23]line [07:36:23]line [07:36:23]line [07:36:23]line [07:36:23]written 0, free lines is 3145 [07:36:23]MH_Cut [07:36:23]Write to MH i2c: D1 01 00 50 0A 01 2C [07:36:23]Write i2c OK [07:36:23]MH_I2C_Read... [07:36:23]Read from MH i2c: D1 [07:36:23]MH_I2C_Read... [07:36:23]Read from MH i2c: D1 01 00 [07:36:23]MH_I2C_Read... [07:36:23]Read from MH i2c: D1 01 00 50 0A 00 2B [07:36:23]Write to MH i2c: 01 00 00 51 0A 5B [07:36:23]Write i2c OK [07:36:23]MH_I2C_Read... [07:36:24]*** Cut start [07:36:24]*** Partial cut [07:36:24]*** CUTSNS_PIN = 1 [07:36:24]*** CUTSNS_PIN = 0 [07:36:24]*** Brake cut motor [07:36:25]Read from MH i2c: 01 [07:36:25]MH_I2C_Read... [07:36:25]*** Stop cut motor [07:36:25]*** Cut end [07:36:25]Read from MH i2c: 01 07 00 [07:36:25]MH_I2C_Read... [07:36:25]Read from MH i2c: 01 07 00 51 0A 00 00 00 00 00 FF 0F 70 [07:36:25]process_action close_receipt done [07:36:25]requested_data is exist [07:36:25]produce_requested_data [07:36:25]requested_item fm.sn is exist - process it [07:36:25]wFMCommunicate request_size=4 [07:36:25]MH_SAM_APDU [07:36:25]CAPDU: 80 11 00 00 [07:36:25]Write to MH i2c: E2 08 00 52 0A 80 11 00 00 00 00 00 00 D6 [07:36:25]Write i2c OK [07:36:25]MH_I2C_Read... [07:36:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:36:25]Read from MH i2c: E2 [07:36:25]MH_I2C_Read... [07:36:25]Read from MH i2c: E2 17 00 [07:36:25]MH_I2C_Read... [07:36:25]Read from MH i2c: E2 17 00 52 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 24 [07:36:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [07:36:25]wFMCommunicate OK [07:36:25]requested_item fd.num is exist - process it [07:36:25]SAM_PROTO_GetFieldsCounters [07:36:25]wFMCommunicate request_size=4 [07:36:25]MH_SAM_APDU [07:36:25]CAPDU: 80 13 00 00 [07:36:25]Write to MH i2c: E2 08 00 53 0A 80 13 00 00 00 00 00 00 D9 [07:36:25]Write i2c OK [07:36:25]MH_I2C_Read... [07:36:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:36:25]Read from MH i2c: E2 [07:36:25]MH_I2C_Read... [07:36:25]Read from MH i2c: E2 62 00 [07:36:25]MH_I2C_Read... [07:36:25]Read from MH i2c: E2 62 00 53 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 CD C5 01 00 0E 04 04 00 DA 01 00 00 12 04 04 00 1D 00 00 00 5E 04 04 00 1D 00 00 00 57 04 04 00 1E 00 00 00 19 04 04 00 00 00 00 00 90 00 B7 [07:36:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 CD C5 01 00 0E 04 04 00 DA 01 00 00 12 04 04 00 1D 00 00 00 5E 04 04 00 1D 00 00 00 57 04 04 00 1E 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:36:25]wFMCommunicate OK [07:36:25]SAM_PROTO_GetFieldsCounters done [07:36:25]requested_item shift.num is exist - process it [07:36:25]requested_item shift.opened is exist - process it [07:36:25]req_shift_opened [07:36:25]FM_GetShiftState [07:36:25]SAM_PROTO_GetShiftState [07:36:25]wFMCommunicate request_size=4 [07:36:25]MH_SAM_APDU [07:36:25]CAPDU: 80 13 01 00 [07:36:25]Write to MH i2c: E2 08 00 54 0A 80 13 01 00 00 00 00 00 DB [07:36:25]Write i2c OK [07:36:25]MH_I2C_Read... [07:36:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:36:25]Read from MH i2c: E2 [07:36:25]MH_I2C_Read... [07:36:25]Read from MH i2c: E2 0E 00 [07:36:25]MH_I2C_Read... [07:36:25]Read from MH i2c: E2 0E 00 54 0A 00 09 00 01 63 60 F3 66 00 00 00 00 90 00 03 [07:36:25]RAPDU: 09 00 01 63 60 F3 66 00 00 00 00 90 00 [07:36:25]wFMCommunicate OK [07:36:25]SAM_PROTO_GetShiftState done [07:36:25]FM_GetShiftState done [07:36:25]req_shift_opened done [07:36:25]requested_item shift.open_date is exist - process it [07:36:25]req_shift_open_date [07:36:25]req_shift_open_date done [07:36:25]produce_requested_data done [07:36:25]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":116173,"shift.num":474,"shift.opened":1,"shift.open_date":1727225955} [07:36:25]process_action_free close_receipt [07:36:25]json_value_free [07:36:25]json_value_free done [07:36:25]process_json_proto returns [07:36:25]Send response to host [07:36:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":116173,"shift.num":474,"shift.opened":1,"shift.open_date":1727225955}}} [07:36:25]free response buf [07:36:25]execute_script done [07:36:25]execute_script returns [07:36:25]free content buf [07:36:25]Sock 8.Close socket [07:36:25]Sock 8.Thread stoped [07:38:35]ConnectInit Can't connect to host [07:38:35]CommunicateWithHost connect error [07:38:35]CommunicateWithHost err = -1 [07:38:35]OFD Sender: Server communicate error [07:38:40]OFD Sender: Processing packet 116173 [packets to send 482, broken 481] [07:38:40]ProducePacketName [07:38:40]name=ofd_packets/00116173 [07:38:40]OFD Sender: To server: pG, [07:38:40]CommunicateWithHost lk.salyk.kg:30040 [07:38:40]ConnectInit lk.salyk.kg [07:38:40]Connected sock=8 [07:38:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0C 01 00 00 97 75 04 01 3A AC 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 76 BD F3 66 0E 04 04 00 DA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 CD C5 01 00 35 04 06 00 58 FE 33 A7 93 08 09 1E A1 AF 7B 25 1C BF [07:38:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 F5 F6 47 00 23 80 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 CD C5 01 00 F4 03 04 00 3D 63 F3 66 B6 04 01 00 00 4E 1F C4 9C 0E 01 61 F0 [07:38:41]CommunicateWithHost err = 0 [07:38:41]CheckOFDResponse [07:38:41]1017 (14) - 77093643461234 [07:38:41]1041 (16) - 0000000000871830 [07:38:41]1040 (4) - 116173 [07:38:41]1012 (4) - 25.09.2024 01:11 [07:38:41]1206 (1) - 0 [07:38:41]OFD Sender: Remove packet 116173 [07:38:41]ProducePacketName [07:38:41]name=ofd_packets/00116173 [07:38:41]NVStorageDeleteData [07:38:41]OFD Sender: No OFD packet to send [07:38:46]OFD Sender: No OFD packet to send [07:38:51]OFD Sender: No OFD packet to send [07:38:56]OFD Sender: No OFD packet to send [07:39:01]OFD Sender: No OFD packet to send [07:39:06]OFD Sender: No OFD packet to send [07:39:11]OFD Sender: No OFD packet to send [07:39:16]OFD Sender: No OFD packet to send [07:39:21]OFD Sender: No OFD packet to send [07:39:26]OFD Sender: No OFD packet to send [07:39:31]OFD Sender: No OFD packet to send [07:39:36]OFD Sender: No OFD packet to send [07:39:41]OFD Sender: No OFD packet to send [07:39:46]OFD Sender: No OFD packet to send [07:39:51]OFD Sender: No OFD packet to send [07:39:56]OFD Sender: No OFD packet to send [07:40:01]OFD Sender: No OFD packet to send [07:40:06]OFD Sender: No OFD packet to send [07:40:11]OFD Sender: No OFD packet to send [07:40:16]OFD Sender: No OFD packet to send [07:40:21]OFD Sender: No OFD packet to send [07:40:26]OFD Sender: No OFD packet to send [07:40:31]OFD Sender: No OFD packet to send [07:40:36]OFD Sender: No OFD packet to send [07:40:41]OFD Sender: No OFD packet to send [07:40:46]OFD Sender: No OFD packet to send [07:40:51]OFD Sender: No OFD packet to send [07:40:56]OFD Sender: No OFD packet to send [07:41:01]OFD Sender: No OFD packet to send [07:41:06]OFD Sender: No OFD packet to send [07:41:11]OFD Sender: No OFD packet to send [07:41:16]OFD Sender: No OFD packet to send [07:41:21]OFD Sender: No OFD packet to send [07:41:26]OFD Sender: No OFD packet to send [07:41:31]OFD Sender: No OFD packet to send [07:41:36]OFD Sender: No OFD packet to send [07:41:41]OFD Sender: No OFD packet to send [07:41:46]OFD Sender: No OFD packet to send [07:41:47]accept exits with 9 [07:41:47]New connection [07:41:47]New thread 3067207012 created [07:41:47]Thread 3067350372 joined [07:41:47]Waiting for new connection... [07:41:47] Sock 9.Parse request [07:41:47]Sock 9.Check first char [07:41:47]Sock 9.First char is OK [07:41:47]request: POST /json_proto HTTP/1.0 [07:41:47]Method: POST [07:41:47]URL: /json_proto [07:41:47]Method is POST - this is cgi request [07:41:47]url: /json_proto [07:41:47]query_string will be loaded in cgi processing [07:41:47]execute_cgi json_proto POST (null) [07:41:47]execute_cgi path=json_proto method=POST [07:41:47]POST find Content-Length [07:41:47]Host: 172.17.41.136:8080 [07:41:47]Content-Length: 681 [07:41:47]Content-Type: application/json [07:41:47] [07:41:47]POST finish read [07:41:47]Found Content-Length = 681 [07:41:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)24619020", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 16.670, "sum" : 1270.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1270.00, "total" : 1270.00, "payments": [ { "type": 0, "sum" : 1270.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:41:47]execute_script... [07:41:47]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)24619020", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 16.670, "sum" : 1270.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1270.00, "total" : 1270.00, "payments": [ { "type": 0, "sum" : 1270.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:41:47]POST & json_proto [07:41:47]process_json_proto [07:41:47]json parsed OK: [07:41:47]protocol is kg_v1.0 [07:41:47]action value=close_receipt [07:41:47]process_action close_receipt [07:41:47]cmd_close_receipt [07:41:47]MH_GetDate [07:41:47]Write to MH i2c: F0 00 00 55 0A 4E [07:41:47]Write i2c OK [07:41:47]MH_I2C_Read... [07:41:47]Read from MH i2c: F0 [07:41:47]MH_I2C_Read... [07:41:47]Read from MH i2c: F0 09 00 [07:41:47]MH_I2C_Read... [07:41:47]Read from MH i2c: F0 09 00 55 0A 00 BC BE F3 66 1B D0 5A 64 D3 [07:41:47]GetLastDocTimeStamp 1727249782 [07:41:47]current date 1727250108 [07:41:47]FM_GetShiftState [07:41:47]SAM_PROTO_GetShiftState [07:41:47]wFMCommunicate request_size=4 [07:41:47]MH_SAM_APDU [07:41:47]CAPDU: 80 13 01 00 [07:41:47]Write to MH i2c: E2 08 00 56 0A 80 13 01 00 00 00 00 00 DD [07:41:47]Write i2c OK [07:41:47]MH_I2C_Read... [07:41:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:41:47]Read from MH i2c: E2 [07:41:47]MH_I2C_Read... [07:41:47]Read from MH i2c: E2 0E 00 [07:41:47]MH_I2C_Read... [07:41:47]Read from MH i2c: E2 0E 00 56 0A 00 09 00 01 63 60 F3 66 00 00 00 00 90 00 05 [07:41:47]RAPDU: 09 00 01 63 60 F3 66 00 00 00 00 90 00 [07:41:47]wFMCommunicate OK [07:41:47]SAM_PROTO_GetShiftState done [07:41:47]FM_GetShiftState done [07:41:47]opened in 1727225955 [07:41:47]opened+sec_in_day 1727312355 [07:41:47]quantity*price = 127025 [07:41:47]sum+1 = 127026 [07:41:47]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 1270.00 Внесено: 1270.00 СДАЧА: 0.00 НСП 1% : 11.24 НДС 12% : 134.89 Наличными: 1270.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 30 25.09.2024 07:41 Смена: 474 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 116174 ФПД: 137702629191446 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240925T074148&type=1&operation_type=1&fn_number=0000000000871830&fd_number=116174&fm=137702629191446&tin=02508201610067®Number=0000000000091831&sum=127000 [07:41:48]StoreToDocumentArchive [07:41:48]shift 474 fd 116174 [07:41:48]save to /storage/0474/doc_00116174 [07:41:48]save last doc name /storage/0474/doc_00116174 to /storage/kkm_last_doc_name [07:41:48]save OK [07:41:48]Clear old archive folders... [07:41:48]ProcessDocumentItem done err = 0, tmpTLVsize=248 [07:41:48]tlvbuf is 019C2FF0 [07:41:48]SAM_PROTO_ClearQueue [07:41:48]wFMCommunicate request_size=4 [07:41:48]MH_SAM_APDU [07:41:48]CAPDU: 80 09 00 00 [07:41:48]Write to MH i2c: E2 08 00 63 0A 80 09 00 00 00 00 00 00 DF [07:41:48]Write i2c OK [07:41:48]MH_I2C_Read... [07:41:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:41:48]Read from MH i2c: E2 [07:41:48]MH_I2C_Read... [07:41:48]Read from MH i2c: E2 03 00 [07:41:48]MH_I2C_Read... [07:41:48]Read from MH i2c: E2 03 00 63 0A 00 90 00 E1 [07:41:48]RAPDU: 90 00 [07:41:48]wFMCommunicate OK [07:41:48]SAM_PROTO_ClearQueue done [07:41:48]KKMCreateOFDPacket [07:41:48]OFDProtocolAddRootSTLVToBuf [07:41:48]FM_MakeSignedData [07:41:48]FM_MakeSignedData [07:41:48]SAM_PROTO_SignData [07:41:48]wFMCommunicate request_size=4 [07:41:48]MH_SAM_APDU [07:41:48]CAPDU: 80 0D 01 02 [07:41:48]Write to MH i2c: E2 08 00 64 0A 80 0D 01 02 00 00 00 00 E7 [07:41:48]Write i2c OK [07:41:48]MH_I2C_Read... [07:41:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:41:48]Read from MH i2c: E2 [07:41:48]MH_I2C_Read... [07:41:48]Read from MH i2c: E2 03 00 [07:41:48]MH_I2C_Read... [07:41:48]Read from MH i2c: E2 03 00 64 0A 00 90 00 E2 [07:41:48]RAPDU: 90 00 [07:41:48]wFMCommunicate OK [07:41:48]wFMCommunicate request_size=255 [07:41:48]MH_SAM_APDU [07:41:48]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 1E 41 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 31 F0 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 F0 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 64 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B1 34 00 00 00 00 07 04 06 00 18 F0 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 BC BE F3 66 0E 04 04 00 DA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 CE C5 01 00 35 04 06 00 7D 3D 64 4C [07:41:48]Write to MH i2c: E2 02 01 65 0A 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 1E 41 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 31 F0 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 F0 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 64 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B1 34 00 00 00 00 07 04 06 00 18 F0 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 BC BE F3 66 0E 04 04 00 DA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 CE C5 01 00 35 04 06 00 7D 3D 64 4C 00 00 C7 [07:41:48]Write i2c OK [07:41:48]MH_I2C_Read... [07:41:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:41:48]Read from MH i2c: E2 [07:41:48]MH_I2C_Read... [07:41:48]Read from MH i2c: E2 03 00 [07:41:48]MH_I2C_Read... [07:41:48]Read from MH i2c: E2 03 00 65 0A 00 90 00 E3 [07:41:48]RAPDU: 90 00 [07:41:48]wFMCommunicate OK [07:41:48]wFMCommunicate request_size=7 [07:41:48]MH_SAM_APDU [07:41:48]CAPDU: 80 0D 02 02 02 2F 16 [07:41:48]Write to MH i2c: E2 0A 00 66 0A 80 0D 02 02 02 00 2F 16 00 00 33 [07:41:48]Write i2c OK [07:41:48]MH_I2C_Read... [07:41:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:41:48]Read from MH i2c: E2 [07:41:48]MH_I2C_Read... [07:41:48]Read from MH i2c: E2 03 00 [07:41:48]MH_I2C_Read... [07:41:48]Read from MH i2c: E2 03 00 66 0A 00 90 00 E4 [07:41:48]RAPDU: 90 00 [07:41:48]wFMCommunicate OK [07:41:48]wFMCommunicate request_size=4 [07:41:48]MH_SAM_APDU [07:41:48]CAPDU: 80 0D 03 02 [07:41:48]Write to MH i2c: E2 08 00 67 0A 80 0D 03 02 00 00 00 00 EC [07:41:48]Write i2c OK [07:41:48]MH_I2C_Read... [07:41:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:41:48]Read from MH i2c: E2 [07:41:48]MH_I2C_Read... [07:41:48]Read from MH i2c: E2 0B 00 [07:41:48]MH_I2C_Read... [07:41:48]Read from MH i2c: E2 0B 00 67 0A 00 84 3B 1B FB 79 85 E3 D1 90 00 74 [07:41:48]RAPDU: 84 3B 1B FB 79 85 E3 D1 90 00 [07:41:48]wFMCommunicate OK [07:41:48]SAM_PROTO_SignData done [07:41:48]FM_MakeSignedData done [07:41:48]CreateOFDProtocolMessage [07:41:48]wFMCommunicate request_size=4 [07:41:48]MH_SAM_APDU [07:41:48]CAPDU: 80 11 00 00 [07:41:48]Write to MH i2c: E2 08 00 68 0A 80 11 00 00 00 00 00 00 EC [07:41:48]Write i2c OK [07:41:48]MH_I2C_Read... [07:41:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:41:48]Read from MH i2c: E2 [07:41:48]MH_I2C_Read... [07:41:48]Read from MH i2c: E2 17 00 [07:41:48]MH_I2C_Read... [07:41:48]Read from MH i2c: E2 17 00 68 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 3A [07:41:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [07:41:48]wFMCommunicate OK [07:41:48]CreateOFDProtocolMessage done [07:41:48]OFDSenderStorePacket 116174 [07:41:48]StoreOFDPacket docnum=116174 [07:41:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0C 01 00 00 67 04 04 01 B2 48 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 1E 41 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 31 F0 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 F0 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 64 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B1 34 00 00 00 00 07 04 06 00 18 F0 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 BC BE F3 66 0E 04 04 00 DA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 CE C5 01 00 35 04 06 00 7D 3D 64 4C 2F 16 84 3B 1B FB 79 85 E3 D1 [07:41:48]CheckFolder [07:41:48]dirname=/storage/ofd_packets [07:41:48]CheckFolder done [07:41:48]ProducePacketName [07:41:48]name=ofd_packets/00116174 [07:41:48]NVStorageSaveData ofd_packets/00116174 [07:41:48]File name is /storage/ofd_packets/00116174 [07:41:48]Write 298 bytes [07:41:48]NVStorageSaveData done [07:41:48]OFDSenderStorePacket done [07:41:48]KKMCreateOFDPacket done [07:41:48]NVStorageSaveData kkm_last_timestamp [07:41:48]File name is /storage/kkm_last_timestamp [07:41:48]Write 4 bytes [07:41:48]NVStorageSaveData done [07:41:48]ExternCall_PrintAddStr [07:41:48]wPrintStart [07:41:48]Write to MH i2c: 01 00 00 69 0A 73 [07:41:48]Write i2c OK [07:41:48]MH_I2C_Read... [07:41:48]Read from MH i2c: 01 [07:41:48]MH_I2C_Read... [07:41:48]Read from MH i2c: 01 07 00 [07:41:48]MH_I2C_Read... [07:41:48]Read from MH i2c: 01 07 00 69 0A 00 00 00 00 00 FF 0F 88 [07:41:48]RasterBufferAndPrint [07:41:48]line Счет N : (1)24619020 [07:41:48]line ИНН: 02508201610067 [07:41:48]line Контрольно-Кассовый Чек [07:41:48]line ПРОДАЖА [07:41:48]line ТРК (МРК, ГНК) : 11 [07:41:48]line Товар: 2710194210 [07:41:48]line ДТ-К-5 [07:41:48]line 16.670 * 76.20 [07:41:48]line = 1270.25 [07:41:48]line НДС 12% НСП 1% [07:41:48]line > о реализуемом товаре [07:41:48]line ОКРУГЛЕНИЕ: -0.25 [07:41:48]line ИТОГО: 1270.00 [07:41:48]line Внесено: 1270.00 [07:41:48]line СДАЧА: 0.00 [07:41:48]line НСП 1% : 11.24 [07:41:48]line НДС 12% : 134.89 [07:41:48]line Наличными: 1270.00 [07:41:48]line Безнал.: 0.00 [07:41:48]line Место: АЗС № 90 "Партнер Нефть" [07:41:48]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [07:41:48]line СНО: Общий режим [07:41:48]line Чек 30 25.09.2024 07:41 [07:41:48]line Смена: 474 ФФД: 1.0 [07:41:48]line ЗНМ: 0300000120 [07:41:48]line РНМ: 0000000000091831 [07:41:48]line Версия ККМ: 001 [07:41:48]line ФМ: 0000000000871830 [07:41:48]line ФД: 116174 [07:41:48]line ФПД: 137702629191446 [07:41:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240925T074148&type=1&operation_type=1&fn_number=0000000000871830&fd_number=116174&fm=137702629191446&tin=02508201610067®Number=0000000000091831&sum=127000 [07:41:49]OFD Sender: Processing packet 116174 [packets to send 482, broken 481] [07:41:49]ProducePacketName [07:41:49]name=ofd_packets/00116174 [07:41:49]OFD Sender: To server: pG, [07:41:49]CommunicateWithHost lk.salyk.kg:30040 [07:41:49]ConnectInit lk.salyk.kg [07:41:49]written 0, free lines is 4095 [07:41:49]Connected sock=8 [07:41:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0C 01 00 00 67 04 04 01 B2 48 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 1E 41 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 31 F0 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 F0 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 64 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B1 34 00 00 00 00 07 04 06 00 18 F0 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 BC BE F3 66 0E 04 04 00 DA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 CE C5 01 00 35 04 06 00 7D 3D 64 4C 2F 16 84 3B 1B FB 79 85 E3 D1 [07:41:49]Write to MH i2c: 01 00 00 93 0A 9D [07:41:49]Write i2c OK [07:41:49]MH_I2C_Read... [07:41:49]Read from MH i2c: 01 [07:41:49]MH_I2C_Read... [07:41:49]Read from MH i2c: 01 07 00 [07:41:49]MH_I2C_Read... [07:41:49]Read from MH i2c: 01 07 00 93 0A 00 00 00 00 00 48 0C F8 [07:41:49]RasterBufferAndPrint [07:41:49]line [07:41:49]line [07:41:49]line [07:41:49]line [07:41:49]line [07:41:49]written 0, free lines is 3148 [07:41:49]MH_Cut [07:41:49]Write to MH i2c: D1 01 00 9A 0A 01 76 [07:41:49]Write i2c OK [07:41:49]MH_I2C_Read... [07:41:49]Read from MH i2c: D1 [07:41:49]MH_I2C_Read... [07:41:49]Read from MH i2c: D1 01 00 [07:41:49]MH_I2C_Read... [07:41:49]Read from MH i2c: D1 01 00 9A 0A 00 75 [07:41:49]Write to MH i2c: 01 00 00 9B 0A A5 [07:41:49]Write i2c OK [07:41:49]MH_I2C_Read... [07:41:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 E0 0B 47 00 AC DF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 CE C5 01 00 F4 03 04 00 F9 63 F3 66 B6 04 01 00 00 81 07 71 6B 2E 02 A7 86 [07:41:49]CommunicateWithHost err = 0 [07:41:49]CheckOFDResponse [07:41:49]1017 (14) - 77093643461234 [07:41:49]1041 (16) - 0000000000871830 [07:41:49]1040 (4) - 116174 [07:41:49]1012 (4) - 25.09.2024 01:14 [07:41:49]1206 (1) - 0 [07:41:49]OFD Sender: Remove packet 116174 [07:41:49]ProducePacketName [07:41:49]name=ofd_packets/00116174 [07:41:49]NVStorageDeleteData [07:41:50]OFD Sender: No OFD packet to send [07:41:50]*** Cut start [07:41:50]*** Partial cut [07:41:50]*** CUTSNS_PIN = 1 [07:41:50]*** CUTSNS_PIN = 0 [07:41:51]*** Brake cut motor [07:41:51]Read from MH i2c: 01 [07:41:51]MH_I2C_Read... [07:41:51]*** Stop cut motor [07:41:51]*** Cut end [07:41:51]Read from MH i2c: 01 07 00 [07:41:51]MH_I2C_Read... [07:41:51]Read from MH i2c: 01 07 00 9B 0A 00 00 00 00 00 FF 0F BA [07:41:51]process_action close_receipt done [07:41:51]requested_data is exist [07:41:51]produce_requested_data [07:41:51]requested_item fm.sn is exist - process it [07:41:51]wFMCommunicate request_size=4 [07:41:51]MH_SAM_APDU [07:41:51]CAPDU: 80 11 00 00 [07:41:51]Write to MH i2c: E2 08 00 9C 0A 80 11 00 00 00 00 00 00 20 [07:41:51]Write i2c OK [07:41:51]MH_I2C_Read... [07:41:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:41:51]Read from MH i2c: E2 [07:41:51]MH_I2C_Read... [07:41:51]Read from MH i2c: E2 17 00 [07:41:51]MH_I2C_Read... [07:41:51]Read from MH i2c: E2 17 00 9C 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 6E [07:41:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [07:41:51]wFMCommunicate OK [07:41:51]requested_item fd.num is exist - process it [07:41:51]SAM_PROTO_GetFieldsCounters [07:41:51]wFMCommunicate request_size=4 [07:41:51]MH_SAM_APDU [07:41:51]CAPDU: 80 13 00 00 [07:41:51]Write to MH i2c: E2 08 00 9D 0A 80 13 00 00 00 00 00 00 23 [07:41:51]Write i2c OK [07:41:51]MH_I2C_Read... [07:41:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:41:51]Read from MH i2c: E2 [07:41:51]MH_I2C_Read... [07:41:51]Read from MH i2c: E2 62 00 [07:41:51]MH_I2C_Read... [07:41:51]Read from MH i2c: E2 62 00 9D 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 CE C5 01 00 0E 04 04 00 DA 01 00 00 12 04 04 00 1E 00 00 00 5E 04 04 00 1E 00 00 00 57 04 04 00 1F 00 00 00 19 04 04 00 00 00 00 00 90 00 05 [07:41:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 CE C5 01 00 0E 04 04 00 DA 01 00 00 12 04 04 00 1E 00 00 00 5E 04 04 00 1E 00 00 00 57 04 04 00 1F 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:41:51]wFMCommunicate OK [07:41:51]SAM_PROTO_GetFieldsCounters done [07:41:51]requested_item shift.num is exist - process it [07:41:51]requested_item shift.opened is exist - process it [07:41:51]req_shift_opened [07:41:51]FM_GetShiftState [07:41:51]SAM_PROTO_GetShiftState [07:41:51]wFMCommunicate request_size=4 [07:41:51]MH_SAM_APDU [07:41:51]CAPDU: 80 13 01 00 [07:41:51]Write to MH i2c: E2 08 00 9E 0A 80 13 01 00 00 00 00 00 25 [07:41:51]Write i2c OK [07:41:51]MH_I2C_Read... [07:41:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:41:51]Read from MH i2c: E2 [07:41:51]MH_I2C_Read... [07:41:51]Read from MH i2c: E2 0E 00 [07:41:51]MH_I2C_Read... [07:41:51]Read from MH i2c: E2 0E 00 9E 0A 00 09 00 01 63 60 F3 66 00 00 00 00 90 00 4D [07:41:51]RAPDU: 09 00 01 63 60 F3 66 00 00 00 00 90 00 [07:41:51]wFMCommunicate OK [07:41:51]SAM_PROTO_GetShiftState done [07:41:51]FM_GetShiftState done [07:41:51]req_shift_opened done [07:41:51]requested_item shift.open_date is exist - process it [07:41:51]req_shift_open_date [07:41:51]req_shift_open_date done [07:41:51]produce_requested_data done [07:41:51]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":116174,"shift.num":474,"shift.opened":1,"shift.open_date":1727225955} [07:41:51]process_action_free close_receipt [07:41:51]json_value_free [07:41:51]json_value_free done [07:41:51]process_json_proto returns [07:41:51]Send response to host [07:41:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":116174,"shift.num":474,"shift.opened":1,"shift.open_date":1727225955}}} [07:41:51]free response buf [07:41:51]execute_script done [07:41:51]execute_script returns [07:41:51]free content buf [07:41:51]Sock 9.Close socket [07:41:51]Sock 9.Thread stoped [07:41:55]OFD Sender: No OFD packet to send [07:42:00]OFD Sender: No OFD packet to send [07:42:05]OFD Sender: No OFD packet to send [07:42:10]OFD Sender: No OFD packet to send [07:42:15]OFD Sender: No OFD packet to send [07:42:20]OFD Sender: No OFD packet to send [07:42:25]OFD Sender: No OFD packet to send [07:42:30]OFD Sender: No OFD packet to send [07:42:35]OFD Sender: No OFD packet to send [07:42:40]OFD Sender: No OFD packet to send [07:42:45]OFD Sender: No OFD packet to send [07:42:50]OFD Sender: No OFD packet to send [07:42:55]OFD Sender: No OFD packet to send [07:43:00]OFD Sender: No OFD packet to send [07:43:05]OFD Sender: No OFD packet to send [07:43:10]OFD Sender: No OFD packet to send [07:43:15]OFD Sender: No OFD packet to send [07:43:20]OFD Sender: No OFD packet to send [07:43:25]OFD Sender: No OFD packet to send [07:43:30]OFD Sender: No OFD packet to send [07:43:35]OFD Sender: No OFD packet to send [07:43:40]OFD Sender: No OFD packet to send [07:43:45]OFD Sender: No OFD packet to send [07:43:50]OFD Sender: No OFD packet to send [07:43:55]OFD Sender: No OFD packet to send [07:44:00]OFD Sender: No OFD packet to send [07:44:05]OFD Sender: No OFD packet to send [07:44:10]OFD Sender: No OFD packet to send [07:44:15]OFD Sender: No OFD packet to send [07:44:20]OFD Sender: No OFD packet to send [07:44:25]OFD Sender: No OFD packet to send [07:44:30]OFD Sender: No OFD packet to send [07:44:35]OFD Sender: No OFD packet to send [07:44:40]OFD Sender: No OFD packet to send [07:44:45]OFD Sender: No OFD packet to send [07:44:50]OFD Sender: No OFD packet to send [07:44:55]OFD Sender: No OFD packet to send [07:45:00]OFD Sender: No OFD packet to send [07:45:05]OFD Sender: No OFD packet to send [07:45:10]OFD Sender: No OFD packet to send [07:45:15]OFD Sender: No OFD packet to send [07:45:20]OFD Sender: No OFD packet to send [07:45:25]OFD Sender: No OFD packet to send [07:45:30]OFD Sender: No OFD packet to send [07:45:35]OFD Sender: No OFD packet to send [07:45:40]OFD Sender: No OFD packet to send [07:45:45]OFD Sender: No OFD packet to send [07:45:50]OFD Sender: No OFD packet to send [07:45:55]OFD Sender: No OFD packet to send [07:46:00]OFD Sender: No OFD packet to send [07:46:05]OFD Sender: No OFD packet to send [07:46:10]OFD Sender: No OFD packet to send [07:46:15]OFD Sender: No OFD packet to send [07:46:19]accept exits with 10 [07:46:19]New connection [07:46:19]New thread 3067350372 created [07:46:19]Thread 3067207012 joined [07:46:19]Waiting for new connection... [07:46:19] Sock 10.Parse request [07:46:19]Sock 10.Check first char [07:46:19]Sock 10.First char is OK [07:46:19]request: POST /json_proto HTTP/1.0 [07:46:19]Method: POST [07:46:19]URL: /json_proto [07:46:19]Method is POST - this is cgi request [07:46:19]url: /json_proto [07:46:19]query_string will be loaded in cgi processing [07:46:19]execute_cgi json_proto POST (null) [07:46:19]execute_cgi path=json_proto method=POST [07:46:19]POST find Content-Length [07:46:19]Host: 172.17.41.136:8080 [07:46:19]Content-Length: 1205 [07:46:19]Content-Type: application/json [07:46:19] [07:46:19]POST finish read [07:46:19]Found Content-Length = 1205 [07:46:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)344358", "tax_sys" : 0, "items" : [ { "code": "5449000189356", "name": "\u0425\u043E\u043B\u043E\u0434\u043D\u044B\u0439 \u0447\u0430\u0439 Fuse \u043C\u0430\u043D\u0433\u043E \u0430\u043D\u0430\u043D\u0430\u0441 1\u043B", "price" : 105.00, "quantity" : 1.000, "sum" : 105.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4640030091607", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B ESSE Exchange", "price" : 150.00, "quantity" : 2.000, "sum" : 300.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "47011656", "name": "\u0412\u043E\u0434\u043A\u0430 \u041F\u0448\u0435\u043D\u0438\u0447\u043D\u0430\u044F 0,1\u043B", "price" : 65.00, "quantity" : 2.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 535.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:46:19]execute_script... [07:46:19]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)344358", "tax_sys" : 0, "items" : [ { "code": "5449000189356", "name": "\u0425\u043E\u043B\u043E\u0434\u043D\u044B\u0439 \u0447\u0430\u0439 Fuse \u043C\u0430\u043D\u0433\u043E \u0430\u043D\u0430\u043D\u0430\u0441 1\u043B", "price" : 105.00, "quantity" : 1.000, "sum" : 105.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4640030091607", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B ESSE Exchange", "price" : 150.00, "quantity" : 2.000, "sum" : 300.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "47011656", "name": "\u0412\u043E\u0434\u043A\u0430 \u041F\u0448\u0435\u043D\u0438\u0447\u043D\u0430\u044F 0,1\u043B", "price" : 65.00, "quantity" : 2.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 535.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:46:19]POST & json_proto [07:46:19]process_json_proto [07:46:19]json parsed OK: [07:46:19]protocol is kg_v1.0 [07:46:19]action value=close_receipt [07:46:19]process_action close_receipt [07:46:19]cmd_close_receipt [07:46:19]MH_GetDate [07:46:19]Write to MH i2c: F0 00 00 9F 0A 98 [07:46:19]Write i2c OK [07:46:19]MH_I2C_Read... [07:46:19]Read from MH i2c: F0 [07:46:19]MH_I2C_Read... [07:46:19]Read from MH i2c: F0 09 00 [07:46:19]MH_I2C_Read... [07:46:19]Read from MH i2c: F0 09 00 9F 0A 00 CC BF F3 66 1B D0 5A 64 2E [07:46:19]GetLastDocTimeStamp 1727250108 [07:46:19]current date 1727250380 [07:46:19]FM_GetShiftState [07:46:19]SAM_PROTO_GetShiftState [07:46:19]wFMCommunicate request_size=4 [07:46:19]MH_SAM_APDU [07:46:19]CAPDU: 80 13 01 00 [07:46:19]Write to MH i2c: E2 08 00 A0 0A 80 13 01 00 00 00 00 00 27 [07:46:19]Write i2c OK [07:46:19]MH_I2C_Read... [07:46:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:46:19]Read from MH i2c: E2 [07:46:19]MH_I2C_Read... [07:46:19]Read from MH i2c: E2 0E 00 [07:46:19]MH_I2C_Read... [07:46:19]Read from MH i2c: E2 0E 00 A0 0A 00 09 00 01 63 60 F3 66 00 00 00 00 90 00 4F [07:46:19]RAPDU: 09 00 01 63 60 F3 66 00 00 00 00 90 00 [07:46:19]wFMCommunicate OK [07:46:19]SAM_PROTO_GetShiftState done [07:46:19]FM_GetShiftState done [07:46:19]opened in 1727225955 [07:46:19]opened+sec_in_day 1727312355 [07:46:19]quantity*price = 10500 [07:46:19]sum+1 = 10501 [07:46:19]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4640030091607 Сигареты ESSE Exchange 2.000 * 150.00 = 300.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 47011656 Водка Пшеничная 0,1л 2.000 * 65.00 = 130.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 535.00 НСП 1% : 4.73 НДС 12% : 56.81 Наличными: 535.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 31 25.09.2024 07:46 Смена: 474 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 116175 ФПД: 154519872617887 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240925T074620&type=1&operation_type=1&fn_number=0000000000871830&fd_number=116175&fm=154519872617887&tin=02508201610067®Number=0000000000091831&sum=53500 0 [07:46:20]StoreToDocumentArchive [07:46:20]shift 474 fd 116175 [07:46:20]save to /storage/0474/doc_00116175 [07:46:20]save last doc name /storage/0474/doc_00116175 to /storage/kkm_last_doc_name [07:46:20]save OK [07:46:20]Clear old archive folders... [07:46:20]ProcessDocumentItem done err = 0, tmpTLVsize=502 [07:46:20]tlvbuf is 018D1100 [07:46:20]SAM_PROTO_ClearQueue [07:46:20]wFMCommunicate request_size=4 [07:46:20]MH_SAM_APDU [07:46:20]CAPDU: 80 09 00 00 [07:46:20]Write to MH i2c: E2 08 00 AD 0A 80 09 00 00 00 00 00 00 29 [07:46:20]Write i2c OK [07:46:20]MH_I2C_Read... [07:46:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:46:20]Read from MH i2c: E2 [07:46:20]MH_I2C_Read... [07:46:20]Read from MH i2c: E2 03 00 [07:46:20]MH_I2C_Read... [07:46:20]Read from MH i2c: E2 03 00 AD 0A 00 90 00 2B [07:46:20]RAPDU: 90 00 [07:46:20]wFMCommunicate OK [07:46:20]SAM_PROTO_ClearQueue done [07:46:20]KKMCreateOFDPacket [07:46:20]OFDProtocolAddRootSTLVToBuf [07:46:20]FM_MakeSignedData [07:46:20]FM_MakeSignedData [07:46:20]SAM_PROTO_SignData [07:46:20]wFMCommunicate request_size=4 [07:46:20]MH_SAM_APDU [07:46:20]CAPDU: 80 0D 01 02 [07:46:20]Write to MH i2c: E2 08 00 AE 0A 80 0D 01 02 00 00 00 00 31 [07:46:20]Write i2c OK [07:46:20]MH_I2C_Read... [07:46:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:46:20]Read from MH i2c: E2 [07:46:20]MH_I2C_Read... [07:46:20]Read from MH i2c: E2 03 00 [07:46:20]MH_I2C_Read... [07:46:20]Read from MH i2c: E2 03 00 AE 0A 00 90 00 2C [07:46:20]RAPDU: 90 00 [07:46:20]wFMCommunicate OK [07:46:20]wFMCommunicate request_size=255 [07:46:20]MH_SAM_APDU [07:46:20]CAPDU: 80 0D 02 02 FA 03 00 F6 01 1E 04 01 00 01 23 04 7C 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 35 36 06 04 38 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 20 D0 B0 D0 BD D0 B0 D0 BD D0 B0 D1 81 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 62 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 30 37 06 04 1E 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 30 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 62 00 8A 04 08 00 34 37 30 [07:46:20]Write to MH i2c: E2 02 01 AF 0A 80 0D 02 02 FA 00 03 00 F6 01 1E 04 01 00 01 23 04 7C 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 35 36 06 04 38 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 20 D0 B0 D0 BD D0 B0 D0 BD D0 B0 D1 81 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 62 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 30 37 06 04 1E 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 30 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 62 00 8A 04 08 00 34 37 30 00 00 E7 [07:46:20]OFD Sender: No OFD packet to send [07:46:20]Write i2c OK [07:46:20]MH_I2C_Read... [07:46:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:46:21]Read from MH i2c: E2 [07:46:21]MH_I2C_Read... [07:46:21]Read from MH i2c: E2 03 00 [07:46:21]MH_I2C_Read... [07:46:21]Read from MH i2c: E2 03 00 AF 0A 00 90 00 2D [07:46:21]RAPDU: 90 00 [07:46:21]wFMCommunicate OK [07:46:21]wFMCommunicate request_size=255 [07:46:21]MH_SAM_APDU [07:46:21]CAPDU: 80 0D 02 02 FA 31 31 36 35 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 9F D1 88 D0 B5 D0 BD D0 B8 D1 87 D0 BD D0 B0 D1 8F 20 30 2C 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC D0 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D9 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 16 00 00 00 00 07 04 06 00 FC D0 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 CC BF F3 66 0E 04 04 00 DA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 CF C5 01 00 35 04 06 00 [07:46:21]Write to MH i2c: E2 02 01 B0 0A 80 0D 02 02 FA 00 31 31 36 35 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 9F D1 88 D0 B5 D0 BD D0 B8 D1 87 D0 BD D0 B0 D1 8F 20 30 2C 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC D0 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D9 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 16 00 00 00 00 07 04 06 00 FC D0 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 CC BF F3 66 0E 04 04 00 DA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 CF C5 01 00 35 04 06 00 00 00 29 [07:46:21]Write i2c OK [07:46:21]MH_I2C_Read... [07:46:21]Read from MH i2c: E2 [07:46:21]MH_I2C_Read... [07:46:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:46:21]Read from MH i2c: E2 03 00 [07:46:21]MH_I2C_Read... [07:46:21]Read from MH i2c: E2 03 00 B0 0A 00 90 00 2E [07:46:21]RAPDU: 90 00 [07:46:21]wFMCommunicate OK [07:46:21]wFMCommunicate request_size=11 [07:46:21]MH_SAM_APDU [07:46:21]CAPDU: 80 0D 02 02 06 8C 88 F6 1E 3D 9F [07:46:21]Write to MH i2c: E2 0E 00 B1 0A 80 0D 02 02 06 00 8C 88 F6 1E 3D 9F 00 00 45 [07:46:21]Write i2c OK [07:46:21]MH_I2C_Read... [07:46:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:46:21]Read from MH i2c: E2 [07:46:21]MH_I2C_Read... [07:46:21]Read from MH i2c: E2 03 00 [07:46:21]MH_I2C_Read... [07:46:21]Read from MH i2c: E2 03 00 B1 0A 00 90 00 2F [07:46:21]RAPDU: 90 00 [07:46:21]wFMCommunicate OK [07:46:21]wFMCommunicate request_size=4 [07:46:21]MH_SAM_APDU [07:46:21]CAPDU: 80 0D 03 02 [07:46:21]Write to MH i2c: E2 08 00 B2 0A 80 0D 03 02 00 00 00 00 37 [07:46:21]Write i2c OK [07:46:21]MH_I2C_Read... [07:46:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:46:21]Read from MH i2c: E2 [07:46:21]MH_I2C_Read... [07:46:21]Read from MH i2c: E2 0B 00 [07:46:21]MH_I2C_Read... [07:46:21]Read from MH i2c: E2 0B 00 B2 0A 00 BB 5C F1 A5 7A 74 AF FC 90 00 7E [07:46:21]RAPDU: BB 5C F1 A5 7A 74 AF FC 90 00 [07:46:21]wFMCommunicate OK [07:46:21]SAM_PROTO_SignData done [07:46:21]FM_MakeSignedData done [07:46:21]CreateOFDProtocolMessage [07:46:21]wFMCommunicate request_size=4 [07:46:21]MH_SAM_APDU [07:46:21]CAPDU: 80 11 00 00 [07:46:21]Write to MH i2c: E2 08 00 B3 0A 80 11 00 00 00 00 00 00 37 [07:46:21]Write i2c OK [07:46:21]MH_I2C_Read... [07:46:21]Read from MH i2c: E2 [07:46:21]MH_I2C_Read... [07:46:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:46:21]Read from MH i2c: E2 17 00 [07:46:21]MH_I2C_Read... [07:46:21]Read from MH i2c: E2 17 00 B3 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 85 [07:46:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [07:46:21]wFMCommunicate OK [07:46:21]CreateOFDProtocolMessage done [07:46:21]OFDSenderStorePacket 116175 [07:46:21]StoreOFDPacket docnum=116175 [07:46:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0A 02 00 00 78 53 02 02 7A 9D 5A 03 01 00 03 00 F6 01 1E 04 01 00 01 23 04 7C 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 35 36 06 04 38 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 20 D0 B0 D0 BD D0 B0 D0 BD D0 B0 D1 81 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 62 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 30 37 06 04 1E 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 30 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 62 00 8A 04 08 00 34 37 30 31 31 36 35 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 9F D1 88 D0 B5 D0 BD D0 B8 D1 87 D0 BD D0 B0 D1 8F 20 30 2C 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC D0 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D9 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 16 00 00 00 00 07 04 06 00 FC D0 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 CC BF F3 66 0E 04 04 00 DA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 CF C5 01 00 35 04 06 00 8C 88 F6 1E 3D 9F BB 5C F1 A5 7A 74 AF FC [07:46:21]CheckFolder [07:46:21]dirname=/storage/ofd_packets [07:46:21]CheckFolder done [07:46:21]ProducePacketName [07:46:21]name=ofd_packets/00116175 [07:46:21]NVStorageSaveData ofd_packets/00116175 [07:46:21]File name is /storage/ofd_packets/00116175 [07:46:21]Write 552 bytes [07:46:21]NVStorageSaveData done [07:46:21]OFDSenderStorePacket done [07:46:21]KKMCreateOFDPacket done [07:46:21]NVStorageSaveData kkm_last_timestamp [07:46:21]File name is /storage/kkm_last_timestamp [07:46:21]Write 4 bytes [07:46:21]NVStorageSaveData done [07:46:21]ExternCall_PrintAddStr [07:46:21]wPrintStart [07:46:21]Write to MH i2c: 01 00 00 B4 0A BE [07:46:21]Write i2c OK [07:46:21]MH_I2C_Read... [07:46:21]Read from MH i2c: 01 [07:46:21]MH_I2C_Read... [07:46:21]Read from MH i2c: 01 07 00 [07:46:21]MH_I2C_Read... [07:46:21]Read from MH i2c: 01 07 00 B4 0A 00 00 00 00 00 FF 0F D3 [07:46:21]RasterBufferAndPrint [07:46:21]line Счет N : (3)344358 [07:46:21]line ИНН: 02508201610067 [07:46:21]line Контрольно-Кассовый Чек [07:46:21]line ПРОДАЖА [07:46:21]line Товар: 5449000189356 [07:46:21]line Холодный чай Fuse манго ананас 1л [07:46:21]line 1.000 * 105.00 [07:46:21]line = 105.00 [07:46:21]line НДС 12% НСП 1% [07:46:21]line > о реализуемом товаре [07:46:21]line Товар: 4640030091607 [07:46:21]line Сигареты ESSE Exchange [07:46:21]line 2.000 * 150.00 [07:46:21]line = 300.00 [07:46:21]line НДС 12% НСП 1% [07:46:21]line > о реализуемом товаре [07:46:21]line Товар: 47011656 [07:46:21]line Водка Пшеничная 0,1л [07:46:21]line 2.000 * 65.00 [07:46:21]line = 130.00 [07:46:21]line НДС 12% НСП 1% [07:46:21]line > о реализуемом товаре [07:46:21]line ИТОГО: 535.00 [07:46:21]line НСП 1% : 4.73 [07:46:21]line НДС 12% : 56.81 [07:46:21]line Наличными: 535.00 [07:46:21]line Безнал.: 0.00 [07:46:21]line Место: АЗС № 90 "Партнер Нефть" [07:46:21]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [07:46:21]line СНО: Общий режим [07:46:21]line Чек 31 25.09.2024 07:46 [07:46:21]line Смена: 474 ФФД: 1.0 [07:46:21]line ЗНМ: 0300000120 [07:46:21]line РНМ: 0000000000091831 [07:46:21]line Версия ККМ: 001 [07:46:21]line ФМ: 0000000000871830 [07:46:21]line ФД: 116175 [07:46:21]line ФПД: 154519872617887 [07:46:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240925T074620&type=1&operation_type=1&fn_number=0000000000871830&fd_number=116175&fm=154519872617887&tin=02508201610067®Number=0000000000091831&sum=53500 [07:46:21]line 0 [07:46:21]written 0, free lines is 4095 [07:46:21]OFD Sender: Processing packet 116175 [packets to send 482, broken 481] [07:46:21]ProducePacketName [07:46:21]name=ofd_packets/00116175 [07:46:21]OFD Sender: To server: pG, [07:46:21]CommunicateWithHost lk.salyk.kg:30040 [07:46:21]ConnectInit lk.salyk.kg [07:46:21]Connected sock=9 [07:46:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0A 02 00 00 78 53 02 02 7A 9D 5A 03 01 00 03 00 F6 01 1E 04 01 00 01 23 04 7C 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 35 36 06 04 38 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 20 D0 B0 D0 BD D0 B0 D0 BD D0 B0 D1 81 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 62 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 30 37 06 04 1E 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 30 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 62 00 8A 04 08 00 34 37 30 31 31 36 35 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 9F D1 88 D0 B5 D0 BD D0 B8 D1 87 D0 BD D0 B0 D1 8F 20 30 2C 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC D0 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D9 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 16 00 00 00 00 07 04 06 00 FC D0 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 CC BF F3 66 0E 04 04 00 DA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 CF C5 01 00 35 04 06 00 8C 88 F6 1E 3D 9F BB 5C F1 A5 7A 74 AF FC [07:46:22]Write to MH i2c: 01 00 00 E8 0A F2 [07:46:22]Write i2c OK [07:46:22]MH_I2C_Read... [07:46:22]Read from MH i2c: 01 [07:46:22]MH_I2C_Read... [07:46:22]Read from MH i2c: 01 07 00 [07:46:22]MH_I2C_Read... [07:46:22]Read from MH i2c: 01 07 00 E8 0A 00 00 00 00 00 61 0B 65 [07:46:22]RasterBufferAndPrint [07:46:22]line [07:46:22]line [07:46:22]line [07:46:22]line [07:46:22]line [07:46:22]written 0, free lines is 2915 [07:46:22]MH_Cut [07:46:22]Write to MH i2c: D1 01 00 EF 0A 01 CB [07:46:22]Write i2c OK [07:46:22]MH_I2C_Read... [07:46:22]Read from MH i2c: D1 [07:46:22]MH_I2C_Read... [07:46:22]Read from MH i2c: D1 01 00 [07:46:22]MH_I2C_Read... [07:46:22]Read from MH i2c: D1 01 00 EF 0A 00 CA [07:46:22]Write to MH i2c: 01 00 00 F0 0A FA [07:46:22]Write i2c OK [07:46:22]MH_I2C_Read... [07:46:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 2E E2 47 00 5D 2A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 CF C5 01 00 F4 03 04 00 0A 65 F3 66 B6 04 01 00 00 43 8E 72 72 2D 75 3B B4 [07:46:22]CommunicateWithHost err = 0 [07:46:22]CheckOFDResponse [07:46:22]1017 (14) - 77093643461234 [07:46:22]1041 (16) - 0000000000871830 [07:46:22]1040 (4) - 116175 [07:46:22]1012 (4) - 25.09.2024 01:19 [07:46:22]1206 (1) - 0 [07:46:22]OFD Sender: Remove packet 116175 [07:46:22]ProducePacketName [07:46:22]name=ofd_packets/00116175 [07:46:22]NVStorageDeleteData [07:46:22]OFD Sender: No OFD packet to send [07:46:23]*** Cut start [07:46:23]*** Partial cut [07:46:23]*** CUTSNS_PIN = 1 [07:46:23]*** CUTSNS_PIN = 0 [07:46:24]*** Brake cut motor [07:46:24]Read from MH i2c: 01 [07:46:24]MH_I2C_Read... [07:46:24]*** Stop cut motor [07:46:24]*** Cut end [07:46:24]Read from MH i2c: 01 07 00 [07:46:24]MH_I2C_Read... [07:46:24]Read from MH i2c: 01 07 00 F0 0A 00 00 00 00 00 FF 0F 0F [07:46:24]process_action close_receipt done [07:46:24]requested_data is exist [07:46:24]produce_requested_data [07:46:24]requested_item fm.sn is exist - process it [07:46:24]wFMCommunicate request_size=4 [07:46:24]MH_SAM_APDU [07:46:24]CAPDU: 80 11 00 00 [07:46:24]Write to MH i2c: E2 08 00 F1 0A 80 11 00 00 00 00 00 00 75 [07:46:24]Write i2c OK [07:46:24]MH_I2C_Read... [07:46:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:46:24]Read from MH i2c: E2 [07:46:24]MH_I2C_Read... [07:46:24]Read from MH i2c: E2 17 00 [07:46:24]MH_I2C_Read... [07:46:24]Read from MH i2c: E2 17 00 F1 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 C3 [07:46:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [07:46:24]wFMCommunicate OK [07:46:24]requested_item fd.num is exist - process it [07:46:24]SAM_PROTO_GetFieldsCounters [07:46:24]wFMCommunicate request_size=4 [07:46:24]MH_SAM_APDU [07:46:24]CAPDU: 80 13 00 00 [07:46:24]Write to MH i2c: E2 08 00 F2 0A 80 13 00 00 00 00 00 00 78 [07:46:24]Write i2c OK [07:46:24]MH_I2C_Read... [07:46:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:46:24]Read from MH i2c: E2 [07:46:24]MH_I2C_Read... [07:46:24]Read from MH i2c: E2 62 00 [07:46:24]MH_I2C_Read... [07:46:24]Read from MH i2c: E2 62 00 F2 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 CF C5 01 00 0E 04 04 00 DA 01 00 00 12 04 04 00 1F 00 00 00 5E 04 04 00 1F 00 00 00 57 04 04 00 20 00 00 00 19 04 04 00 00 00 00 00 90 00 5E [07:46:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 CF C5 01 00 0E 04 04 00 DA 01 00 00 12 04 04 00 1F 00 00 00 5E 04 04 00 1F 00 00 00 57 04 04 00 20 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:46:24]wFMCommunicate OK [07:46:24]SAM_PROTO_GetFieldsCounters done [07:46:24]requested_item shift.num is exist - process it [07:46:24]requested_item shift.opened is exist - process it [07:46:24]req_shift_opened [07:46:24]FM_GetShiftState [07:46:24]SAM_PROTO_GetShiftState [07:46:24]wFMCommunicate request_size=4 [07:46:24]MH_SAM_APDU [07:46:24]CAPDU: 80 13 01 00 [07:46:24]Write to MH i2c: E2 08 00 F3 0A 80 13 01 00 00 00 00 00 7A [07:46:24]Write i2c OK [07:46:24]MH_I2C_Read... [07:46:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:46:24]Read from MH i2c: E2 [07:46:24]MH_I2C_Read... [07:46:24]Read from MH i2c: E2 0E 00 [07:46:24]MH_I2C_Read... [07:46:24]Read from MH i2c: E2 0E 00 F3 0A 00 09 00 01 63 60 F3 66 00 00 00 00 90 00 A2 [07:46:24]RAPDU: 09 00 01 63 60 F3 66 00 00 00 00 90 00 [07:46:24]wFMCommunicate OK [07:46:24]SAM_PROTO_GetShiftState done [07:46:24]FM_GetShiftState done [07:46:24]req_shift_opened done [07:46:24]requested_item shift.open_date is exist - process it [07:46:24]req_shift_open_date [07:46:24]req_shift_open_date done [07:46:24]produce_requested_data done [07:46:24]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":116175,"shift.num":474,"shift.opened":1,"shift.open_date":1727225955} [07:46:24]process_action_free close_receipt [07:46:24]json_value_free [07:46:24]json_value_free done [07:46:24]process_json_proto returns [07:46:24]Send response to host [07:46:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":116175,"shift.num":474,"shift.opened":1,"shift.open_date":1727225955}}} [07:46:24]free response buf [07:46:24]execute_script done [07:46:24]execute_script returns [07:46:24]free content buf [07:46:24]Sock 10.Close socket [07:46:24]Sock 10.Thread stoped [07:46:27]OFD Sender: No OFD packet to send [07:46:32]OFD Sender: No OFD packet to send [07:46:37]OFD Sender: No OFD packet to send [07:46:42]OFD Sender: No OFD packet to send [07:46:47]OFD Sender: No OFD packet to send [07:46:52]OFD Sender: No OFD packet to send [07:46:57]OFD Sender: No OFD packet to send [07:47:02]OFD Sender: No OFD packet to send [07:47:07]OFD Sender: No OFD packet to send [07:47:12]OFD Sender: No OFD packet to send [07:47:17]OFD Sender: No OFD packet to send [07:47:22]OFD Sender: No OFD packet to send [07:47:27]OFD Sender: No OFD packet to send [07:47:32]OFD Sender: No OFD packet to send [07:47:37]OFD Sender: No OFD packet to send [07:47:42]OFD Sender: No OFD packet to send [07:47:47]OFD Sender: No OFD packet to send [07:47:52]OFD Sender: No OFD packet to send [07:47:57]OFD Sender: No OFD packet to send [07:48:02]OFD Sender: No OFD packet to send [07:48:07]OFD Sender: No OFD packet to send [07:48:12]OFD Sender: No OFD packet to send [07:48:17]OFD Sender: No OFD packet to send [07:48:22]OFD Sender: No OFD packet to send [07:48:28]OFD Sender: No OFD packet to send [07:48:33]OFD Sender: No OFD packet to send [07:48:38]OFD Sender: No OFD packet to send [07:48:43]OFD Sender: No OFD packet to send [07:48:48]OFD Sender: No OFD packet to send [07:48:53]OFD Sender: No OFD packet to send [07:48:58]OFD Sender: No OFD packet to send [07:49:03]OFD Sender: No OFD packet to send [07:49:08]OFD Sender: No OFD packet to send [07:49:13]OFD Sender: No OFD packet to send [07:49:18]OFD Sender: No OFD packet to send [07:49:23]OFD Sender: No OFD packet to send [07:49:28]OFD Sender: No OFD packet to send [07:49:33]OFD Sender: No OFD packet to send [07:49:38]OFD Sender: No OFD packet to send [07:49:43]OFD Sender: No OFD packet to send [07:49:48]OFD Sender: No OFD packet to send [07:49:53]OFD Sender: No OFD packet to send [07:49:58]OFD Sender: No OFD packet to send [07:50:03]OFD Sender: No OFD packet to send [07:50:08]OFD Sender: No OFD packet to send [07:50:13]OFD Sender: No OFD packet to send [07:50:18]OFD Sender: No OFD packet to send [07:50:23]OFD Sender: No OFD packet to send [07:50:28]OFD Sender: No OFD packet to send [07:50:33]OFD Sender: No OFD packet to send [07:50:38]OFD Sender: No OFD packet to send [07:50:43]OFD Sender: No OFD packet to send [07:50:48]OFD Sender: No OFD packet to send [07:50:53]OFD Sender: No OFD packet to send [07:50:58]OFD Sender: No OFD packet to send [07:51:03]OFD Sender: No OFD packet to send [07:51:08]OFD Sender: No OFD packet to send [07:51:13]OFD Sender: No OFD packet to send [07:51:18]OFD Sender: No OFD packet to send [07:51:23]OFD Sender: No OFD packet to send [07:51:28]OFD Sender: No OFD packet to send [07:51:33]OFD Sender: No OFD packet to send [07:51:38]OFD Sender: No OFD packet to send [07:51:43]OFD Sender: No OFD packet to send [07:51:48]OFD Sender: No OFD packet to send [07:51:53]OFD Sender: No OFD packet to send [07:51:58]OFD Sender: No OFD packet to send [07:52:03]OFD Sender: No OFD packet to send [07:52:08]OFD Sender: No OFD packet to send [07:52:13]OFD Sender: No OFD packet to send [07:52:18]OFD Sender: No OFD packet to send [07:52:23]OFD Sender: No OFD packet to send [07:52:28]OFD Sender: No OFD packet to send [07:52:33]OFD Sender: No OFD packet to send [07:52:38]OFD Sender: No OFD packet to send [07:52:43]OFD Sender: No OFD packet to send [07:52:48]OFD Sender: No OFD packet to send [07:52:53]OFD Sender: No OFD packet to send [07:52:58]OFD Sender: No OFD packet to send [07:53:03]OFD Sender: No OFD packet to send [07:53:08]OFD Sender: No OFD packet to send [07:53:13]OFD Sender: No OFD packet to send [07:53:18]OFD Sender: No OFD packet to send [07:53:23]OFD Sender: No OFD packet to send [07:53:28]OFD Sender: No OFD packet to send [07:53:33]OFD Sender: No OFD packet to send [07:53:38]OFD Sender: No OFD packet to send [07:53:43]OFD Sender: No OFD packet to send [07:53:48]OFD Sender: No OFD packet to send [07:53:53]OFD Sender: No OFD packet to send [07:53:58]OFD Sender: No OFD packet to send [07:54:03]OFD Sender: No OFD packet to send [07:54:08]OFD Sender: No OFD packet to send [07:54:13]OFD Sender: No OFD packet to send [07:54:18]OFD Sender: No OFD packet to send [07:54:23]OFD Sender: No OFD packet to send [07:54:28]OFD Sender: No OFD packet to send [07:54:33]OFD Sender: No OFD packet to send [07:54:38]OFD Sender: No OFD packet to send [07:54:43]OFD Sender: No OFD packet to send [07:54:48]OFD Sender: No OFD packet to send [07:54:53]OFD Sender: No OFD packet to send [07:54:58]OFD Sender: No OFD packet to send [07:55:03]OFD Sender: No OFD packet to send [07:55:08]OFD Sender: No OFD packet to send [07:55:13]OFD Sender: No OFD packet to send [07:55:18]OFD Sender: No OFD packet to send [07:55:23]OFD Sender: No OFD packet to send [07:55:28]OFD Sender: No OFD packet to send [07:55:34]OFD Sender: No OFD packet to send [07:55:39]OFD Sender: No OFD packet to send [07:55:44]OFD Sender: No OFD packet to send [07:55:49]OFD Sender: No OFD packet to send [07:55:54]OFD Sender: No OFD packet to send [07:55:59]OFD Sender: No OFD packet to send [07:56:04]OFD Sender: No OFD packet to send [07:56:09]OFD Sender: No OFD packet to send [07:56:14]OFD Sender: No OFD packet to send [07:56:19]OFD Sender: No OFD packet to send [07:56:24]OFD Sender: No OFD packet to send [07:56:29]OFD Sender: No OFD packet to send [07:56:34]OFD Sender: No OFD packet to send [07:56:39]OFD Sender: No OFD packet to send [07:56:44]OFD Sender: No OFD packet to send [07:56:49]OFD Sender: No OFD packet to send [07:56:54]OFD Sender: No OFD packet to send [07:56:59]OFD Sender: No OFD packet to send [07:57:04]OFD Sender: No OFD packet to send [07:57:09]OFD Sender: No OFD packet to send [07:57:14]OFD Sender: No OFD packet to send [07:57:19]OFD Sender: No OFD packet to send [07:57:24]OFD Sender: No OFD packet to send [07:57:29]OFD Sender: No OFD packet to send [07:57:34]OFD Sender: No OFD packet to send [07:57:39]OFD Sender: No OFD packet to send [07:57:44]OFD Sender: No OFD packet to send [07:57:49]OFD Sender: No OFD packet to send [07:57:54]OFD Sender: No OFD packet to send [07:57:59]OFD Sender: No OFD packet to send [07:58:04]OFD Sender: No OFD packet to send [07:58:04]accept exits with 8 [07:58:04]New connection [07:58:04]New thread 3067207012 created [07:58:04]Thread 3067350372 joined [07:58:04]Waiting for new connection... [07:58:04] Sock 8.Parse request [07:58:04]Sock 8.Check first char [07:58:04]Sock 8.First char is OK [07:58:04]request: POST /json_proto HTTP/1.0 [07:58:04]Method: POST [07:58:04]URL: /json_proto [07:58:04]Method is POST - this is cgi request [07:58:04]url: /json_proto [07:58:04]query_string will be loaded in cgi processing [07:58:04]execute_cgi json_proto POST (null) [07:58:04]execute_cgi path=json_proto method=POST [07:58:04]POST find Content-Length [07:58:04]Host: 172.17.41.136:8080 [07:58:04]Content-Length: 978 [07:58:04]Content-Type: application/json [07:58:04] [07:58:04]POST finish read [07:58:04]Found Content-Length = 978 [07:58:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)344359", "tax_sys" : 0, "items" : [ { "code": "4870202522688", "name": "Garden \u043D\u0430\u043F\u0438\u0442\u043E\u043A \u0441\u043E \u0432\u043A\u0443\u0441\u043E\u043C \u0433\u0440\u0430\u043D\u0430\u0442\u0430 0,45 \u041F\u042D", "price" : 70.00, "quantity" : 1.000, "sum" : 70.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 200.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:58:04]execute_script... [07:58:04]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)344359", "tax_sys" : 0, "items" : [ { "code": "4870202522688", "name": "Garden \u043D\u0430\u043F\u0438\u0442\u043E\u043A \u0441\u043E \u0432\u043A\u0443\u0441\u043E\u043C \u0433\u0440\u0430\u043D\u0430\u0442\u0430 0,45 \u041F\u042D", "price" : 70.00, "quantity" : 1.000, "sum" : 70.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 200.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:58:04]POST & json_proto [07:58:04]process_json_proto [07:58:04]json parsed OK: [07:58:04]protocol is kg_v1.0 [07:58:04]action value=close_receipt [07:58:04]process_action close_receipt [07:58:04]cmd_close_receipt [07:58:04]MH_GetDate [07:58:04]Write to MH i2c: F0 00 00 F4 0A ED [07:58:04]Write i2c OK [07:58:04]MH_I2C_Read... [07:58:04]Read from MH i2c: F0 [07:58:04]MH_I2C_Read... [07:58:04]Read from MH i2c: F0 09 00 [07:58:04]MH_I2C_Read... [07:58:04]Read from MH i2c: F0 09 00 F4 0A 00 8E C2 F3 66 1B D0 5A 64 48 [07:58:04]GetLastDocTimeStamp 1727250380 [07:58:04]current date 1727251086 [07:58:04]FM_GetShiftState [07:58:04]SAM_PROTO_GetShiftState [07:58:04]wFMCommunicate request_size=4 [07:58:04]MH_SAM_APDU [07:58:04]CAPDU: 80 13 01 00 [07:58:04]Write to MH i2c: E2 08 00 F5 0A 80 13 01 00 00 00 00 00 7C [07:58:04]Write i2c OK [07:58:04]MH_I2C_Read... [07:58:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:58:05]Read from MH i2c: E2 [07:58:05]MH_I2C_Read... [07:58:05]Read from MH i2c: E2 0E 00 [07:58:05]MH_I2C_Read... [07:58:05]Read from MH i2c: E2 0E 00 F5 0A 00 09 00 01 63 60 F3 66 00 00 00 00 90 00 A4 [07:58:05]RAPDU: 09 00 01 63 60 F3 66 00 00 00 00 90 00 [07:58:05]wFMCommunicate OK [07:58:05]SAM_PROTO_GetShiftState done [07:58:05]FM_GetShiftState done [07:58:05]opened in 1727225955 [07:58:05]opened+sec_in_day 1727312355 [07:58:05]quantity*price = 7000 [07:58:05]sum+1 = 7001 [07:58:05]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 2000036220012 Кофе Капучино XL(GABB TRADE) 1.000 * 130.00 = 130.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 200.00 НСП 1% : 1.77 НДС 12% : 21.23 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 32 25.09.2024 07:58 Смена: 474 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 116176 ФПД: 109033920386925 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240925T075806&type=1&operation_type=1&fn_number=0000000000871830&fd_number=116176&fm=109033920386925&tin=02508201610067®Number=0000000000091831&sum=20000 0 [07:58:06]StoreToDocumentArchive [07:58:06]shift 474 fd 116176 [07:58:06]save to /storage/0474/doc_00116176 [07:58:06]save last doc name /storage/0474/doc_00116176 to /storage/kkm_last_doc_name [07:58:06]save OK [07:58:06]Clear old archive folders... [07:58:06]ProcessDocumentItem done err = 0, tmpTLVsize=418 [07:58:06]tlvbuf is 018C9EB0 [07:58:06]SAM_PROTO_ClearQueue [07:58:06]wFMCommunicate request_size=4 [07:58:06]MH_SAM_APDU [07:58:06]CAPDU: 80 09 00 00 [07:58:06]Write to MH i2c: E2 08 00 02 0B 80 09 00 00 00 00 00 00 7F [07:58:06]Write i2c OK [07:58:06]MH_I2C_Read... [07:58:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:58:06]Read from MH i2c: E2 [07:58:06]MH_I2C_Read... [07:58:06]Read from MH i2c: E2 03 00 [07:58:06]MH_I2C_Read... [07:58:06]Read from MH i2c: E2 03 00 02 0B 00 90 00 81 [07:58:06]RAPDU: 90 00 [07:58:06]wFMCommunicate OK [07:58:06]SAM_PROTO_ClearQueue done [07:58:06]KKMCreateOFDPacket [07:58:06]OFDProtocolAddRootSTLVToBuf [07:58:06]FM_MakeSignedData [07:58:06]FM_MakeSignedData [07:58:06]SAM_PROTO_SignData [07:58:06]wFMCommunicate request_size=4 [07:58:06]MH_SAM_APDU [07:58:06]CAPDU: 80 0D 01 02 [07:58:06]Write to MH i2c: E2 08 00 03 0B 80 0D 01 02 00 00 00 00 87 [07:58:06]Write i2c OK [07:58:06]MH_I2C_Read... [07:58:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:58:06]Read from MH i2c: E2 [07:58:06]MH_I2C_Read... [07:58:06]Read from MH i2c: E2 03 00 [07:58:06]MH_I2C_Read... [07:58:06]Read from MH i2c: E2 03 00 03 0B 00 90 00 82 [07:58:06]RAPDU: 90 00 [07:58:06]wFMCommunicate OK [07:58:06]wFMCommunicate request_size=255 [07:58:06]MH_SAM_APDU [07:58:06]CAPDU: 80 0D 02 02 FA 03 00 A2 01 1E 04 01 00 01 23 04 84 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 32 36 38 38 06 04 40 00 47 61 72 64 65 6E 20 D0 BD D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 81 D0 BE 20 D0 B2 D0 BA D1 83 D1 81 D0 BE D0 BC 20 D0 B3 D1 80 D0 B0 D0 BD D0 B0 D1 82 D0 B0 20 30 2C 34 35 20 D0 9F D0 AD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 [07:58:06]Write to MH i2c: E2 02 01 04 0B 80 0D 02 02 FA 00 03 00 A2 01 1E 04 01 00 01 23 04 84 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 32 36 38 38 06 04 40 00 47 61 72 64 65 6E 20 D0 BD D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 81 D0 BE 20 D0 B2 D0 BA D1 83 D1 81 D0 BE D0 BC 20 D0 B3 D1 80 D0 B0 D0 BD D0 B0 D1 82 D0 B0 20 30 2C 34 35 20 D0 9F D0 AD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 00 27 [07:58:06]Write i2c OK [07:58:06]MH_I2C_Read... [07:58:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:58:06]Read from MH i2c: E2 [07:58:06]MH_I2C_Read... [07:58:06]Read from MH i2c: E2 03 00 [07:58:06]MH_I2C_Read... [07:58:06]Read from MH i2c: E2 03 00 04 0B 00 90 00 83 [07:58:06]RAPDU: 90 00 [07:58:06]wFMCommunicate OK [07:58:06]wFMCommunicate request_size=177 [07:58:06]MH_SAM_APDU [07:58:06]CAPDU: 80 0D 02 02 AC 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 4B 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 20 00 00 00 F4 03 04 00 8E C2 F3 66 0E 04 04 00 DA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 D0 C5 01 00 35 04 06 00 63 2A 70 17 D7 6D [07:58:06]Write to MH i2c: E2 B4 00 05 0B 80 0D 02 02 AC 00 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 4B 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 20 00 00 00 F4 03 04 00 8E C2 F3 66 0E 04 04 00 DA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 D0 C5 01 00 35 04 06 00 63 2A 70 17 D7 6D 00 00 51 [07:58:06]Write i2c OK [07:58:06]MH_I2C_Read... [07:58:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:58:06]Read from MH i2c: E2 [07:58:06]MH_I2C_Read... [07:58:06]Read from MH i2c: E2 03 00 [07:58:06]MH_I2C_Read... [07:58:06]Read from MH i2c: E2 03 00 05 0B 00 90 00 84 [07:58:06]RAPDU: 90 00 [07:58:06]wFMCommunicate OK [07:58:06]wFMCommunicate request_size=4 [07:58:06]MH_SAM_APDU [07:58:06]CAPDU: 80 0D 03 02 [07:58:06]Write to MH i2c: E2 08 00 06 0B 80 0D 03 02 00 00 00 00 8C [07:58:06]Write i2c OK [07:58:06]MH_I2C_Read... [07:58:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:58:06]Read from MH i2c: E2 [07:58:06]MH_I2C_Read... [07:58:06]Read from MH i2c: E2 0B 00 [07:58:06]MH_I2C_Read... [07:58:06]Read from MH i2c: E2 0B 00 06 0B 00 36 81 0B 98 37 B4 9F 83 90 00 F4 [07:58:06]RAPDU: 36 81 0B 98 37 B4 9F 83 90 00 [07:58:06]wFMCommunicate OK [07:58:06]SAM_PROTO_SignData done [07:58:06]FM_MakeSignedData done [07:58:06]CreateOFDProtocolMessage [07:58:06]wFMCommunicate request_size=4 [07:58:06]MH_SAM_APDU [07:58:06]CAPDU: 80 11 00 00 [07:58:06]Write to MH i2c: E2 08 00 07 0B 80 11 00 00 00 00 00 00 8C [07:58:06]Write i2c OK [07:58:06]MH_I2C_Read... [07:58:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:58:06]Read from MH i2c: E2 [07:58:06]MH_I2C_Read... [07:58:06]Read from MH i2c: E2 17 00 [07:58:06]MH_I2C_Read... [07:58:06]Read from MH i2c: E2 17 00 07 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 DA [07:58:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [07:58:06]wFMCommunicate OK [07:58:06]CreateOFDProtocolMessage done [07:58:06]OFDSenderStorePacket 116176 [07:58:06]StoreOFDPacket docnum=116176 [07:58:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 B6 01 00 00 E0 09 AE 01 57 AD 5A 03 01 00 03 00 A2 01 1E 04 01 00 01 23 04 84 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 32 36 38 38 06 04 40 00 47 61 72 64 65 6E 20 D0 BD D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 81 D0 BE 20 D0 B2 D0 BA D1 83 D1 81 D0 BE D0 BC 20 D0 B3 D1 80 D0 B0 D0 BD D0 B0 D1 82 D0 B0 20 30 2C 34 35 20 D0 9F D0 AD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 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 4B 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 20 00 00 00 F4 03 04 00 8E C2 F3 66 0E 04 04 00 DA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 D0 C5 01 00 35 04 06 00 63 2A 70 17 D7 6D 36 81 0B 98 37 B4 9F 83 [07:58:06]CheckFolder [07:58:06]dirname=/storage/ofd_packets [07:58:06]CheckFolder done [07:58:06]ProducePacketName [07:58:06]name=ofd_packets/00116176 [07:58:06]NVStorageSaveData ofd_packets/00116176 [07:58:06]File name is /storage/ofd_packets/00116176 [07:58:06]Write 468 bytes [07:58:06]NVStorageSaveData done [07:58:06]OFDSenderStorePacket done [07:58:06]KKMCreateOFDPacket done [07:58:06]NVStorageSaveData kkm_last_timestamp [07:58:06]File name is /storage/kkm_last_timestamp [07:58:06]Write 4 bytes [07:58:06]NVStorageSaveData done [07:58:06]ExternCall_PrintAddStr [07:58:06]wPrintStart [07:58:06]Write to MH i2c: 01 00 00 08 0B 13 [07:58:06]Write i2c OK [07:58:06]MH_I2C_Read... [07:58:06]Read from MH i2c: 01 [07:58:06]MH_I2C_Read... [07:58:06]Read from MH i2c: 01 07 00 [07:58:06]MH_I2C_Read... [07:58:06]Read from MH i2c: 01 07 00 08 0B 00 00 00 00 00 FF 0F 28 [07:58:07]RasterBufferAndPrint [07:58:07]line Счет N : (3)344359 [07:58:07]line ИНН: 02508201610067 [07:58:07]line Контрольно-Кассовый Чек [07:58:07]line ПРОДАЖА [07:58:07]line Товар: 4870202522688 [07:58:07]line Garden напиток со вкусом граната 0,45 ПЭ [07:58:07]line 1.000 * 70.00 [07:58:07]line = 70.00 [07:58:07]line НДС 12% НСП 1% [07:58:07]line > о реализуемом товаре [07:58:07]line Товар: 2000036220012 [07:58:07]line Кофе Капучино XL(GABB TRADE) [07:58:07]line 1.000 * 130.00 [07:58:07]line = 130.00 [07:58:07]line НДС 12% НСП 1% [07:58:07]line > о реализуемом товаре [07:58:07]line ИТОГО: 200.00 [07:58:07]line НСП 1% : 1.77 [07:58:07]line НДС 12% : 21.23 [07:58:07]line Наличными: 200.00 [07:58:07]line Безнал.: 0.00 [07:58:07]line Место: АЗС № 90 "Партнер Нефть" [07:58:07]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [07:58:07]line СНО: Общий режим [07:58:07]line Чек 32 25.09.2024 07:58 [07:58:07]line Смена: 474 ФФД: 1.0 [07:58:07]line ЗНМ: 0300000120 [07:58:07]line РНМ: 0000000000091831 [07:58:07]line Версия ККМ: 001 [07:58:07]line ФМ: 0000000000871830 [07:58:07]line ФД: 116176 [07:58:07]line ФПД: 109033920386925 [07:58:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240925T075806&type=1&operation_type=1&fn_number=0000000000871830&fd_number=116176&fm=109033920386925&tin=02508201610067®Number=0000000000091831&sum=20000 [07:58:07]line 0 [07:58:07]OFD Sender: Processing packet 116176 [packets to send 482, broken 481] [07:58:07]ProducePacketName [07:58:07]name=ofd_packets/00116176 [07:58:07]OFD Sender: To server: pG, [07:58:07]CommunicateWithHost lk.salyk.kg:30040 [07:58:07]ConnectInit lk.salyk.kg [07:58:07]written 0, free lines is 4095 [07:58:07]Connected sock=10 [07:58:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 B6 01 00 00 E0 09 AE 01 57 AD 5A 03 01 00 03 00 A2 01 1E 04 01 00 01 23 04 84 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 32 36 38 38 06 04 40 00 47 61 72 64 65 6E 20 D0 BD D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 81 D0 BE 20 D0 B2 D0 BA D1 83 D1 81 D0 BE D0 BC 20 D0 B3 D1 80 D0 B0 D0 BD D0 B0 D1 82 D0 B0 20 30 2C 34 35 20 D0 9F D0 AD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 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 4B 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 20 00 00 00 F4 03 04 00 8E C2 F3 66 0E 04 04 00 DA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 D0 C5 01 00 35 04 06 00 63 2A 70 17 D7 6D 36 81 0B 98 37 B4 9F 83 [07:58:07]Write to MH i2c: 01 00 00 37 0B 42 [07:58:07]Write i2c OK [07:58:07]MH_I2C_Read... [07:58:07]Read from MH i2c: 01 [07:58:07]MH_I2C_Read... [07:58:07]Read from MH i2c: 01 07 00 [07:58:07]MH_I2C_Read... [07:58:07]Read from MH i2c: 01 07 00 37 0B 00 00 00 00 00 D6 0B 2A [07:58:07]RasterBufferAndPrint [07:58:07]line [07:58:07]line [07:58:07]line [07:58:07]line [07:58:07]line [07:58:07]written 0, free lines is 3034 [07:58:07]MH_Cut [07:58:07]Write to MH i2c: D1 01 00 3E 0B 01 1B [07:58:07]Write i2c OK [07:58:07]MH_I2C_Read... [07:58:07]Read from MH i2c: D1 [07:58:07]MH_I2C_Read... [07:58:07]Read from MH i2c: D1 01 00 [07:58:07]MH_I2C_Read... [07:58:07]Read from MH i2c: D1 01 00 3E 0B 00 1A [07:58:07]Write to MH i2c: 01 00 00 3F 0B 4A [07:58:07]Write i2c OK [07:58:07]MH_I2C_Read... [07:58:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 62 B5 47 00 91 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 38 37 31 38 33 30 10 04 04 00 D0 C5 01 00 F4 03 04 00 CB 67 F3 66 B6 04 01 00 00 B0 17 98 F8 3B AB CC 11 [07:58:07]CommunicateWithHost err = 0 [07:58:07]CheckOFDResponse [07:58:07]1017 (14) - 77093643461234 [07:58:07]1041 (16) - 0000000000871830 [07:58:07]1040 (4) - 116176 [07:58:07]1012 (4) - 25.09.2024 01:30 [07:58:07]1206 (1) - 0 [07:58:07]OFD Sender: Remove packet 116176 [07:58:07]ProducePacketName [07:58:07]name=ofd_packets/00116176 [07:58:07]NVStorageDeleteData [07:58:08]OFD Sender: No OFD packet to send [07:58:09]*** Cut start [07:58:09]*** Partial cut [07:58:09]*** CUTSNS_PIN = 1 [07:58:09]*** CUTSNS_PIN = 0 [07:58:09]*** Brake cut motor [07:58:09]Read from MH i2c: 01 [07:58:09]MH_I2C_Read... [07:58:09]*** Stop cut motor [07:58:09]*** Cut end [07:58:09]Read from MH i2c: 01 07 00 [07:58:09]MH_I2C_Read... [07:58:09]Read from MH i2c: 01 07 00 3F 0B 00 00 00 00 00 FF 0F 5F [07:58:09]process_action close_receipt done [07:58:09]requested_data is exist [07:58:09]produce_requested_data [07:58:09]requested_item fm.sn is exist - process it [07:58:09]wFMCommunicate request_size=4 [07:58:09]MH_SAM_APDU [07:58:09]CAPDU: 80 11 00 00 [07:58:09]Write to MH i2c: E2 08 00 40 0B 80 11 00 00 00 00 00 00 C5 [07:58:09]Write i2c OK [07:58:09]MH_I2C_Read... [07:58:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:58:09]Read from MH i2c: E2 [07:58:09]MH_I2C_Read... [07:58:09]Read from MH i2c: E2 17 00 [07:58:09]MH_I2C_Read... [07:58:09]Read from MH i2c: E2 17 00 40 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 13 [07:58:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [07:58:09]wFMCommunicate OK [07:58:09]requested_item fd.num is exist - process it [07:58:09]SAM_PROTO_GetFieldsCounters [07:58:09]wFMCommunicate request_size=4 [07:58:09]MH_SAM_APDU [07:58:09]CAPDU: 80 13 00 00 [07:58:09]Write to MH i2c: E2 08 00 41 0B 80 13 00 00 00 00 00 00 C8 [07:58:09]Write i2c OK [07:58:09]MH_I2C_Read... [07:58:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:58:10]Read from MH i2c: E2 [07:58:10]MH_I2C_Read... [07:58:10]Read from MH i2c: E2 62 00 [07:58:10]MH_I2C_Read... [07:58:10]Read from MH i2c: E2 62 00 41 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 D0 C5 01 00 0E 04 04 00 DA 01 00 00 12 04 04 00 20 00 00 00 5E 04 04 00 20 00 00 00 57 04 04 00 21 00 00 00 19 04 04 00 00 00 00 00 90 00 B2 [07:58:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 D0 C5 01 00 0E 04 04 00 DA 01 00 00 12 04 04 00 20 00 00 00 5E 04 04 00 20 00 00 00 57 04 04 00 21 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:58:10]wFMCommunicate OK [07:58:10]SAM_PROTO_GetFieldsCounters done [07:58:10]requested_item shift.num is exist - process it [07:58:10]requested_item shift.opened is exist - process it [07:58:10]req_shift_opened [07:58:10]FM_GetShiftState [07:58:10]SAM_PROTO_GetShiftState [07:58:10]wFMCommunicate request_size=4 [07:58:10]MH_SAM_APDU [07:58:10]CAPDU: 80 13 01 00 [07:58:10]Write to MH i2c: E2 08 00 42 0B 80 13 01 00 00 00 00 00 CA [07:58:10]Write i2c OK [07:58:10]MH_I2C_Read... [07:58:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:58:10]Read from MH i2c: E2 [07:58:10]MH_I2C_Read... [07:58:10]Read from MH i2c: E2 0E 00 [07:58:10]MH_I2C_Read... [07:58:10]Read from MH i2c: E2 0E 00 42 0B 00 09 00 01 63 60 F3 66 00 00 00 00 90 00 F2 [07:58:10]RAPDU: 09 00 01 63 60 F3 66 00 00 00 00 90 00 [07:58:10]wFMCommunicate OK [07:58:10]SAM_PROTO_GetShiftState done [07:58:10]FM_GetShiftState done [07:58:10]req_shift_opened done [07:58:10]requested_item shift.open_date is exist - process it [07:58:10]req_shift_open_date [07:58:10]req_shift_open_date done [07:58:10]produce_requested_data done [07:58:10]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":116176,"shift.num":474,"shift.opened":1,"shift.open_date":1727225955} [07:58:10]process_action_free close_receipt [07:58:10]json_value_free [07:58:10]json_value_free done [07:58:10]process_json_proto returns [07:58:10]Send response to host [07:58:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":116176,"shift.num":474,"shift.opened":1,"shift.open_date":1727225955}}} [07:58:10]free response buf [07:58:10]execute_script done [07:58:10]execute_script returns [07:58:10]free content buf [07:58:10]Sock 8.Close socket [07:58:10]Sock 8.Thread stoped [07:58:13]OFD Sender: No OFD packet to send [07:58:18]OFD Sender: No OFD packet to send [07:58:23]OFD Sender: No OFD packet to send [07:58:28]OFD Sender: No OFD packet to send [07:58:33]OFD Sender: No OFD packet to send [07:58:38]OFD Sender: No OFD packet to send [07:58:43]OFD Sender: No OFD packet to send [07:58:48]OFD Sender: No OFD packet to send [07:58:53]OFD Sender: No OFD packet to send [07:58:58]OFD Sender: No OFD packet to send [07:59:03]OFD Sender: No OFD packet to send [07:59:08]OFD Sender: No OFD packet to send [07:59:13]OFD Sender: No OFD packet to send [07:59:18]OFD Sender: No OFD packet to send [07:59:23]OFD Sender: No OFD packet to send [07:59:28]OFD Sender: No OFD packet to send [07:59:33]OFD Sender: No OFD packet to send [07:59:38]OFD Sender: No OFD packet to send [07:59:43]OFD Sender: No OFD packet to send [07:59:48]OFD Sender: No OFD packet to send [07:59:53]OFD Sender: No OFD packet to send [07:59:58]OFD Sender: No OFD packet to send [08:00:03]OFD Sender: No OFD packet to send [08:00:08]OFD Sender: No OFD packet to send [08:00:13]OFD Sender: No OFD packet to send [08:00:18]OFD Sender: No OFD packet to send [08:00:23]OFD Sender: No OFD packet to send [08:00:28]OFD Sender: No OFD packet to send [08:00:33]OFD Sender: No OFD packet to send [08:00:38]OFD Sender: No OFD packet to send [08:00:43]OFD Sender: No OFD packet to send [08:00:48]OFD Sender: No OFD packet to send [08:00:53]OFD Sender: No OFD packet to send [08:00:58]OFD Sender: No OFD packet to send [08:01:03]OFD Sender: No OFD packet to send [08:01:08]OFD Sender: No OFD packet to send [08:01:13]OFD Sender: No OFD packet to send [08:01:18]OFD Sender: No OFD packet to send [08:01:23]OFD Sender: No OFD packet to send [08:01:28]OFD Sender: No OFD packet to send [08:01:33]OFD Sender: No OFD packet to send [08:01:38]OFD Sender: No OFD packet to send [08:01:43]OFD Sender: No OFD packet to send [08:01:48]OFD Sender: No OFD packet to send [08:01:53]OFD Sender: No OFD packet to send [08:01:58]OFD Sender: No OFD packet to send [08:02:03]OFD Sender: No OFD packet to send [08:02:08]OFD Sender: No OFD packet to send [08:02:13]OFD Sender: No OFD packet to send [08:02:18]OFD Sender: No OFD packet to send [08:02:23]OFD Sender: No OFD packet to send [08:02:28]OFD Sender: No OFD packet to send [08:02:33]OFD Sender: No OFD packet to send [08:02:39]OFD Sender: No OFD packet to send [08:02:44]OFD Sender: No OFD packet to send [08:02:49]OFD Sender: No OFD packet to send [08:02:54]OFD Sender: No OFD packet to send [08:02:59]OFD Sender: No OFD packet to send [08:03:04]OFD Sender: No OFD packet to send [08:03:09]OFD Sender: No OFD packet to send [08:03:14]OFD Sender: No OFD packet to send [08:03:19]OFD Sender: No OFD packet to send [08:03:24]OFD Sender: No OFD packet to send [08:03:29]OFD Sender: No OFD packet to send [08:03:34]OFD Sender: No OFD packet to send [08:03:39]OFD Sender: No OFD packet to send [08:03:44]OFD Sender: No OFD packet to send [08:03:49]OFD Sender: No OFD packet to send [08:03:54]OFD Sender: No OFD packet to send [08:03:59]OFD Sender: No OFD packet to send [08:04:04]OFD Sender: No OFD packet to send [08:04:09]OFD Sender: No OFD packet to send [08:04:14]OFD Sender: No OFD packet to send [08:04:19]OFD Sender: No OFD packet to send [08:04:24]OFD Sender: No OFD packet to send [08:04:29]OFD Sender: No OFD packet to send [08:04:34]OFD Sender: No OFD packet to send [08:04:39]OFD Sender: No OFD packet to send [08:04:44]OFD Sender: No OFD packet to send [08:04:49]OFD Sender: No OFD packet to send [08:04:54]OFD Sender: No OFD packet to send [08:04:59]OFD Sender: No OFD packet to send [08:05:04]OFD Sender: No OFD packet to send [08:05:09]OFD Sender: No OFD packet to send [08:05:14]OFD Sender: No OFD packet to send [08:05:19]OFD Sender: No OFD packet to send [08:05:24]OFD Sender: No OFD packet to send [08:05:29]OFD Sender: No OFD packet to send [08:05:34]OFD Sender: No OFD packet to send [08:05:39]OFD Sender: No OFD packet to send [08:05:44]OFD Sender: No OFD packet to send [08:05:49]OFD Sender: No OFD packet to send [08:05:54]OFD Sender: No OFD packet to send [08:05:59]OFD Sender: No OFD packet to send [08:06:04]OFD Sender: No OFD packet to send [08:06:09]OFD Sender: No OFD packet to send [08:06:14]OFD Sender: No OFD packet to send [08:06:19]OFD Sender: No OFD packet to send [08:06:24]OFD Sender: No OFD packet to send [08:06:29]OFD Sender: No OFD packet to send [08:06:34]OFD Sender: No OFD packet to send [08:06:39]OFD Sender: No OFD packet to send [08:06:44]OFD Sender: No OFD packet to send [08:06:49]OFD Sender: No OFD packet to send [08:06:54]OFD Sender: No OFD packet to send [08:06:59]OFD Sender: No OFD packet to send [08:07:04]OFD Sender: No OFD packet to send [08:07:09]OFD Sender: No OFD packet to send [08:07:14]OFD Sender: No OFD packet to send [08:07:19]OFD Sender: No OFD packet to send [08:07:24]OFD Sender: No OFD packet to send [08:07:29]OFD Sender: No OFD packet to send [08:07:34]OFD Sender: No OFD packet to send [08:07:39]OFD Sender: No OFD packet to send [08:07:44]OFD Sender: No OFD packet to send [08:07:49]OFD Sender: No OFD packet to send [08:07:54]OFD Sender: No OFD packet to send [08:07:59]OFD Sender: No OFD packet to send [08:08:04]OFD Sender: No OFD packet to send [08:08:09]OFD Sender: No OFD packet to send [08:08:14]OFD Sender: No OFD packet to send [08:08:19]OFD Sender: No OFD packet to send [08:08:24]OFD Sender: No OFD packet to send [08:08:29]OFD Sender: No OFD packet to send [08:08:34]OFD Sender: No OFD packet to send [08:08:39]OFD Sender: No OFD packet to send [08:08:44]OFD Sender: No OFD packet to send [08:08:49]OFD Sender: No OFD packet to send [08:08:54]OFD Sender: No OFD packet to send [08:08:59]OFD Sender: No OFD packet to send [08:09:04]OFD Sender: No OFD packet to send [08:09:09]OFD Sender: No OFD packet to send [08:09:14]OFD Sender: No OFD packet to send [08:09:19]OFD Sender: No OFD packet to send [08:09:24]OFD Sender: No OFD packet to send [08:09:29]OFD Sender: No OFD packet to send [08:09:34]OFD Sender: No OFD packet to send [08:09:39]OFD Sender: No OFD packet to send [08:09:45]OFD Sender: No OFD packet to send [08:09:50]OFD Sender: No OFD packet to send [08:09:55]OFD Sender: No OFD packet to send [08:10:00]OFD Sender: No OFD packet to send [08:10:05]OFD Sender: No OFD packet to send [08:10:10]OFD Sender: No OFD packet to send [08:10:15]OFD Sender: No OFD packet to send [08:10:20]OFD Sender: No OFD packet to send [08:10:25]OFD Sender: No OFD packet to send [08:10:30]OFD Sender: No OFD packet to send [08:10:35]accept exits with 9 [08:10:35]New connection [08:10:35]New thread 3067350372 created [08:10:35]Thread 3067207012 joined [08:10:35]Waiting for new connection... [08:10:35] Sock 9.Parse request [08:10:35]Sock 9.Check first char [08:10:35]Sock 9.First char is OK [08:10:35]request: POST /json_proto HTTP/1.0 [08:10:35]Method: POST [08:10:35]URL: /json_proto [08:10:35]Method is POST - this is cgi request [08:10:35]url: /json_proto [08:10:35]query_string will be loaded in cgi processing [08:10:35]execute_cgi json_proto POST (null) [08:10:35]execute_cgi path=json_proto method=POST [08:10:35]POST find Content-Length [08:10:35]Host: 172.17.41.136:8080 [08:10:35]Content-Length: 986 [08:10:35]Content-Type: application/json [08:10:35] [08:10:35]POST finish read [08:10:35]Found Content-Length = 986 [08:10:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)344360", "tax_sys" : 0, "items" : [ { "code": "4700321005024", "name": "\u041C\u0438\u043D\u0434\u0430\u043B\u044C Mike \u0436\u0430\u0440\u0435\u043D\u044B\u0439 \u0441\u043E\u043B\u0435\u043D\u044B\u0439 50\u0433", "price" : 130.00, "quantity" : 2.000, "sum" : 260.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700040114137", "name": "\u0421\u0443\u043B\u0442\u0430\u043D \u0447\u0430\u0439 1\u043B. \u0437\u0435\u043B \u043B\u0438\u043C\u043E\u043D", "price" : 65.00, "quantity" : 1.000, "sum" : 65.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 325.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:10:35]execute_script... [08:10: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 : (3)344360", "tax_sys" : 0, "items" : [ { "code": "4700321005024", "name": "\u041C\u0438\u043D\u0434\u0430\u043B\u044C Mike \u0436\u0430\u0440\u0435\u043D\u044B\u0439 \u0441\u043E\u043B\u0435\u043D\u044B\u0439 50\u0433", "price" : 130.00, "quantity" : 2.000, "sum" : 260.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700040114137", "name": "\u0421\u0443\u043B\u0442\u0430\u043D \u0447\u0430\u0439 1\u043B. \u0437\u0435\u043B \u043B\u0438\u043C\u043E\u043D", "price" : 65.00, "quantity" : 1.000, "sum" : 65.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 325.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:10:35]POST & json_proto [08:10:35]process_json_proto [08:10:35]json parsed OK: [08:10:35]protocol is kg_v1.0 [08:10:35]action value=close_receipt [08:10:35]process_action close_receipt [08:10:35]cmd_close_receipt [08:10:35]MH_GetDate [08:10:35]Write to MH i2c: F0 00 00 43 0B 3D [08:10:35]Write i2c OK [08:10:35]MH_I2C_Read... [08:10:35]Read from MH i2c: F0 [08:10:35]MH_I2C_Read... [08:10:35]Read from MH i2c: F0 09 00 [08:10:35]MH_I2C_Read... [08:10:35]Read from MH i2c: F0 09 00 43 0B 00 7C C5 F3 66 1B D0 5A 64 89 [08:10:35]GetLastDocTimeStamp 1727251086 [08:10:35]current date 1727251836 [08:10:35]FM_GetShiftState [08:10:35]SAM_PROTO_GetShiftState [08:10:35]wFMCommunicate request_size=4 [08:10:35]MH_SAM_APDU [08:10:35]CAPDU: 80 13 01 00 [08:10:35]Write to MH i2c: E2 08 00 44 0B 80 13 01 00 00 00 00 00 CC [08:10:35]Write i2c OK [08:10:35]MH_I2C_Read... [08:10:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:10:35]Read from MH i2c: E2 [08:10:35]MH_I2C_Read... [08:10:35]Read from MH i2c: E2 0E 00 [08:10:35]MH_I2C_Read... [08:10:35]Read from MH i2c: E2 0E 00 44 0B 00 09 00 01 63 60 F3 66 00 00 00 00 90 00 F4 [08:10:35]RAPDU: 09 00 01 63 60 F3 66 00 00 00 00 90 00 [08:10:35]wFMCommunicate OK [08:10:35]SAM_PROTO_GetShiftState done [08:10:35]FM_GetShiftState done [08:10:35]opened in 1727225955 [08:10:35]opened+sec_in_day 1727312355 [08:10:35]quantity*price = 26000 [08:10:35]sum+1 = 26001 [08:10:35]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700040114137 Султан чай 1л. зел лимон 1.000 * 65.00 = 65.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 325.00 НСП 1% : 2.87 НДС 12% : 34.51 Наличными: 325.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 33 25.09.2024 08:10 Смена: 474 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 116177 ФПД: 74155030902111 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240925T081036&type=1&operation_type=1&fn_number=0000000000871830&fd_number=116177&fm=74155030902111&tin=02508201610067®Number=0000000000091831&sum=32500 0 [08:10:36]StoreToDocumentArchive [08:10:36]shift 474 fd 116177 [08:10:36]save to /storage/0474/doc_00116177 [08:10:36]save last doc name /storage/0474/doc_00116177 to /storage/kkm_last_doc_name [08:10:36]save OK [08:10:36]Clear old archive folders... [08:10:36]ProcessDocumentItem done err = 0, tmpTLVsize=410 [08:10:36]tlvbuf is 018C9A20 [08:10:36]SAM_PROTO_ClearQueue [08:10:36]wFMCommunicate request_size=4 [08:10:36]MH_SAM_APDU [08:10:36]CAPDU: 80 09 00 00 [08:10:36]Write to MH i2c: E2 08 00 51 0B 80 09 00 00 00 00 00 00 CE [08:10:36]Write i2c OK [08:10:36]MH_I2C_Read... [08:10:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:10:36]Read from MH i2c: E2 [08:10:36]MH_I2C_Read... [08:10:36]Read from MH i2c: E2 03 00 [08:10:36]MH_I2C_Read... [08:10:36]Read from MH i2c: E2 03 00 51 0B 00 90 00 D0 [08:10:36]RAPDU: 90 00 [08:10:36]wFMCommunicate OK [08:10:36]SAM_PROTO_ClearQueue done [08:10:36]KKMCreateOFDPacket [08:10:36]OFDProtocolAddRootSTLVToBuf [08:10:36]FM_MakeSignedData [08:10:36]FM_MakeSignedData [08:10:36]SAM_PROTO_SignData [08:10:36]wFMCommunicate request_size=4 [08:10:36]MH_SAM_APDU [08:10:36]CAPDU: 80 0D 01 02 [08:10:36]Write to MH i2c: E2 08 00 52 0B 80 0D 01 02 00 00 00 00 D6 [08:10:36]Write i2c OK [08:10:36]MH_I2C_Read... [08:10:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:10:36]Read from MH i2c: E2 [08:10:36]MH_I2C_Read... [08:10:36]Read from MH i2c: E2 03 00 [08:10:36]MH_I2C_Read... [08:10:36]Read from MH i2c: E2 03 00 52 0B 00 90 00 D1 [08:10:36]RAPDU: 90 00 [08:10:36]wFMCommunicate OK [08:10:36]wFMCommunicate request_size=255 [08:10:36]MH_SAM_APDU [08:10:36]CAPDU: 80 0D 02 02 FA 03 00 9A 01 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 37 30 30 33 32 31 30 30 35 30 32 34 06 04 36 00 D0 9C D0 B8 D0 BD D0 B4 D0 B0 D0 BB D1 8C 20 4D 69 6B 65 20 D0 B6 D0 B0 D1 80 D0 B5 D0 BD D1 8B D0 B9 20 D1 81 D0 BE D0 BB D0 B5 D0 BD D1 8B D0 B9 20 35 30 D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 90 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6E 00 8A 04 0D 00 34 37 30 30 30 34 30 31 31 34 31 33 37 06 04 2A 00 D0 A1 D1 83 D0 BB D1 82 D0 B0 D0 BD 20 D1 87 D0 B0 D0 B9 20 31 D0 BB 2E 20 D0 B7 D0 B5 D0 BB 20 D0 BB D0 B8 D0 BC D0 BE D0 BD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC [08:10:36]Write to MH i2c: E2 02 01 53 0B 80 0D 02 02 FA 00 03 00 9A 01 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 37 30 30 33 32 31 30 30 35 30 32 34 06 04 36 00 D0 9C D0 B8 D0 BD D0 B4 D0 B0 D0 BB D1 8C 20 4D 69 6B 65 20 D0 B6 D0 B0 D1 80 D0 B5 D0 BD D1 8B D0 B9 20 D1 81 D0 BE D0 BB D0 B5 D0 BD D1 8B D0 B9 20 35 30 D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 90 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6E 00 8A 04 0D 00 34 37 30 30 30 34 30 31 31 34 31 33 37 06 04 2A 00 D0 A1 D1 83 D0 BB D1 82 D0 B0 D0 BD 20 D1 87 D0 B0 D0 B9 20 31 D0 BB 2E 20 D0 B7 D0 B5 D0 BB 20 D0 BB D0 B8 D0 BC D0 BE D0 BD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 00 00 47 [08:10:36]Write i2c OK [08:10:36]MH_I2C_Read... [08:10:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:10:36]Read from MH i2c: E2 [08:10:36]MH_I2C_Read... [08:10:36]Read from MH i2c: E2 03 00 [08:10:36]MH_I2C_Read... [08:10:36]Read from MH i2c: E2 03 00 53 0B 00 90 00 D2 [08:10:36]RAPDU: 90 00 [08:10:36]wFMCommunicate OK [08:10:36]wFMCommunicate request_size=169 [08:10:36]MH_SAM_APDU [08:10:36]CAPDU: 80 0D 02 02 A4 03 06 00 F4 7E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1F 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7B 0D 00 00 00 00 07 04 06 00 F4 7E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 7C C5 F3 66 0E 04 04 00 DA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 D1 C5 01 00 35 04 06 00 43 71 90 46 75 5F [08:10:36]Write to MH i2c: E2 AC 00 54 0B 80 0D 02 02 A4 00 03 06 00 F4 7E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1F 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7B 0D 00 00 00 00 07 04 06 00 F4 7E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 7C C5 F3 66 0E 04 04 00 DA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 D1 C5 01 00 35 04 06 00 43 71 90 46 75 5F 00 00 76 [08:10:36]Write i2c OK [08:10:36]MH_I2C_Read... [08:10:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:10:36]Read from MH i2c: E2 [08:10:36]MH_I2C_Read... [08:10:36]Read from MH i2c: E2 03 00 [08:10:36]MH_I2C_Read... [08:10:36]Read from MH i2c: E2 03 00 54 0B 00 90 00 D3 [08:10:36]RAPDU: 90 00 [08:10:36]wFMCommunicate OK [08:10:36]wFMCommunicate request_size=4 [08:10:36]MH_SAM_APDU [08:10:36]CAPDU: 80 0D 03 02 [08:10:36]Write to MH i2c: E2 08 00 55 0B 80 0D 03 02 00 00 00 00 DB [08:10:36]Write i2c OK [08:10:36]MH_I2C_Read... [08:10:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:10:36]Read from MH i2c: E2 [08:10:36]MH_I2C_Read... [08:10:36]Read from MH i2c: E2 0B 00 [08:10:36]MH_I2C_Read... [08:10:36]Read from MH i2c: E2 0B 00 55 0B 00 6E 14 96 14 B8 3D 58 D6 90 00 2B [08:10:36]RAPDU: 6E 14 96 14 B8 3D 58 D6 90 00 [08:10:36]wFMCommunicate OK [08:10:36]SAM_PROTO_SignData done [08:10:36]FM_MakeSignedData done [08:10:36]CreateOFDProtocolMessage [08:10:36]wFMCommunicate request_size=4 [08:10:36]MH_SAM_APDU [08:10:36]CAPDU: 80 11 00 00 [08:10:36]Write to MH i2c: E2 08 00 56 0B 80 11 00 00 00 00 00 00 DB [08:10:36]Write i2c OK [08:10:36]MH_I2C_Read... [08:10:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:10:36]Read from MH i2c: E2 [08:10:36]MH_I2C_Read... [08:10:36]Read from MH i2c: E2 17 00 [08:10:36]MH_I2C_Read... [08:10:36]Read from MH i2c: E2 17 00 56 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 29 [08:10:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [08:10:36]wFMCommunicate OK [08:10:36]CreateOFDProtocolMessage done [08:10:36]OFDSenderStorePacket 116177 [08:10:36]StoreOFDPacket docnum=116177 [08:10:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 AE 01 00 00 BE 9E A6 01 44 0C 5A 03 01 00 03 00 9A 01 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 37 30 30 33 32 31 30 30 35 30 32 34 06 04 36 00 D0 9C D0 B8 D0 BD D0 B4 D0 B0 D0 BB D1 8C 20 4D 69 6B 65 20 D0 B6 D0 B0 D1 80 D0 B5 D0 BD D1 8B D0 B9 20 D1 81 D0 BE D0 BB D0 B5 D0 BD D1 8B D0 B9 20 35 30 D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 90 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6E 00 8A 04 0D 00 34 37 30 30 30 34 30 31 31 34 31 33 37 06 04 2A 00 D0 A1 D1 83 D0 BB D1 82 D0 B0 D0 BD 20 D1 87 D0 B0 D0 B9 20 31 D0 BB 2E 20 D0 B7 D0 B5 D0 BB 20 D0 BB D0 B8 D0 BC D0 BE D0 BD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 7E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1F 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7B 0D 00 00 00 00 07 04 06 00 F4 7E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 7C C5 F3 66 0E 04 04 00 DA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 D1 C5 01 00 35 04 06 00 43 71 90 46 75 5F 6E 14 96 14 B8 3D 58 D6 [08:10:36]CheckFolder [08:10:36]dirname=/storage/ofd_packets [08:10:36]CheckFolder done [08:10:36]ProducePacketName [08:10:36]name=ofd_packets/00116177 [08:10:36]NVStorageSaveData ofd_packets/00116177 [08:10:36]File name is /storage/ofd_packets/00116177 [08:10:36]Write 460 bytes [08:10:36]NVStorageSaveData done [08:10:36]OFDSenderStorePacket done [08:10:36]KKMCreateOFDPacket done [08:10:36]NVStorageSaveData kkm_last_timestamp [08:10:36]File name is /storage/kkm_last_timestamp [08:10:36]Write 4 bytes [08:10:36]NVStorageSaveData done [08:10:36]ExternCall_PrintAddStr [08:10:36]wPrintStart [08:10:36]Write to MH i2c: 01 00 00 57 0B 62 [08:10:36]Write i2c OK [08:10:36]MH_I2C_Read... [08:10:36]Read from MH i2c: 01 [08:10:36]MH_I2C_Read... [08:10:36]Read from MH i2c: 01 07 00 [08:10:36]MH_I2C_Read... [08:10:36]Read from MH i2c: 01 07 00 57 0B 00 00 00 00 00 FF 0F 77 [08:10:36]RasterBufferAndPrint [08:10:36]line Счет N : (3)344360 [08:10:37]line ИНН: 02508201610067 [08:10:37]line Контрольно-Кассовый Чек [08:10:37]line ПРОДАЖА [08:10:37]line Товар: 4700321005024 [08:10:37]line Миндаль Mike жареный соленый 50г [08:10:37]line 2.000 * 130.00 [08:10:37]line = 260.00 [08:10:37]line НДС 12% НСП 1% [08:10:37]line > о реализуемом товаре [08:10:37]line Товар: 4700040114137 [08:10:37]line Султан чай 1л. зел лимон [08:10:37]line 1.000 * 65.00 [08:10:37]line = 65.00 [08:10:37]line НДС 12% НСП 1% [08:10:37]line > о реализуемом товаре [08:10:37]line ИТОГО: 325.00 [08:10:37]line НСП 1% : 2.87 [08:10:37]line НДС 12% : 34.51 [08:10:37]line Наличными: 325.00 [08:10:37]line Безнал.: 0.00 [08:10:37]line Место: АЗС № 90 "Партнер Нефть" [08:10:37]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [08:10:37]line СНО: Общий режим [08:10:37]line Чек 33 25.09.2024 08:10 [08:10:37]line Смена: 474 ФФД: 1.0 [08:10:37]line ЗНМ: 0300000120 [08:10:37]line РНМ: 0000000000091831 [08:10:37]line Версия ККМ: 001 [08:10:37]line ФМ: 0000000000871830 [08:10:37]line ФД: 116177 [08:10:37]line ФПД: 74155030902111 [08:10:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240925T081036&type=1&operation_type=1&fn_number=0000000000871830&fd_number=116177&fm=74155030902111&tin=02508201610067®Number=0000000000091831&sum=32500 [08:10:37]OFD Sender: Processing packet 116177 [packets to send 482, broken 481] [08:10:37]ProducePacketName [08:10:37]name=ofd_packets/00116177 [08:10:37]OFD Sender: To server: pG, [08:10:37]CommunicateWithHost lk.salyk.kg:30040 [08:10:37]ConnectInit lk.salyk.kg [08:10:37]line 0 [08:10:37]written 0, free lines is 4095 [08:10:37]Connected sock=10 [08:10:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 AE 01 00 00 BE 9E A6 01 44 0C 5A 03 01 00 03 00 9A 01 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 37 30 30 33 32 31 30 30 35 30 32 34 06 04 36 00 D0 9C D0 B8 D0 BD D0 B4 D0 B0 D0 BB D1 8C 20 4D 69 6B 65 20 D0 B6 D0 B0 D1 80 D0 B5 D0 BD D1 8B D0 B9 20 D1 81 D0 BE D0 BB D0 B5 D0 BD D1 8B D0 B9 20 35 30 D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 90 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6E 00 8A 04 0D 00 34 37 30 30 30 34 30 31 31 34 31 33 37 06 04 2A 00 D0 A1 D1 83 D0 BB D1 82 D0 B0 D0 BD 20 D1 87 D0 B0 D0 B9 20 31 D0 BB 2E 20 D0 B7 D0 B5 D0 BB 20 D0 BB D0 B8 D0 BC D0 BE D0 BD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 7E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1F 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7B 0D 00 00 00 00 07 04 06 00 F4 7E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 7C C5 F3 66 0E 04 04 00 DA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 D1 C5 01 00 35 04 06 00 43 71 90 46 75 5F 6E 14 96 14 B8 3D 58 D6 [08:10:37]Write to MH i2c: 01 00 00 85 0B 90 [08:10:37]Write i2c OK [08:10:37]MH_I2C_Read... [08:10:37]Read from MH i2c: 01 [08:10:37]MH_I2C_Read... [08:10:37]Read from MH i2c: 01 07 00 [08:10:37]MH_I2C_Read... [08:10:37]Read from MH i2c: 01 07 00 85 0B 00 00 00 00 00 E0 0B 82 [08:10:37]RasterBufferAndPrint [08:10:37]line [08:10:37]line [08:10:37]line [08:10:37]line [08:10:37]line [08:10:37]written 0, free lines is 3045 [08:10:37]MH_Cut [08:10:37]Write to MH i2c: D1 01 00 8C 0B 01 69 [08:10:37]Write i2c OK [08:10:37]MH_I2C_Read... [08:10:37]Read from MH i2c: D1 [08:10:37]MH_I2C_Read... [08:10:37]Read from MH i2c: D1 01 00 [08:10:37]MH_I2C_Read... [08:10:37]Read from MH i2c: D1 01 00 8C 0B 00 68 [08:10:37]Write to MH i2c: 01 00 00 8D 0B 98 [08:10:37]Write i2c OK [08:10:37]MH_I2C_Read... [08:10:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 A1 1F 47 00 B0 64 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 D1 C5 01 00 F4 03 04 00 B9 6A F3 66 B6 04 01 00 00 E2 EE D6 43 D7 9D 3D 7B [08:10:37]CommunicateWithHost err = 0 [08:10:37]CheckOFDResponse [08:10:37]1017 (14) - 77093643461234 [08:10:37]1041 (16) - 0000000000871830 [08:10:37]1040 (4) - 116177 [08:10:37]1012 (4) - 25.09.2024 01:43 [08:10:37]1206 (1) - 0 [08:10:37]OFD Sender: Remove packet 116177 [08:10:37]ProducePacketName [08:10:37]name=ofd_packets/00116177 [08:10:37]NVStorageDeleteData [08:10:38]OFD Sender: No OFD packet to send [08:10:39]*** Cut start [08:10:39]*** Partial cut [08:10:39]*** CUTSNS_PIN = 1 [08:10:39]*** CUTSNS_PIN = 0 [08:10:39]*** Brake cut motor [08:10:39]Read from MH i2c: 01 [08:10:39]MH_I2C_Read... [08:10:39]*** Stop cut motor [08:10:39]*** Cut end [08:10:39]Read from MH i2c: 01 07 00 [08:10:39]MH_I2C_Read... [08:10:39]Read from MH i2c: 01 07 00 8D 0B 00 00 00 00 00 FF 0F AD [08:10:39]process_action close_receipt done [08:10:39]requested_data is exist [08:10:39]produce_requested_data [08:10:39]requested_item fm.sn is exist - process it [08:10:39]wFMCommunicate request_size=4 [08:10:39]MH_SAM_APDU [08:10:39]CAPDU: 80 11 00 00 [08:10:39]Write to MH i2c: E2 08 00 8E 0B 80 11 00 00 00 00 00 00 13 [08:10:39]Write i2c OK [08:10:39]MH_I2C_Read... [08:10:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:10:39]Read from MH i2c: E2 [08:10:39]MH_I2C_Read... [08:10:39]Read from MH i2c: E2 17 00 [08:10:39]MH_I2C_Read... [08:10:39]Read from MH i2c: E2 17 00 8E 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 61 [08:10:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [08:10:39]wFMCommunicate OK [08:10:39]requested_item fd.num is exist - process it [08:10:39]SAM_PROTO_GetFieldsCounters [08:10:39]wFMCommunicate request_size=4 [08:10:39]MH_SAM_APDU [08:10:39]CAPDU: 80 13 00 00 [08:10:39]Write to MH i2c: E2 08 00 8F 0B 80 13 00 00 00 00 00 00 16 [08:10:39]Write i2c OK [08:10:39]MH_I2C_Read... [08:10:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:10:40]Read from MH i2c: E2 [08:10:40]MH_I2C_Read... [08:10:40]Read from MH i2c: E2 62 00 [08:10:40]MH_I2C_Read... [08:10:40]Read from MH i2c: E2 62 00 8F 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 D1 C5 01 00 0E 04 04 00 DA 01 00 00 12 04 04 00 21 00 00 00 5E 04 04 00 21 00 00 00 57 04 04 00 22 00 00 00 19 04 04 00 00 00 00 00 90 00 04 [08:10:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 D1 C5 01 00 0E 04 04 00 DA 01 00 00 12 04 04 00 21 00 00 00 5E 04 04 00 21 00 00 00 57 04 04 00 22 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:10:40]wFMCommunicate OK [08:10:40]SAM_PROTO_GetFieldsCounters done [08:10:40]requested_item shift.num is exist - process it [08:10:40]requested_item shift.opened is exist - process it [08:10:40]req_shift_opened [08:10:40]FM_GetShiftState [08:10:40]SAM_PROTO_GetShiftState [08:10:40]wFMCommunicate request_size=4 [08:10:40]MH_SAM_APDU [08:10:40]CAPDU: 80 13 01 00 [08:10:40]Write to MH i2c: E2 08 00 90 0B 80 13 01 00 00 00 00 00 18 [08:10:40]Write i2c OK [08:10:40]MH_I2C_Read... [08:10:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:10:40]Read from MH i2c: E2 [08:10:40]MH_I2C_Read... [08:10:40]Read from MH i2c: E2 0E 00 [08:10:40]MH_I2C_Read... [08:10:40]Read from MH i2c: E2 0E 00 90 0B 00 09 00 01 63 60 F3 66 00 00 00 00 90 00 40 [08:10:40]RAPDU: 09 00 01 63 60 F3 66 00 00 00 00 90 00 [08:10:40]wFMCommunicate OK [08:10:40]SAM_PROTO_GetShiftState done [08:10:40]FM_GetShiftState done [08:10:40]req_shift_opened done [08:10:40]requested_item shift.open_date is exist - process it [08:10:40]req_shift_open_date [08:10:40]req_shift_open_date done [08:10:40]produce_requested_data done [08:10:40]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":116177,"shift.num":474,"shift.opened":1,"shift.open_date":1727225955} [08:10:40]process_action_free close_receipt [08:10:40]json_value_free [08:10:40]json_value_free done [08:10:40]process_json_proto returns [08:10:40]Send response to host [08:10:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":116177,"shift.num":474,"shift.opened":1,"shift.open_date":1727225955}}} [08:10:40]free response buf [08:10:40]execute_script done [08:10:40]execute_script returns [08:10:40]free content buf [08:10:40]Sock 9.Close socket [08:10:40]Sock 9.Thread stoped [08:10:43]OFD Sender: No OFD packet to send [08:10:48]OFD Sender: No OFD packet to send [08:10:53]OFD Sender: No OFD packet to send [08:10:58]OFD Sender: No OFD packet to send [08:11:03]OFD Sender: No OFD packet to send [08:11:08]OFD Sender: No OFD packet to send [08:11:13]OFD Sender: No OFD packet to send [08:11:18]OFD Sender: No OFD packet to send [08:11:23]OFD Sender: No OFD packet to send [08:11:28]OFD Sender: No OFD packet to send [08:11:33]OFD Sender: No OFD packet to send [08:11:38]OFD Sender: No OFD packet to send [08:11:43]OFD Sender: No OFD packet to send [08:11:48]OFD Sender: No OFD packet to send [08:11:53]OFD Sender: No OFD packet to send [08:11:58]OFD Sender: No OFD packet to send [08:12:03]OFD Sender: No OFD packet to send [08:12:08]OFD Sender: No OFD packet to send [08:12:13]OFD Sender: No OFD packet to send [08:12:14]accept exits with 8 [08:12:14]New connection [08:12:14]New thread 3067207012 created [08:12:14]Thread 3067350372 joined [08:12:14]Waiting for new connection... [08:12:14] Sock 8.Parse request [08:12:14]Sock 8.Check first char [08:12:14]Sock 8.First char is OK [08:12:14]request: POST /json_proto HTTP/1.0 [08:12:14]Method: POST [08:12:14]URL: /json_proto [08:12:14]Method is POST - this is cgi request [08:12:14]url: /json_proto [08:12:14]query_string will be loaded in cgi processing [08:12:14]execute_cgi json_proto POST (null) [08:12:14]execute_cgi path=json_proto method=POST [08:12:14]POST find Content-Length [08:12:14]Host: 172.17.41.136:8080 [08:12:14]Content-Length: 868 [08:12:14]Content-Type: application/json [08:12:14] [08:12:14]POST finish read [08:12:14]Found Content-Length = 868 [08:12:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)344361", "tax_sys" : 0, "items" : [ { "code": "4780014240406", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Sovereign Blue", "price" : 134.00, "quantity" : 1.000, "sum" : 134.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 184.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:12:14]execute_script... [08:12: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 : (3)344361", "tax_sys" : 0, "items" : [ { "code": "4780014240406", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Sovereign Blue", "price" : 134.00, "quantity" : 1.000, "sum" : 134.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 184.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:12:14]POST & json_proto [08:12:14]process_json_proto [08:12:14]json parsed OK: [08:12:14]protocol is kg_v1.0 [08:12:14]action value=close_receipt [08:12:14]process_action close_receipt [08:12:14]cmd_close_receipt [08:12:14]MH_GetDate [08:12:14]Write to MH i2c: F0 00 00 91 0B 8B [08:12:14]Write i2c OK [08:12:14]MH_I2C_Read... [08:12:14]Read from MH i2c: F0 [08:12:14]MH_I2C_Read... [08:12:14]Read from MH i2c: F0 09 00 [08:12:14]MH_I2C_Read... [08:12:14]Read from MH i2c: F0 09 00 91 0B 00 E0 C5 F3 66 1B D0 5A 64 3B [08:12:14]GetLastDocTimeStamp 1727251836 [08:12:14]current date 1727251936 [08:12:14]FM_GetShiftState [08:12:14]SAM_PROTO_GetShiftState [08:12:14]wFMCommunicate request_size=4 [08:12:14]MH_SAM_APDU [08:12:14]CAPDU: 80 13 01 00 [08:12:14]Write to MH i2c: E2 08 00 92 0B 80 13 01 00 00 00 00 00 1A [08:12:14]Write i2c OK [08:12:14]MH_I2C_Read... [08:12:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:12:15]Read from MH i2c: E2 [08:12:15]MH_I2C_Read... [08:12:15]Read from MH i2c: E2 0E 00 [08:12:15]MH_I2C_Read... [08:12:15]Read from MH i2c: E2 0E 00 92 0B 00 09 00 01 63 60 F3 66 00 00 00 00 90 00 42 [08:12:15]RAPDU: 09 00 01 63 60 F3 66 00 00 00 00 90 00 [08:12:15]wFMCommunicate OK [08:12:15]SAM_PROTO_GetShiftState done [08:12:15]FM_GetShiftState done [08:12:15]opened in 1727225955 [08:12:15]opened+sec_in_day 1727312355 [08:12:15]quantity*price = 13400 [08:12:15]sum+1 = 13401 [08:12:15]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700000160358 Вода Легенда 1л 1.000 * 50.00 = 50.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 184.00 НСП 1% : 1.63 НДС 12% : 19.54 Наличными: 184.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 34 25.09.2024 08:12 Смена: 474 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 116178 ФПД: 148486365618296 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240925T081216&type=1&operation_type=1&fn_number=0000000000871830&fd_number=116178&fm=148486365618296&tin=02508201610067®Number=0000000000091831&sum=18400 0 [08:12:16]StoreToDocumentArchive [08:12:16]shift 474 fd 116178 [08:12:16]save to /storage/0474/doc_00116178 [08:12:16]save last doc name /storage/0474/doc_00116178 to /storage/kkm_last_doc_name [08:12:16]save OK [08:12:16]Clear old archive folders... [08:12:16]ProcessDocumentItem done err = 0, tmpTLVsize=372 [08:12:16]tlvbuf is 018E9EC0 [08:12:16]SAM_PROTO_ClearQueue [08:12:16]wFMCommunicate request_size=4 [08:12:16]MH_SAM_APDU [08:12:16]CAPDU: 80 09 00 00 [08:12:16]Write to MH i2c: E2 08 00 9F 0B 80 09 00 00 00 00 00 00 1C [08:12:16]Write i2c OK [08:12:16]MH_I2C_Read... [08:12:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:12:16]Read from MH i2c: E2 [08:12:16]MH_I2C_Read... [08:12:16]Read from MH i2c: E2 03 00 [08:12:16]MH_I2C_Read... [08:12:16]Read from MH i2c: E2 03 00 9F 0B 00 90 00 1E [08:12:16]RAPDU: 90 00 [08:12:16]wFMCommunicate OK [08:12:16]SAM_PROTO_ClearQueue done [08:12:16]KKMCreateOFDPacket [08:12:16]OFDProtocolAddRootSTLVToBuf [08:12:16]FM_MakeSignedData [08:12:16]FM_MakeSignedData [08:12:16]SAM_PROTO_SignData [08:12:16]wFMCommunicate request_size=4 [08:12:16]MH_SAM_APDU [08:12:16]CAPDU: 80 0D 01 02 [08:12:16]Write to MH i2c: E2 08 00 A0 0B 80 0D 01 02 00 00 00 00 24 [08:12:16]Write i2c OK [08:12:16]MH_I2C_Read... [08:12:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:12:16]Read from MH i2c: E2 [08:12:16]MH_I2C_Read... [08:12:16]Read from MH i2c: E2 03 00 [08:12:16]MH_I2C_Read... [08:12:16]Read from MH i2c: E2 03 00 A0 0B 00 90 00 1F [08:12:16]RAPDU: 90 00 [08:12:16]wFMCommunicate OK [08:12:16]wFMCommunicate request_size=255 [08:12:16]MH_SAM_APDU [08:12:16]CAPDU: 80 0D 02 02 FA 03 00 74 01 1E 04 01 00 01 23 04 63 00 8A 04 0D 00 34 37 38 30 30 31 34 32 34 30 34 30 36 06 04 1F 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 53 6F 76 65 72 65 69 67 6E 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 34 00 00 00 00 13 04 06 00 58 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 47 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A3 00 00 00 00 00 EE 03 0F 00 F2 03 [08:12:16]Write to MH i2c: E2 02 01 A1 0B 80 0D 02 02 FA 00 03 00 74 01 1E 04 01 00 01 23 04 63 00 8A 04 0D 00 34 37 38 30 30 31 34 32 34 30 34 30 36 06 04 1F 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 53 6F 76 65 72 65 69 67 6E 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 34 00 00 00 00 13 04 06 00 58 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 47 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A3 00 00 00 00 00 EE 03 0F 00 F2 03 00 00 1F [08:12:16]Write i2c OK [08:12:16]MH_I2C_Read... [08:12:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:12:16]Read from MH i2c: E2 [08:12:16]MH_I2C_Read... [08:12:16]Read from MH i2c: E2 03 00 [08:12:16]MH_I2C_Read... [08:12:16]Read from MH i2c: E2 03 00 A1 0B 00 90 00 20 [08:12:16]RAPDU: 90 00 [08:12:16]wFMCommunicate OK [08:12:16]wFMCommunicate request_size=131 [08:12:16]MH_SAM_APDU [08:12:16]CAPDU: 80 0D 02 02 7E 01 00 01 F3 03 06 00 A2 07 00 00 00 00 07 04 06 00 E0 47 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 00 00 00 F4 03 04 00 E0 C5 F3 66 0E 04 04 00 DA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 D2 C5 01 00 35 04 06 00 87 0C 2D 13 A0 78 [08:12:16]Write to MH i2c: E2 86 00 A2 0B 80 0D 02 02 7E 00 01 00 01 F3 03 06 00 A2 07 00 00 00 00 07 04 06 00 E0 47 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 00 00 00 F4 03 04 00 E0 C5 F3 66 0E 04 04 00 DA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 D2 C5 01 00 35 04 06 00 87 0C 2D 13 A0 78 00 00 A1 [08:12:16]Write i2c OK [08:12:16]MH_I2C_Read... [08:12:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:12:16]Read from MH i2c: E2 [08:12:16]MH_I2C_Read... [08:12:16]Read from MH i2c: E2 03 00 [08:12:16]MH_I2C_Read... [08:12:16]Read from MH i2c: E2 03 00 A2 0B 00 90 00 21 [08:12:16]RAPDU: 90 00 [08:12:16]wFMCommunicate OK [08:12:16]wFMCommunicate request_size=4 [08:12:16]MH_SAM_APDU [08:12:16]CAPDU: 80 0D 03 02 [08:12:16]Write to MH i2c: E2 08 00 A3 0B 80 0D 03 02 00 00 00 00 29 [08:12:16]Write i2c OK [08:12:16]MH_I2C_Read... [08:12:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:12:16]Read from MH i2c: E2 [08:12:16]MH_I2C_Read... [08:12:16]Read from MH i2c: E2 0B 00 [08:12:16]MH_I2C_Read... [08:12:16]Read from MH i2c: E2 0B 00 A3 0B 00 D2 BD 6A 18 88 82 EE 8F 90 00 C2 [08:12:16]RAPDU: D2 BD 6A 18 88 82 EE 8F 90 00 [08:12:16]wFMCommunicate OK [08:12:16]SAM_PROTO_SignData done [08:12:16]FM_MakeSignedData done [08:12:16]CreateOFDProtocolMessage [08:12:16]wFMCommunicate request_size=4 [08:12:16]MH_SAM_APDU [08:12:16]CAPDU: 80 11 00 00 [08:12:16]Write to MH i2c: E2 08 00 A4 0B 80 11 00 00 00 00 00 00 29 [08:12:16]Write i2c OK [08:12:16]MH_I2C_Read... [08:12:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:12:16]Read from MH i2c: E2 [08:12:16]MH_I2C_Read... [08:12:16]Read from MH i2c: E2 17 00 [08:12:16]MH_I2C_Read... [08:12:16]Read from MH i2c: E2 17 00 A4 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 77 [08:12:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [08:12:16]wFMCommunicate OK [08:12:16]CreateOFDProtocolMessage done [08:12:16]OFDSenderStorePacket 116178 [08:12:16]StoreOFDPacket docnum=116178 [08:12:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 88 01 00 00 92 1C 80 01 4F 5D 5A 03 01 00 03 00 74 01 1E 04 01 00 01 23 04 63 00 8A 04 0D 00 34 37 38 30 30 31 34 32 34 30 34 30 36 06 04 1F 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 53 6F 76 65 72 65 69 67 6E 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 34 00 00 00 00 13 04 06 00 58 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 47 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A2 07 00 00 00 00 07 04 06 00 E0 47 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 00 00 00 F4 03 04 00 E0 C5 F3 66 0E 04 04 00 DA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 D2 C5 01 00 35 04 06 00 87 0C 2D 13 A0 78 D2 BD 6A 18 88 82 EE 8F [08:12:16]CheckFolder [08:12:16]dirname=/storage/ofd_packets [08:12:16]CheckFolder done [08:12:16]ProducePacketName [08:12:16]name=ofd_packets/00116178 [08:12:16]NVStorageSaveData ofd_packets/00116178 [08:12:16]File name is /storage/ofd_packets/00116178 [08:12:16]Write 422 bytes [08:12:16]NVStorageSaveData done [08:12:16]OFDSenderStorePacket done [08:12:16]KKMCreateOFDPacket done [08:12:16]NVStorageSaveData kkm_last_timestamp [08:12:16]File name is /storage/kkm_last_timestamp [08:12:16]Write 4 bytes [08:12:16]NVStorageSaveData done [08:12:16]ExternCall_PrintAddStr [08:12:16]wPrintStart [08:12:16]Write to MH i2c: 01 00 00 A5 0B B0 [08:12:16]Write i2c OK [08:12:16]MH_I2C_Read... [08:12:16]Read from MH i2c: 01 [08:12:16]MH_I2C_Read... [08:12:16]Read from MH i2c: 01 07 00 [08:12:16]MH_I2C_Read... [08:12:16]Read from MH i2c: 01 07 00 A5 0B 00 00 00 00 00 FF 0F C5 [08:12:16]RasterBufferAndPrint [08:12:16]line Счет N : (3)344361 [08:12:16]line ИНН: 02508201610067 [08:12:16]line Контрольно-Кассовый Чек [08:12:16]line ПРОДАЖА [08:12:16]line Товар: 4780014240406 [08:12:16]line Сигареты Sovereign Blue [08:12:16]line 1.000 * 134.00 [08:12:16]line = 134.00 [08:12:16]line НДС 12% НСП 1% [08:12:16]line > о реализуемом товаре [08:12:16]line Товар: 4700000160358 [08:12:17]line Вода Легенда 1л [08:12:17]line 1.000 * 50.00 [08:12:17]line = 50.00 [08:12:17]line НДС 12% НСП 1% [08:12:17]line > о реализуемом товаре [08:12:17]line ИТОГО: 184.00 [08:12:17]line НСП 1% : 1.63 [08:12:17]line НДС 12% : 19.54 [08:12:17]line Наличными: 184.00 [08:12:17]line Безнал.: 0.00 [08:12:17]line Место: АЗС № 90 "Партнер Нефть" [08:12:17]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [08:12:17]line СНО: Общий режим [08:12:17]line Чек 34 25.09.2024 08:12 [08:12:17]line Смена: 474 ФФД: 1.0 [08:12:17]line ЗНМ: 0300000120 [08:12:17]line РНМ: 0000000000091831 [08:12:17]line Версия ККМ: 001 [08:12:17]line ФМ: 0000000000871830 [08:12:17]line ФД: 116178 [08:12:17]line ФПД: 148486365618296 [08:12:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240925T081216&type=1&operation_type=1&fn_number=0000000000871830&fd_number=116178&fm=148486365618296&tin=02508201610067®Number=0000000000091831&sum=18400 [08:12:17]line 0 [08:12:17]OFD Sender: Processing packet 116178 [packets to send 482, broken 481] [08:12:17]ProducePacketName [08:12:17]name=ofd_packets/00116178 [08:12:17]OFD Sender: To server: pG, [08:12:17]CommunicateWithHost lk.salyk.kg:30040 [08:12:17]ConnectInit lk.salyk.kg [08:12:17]written 0, free lines is 4095 [08:12:17]Connected sock=10 [08:12:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 88 01 00 00 92 1C 80 01 4F 5D 5A 03 01 00 03 00 74 01 1E 04 01 00 01 23 04 63 00 8A 04 0D 00 34 37 38 30 30 31 34 32 34 30 34 30 36 06 04 1F 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 53 6F 76 65 72 65 69 67 6E 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 34 00 00 00 00 13 04 06 00 58 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 47 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A2 07 00 00 00 00 07 04 06 00 E0 47 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 00 00 00 F4 03 04 00 E0 C5 F3 66 0E 04 04 00 DA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 D2 C5 01 00 35 04 06 00 87 0C 2D 13 A0 78 D2 BD 6A 18 88 82 EE 8F [08:12:17]Write to MH i2c: 01 00 00 D2 0B DD [08:12:17]Write i2c OK [08:12:17]MH_I2C_Read... [08:12:17]Read from MH i2c: 01 [08:12:17]MH_I2C_Read... [08:12:17]Read from MH i2c: 01 07 00 [08:12:17]MH_I2C_Read... [08:12:17]Read from MH i2c: 01 07 00 D2 0B 00 00 00 00 00 07 0C F7 [08:12:17]RasterBufferAndPrint [08:12:17]line [08:12:17]line [08:12:17]line [08:12:17]line [08:12:17]line [08:12:17]written 0, free lines is 3082 [08:12:17]MH_Cut [08:12:17]Write to MH i2c: D1 01 00 D9 0B 01 B6 [08:12:17]Write i2c OK [08:12:17]MH_I2C_Read... [08:12:17]Read from MH i2c: D1 [08:12:17]MH_I2C_Read... [08:12:17]Read from MH i2c: D1 01 00 [08:12:17]MH_I2C_Read... [08:12:17]Read from MH i2c: D1 01 00 D9 0B 00 B5 [08:12:17]Write to MH i2c: 01 00 00 DA 0B E5 [08:12:17]Write i2c OK [08:12:17]MH_I2C_Read... [08:12:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 6B 3B 47 00 53 C2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 D2 C5 01 00 F4 03 04 00 1D 6B F3 66 B6 04 01 00 00 FD 1F C8 EA 11 A7 02 CB [08:12:17]CommunicateWithHost err = 0 [08:12:17]CheckOFDResponse [08:12:17]1017 (14) - 77093643461234 [08:12:17]1041 (16) - 0000000000871830 [08:12:17]1040 (4) - 116178 [08:12:17]1012 (4) - 25.09.2024 01:45 [08:12:17]1206 (1) - 0 [08:12:17]OFD Sender: Remove packet 116178 [08:12:17]ProducePacketName [08:12:17]name=ofd_packets/00116178 [08:12:17]NVStorageDeleteData [08:12:18]OFD Sender: No OFD packet to send [08:12:19]*** Cut start [08:12:19]*** Partial cut [08:12:19]*** CUTSNS_PIN = 1 [08:12:19]*** CUTSNS_PIN = 0 [08:12:19]*** Brake cut motor [08:12:19]Read from MH i2c: 01 [08:12:19]MH_I2C_Read... [08:12:19]*** Stop cut motor [08:12:19]*** Cut end [08:12:19]Read from MH i2c: 01 07 00 [08:12:19]MH_I2C_Read... [08:12:19]Read from MH i2c: 01 07 00 DA 0B 00 00 00 00 00 FF 0F FA [08:12:19]process_action close_receipt done [08:12:19]requested_data is exist [08:12:19]produce_requested_data [08:12:19]requested_item fm.sn is exist - process it [08:12:19]wFMCommunicate request_size=4 [08:12:19]MH_SAM_APDU [08:12:19]CAPDU: 80 11 00 00 [08:12:19]Write to MH i2c: E2 08 00 DB 0B 80 11 00 00 00 00 00 00 60 [08:12:19]Write i2c OK [08:12:19]MH_I2C_Read... [08:12:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:12:19]Read from MH i2c: E2 [08:12:19]MH_I2C_Read... [08:12:19]Read from MH i2c: E2 17 00 [08:12:19]MH_I2C_Read... [08:12:19]Read from MH i2c: E2 17 00 DB 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 AE [08:12:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [08:12:19]wFMCommunicate OK [08:12:19]requested_item fd.num is exist - process it [08:12:19]SAM_PROTO_GetFieldsCounters [08:12:19]wFMCommunicate request_size=4 [08:12:19]MH_SAM_APDU [08:12:19]CAPDU: 80 13 00 00 [08:12:19]Write to MH i2c: E2 08 00 DC 0B 80 13 00 00 00 00 00 00 63 [08:12:19]Write i2c OK [08:12:19]MH_I2C_Read... [08:12:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:12:19]Read from MH i2c: E2 [08:12:19]MH_I2C_Read... [08:12:19]Read from MH i2c: E2 62 00 [08:12:19]MH_I2C_Read... [08:12:19]Read from MH i2c: E2 62 00 DC 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 D2 C5 01 00 0E 04 04 00 DA 01 00 00 12 04 04 00 22 00 00 00 5E 04 04 00 22 00 00 00 57 04 04 00 23 00 00 00 19 04 04 00 00 00 00 00 90 00 55 [08:12:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 D2 C5 01 00 0E 04 04 00 DA 01 00 00 12 04 04 00 22 00 00 00 5E 04 04 00 22 00 00 00 57 04 04 00 23 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:12:19]wFMCommunicate OK [08:12:19]SAM_PROTO_GetFieldsCounters done [08:12:19]requested_item shift.num is exist - process it [08:12:19]requested_item shift.opened is exist - process it [08:12:19]req_shift_opened [08:12:19]FM_GetShiftState [08:12:19]SAM_PROTO_GetShiftState [08:12:19]wFMCommunicate request_size=4 [08:12:19]MH_SAM_APDU [08:12:19]CAPDU: 80 13 01 00 [08:12:19]Write to MH i2c: E2 08 00 DD 0B 80 13 01 00 00 00 00 00 65 [08:12:19]Write i2c OK [08:12:19]MH_I2C_Read... [08:12:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:12:19]Read from MH i2c: E2 [08:12:19]MH_I2C_Read... [08:12:19]Read from MH i2c: E2 0E 00 [08:12:19]MH_I2C_Read... [08:12:19]Read from MH i2c: E2 0E 00 DD 0B 00 09 00 01 63 60 F3 66 00 00 00 00 90 00 8D [08:12:19]RAPDU: 09 00 01 63 60 F3 66 00 00 00 00 90 00 [08:12:19]wFMCommunicate OK [08:12:19]SAM_PROTO_GetShiftState done [08:12:19]FM_GetShiftState done [08:12:19]req_shift_opened done [08:12:19]requested_item shift.open_date is exist - process it [08:12:19]req_shift_open_date [08:12:19]req_shift_open_date done [08:12:19]produce_requested_data done [08:12:19]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":116178,"shift.num":474,"shift.opened":1,"shift.open_date":1727225955} [08:12:19]process_action_free close_receipt [08:12:19]json_value_free [08:12:19]json_value_free done [08:12:19]process_json_proto returns [08:12:19]Send response to host [08:12:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":116178,"shift.num":474,"shift.opened":1,"shift.open_date":1727225955}}} [08:12:19]free response buf [08:12:19]execute_script done [08:12:19]execute_script returns [08:12:19]free content buf [08:12:19]Sock 8.Close socket [08:12:19]Sock 8.Thread stoped [08:12:23]OFD Sender: No OFD packet to send [08:12:28]OFD Sender: No OFD packet to send [08:12:33]OFD Sender: No OFD packet to send [08:12:38]OFD Sender: No OFD packet to send [08:12:43]OFD Sender: No OFD packet to send [08:12:48]OFD Sender: No OFD packet to send [08:12:53]OFD Sender: No OFD packet to send [08:12:58]OFD Sender: No OFD packet to send [08:13:03]OFD Sender: No OFD packet to send [08:13:08]OFD Sender: No OFD packet to send [08:13:13]OFD Sender: No OFD packet to send [08:13:18]OFD Sender: No OFD packet to send [08:13:23]OFD Sender: No OFD packet to send [08:13:28]OFD Sender: No OFD packet to send [08:13:33]OFD Sender: No OFD packet to send [08:13:38]OFD Sender: No OFD packet to send [08:13:43]OFD Sender: No OFD packet to send [08:13:48]OFD Sender: No OFD packet to send [08:13:53]OFD Sender: No OFD packet to send [08:13:58]OFD Sender: No OFD packet to send [08:14:03]OFD Sender: No OFD packet to send [08:14:08]OFD Sender: No OFD packet to send [08:14:13]OFD Sender: No OFD packet to send [08:14:18]OFD Sender: No OFD packet to send [08:14:23]OFD Sender: No OFD packet to send [08:14:28]OFD Sender: No OFD packet to send [08:14:33]OFD Sender: No OFD packet to send [08:14:38]OFD Sender: No OFD packet to send [08:14:43]OFD Sender: No OFD packet to send [08:14:48]OFD Sender: No OFD packet to send [08:14:53]OFD Sender: No OFD packet to send [08:14:58]OFD Sender: No OFD packet to send [08:15:03]OFD Sender: No OFD packet to send [08:15:08]OFD Sender: No OFD packet to send [08:15:13]OFD Sender: No OFD packet to send [08:15:18]OFD Sender: No OFD packet to send [08:15:23]OFD Sender: No OFD packet to send [08:15:28]OFD Sender: No OFD packet to send [08:15:33]OFD Sender: No OFD packet to send [08:15:38]OFD Sender: No OFD packet to send [08:15:43]OFD Sender: No OFD packet to send [08:15:48]OFD Sender: No OFD packet to send [08:15:53]OFD Sender: No OFD packet to send [08:15:58]OFD Sender: No OFD packet to send [08:16:03]OFD Sender: No OFD packet to send [08:16:08]OFD Sender: No OFD packet to send [08:16:13]OFD Sender: No OFD packet to send [08:16:18]OFD Sender: No OFD packet to send [08:16:23]OFD Sender: No OFD packet to send [08:16:28]OFD Sender: No OFD packet to send [08:16:33]OFD Sender: No OFD packet to send [08:16:38]OFD Sender: No OFD packet to send [08:16:43]OFD Sender: No OFD packet to send [08:16:48]OFD Sender: No OFD packet to send [08:16:53]OFD Sender: No OFD packet to send [08:16:58]OFD Sender: No OFD packet to send [08:17:03]OFD Sender: No OFD packet to send [08:17:08]OFD Sender: No OFD packet to send [08:17:13]OFD Sender: No OFD packet to send [08:17:18]OFD Sender: No OFD packet to send [08:17:23]OFD Sender: No OFD packet to send [08:17:28]OFD Sender: No OFD packet to send [08:17:33]OFD Sender: No OFD packet to send [08:17:38]OFD Sender: No OFD packet to send [08:17:43]OFD Sender: No OFD packet to send [08:17:48]OFD Sender: No OFD packet to send [08:17:53]OFD Sender: No OFD packet to send [08:17:58]OFD Sender: No OFD packet to send [08:18:04]OFD Sender: No OFD packet to send [08:18:09]OFD Sender: No OFD packet to send [08:18:14]OFD Sender: No OFD packet to send [08:18:19]OFD Sender: No OFD packet to send [08:18:24]OFD Sender: No OFD packet to send [08:18:29]OFD Sender: No OFD packet to send [08:18:34]OFD Sender: No OFD packet to send [08:18:39]OFD Sender: No OFD packet to send [08:18:44]OFD Sender: No OFD packet to send [08:18:49]OFD Sender: No OFD packet to send [08:18:54]OFD Sender: No OFD packet to send [08:18:59]OFD Sender: No OFD packet to send [08:19:04]OFD Sender: No OFD packet to send [08:19:09]OFD Sender: No OFD packet to send [08:19:14]OFD Sender: No OFD packet to send [08:19:19]OFD Sender: No OFD packet to send [08:19:24]OFD Sender: No OFD packet to send [08:19:29]OFD Sender: No OFD packet to send [08:19:34]OFD Sender: No OFD packet to send [08:19:39]OFD Sender: No OFD packet to send [08:19:44]OFD Sender: No OFD packet to send [08:19:49]OFD Sender: No OFD packet to send [08:19:54]OFD Sender: No OFD packet to send [08:19:59]OFD Sender: No OFD packet to send [08:20:04]OFD Sender: No OFD packet to send [08:20:09]OFD Sender: No OFD packet to send [08:20:14]OFD Sender: No OFD packet to send [08:20:19]OFD Sender: No OFD packet to send [08:20:24]OFD Sender: No OFD packet to send [08:20:29]OFD Sender: No OFD packet to send [08:20:34]OFD Sender: No OFD packet to send [08:20:39]OFD Sender: No OFD packet to send [08:20:44]OFD Sender: No OFD packet to send [08:20:49]OFD Sender: No OFD packet to send [08:20:54]OFD Sender: No OFD packet to send [08:20:59]OFD Sender: No OFD packet to send [08:21:04]OFD Sender: No OFD packet to send [08:21:09]OFD Sender: No OFD packet to send [08:21:14]OFD Sender: No OFD packet to send [08:21:19]OFD Sender: No OFD packet to send [08:21:24]OFD Sender: No OFD packet to send [08:21:29]OFD Sender: No OFD packet to send [08:21:34]OFD Sender: No OFD packet to send [08:21:39]OFD Sender: No OFD packet to send [08:21:44]OFD Sender: No OFD packet to send [08:21:49]OFD Sender: No OFD packet to send [08:21:54]OFD Sender: No OFD packet to send [08:21:59]OFD Sender: No OFD packet to send [08:22:04]OFD Sender: No OFD packet to send [08:22:09]OFD Sender: No OFD packet to send [08:22:14]OFD Sender: No OFD packet to send [08:22:19]OFD Sender: No OFD packet to send [08:22:24]OFD Sender: No OFD packet to send [08:22:29]OFD Sender: No OFD packet to send [08:22:34]OFD Sender: No OFD packet to send [08:22:39]OFD Sender: No OFD packet to send [08:22:44]OFD Sender: No OFD packet to send [08:22:49]OFD Sender: No OFD packet to send [08:22:54]OFD Sender: No OFD packet to send [08:22:59]OFD Sender: No OFD packet to send [08:23:04]OFD Sender: No OFD packet to send [08:23:09]OFD Sender: No OFD packet to send [08:23:14]OFD Sender: No OFD packet to send [08:23:19]OFD Sender: No OFD packet to send [08:23:24]OFD Sender: No OFD packet to send [08:23:29]OFD Sender: No OFD packet to send [08:23:34]OFD Sender: No OFD packet to send [08:23:39]OFD Sender: No OFD packet to send [08:23:44]OFD Sender: No OFD packet to send [08:23:49]OFD Sender: No OFD packet to send [08:23:54]OFD Sender: No OFD packet to send [08:23:59]OFD Sender: No OFD packet to send [08:24:04]OFD Sender: No OFD packet to send [08:24:09]OFD Sender: No OFD packet to send [08:24:14]OFD Sender: No OFD packet to send [08:24:19]OFD Sender: No OFD packet to send [08:24:24]OFD Sender: No OFD packet to send [08:24:29]OFD Sender: No OFD packet to send [08:24:34]OFD Sender: No OFD packet to send [08:24:39]OFD Sender: No OFD packet to send [08:24:44]OFD Sender: No OFD packet to send [08:24:49]OFD Sender: No OFD packet to send [08:24:54]OFD Sender: No OFD packet to send [08:24:59]OFD Sender: No OFD packet to send [08:25:05]OFD Sender: No OFD packet to send [08:25:10]OFD Sender: No OFD packet to send [08:25:15]OFD Sender: No OFD packet to send [08:25:20]OFD Sender: No OFD packet to send [08:25:25]OFD Sender: No OFD packet to send [08:25:30]OFD Sender: No OFD packet to send [08:25:35]OFD Sender: No OFD packet to send [08:25:40]OFD Sender: No OFD packet to send [08:25:45]OFD Sender: No OFD packet to send [08:25:50]OFD Sender: No OFD packet to send [08:25:55]OFD Sender: No OFD packet to send [08:26:00]OFD Sender: No OFD packet to send [08:26:05]OFD Sender: No OFD packet to send [08:26:10]OFD Sender: No OFD packet to send [08:26:15]OFD Sender: No OFD packet to send [08:26:20]OFD Sender: No OFD packet to send [08:26:25]OFD Sender: No OFD packet to send [08:26:30]OFD Sender: No OFD packet to send [08:26:35]OFD Sender: No OFD packet to send [08:26:40]OFD Sender: No OFD packet to send [08:26:45]OFD Sender: No OFD packet to send [08:26:50]OFD Sender: No OFD packet to send [08:26:55]OFD Sender: No OFD packet to send [08:27:00]OFD Sender: No OFD packet to send [08:27:05]OFD Sender: No OFD packet to send [08:27:10]OFD Sender: No OFD packet to send [08:27:15]OFD Sender: No OFD packet to send [08:27:20]OFD Sender: No OFD packet to send [08:27:25]OFD Sender: No OFD packet to send [08:27:30]OFD Sender: No OFD packet to send [08:27:35]OFD Sender: No OFD packet to send [08:27:40]OFD Sender: No OFD packet to send [08:27:45]OFD Sender: No OFD packet to send [08:27:50]OFD Sender: No OFD packet to send [08:27:55]OFD Sender: No OFD packet to send [08:28:00]OFD Sender: No OFD packet to send [08:28:05]OFD Sender: No OFD packet to send [08:28:10]OFD Sender: No OFD packet to send [08:28:15]OFD Sender: No OFD packet to send [08:28:20]OFD Sender: No OFD packet to send [08:28:25]OFD Sender: No OFD packet to send [08:28:29]accept exits with 9 [08:28:29]New connection [08:28:29]New thread 3067350372 created [08:28:29]Thread 3067207012 joined [08:28:29]Waiting for new connection... [08:28:29] Sock 9.Parse request [08:28:29]Sock 9.Check first char [08:28:29]Sock 9.First char is OK [08:28:29]request: POST /json_proto HTTP/1.0 [08:28:29]Method: POST [08:28:29]URL: /json_proto [08:28:29]Method is POST - this is cgi request [08:28:29]url: /json_proto [08:28:29]query_string will be loaded in cgi processing [08:28:29]execute_cgi json_proto POST (null) [08:28:29]execute_cgi path=json_proto method=POST [08:28:29]POST find Content-Length [08:28:29]Host: 172.17.41.136:8080 [08:28:29]Content-Length: 642 [08:28:29]Content-Type: application/json [08:28:29] [08:28:29]POST finish read [08:28:29]Found Content-Length = 642 [08:28:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)24619049", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 65", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 100.000, "sum" : 7620.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 7620.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:28:29]execute_script... [08:28: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)24619049", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 65", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 100.000, "sum" : 7620.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 7620.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:28:29]POST & json_proto [08:28:29]process_json_proto [08:28:29]json parsed OK: [08:28:29]protocol is kg_v1.0 [08:28:29]action value=close_receipt [08:28:29]process_action close_receipt [08:28:29]cmd_close_receipt [08:28:29]MH_GetDate [08:28:29]Write to MH i2c: F0 00 00 DE 0B D8 [08:28:29]Write i2c OK [08:28:29]MH_I2C_Read... [08:28:29]Read from MH i2c: F0 [08:28:29]MH_I2C_Read... [08:28:29]Read from MH i2c: F0 09 00 [08:28:29]MH_I2C_Read... [08:28:29]Read from MH i2c: F0 09 00 DE 0B 00 AF C9 F3 66 1B D0 5A 64 5B [08:28:29]GetLastDocTimeStamp 1727251936 [08:28:29]current date 1727252911 [08:28:29]FM_GetShiftState [08:28:29]SAM_PROTO_GetShiftState [08:28:29]wFMCommunicate request_size=4 [08:28:29]MH_SAM_APDU [08:28:29]CAPDU: 80 13 01 00 [08:28:29]Write to MH i2c: E2 08 00 DF 0B 80 13 01 00 00 00 00 00 67 [08:28:30]Write i2c OK [08:28:30]MH_I2C_Read... [08:28:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:28:30]Read from MH i2c: E2 [08:28:30]MH_I2C_Read... [08:28:30]Read from MH i2c: E2 0E 00 [08:28:30]MH_I2C_Read... [08:28:30]Read from MH i2c: E2 0E 00 DF 0B 00 09 00 01 63 60 F3 66 00 00 00 00 90 00 8F [08:28:30]RAPDU: 09 00 01 63 60 F3 66 00 00 00 00 90 00 [08:28:30]wFMCommunicate OK [08:28:30]SAM_PROTO_GetShiftState done [08:28:30]FM_GetShiftState done [08:28:30]opened in 1727225955 [08:28:30]opened+sec_in_day 1727312355 [08:28:30]quantity*price = 762000 [08:28:30]sum+1 = 762001 [08:28:30]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 7620.00 НСП 1% : 67.43 НДС 12% : 809.20 Наличными: 7620.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 35 25.09.2024 08:28 Смена: 474 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 116179 ФПД: 266400208034748 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240925T082831&type=1&operation_type=1&fn_number=0000000000871830&fd_number=116179&fm=266400208034748&tin=02508201610067®Number=0000000000091831&sum=762000 [08:28:31]StoreToDocumentArchive [08:28:31]shift 474 fd 116179 [08:28:31]save to /storage/0474/doc_00116179 [08:28:31]save last doc name /storage/0474/doc_00116179 to /storage/kkm_last_doc_name [08:28:31]save OK [08:28:31]Clear old archive folders... [08:28:31]ProcessDocumentItem done err = 0, tmpTLVsize=248 [08:28:31]tlvbuf is 018C1280 [08:28:31]SAM_PROTO_ClearQueue [08:28:31]wFMCommunicate request_size=4 [08:28:31]MH_SAM_APDU [08:28:31]CAPDU: 80 09 00 00 [08:28:31]Write to MH i2c: E2 08 00 EC 0B 80 09 00 00 00 00 00 00 69 [08:28:31]Write i2c OK [08:28:31]MH_I2C_Read... [08:28:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:28:31]Read from MH i2c: E2 [08:28:31]MH_I2C_Read... [08:28:31]Read from MH i2c: E2 03 00 [08:28:31]MH_I2C_Read... [08:28:31]Read from MH i2c: E2 03 00 EC 0B 00 90 00 6B [08:28:31]RAPDU: 90 00 [08:28:31]wFMCommunicate OK [08:28:31]SAM_PROTO_ClearQueue done [08:28:31]KKMCreateOFDPacket [08:28:31]OFDProtocolAddRootSTLVToBuf [08:28:31]FM_MakeSignedData [08:28:31]FM_MakeSignedData [08:28:31]SAM_PROTO_SignData [08:28:31]wFMCommunicate request_size=4 [08:28:31]MH_SAM_APDU [08:28:31]CAPDU: 80 0D 01 02 [08:28:31]Write to MH i2c: E2 08 00 ED 0B 80 0D 01 02 00 00 00 00 71 [08:28:31]Write i2c OK [08:28:31]MH_I2C_Read... [08:28:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:28:31]Read from MH i2c: E2 [08:28:31]MH_I2C_Read... [08:28:31]Read from MH i2c: E2 03 00 [08:28:31]MH_I2C_Read... [08:28:31]Read from MH i2c: E2 03 00 ED 0B 00 90 00 6C [08:28:31]RAPDU: 90 00 [08:28:31]wFMCommunicate OK [08:28:31]wFMCommunicate request_size=255 [08:28:31]MH_SAM_APDU [08:28:31]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 86 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 90 A0 0B 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 A0 0B 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 57 1A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 18 3C 01 00 00 00 07 04 06 00 90 A0 0B 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 00 00 00 F4 03 04 00 AF C9 F3 66 0E 04 04 00 DA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 D3 C5 01 00 35 04 06 00 F2 4A 21 C4 [08:28:31]Write to MH i2c: E2 02 01 EE 0B 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 86 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 90 A0 0B 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 A0 0B 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 57 1A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 18 3C 01 00 00 00 07 04 06 00 90 A0 0B 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 00 00 00 F4 03 04 00 AF C9 F3 66 0E 04 04 00 DA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 D3 C5 01 00 35 04 06 00 F2 4A 21 C4 00 00 CE [08:28:31]Write i2c OK [08:28:31]MH_I2C_Read... [08:28:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:28:31]Read from MH i2c: E2 [08:28:31]MH_I2C_Read... [08:28:31]Read from MH i2c: E2 03 00 [08:28:31]MH_I2C_Read... [08:28:31]Read from MH i2c: E2 03 00 EE 0B 00 90 00 6D [08:28:31]RAPDU: 90 00 [08:28:31]wFMCommunicate OK [08:28:31]wFMCommunicate request_size=7 [08:28:31]MH_SAM_APDU [08:28:31]CAPDU: 80 0D 02 02 02 9B BC [08:28:31]Write to MH i2c: E2 0A 00 EF 0B 80 0D 02 02 02 00 9B BC 00 00 CF [08:28:31]Write i2c OK [08:28:31]MH_I2C_Read... [08:28:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:28:31]Read from MH i2c: E2 [08:28:31]MH_I2C_Read... [08:28:31]Read from MH i2c: E2 03 00 [08:28:31]MH_I2C_Read... [08:28:31]Read from MH i2c: E2 03 00 EF 0B 00 90 00 6E [08:28:31]RAPDU: 90 00 [08:28:31]wFMCommunicate OK [08:28:31]wFMCommunicate request_size=4 [08:28:31]MH_SAM_APDU [08:28:31]CAPDU: 80 0D 03 02 [08:28:31]Write to MH i2c: E2 08 00 F0 0B 80 0D 03 02 00 00 00 00 76 [08:28:31]Write i2c OK [08:28:31]MH_I2C_Read... [08:28:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:28:31]Read from MH i2c: E2 [08:28:31]MH_I2C_Read... [08:28:31]Read from MH i2c: E2 0B 00 [08:28:31]MH_I2C_Read... [08:28:31]Read from MH i2c: E2 0B 00 F0 0B 00 98 C4 2C 4A 84 5F B1 49 90 00 26 [08:28:31]RAPDU: 98 C4 2C 4A 84 5F B1 49 90 00 [08:28:31]wFMCommunicate OK [08:28:31]SAM_PROTO_SignData done [08:28:31]FM_MakeSignedData done [08:28:31]CreateOFDProtocolMessage [08:28:31]wFMCommunicate request_size=4 [08:28:31]MH_SAM_APDU [08:28:31]CAPDU: 80 11 00 00 [08:28:31]Write to MH i2c: E2 08 00 F1 0B 80 11 00 00 00 00 00 00 76 [08:28:31]Write i2c OK [08:28:31]MH_I2C_Read... [08:28:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:28:31]Read from MH i2c: E2 [08:28:31]MH_I2C_Read... [08:28:31]Read from MH i2c: E2 17 00 [08:28:31]MH_I2C_Read... [08:28:31]Read from MH i2c: E2 17 00 F1 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 C4 [08:28:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [08:28:31]wFMCommunicate OK [08:28:31]CreateOFDProtocolMessage done [08:28:31]OFDSenderStorePacket 116179 [08:28:31]StoreOFDPacket docnum=116179 [08:28:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0C 01 00 00 1B 4D 04 01 DD 46 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 86 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 90 A0 0B 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 A0 0B 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 57 1A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 18 3C 01 00 00 00 07 04 06 00 90 A0 0B 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 00 00 00 F4 03 04 00 AF C9 F3 66 0E 04 04 00 DA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 D3 C5 01 00 35 04 06 00 F2 4A 21 C4 9B BC 98 C4 2C 4A 84 5F B1 49 [08:28:31]CheckFolder [08:28:31]dirname=/storage/ofd_packets [08:28:31]CheckFolder done [08:28:31]ProducePacketName [08:28:31]name=ofd_packets/00116179 [08:28:31]NVStorageSaveData ofd_packets/00116179 [08:28:31]File name is /storage/ofd_packets/00116179 [08:28:31]Write 298 bytes [08:28:31]NVStorageSaveData done [08:28:31]OFDSenderStorePacket done [08:28:31]KKMCreateOFDPacket done [08:28:31]NVStorageSaveData kkm_last_timestamp [08:28:31]File name is /storage/kkm_last_timestamp [08:28:31]Write 4 bytes [08:28:31]NVStorageSaveData done [08:28:31]ExternCall_PrintAddStr [08:28:31]wPrintStart [08:28:31]Write to MH i2c: 01 00 00 F2 0B FD [08:28:31]Write i2c OK [08:28:31]MH_I2C_Read... [08:28:31]Read from MH i2c: 01 [08:28:31]MH_I2C_Read... [08:28:31]Read from MH i2c: 01 07 00 [08:28:31]MH_I2C_Read... [08:28:31]Read from MH i2c: 01 07 00 F2 0B 00 00 00 00 00 FF 0F 12 [08:28:31]RasterBufferAndPrint [08:28:31]line Счет N : (1)24619049 [08:28:31]line ИНН: 02508201610067 [08:28:31]line Контрольно-Кассовый Чек [08:28:31]line ПРОДАЖА [08:28:31]line ТРК (МРК, ГНК) : 65 [08:28:31]line Товар: 2710194210 [08:28:31]line ДТ-К-5 [08:28:31]line 100.000 * 76.20 [08:28:31]line = 7620.00 [08:28:31]line НДС 12% НСП 1% [08:28:31]line > о реализуемом товаре [08:28:31]line ИТОГО: 7620.00 [08:28:31]line НСП 1% : 67.43 [08:28:31]line НДС 12% : 809.20 [08:28:31]line Наличными: 7620.00 [08:28:31]line Безнал.: 0.00 [08:28:31]line Место: АЗС № 90 "Партнер Нефть" [08:28:31]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [08:28:31]line СНО: Общий режим [08:28:31]line Чек 35 25.09.2024 08:28 [08:28:31]line Смена: 474 ФФД: 1.0 [08:28:31]line ЗНМ: 0300000120 [08:28:31]line РНМ: 0000000000091831 [08:28:31]line Версия ККМ: 001 [08:28:31]line ФМ: 0000000000871830 [08:28:31]line ФД: 116179 [08:28:31]line ФПД: 266400208034748 [08:28:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240925T082831&type=1&operation_type=1&fn_number=0000000000871830&fd_number=116179&fm=266400208034748&tin=02508201610067®Number=0000000000091831&sum=762000 [08:28:32]OFD Sender: Processing packet 116179 [packets to send 482, broken 481] [08:28:32]ProducePacketName [08:28:32]name=ofd_packets/00116179 [08:28:32]OFD Sender: To server: pG, [08:28:32]CommunicateWithHost lk.salyk.kg:30040 [08:28:32]ConnectInit lk.salyk.kg [08:28:32]written 0, free lines is 4095 [08:28:32]Connected sock=11 [08:28:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0C 01 00 00 1B 4D 04 01 DD 46 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 86 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 90 A0 0B 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 A0 0B 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 57 1A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 18 3C 01 00 00 00 07 04 06 00 90 A0 0B 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 00 00 00 F4 03 04 00 AF C9 F3 66 0E 04 04 00 DA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 D3 C5 01 00 35 04 06 00 F2 4A 21 C4 9B BC 98 C4 2C 4A 84 5F B1 49 [08:28:32]Write to MH i2c: 01 00 00 19 0C 25 [08:28:32]Write i2c OK [08:28:32]MH_I2C_Read... [08:28:32]Read from MH i2c: 01 [08:28:32]MH_I2C_Read... [08:28:32]Read from MH i2c: 01 07 00 [08:28:32]MH_I2C_Read... [08:28:32]Read from MH i2c: 01 07 00 19 0C 00 00 00 00 00 80 0C B8 [08:28:32]RasterBufferAndPrint [08:28:32]line [08:28:32]line [08:28:32]line [08:28:32]line [08:28:32]line [08:28:32]written 0, free lines is 3203 [08:28:32]MH_Cut [08:28:32]Write to MH i2c: D1 01 00 20 0C 01 FE [08:28:32]Write i2c OK [08:28:32]MH_I2C_Read... [08:28:32]Read from MH i2c: D1 [08:28:32]MH_I2C_Read... [08:28:32]Read from MH i2c: D1 01 00 [08:28:32]MH_I2C_Read... [08:28:32]Read from MH i2c: D1 01 00 20 0C 00 FD [08:28:32]Write to MH i2c: 01 00 00 21 0C 2D [08:28:32]Write i2c OK [08:28:32]MH_I2C_Read... [08:28:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 38 B9 47 00 D5 73 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 D3 C5 01 00 F4 03 04 00 EC 6E F3 66 B6 04 01 00 00 20 9F D0 85 28 56 B5 9A [08:28:32]CommunicateWithHost err = 0 [08:28:32]CheckOFDResponse [08:28:32]1017 (14) - 77093643461234 [08:28:32]1041 (16) - 0000000000871830 [08:28:32]1040 (4) - 116179 [08:28:32]1012 (4) - 25.09.2024 02:01 [08:28:32]1206 (1) - 0 [08:28:32]OFD Sender: Remove packet 116179 [08:28:32]ProducePacketName [08:28:32]name=ofd_packets/00116179 [08:28:32]NVStorageDeleteData [08:28:33]OFD Sender: No OFD packet to send [08:28:33]*** Cut start [08:28:33]*** Partial cut [08:28:33]*** CUTSNS_PIN = 1 [08:28:33]*** CUTSNS_PIN = 0 [08:28:34]*** Brake cut motor [08:28:34]Read from MH i2c: 01 [08:28:34]MH_I2C_Read... [08:28:34]*** Stop cut motor [08:28:34]*** Cut end [08:28:34]Read from MH i2c: 01 07 00 [08:28:34]MH_I2C_Read... [08:28:34]Read from MH i2c: 01 07 00 21 0C 00 00 00 00 00 FF 0F 42 [08:28:34]process_action close_receipt done [08:28:34]requested_data is exist [08:28:34]produce_requested_data [08:28:34]requested_item fm.sn is exist - process it [08:28:34]wFMCommunicate request_size=4 [08:28:34]MH_SAM_APDU [08:28:34]CAPDU: 80 11 00 00 [08:28:34]Write to MH i2c: E2 08 00 22 0C 80 11 00 00 00 00 00 00 A8 [08:28:34]Write i2c OK [08:28:34]MH_I2C_Read... [08:28:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:28:34]Read from MH i2c: E2 [08:28:34]MH_I2C_Read... [08:28:34]Read from MH i2c: E2 17 00 [08:28:34]MH_I2C_Read... [08:28:34]Read from MH i2c: E2 17 00 22 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 F6 [08:28:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [08:28:34]wFMCommunicate OK [08:28:34]requested_item fd.num is exist - process it [08:28:34]SAM_PROTO_GetFieldsCounters [08:28:34]wFMCommunicate request_size=4 [08:28:34]MH_SAM_APDU [08:28:34]CAPDU: 80 13 00 00 [08:28:34]Write to MH i2c: E2 08 00 23 0C 80 13 00 00 00 00 00 00 AB [08:28:34]Write i2c OK [08:28:34]MH_I2C_Read... [08:28:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:28:34]Read from MH i2c: E2 [08:28:34]MH_I2C_Read... [08:28:34]Read from MH i2c: E2 62 00 [08:28:34]MH_I2C_Read... [08:28:34]Read from MH i2c: E2 62 00 23 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 D3 C5 01 00 0E 04 04 00 DA 01 00 00 12 04 04 00 23 00 00 00 5E 04 04 00 23 00 00 00 57 04 04 00 24 00 00 00 19 04 04 00 00 00 00 00 90 00 A1 [08:28:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 D3 C5 01 00 0E 04 04 00 DA 01 00 00 12 04 04 00 23 00 00 00 5E 04 04 00 23 00 00 00 57 04 04 00 24 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:28:34]wFMCommunicate OK [08:28:34]SAM_PROTO_GetFieldsCounters done [08:28:34]requested_item shift.num is exist - process it [08:28:34]requested_item shift.opened is exist - process it [08:28:34]req_shift_opened [08:28:34]FM_GetShiftState [08:28:34]SAM_PROTO_GetShiftState [08:28:34]wFMCommunicate request_size=4 [08:28:34]MH_SAM_APDU [08:28:34]CAPDU: 80 13 01 00 [08:28:34]Write to MH i2c: E2 08 00 24 0C 80 13 01 00 00 00 00 00 AD [08:28:34]Write i2c OK [08:28:34]MH_I2C_Read... [08:28:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:28:34]Read from MH i2c: E2 [08:28:34]MH_I2C_Read... [08:28:34]Read from MH i2c: E2 0E 00 [08:28:34]MH_I2C_Read... [08:28:34]Read from MH i2c: E2 0E 00 24 0C 00 09 00 01 63 60 F3 66 00 00 00 00 90 00 D5 [08:28:34]RAPDU: 09 00 01 63 60 F3 66 00 00 00 00 90 00 [08:28:34]wFMCommunicate OK [08:28:34]SAM_PROTO_GetShiftState done [08:28:34]FM_GetShiftState done [08:28:34]req_shift_opened done [08:28:34]requested_item shift.open_date is exist - process it [08:28:34]req_shift_open_date [08:28:34]req_shift_open_date done [08:28:34]produce_requested_data done [08:28:34]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":116179,"shift.num":474,"shift.opened":1,"shift.open_date":1727225955} [08:28:34]process_action_free close_receipt [08:28:34]json_value_free [08:28:34]json_value_free done [08:28:34]process_json_proto returns [08:28:34]Send response to host [08:28:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":116179,"shift.num":474,"shift.opened":1,"shift.open_date":1727225955}}} [08:28:34]free response buf [08:28:34]execute_script done [08:28:34]execute_script returns [08:28:34]free content buf [08:28:34]Sock 9.Close socket [08:28:34]Sock 9.Thread stoped [08:28:36]accept exits with 8 [08:28:36]New connection [08:28:36]New thread 3067207012 created [08:28:36]Thread 3067350372 joined [08:28:36]Waiting for new connection... [08:28:36] Sock 8.Parse request [08:28:36]Sock 8.Check first char [08:28:36]Sock 8.First char is OK [08:28:36]request: POST /json_proto HTTP/1.0 [08:28:36]Method: POST [08:28:36]URL: /json_proto [08:28:36]Method is POST - this is cgi request [08:28:36]url: /json_proto [08:28:36]query_string will be loaded in cgi processing [08:28:36]execute_cgi json_proto POST (null) [08:28:36]execute_cgi path=json_proto method=POST [08:28:36]POST find Content-Length [08:28:36]Host: 172.17.41.136:8080 [08:28:36]Content-Length: 699 [08:28:36]Content-Type: application/json [08:28:36] [08:28:36]POST finish read [08:28:36]Found Content-Length = 699 [08:28:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 116179, "base_FM": "0000000000871830", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)24619049", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 65", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 100.000, "sum" : 7620.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 7620.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:28:36]execute_script... [08:28:36]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 116179, "base_FM": "0000000000871830", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)24619049", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 65", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 100.000, "sum" : 7620.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 7620.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:28:36]POST & json_proto [08:28:36]process_json_proto [08:28:36]json parsed OK: [08:28:36]protocol is kg_v1.0 [08:28:36]action value=close_receipt [08:28:36]process_action close_receipt [08:28:36]cmd_close_receipt [08:28:36]MH_GetDate [08:28:36]Write to MH i2c: F0 00 00 25 0C 20 [08:28:36]Write i2c OK [08:28:36]MH_I2C_Read... [08:28:36]Read from MH i2c: F0 [08:28:36]MH_I2C_Read... [08:28:36]Read from MH i2c: F0 09 00 [08:28:36]MH_I2C_Read... [08:28:36]Read from MH i2c: F0 09 00 25 0C 00 B6 C9 F3 66 1B D0 5A 64 AA [08:28:36]GetLastDocTimeStamp 1727252911 [08:28:36]current date 1727252918 [08:28:36]FM_GetShiftState [08:28:36]SAM_PROTO_GetShiftState [08:28:36]wFMCommunicate request_size=4 [08:28:36]MH_SAM_APDU [08:28:36]CAPDU: 80 13 01 00 [08:28:36]Write to MH i2c: E2 08 00 26 0C 80 13 01 00 00 00 00 00 AF [08:28:36]Write i2c OK [08:28:36]MH_I2C_Read... [08:28:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:28:36]Read from MH i2c: E2 [08:28:36]MH_I2C_Read... [08:28:36]Read from MH i2c: E2 0E 00 [08:28:36]MH_I2C_Read... [08:28:36]Read from MH i2c: E2 0E 00 26 0C 00 09 00 01 63 60 F3 66 00 00 00 00 90 00 D7 [08:28:36]RAPDU: 09 00 01 63 60 F3 66 00 00 00 00 90 00 [08:28:36]wFMCommunicate OK [08:28:36]SAM_PROTO_GetShiftState done [08:28:36]FM_GetShiftState done [08:28:36]opened in 1727225955 [08:28:36]opened+sec_in_day 1727312355 [08:28:36]quantity*price = 762000 [08:28:36]sum+1 = 762001 [08:28:36]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 7620.00 НСП 1% : 67.43 НДС 12% : 809.20 Наличными: 7620.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 36 25.09.2024 08:28 Смена: 474 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФД осн.: 116179 ФМ осн.: 0000000000871830 ФМ: 0000000000871830 ФД: 116180 ФПД: 160578790019594 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240925T082838&type=2&operation_type=1&fn_number=0000000000871830&fd_number=116180&fm=160578790019594&tin=02508201610067®Number=0000000000091831&sum=762000 [08:28:38]StoreToDocumentArchive [08:28:38]shift 474 fd 116180 [08:28:38]save to /storage/0474/doc_00116180 [08:28:38]save last doc name /storage/0474/doc_00116180 to /storage/kkm_last_doc_name [08:28:38]save OK [08:28:38]Clear old archive folders... [08:28:38]ProcessDocumentItem done err = 0, tmpTLVsize=276 [08:28:38]tlvbuf is 018B91E0 [08:28:38]SAM_PROTO_ClearQueue [08:28:38]wFMCommunicate request_size=4 [08:28:38]MH_SAM_APDU [08:28:38]CAPDU: 80 09 00 00 [08:28:38]Write to MH i2c: E2 08 00 35 0C 80 09 00 00 00 00 00 00 B3 [08:28:38]Write i2c OK [08:28:38]MH_I2C_Read... [08:28:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:28:38]Read from MH i2c: E2 [08:28:38]MH_I2C_Read... [08:28:38]Read from MH i2c: E2 03 00 [08:28:38]MH_I2C_Read... [08:28:38]Read from MH i2c: E2 03 00 35 0C 00 90 00 B5 [08:28:38]RAPDU: 90 00 [08:28:38]wFMCommunicate OK [08:28:38]SAM_PROTO_ClearQueue done [08:28:38]KKMCreateOFDPacket [08:28:38]OFDProtocolAddRootSTLVToBuf [08:28:38]FM_MakeSignedData [08:28:38]FM_MakeSignedData [08:28:38]SAM_PROTO_SignData [08:28:38]wFMCommunicate request_size=4 [08:28:38]MH_SAM_APDU [08:28:38]CAPDU: 80 0D 01 02 [08:28:38]Write to MH i2c: E2 08 00 36 0C 80 0D 01 02 00 00 00 00 BB [08:28:38]Write i2c OK [08:28:38]MH_I2C_Read... [08:28:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:28:38]Read from MH i2c: E2 [08:28:38]MH_I2C_Read... [08:28:38]Read from MH i2c: E2 03 00 [08:28:38]MH_I2C_Read... [08:28:38]Read from MH i2c: E2 03 00 36 0C 00 90 00 B6 [08:28:38]RAPDU: 90 00 [08:28:38]wFMCommunicate OK [08:28:38]wFMCommunicate request_size=255 [08:28:38]MH_SAM_APDU [08:28:38]CAPDU: 80 0D 02 02 FA 03 00 14 01 1E 04 01 00 02 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 86 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 90 A0 0B 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 A0 0B 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 57 1A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 18 3C 01 00 00 00 07 04 06 00 90 A0 0B 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 00 00 00 F4 03 04 00 B6 C9 F3 66 0E 04 04 00 DA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 27 04 04 00 D3 C5 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 11 04 10 00 30 30 30 30 [08:28:38]Write to MH i2c: E2 02 01 37 0C 80 0D 02 02 FA 00 03 00 14 01 1E 04 01 00 02 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 86 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 90 A0 0B 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 A0 0B 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 57 1A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 18 3C 01 00 00 00 07 04 06 00 90 A0 0B 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 00 00 00 F4 03 04 00 B6 C9 F3 66 0E 04 04 00 DA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 27 04 04 00 D3 C5 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 11 04 10 00 30 30 30 30 00 00 F1 [08:28:38]Write i2c OK [08:28:38]MH_I2C_Read... [08:28:38]Read from MH i2c: E2 [08:28:38]MH_I2C_Read... [08:28:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:28:38]Read from MH i2c: E2 03 00 [08:28:38]MH_I2C_Read... [08:28:38]Read from MH i2c: E2 03 00 37 0C 00 90 00 B7 [08:28:38]RAPDU: 90 00 [08:28:38]wFMCommunicate OK [08:28:38]wFMCommunicate request_size=35 [08:28:38]MH_SAM_APDU [08:28:38]CAPDU: 80 0D 02 02 1E 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 D4 C5 01 00 35 04 06 00 92 0B A9 BC D2 0A [08:28:38]Write to MH i2c: E2 26 00 38 0C 80 0D 02 02 1E 00 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 D4 C5 01 00 35 04 06 00 92 0B A9 BC D2 0A 00 00 24 [08:28:38]Write i2c OK [08:28:38]MH_I2C_Read... [08:28:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:28:38]Read from MH i2c: E2 [08:28:38]MH_I2C_Read... [08:28:38]Read from MH i2c: E2 03 00 [08:28:38]MH_I2C_Read... [08:28:38]Read from MH i2c: E2 03 00 38 0C 00 90 00 B8 [08:28:38]RAPDU: 90 00 [08:28:38]wFMCommunicate OK [08:28:38]wFMCommunicate request_size=4 [08:28:38]MH_SAM_APDU [08:28:38]CAPDU: 80 0D 03 02 [08:28:38]Write to MH i2c: E2 08 00 39 0C 80 0D 03 02 00 00 00 00 C0 [08:28:38]Write i2c OK [08:28:38]MH_I2C_Read... [08:28:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:28:38]Read from MH i2c: E2 [08:28:38]MH_I2C_Read... [08:28:38]Read from MH i2c: E2 0B 00 [08:28:38]MH_I2C_Read... [08:28:38]Read from MH i2c: E2 0B 00 39 0C 00 C7 16 D8 D1 D8 F8 9D 94 90 00 48 [08:28:38]RAPDU: C7 16 D8 D1 D8 F8 9D 94 90 00 [08:28:38]wFMCommunicate OK [08:28:38]SAM_PROTO_SignData done [08:28:38]FM_MakeSignedData done [08:28:38]CreateOFDProtocolMessage [08:28:38]wFMCommunicate request_size=4 [08:28:38]MH_SAM_APDU [08:28:38]CAPDU: 80 11 00 00 [08:28:38]Write to MH i2c: E2 08 00 3A 0C 80 11 00 00 00 00 00 00 C0 [08:28:38]Write i2c OK [08:28:38]MH_I2C_Read... [08:28:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:28:38]Read from MH i2c: E2 [08:28:38]MH_I2C_Read... [08:28:38]Read from MH i2c: E2 17 00 [08:28:38]MH_I2C_Read... [08:28:38]Read from MH i2c: E2 17 00 3A 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 0E [08:28:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [08:28:38]wFMCommunicate OK [08:28:38]CreateOFDProtocolMessage done [08:28:38]OFDSenderStorePacket 116180 [08:28:38]StoreOFDPacket docnum=116180 [08:28:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 28 01 00 00 BE 90 20 01 C3 1D 5A 03 01 00 03 00 14 01 1E 04 01 00 02 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 86 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 90 A0 0B 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 A0 0B 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 57 1A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 18 3C 01 00 00 00 07 04 06 00 90 A0 0B 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 00 00 00 F4 03 04 00 B6 C9 F3 66 0E 04 04 00 DA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 27 04 04 00 D3 C5 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 D4 C5 01 00 35 04 06 00 92 0B A9 BC D2 0A C7 16 D8 D1 D8 F8 9D 94 [08:28:38]CheckFolder [08:28:38]dirname=/storage/ofd_packets [08:28:38]CheckFolder done [08:28:38]ProducePacketName [08:28:38]name=ofd_packets/00116180 [08:28:38]NVStorageSaveData ofd_packets/00116180 [08:28:38]File name is /storage/ofd_packets/00116180 [08:28:38]Write 326 bytes [08:28:38]NVStorageSaveData done [08:28:38]OFDSenderStorePacket done [08:28:38]KKMCreateOFDPacket done [08:28:38]NVStorageSaveData kkm_last_timestamp [08:28:38]File name is /storage/kkm_last_timestamp [08:28:38]Write 4 bytes [08:28:38]NVStorageSaveData done [08:28:38]ExternCall_PrintAddStr [08:28:38]wPrintStart [08:28:38]Write to MH i2c: 01 00 00 3B 0C 47 [08:28:38]Write i2c OK [08:28:38]MH_I2C_Read... [08:28:38]Read from MH i2c: 01 [08:28:38]MH_I2C_Read... [08:28:38]Read from MH i2c: 01 07 00 [08:28:38]MH_I2C_Read... [08:28:38]Read from MH i2c: 01 07 00 3B 0C 00 00 00 00 00 FF 0F 5C [08:28:38]RasterBufferAndPrint [08:28:38]line Счет N : (1)24619049 [08:28:38]line ИНН: 02508201610067 [08:28:38]line Контрольно-Кассовый Чек [08:28:38]line ВОЗВРАТ ПРОДАЖИ [08:28:38]line ТРК (МРК, ГНК) : 65 [08:28:38]line Товар: 2710194210 [08:28:38]line ДТ-К-5 [08:28:38]line 100.000 * 76.20 [08:28:38]line = 7620.00 [08:28:38]line НДС 12% НСП 1% [08:28:38]line > о реализуемом товаре [08:28:38]line ИТОГО: 7620.00 [08:28:38]line НСП 1% : 67.43 [08:28:38]line НДС 12% : 809.20 [08:28:38]line Наличными: 7620.00 [08:28:38]line Безнал.: 0.00 [08:28:38]line Место: АЗС № 90 "Партнер Нефть" [08:28:38]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [08:28:38]line СНО: Общий режим [08:28:38]line Чек 36 25.09.2024 08:28 [08:28:38]line Смена: 474 ФФД: 1.0 [08:28:38]line ЗНМ: 0300000120 [08:28:38]line РНМ: 0000000000091831 [08:28:38]line Версия ККМ: 001 [08:28:38]line ФД осн.: 116179 [08:28:38]line ФМ осн.: 0000000000871830 [08:28:38]line ФМ: 0000000000871830 [08:28:38]line ФД: 116180 [08:28:38]line ФПД: 160578790019594 [08:28:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240925T082838&type=2&operation_type=1&fn_number=0000000000871830&fd_number=116180&fm=160578790019594&tin=02508201610067®Number=0000000000091831&sum=762000 [08:28:38]written 0, free lines is 4095 [08:28:38]OFD Sender: Processing packet 116180 [packets to send 482, broken 481] [08:28:38]ProducePacketName [08:28:38]name=ofd_packets/00116180 [08:28:38]OFD Sender: To server: pG, [08:28:38]CommunicateWithHost lk.salyk.kg:30040 [08:28:38]ConnectInit lk.salyk.kg [08:28:39]Connected sock=10 [08:28:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 28 01 00 00 BE 90 20 01 C3 1D 5A 03 01 00 03 00 14 01 1E 04 01 00 02 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 86 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 90 A0 0B 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 A0 0B 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 57 1A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 18 3C 01 00 00 00 07 04 06 00 90 A0 0B 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 00 00 00 F4 03 04 00 B6 C9 F3 66 0E 04 04 00 DA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 27 04 04 00 D3 C5 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 D4 C5 01 00 35 04 06 00 92 0B A9 BC D2 0A C7 16 D8 D1 D8 F8 9D 94 [08:28:39]Write to MH i2c: 01 00 00 64 0C 70 [08:28:39]Write i2c OK [08:28:39]MH_I2C_Read... [08:28:39]Read from MH i2c: 01 [08:28:39]MH_I2C_Read... [08:28:39]Read from MH i2c: 01 07 00 [08:28:39]MH_I2C_Read... [08:28:39]Read from MH i2c: 01 07 00 64 0C 00 00 00 00 00 63 0C E6 [08:28:39]RasterBufferAndPrint [08:28:39]line [08:28:39]line [08:28:39]line [08:28:39]line [08:28:39]line [08:28:39]written 0, free lines is 3178 [08:28:39]MH_Cut [08:28:39]Write to MH i2c: D1 01 00 6B 0C 01 49 [08:28:39]Write i2c OK [08:28:39]MH_I2C_Read... [08:28:39]Read from MH i2c: D1 [08:28:39]MH_I2C_Read... [08:28:39]Read from MH i2c: D1 01 00 [08:28:39]MH_I2C_Read... [08:28:39]Read from MH i2c: D1 01 00 6B 0C 00 48 [08:28:39]Write to MH i2c: 01 00 00 6C 0C 78 [08:28:39]Write i2c OK [08:28:39]MH_I2C_Read... [08:28:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 5B A8 47 00 BB 44 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 D4 C5 01 00 F4 03 04 00 F3 6E F3 66 B6 04 01 00 00 FD D7 9A 78 79 79 B3 C3 [08:28:39]CommunicateWithHost err = 0 [08:28:39]CheckOFDResponse [08:28:39]1017 (14) - 77093643461234 [08:28:39]1041 (16) - 0000000000871830 [08:28:39]1040 (4) - 116180 [08:28:39]1012 (4) - 25.09.2024 02:01 [08:28:39]1206 (1) - 0 [08:28:39]OFD Sender: Remove packet 116180 [08:28:39]ProducePacketName [08:28:39]name=ofd_packets/00116180 [08:28:39]NVStorageDeleteData [08:28:39]OFD Sender: No OFD packet to send [08:28:40]*** Cut start [08:28:40]*** Partial cut [08:28:40]*** CUTSNS_PIN = 1 [08:28:40]*** CUTSNS_PIN = 0 [08:28:40]*** Brake cut motor [08:28:41]Read from MH i2c: 01 [08:28:41]MH_I2C_Read... [08:28:41]*** Stop cut motor [08:28:41]*** Cut end [08:28:41]Read from MH i2c: 01 07 00 [08:28:41]MH_I2C_Read... [08:28:41]Read from MH i2c: 01 07 00 6C 0C 00 00 00 00 00 FF 0F 8D [08:28:41]process_action close_receipt done [08:28:41]requested_data is exist [08:28:41]produce_requested_data [08:28:41]requested_item fm.sn is exist - process it [08:28:41]wFMCommunicate request_size=4 [08:28:41]MH_SAM_APDU [08:28:41]CAPDU: 80 11 00 00 [08:28:41]Write to MH i2c: E2 08 00 6D 0C 80 11 00 00 00 00 00 00 F3 [08:28:41]Write i2c OK [08:28:41]MH_I2C_Read... [08:28:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:28:41]Read from MH i2c: E2 [08:28:41]MH_I2C_Read... [08:28:41]Read from MH i2c: E2 17 00 [08:28:41]MH_I2C_Read... [08:28:41]Read from MH i2c: E2 17 00 6D 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 41 [08:28:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [08:28:41]wFMCommunicate OK [08:28:41]requested_item fd.num is exist - process it [08:28:41]SAM_PROTO_GetFieldsCounters [08:28:41]wFMCommunicate request_size=4 [08:28:41]MH_SAM_APDU [08:28:41]CAPDU: 80 13 00 00 [08:28:41]Write to MH i2c: E2 08 00 6E 0C 80 13 00 00 00 00 00 00 F6 [08:28:41]Write i2c OK [08:28:41]MH_I2C_Read... [08:28:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:28:41]Read from MH i2c: E2 [08:28:41]MH_I2C_Read... [08:28:41]Read from MH i2c: E2 62 00 [08:28:41]MH_I2C_Read... [08:28:41]Read from MH i2c: E2 62 00 6E 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 D4 C5 01 00 0E 04 04 00 DA 01 00 00 12 04 04 00 24 00 00 00 5E 04 04 00 24 00 00 00 57 04 04 00 25 00 00 00 19 04 04 00 00 00 00 00 90 00 F0 [08:28:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 D4 C5 01 00 0E 04 04 00 DA 01 00 00 12 04 04 00 24 00 00 00 5E 04 04 00 24 00 00 00 57 04 04 00 25 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:28:41]wFMCommunicate OK [08:28:41]SAM_PROTO_GetFieldsCounters done [08:28:41]requested_item shift.num is exist - process it [08:28:41]requested_item shift.opened is exist - process it [08:28:41]req_shift_opened [08:28:41]FM_GetShiftState [08:28:41]SAM_PROTO_GetShiftState [08:28:41]wFMCommunicate request_size=4 [08:28:41]MH_SAM_APDU [08:28:41]CAPDU: 80 13 01 00 [08:28:41]Write to MH i2c: E2 08 00 6F 0C 80 13 01 00 00 00 00 00 F8 [08:28:41]Write i2c OK [08:28:41]MH_I2C_Read... [08:28:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:28:41]Read from MH i2c: E2 [08:28:41]MH_I2C_Read... [08:28:41]Read from MH i2c: E2 0E 00 [08:28:41]MH_I2C_Read... [08:28:41]Read from MH i2c: E2 0E 00 6F 0C 00 09 00 01 63 60 F3 66 00 00 00 00 90 00 20 [08:28:41]RAPDU: 09 00 01 63 60 F3 66 00 00 00 00 90 00 [08:28:41]wFMCommunicate OK [08:28:41]SAM_PROTO_GetShiftState done [08:28:41]FM_GetShiftState done [08:28:41]req_shift_opened done [08:28:41]requested_item shift.open_date is exist - process it [08:28:41]req_shift_open_date [08:28:41]req_shift_open_date done [08:28:41]produce_requested_data done [08:28:41]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":116180,"shift.num":474,"shift.opened":1,"shift.open_date":1727225955} [08:28:41]process_action_free close_receipt [08:28:41]json_value_free [08:28:41]json_value_free done [08:28:41]process_json_proto returns [08:28:41]Send response to host [08:28:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":116180,"shift.num":474,"shift.opened":1,"shift.open_date":1727225955}}} [08:28:41]free response buf [08:28:41]execute_script done [08:28:41]execute_script returns [08:28:41]free content buf [08:28:41]Sock 8.Close socket [08:28:41]Sock 8.Thread stoped [08:28:44]OFD Sender: No OFD packet to send [08:28:49]OFD Sender: No OFD packet to send [08:28:54]OFD Sender: No OFD packet to send [08:28:59]OFD Sender: No OFD packet to send [08:29:04]OFD Sender: No OFD packet to send [08:29:09]OFD Sender: No OFD packet to send [08:29:14]OFD Sender: No OFD packet to send [08:29:19]OFD Sender: No OFD packet to send [08:29:24]OFD Sender: No OFD packet to send [08:29:29]OFD Sender: No OFD packet to send [08:29:34]OFD Sender: No OFD packet to send [08:29:39]OFD Sender: No OFD packet to send [08:29:45]OFD Sender: No OFD packet to send [08:29:50]OFD Sender: No OFD packet to send [08:29:55]OFD Sender: No OFD packet to send [08:30:00]OFD Sender: No OFD packet to send [08:30:05]OFD Sender: No OFD packet to send [08:30:10]OFD Sender: No OFD packet to send [08:30:15]OFD Sender: No OFD packet to send [08:30:20]OFD Sender: No OFD packet to send [08:30:25]OFD Sender: No OFD packet to send [08:30:30]OFD Sender: No OFD packet to send [08:30:35]OFD Sender: No OFD packet to send [08:30:40]OFD Sender: No OFD packet to send [08:30:45]OFD Sender: No OFD packet to send [08:30:50]OFD Sender: No OFD packet to send [08:30:55]OFD Sender: No OFD packet to send [08:31:00]OFD Sender: No OFD packet to send [08:31:05]OFD Sender: No OFD packet to send [08:31:10]OFD Sender: No OFD packet to send [08:31:15]OFD Sender: No OFD packet to send [08:31:20]OFD Sender: No OFD packet to send [08:31:25]OFD Sender: No OFD packet to send [08:31:30]OFD Sender: No OFD packet to send [08:31:35]OFD Sender: No OFD packet to send [08:31:40]OFD Sender: No OFD packet to send [08:31:45]OFD Sender: No OFD packet to send [08:31:50]OFD Sender: No OFD packet to send [08:31:55]OFD Sender: No OFD packet to send [08:32:00]OFD Sender: No OFD packet to send [08:32:05]OFD Sender: No OFD packet to send [08:32:10]OFD Sender: No OFD packet to send [08:32:15]OFD Sender: No OFD packet to send [08:32:20]OFD Sender: No OFD packet to send [08:32:25]OFD Sender: No OFD packet to send [08:32:30]OFD Sender: No OFD packet to send [08:32:35]OFD Sender: No OFD packet to send [08:32:40]OFD Sender: No OFD packet to send [08:32:45]OFD Sender: No OFD packet to send [08:32:50]OFD Sender: No OFD packet to send [08:32:55]OFD Sender: No OFD packet to send [08:33:00]OFD Sender: No OFD packet to send [08:33:05]OFD Sender: No OFD packet to send [08:33:10]OFD Sender: No OFD packet to send [08:33:15]OFD Sender: No OFD packet to send [08:33:20]OFD Sender: No OFD packet to send [08:33:25]OFD Sender: No OFD packet to send [08:33:30]OFD Sender: No OFD packet to send [08:33:35]OFD Sender: No OFD packet to send [08:33:40]OFD Sender: No OFD packet to send [08:33:45]OFD Sender: No OFD packet to send [08:33:50]OFD Sender: No OFD packet to send [08:33:55]OFD Sender: No OFD packet to send [08:34:00]OFD Sender: No OFD packet to send [08:34:05]OFD Sender: No OFD packet to send [08:34:10]OFD Sender: No OFD packet to send [08:34:15]OFD Sender: No OFD packet to send [08:34:20]OFD Sender: No OFD packet to send [08:34:25]OFD Sender: No OFD packet to send [08:34:30]OFD Sender: No OFD packet to send [08:34:35]OFD Sender: No OFD packet to send [08:34:40]OFD Sender: No OFD packet to send [08:34:41]accept exits with 9 [08:34:41]New connection [08:34:41]New thread 3067350372 created [08:34:41]Thread 3067207012 joined [08:34:41]Waiting for new connection... [08:34:41] Sock 9.Parse request [08:34:41]Sock 9.Check first char [08:34:41]Sock 9.First char is OK [08:34:41]request: POST /json_proto HTTP/1.0 [08:34:41]Method: POST [08:34:41]URL: /json_proto [08:34:41]Method is POST - this is cgi request [08:34:41]url: /json_proto [08:34:41]query_string will be loaded in cgi processing [08:34:41]execute_cgi json_proto POST (null) [08:34:41]execute_cgi path=json_proto method=POST [08:34:41]POST find Content-Length [08:34:41]Host: 172.17.41.136:8080 [08:34:41]Content-Length: 1138 [08:34:41]Content-Type: application/json [08:34:41] [08:34:41]POST finish read [08:34:41]Found Content-Length = 1138 [08:34:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)344362", "tax_sys" : 0, "items" : [ { "code": "4823077634222", "name": "\u041F\u0435\u0447 LOVITA \u0414\u0436\u0435\u043B\u043B\u0438 \u041A\u0443\u043A\u0438\u0441 \u0430\u043F\u0435\u043B\u044C\u0441\u0438\u043D 135 \u0433\u0440", "price" : 115.00, "quantity" : 1.000, "sum" : 115.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000036230011", "name": "\u041A\u043E\u0444\u0435 \u041B\u0430\u0442\u0442\u0435 XL(GABB TRADE)", "price" : 130.00, "quantity" : 2.000, "sum" : 260.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 375.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:34:41]execute_script... [08:34:41]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)344362", "tax_sys" : 0, "items" : [ { "code": "4823077634222", "name": "\u041F\u0435\u0447 LOVITA \u0414\u0436\u0435\u043B\u043B\u0438 \u041A\u0443\u043A\u0438\u0441 \u0430\u043F\u0435\u043B\u044C\u0441\u0438\u043D 135 \u0433\u0440", "price" : 115.00, "quantity" : 1.000, "sum" : 115.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000036230011", "name": "\u041A\u043E\u0444\u0435 \u041B\u0430\u0442\u0442\u0435 XL(GABB TRADE)", "price" : 130.00, "quantity" : 2.000, "sum" : 260.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 375.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:34:41]POST & json_proto [08:34:41]process_json_proto [08:34:41]json parsed OK: [08:34:41]protocol is kg_v1.0 [08:34:41]action value=close_receipt [08:34:41]process_action close_receipt [08:34:41]cmd_close_receipt [08:34:41]MH_GetDate [08:34:41]Write to MH i2c: F0 00 00 70 0C 6B [08:34:41]Write i2c OK [08:34:41]MH_I2C_Read... [08:34:41]Read from MH i2c: F0 [08:34:41]MH_I2C_Read... [08:34:41]Read from MH i2c: F0 09 00 [08:34:41]MH_I2C_Read... [08:34:41]Read from MH i2c: F0 09 00 70 0C 00 23 CB F3 66 1B D0 5A 64 64 [08:34:41]GetLastDocTimeStamp 1727252918 [08:34:41]current date 1727253283 [08:34:41]FM_GetShiftState [08:34:41]SAM_PROTO_GetShiftState [08:34:41]wFMCommunicate request_size=4 [08:34:41]MH_SAM_APDU [08:34:41]CAPDU: 80 13 01 00 [08:34:41]Write to MH i2c: E2 08 00 71 0C 80 13 01 00 00 00 00 00 FA [08:34:41]Write i2c OK [08:34:41]MH_I2C_Read... [08:34:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:34:41]Read from MH i2c: E2 [08:34:41]MH_I2C_Read... [08:34:41]Read from MH i2c: E2 0E 00 [08:34:41]MH_I2C_Read... [08:34:41]Read from MH i2c: E2 0E 00 71 0C 00 09 00 01 63 60 F3 66 00 00 00 00 90 00 22 [08:34:41]RAPDU: 09 00 01 63 60 F3 66 00 00 00 00 90 00 [08:34:41]wFMCommunicate OK [08:34:41]SAM_PROTO_GetShiftState done [08:34:41]FM_GetShiftState done [08:34:41]opened in 1727225955 [08:34:41]opened+sec_in_day 1727312355 [08:34:41]quantity*price = 11500 [08:34:41]sum+1 = 11501 [08:34:41]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 2000036230011 Кофе Латте XL(GABB TRADE) 2.000 * 130.00 = 260.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 375.00 НСП 1% : 3.32 НДС 12% : 39.82 Наличными: 0.00 Безнал.: 375.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 37 25.09.2024 08:34 Смена: 474 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000871830 ФД: 116181 ФПД: 119548337929395 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240925T083443&type=1&operation_type=1&fn_number=0000000000871830&fd_number=116181&fm=119548337929395&tin=02508201610067®Number=0000000000091831&sum=37500 0 [08:34:43]StoreToDocumentArchive [08:34:43]shift 474 fd 116181 [08:34:43]save to /storage/0474/doc_00116181 [08:34:43]save last doc name /storage/0474/doc_00116181 to /storage/kkm_last_doc_name [08:34:43]save OK [08:34:43]Clear old archive folders... [08:34:43]ProcessDocumentItem done err = 0, tmpTLVsize=411 [08:34:43]tlvbuf is 018E66E0 [08:34:43]SAM_PROTO_ClearQueue [08:34:43]wFMCommunicate request_size=4 [08:34:43]MH_SAM_APDU [08:34:43]CAPDU: 80 09 00 00 [08:34:43]Write to MH i2c: E2 08 00 7E 0C 80 09 00 00 00 00 00 00 FC [08:34:43]Write i2c OK [08:34:43]MH_I2C_Read... [08:34:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:34:43]Read from MH i2c: E2 [08:34:43]MH_I2C_Read... [08:34:43]Read from MH i2c: E2 03 00 [08:34:43]MH_I2C_Read... [08:34:43]Read from MH i2c: E2 03 00 7E 0C 00 90 00 FE [08:34:43]RAPDU: 90 00 [08:34:43]wFMCommunicate OK [08:34:43]SAM_PROTO_ClearQueue done [08:34:43]KKMCreateOFDPacket [08:34:43]OFDProtocolAddRootSTLVToBuf [08:34:43]FM_MakeSignedData [08:34:43]FM_MakeSignedData [08:34:43]SAM_PROTO_SignData [08:34:43]wFMCommunicate request_size=4 [08:34:43]MH_SAM_APDU [08:34:43]CAPDU: 80 0D 01 02 [08:34:43]Write to MH i2c: E2 08 00 7F 0C 80 0D 01 02 00 00 00 00 04 [08:34:43]Write i2c OK [08:34:43]MH_I2C_Read... [08:34:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:34:43]Read from MH i2c: E2 [08:34:43]MH_I2C_Read... [08:34:43]Read from MH i2c: E2 03 00 [08:34:43]MH_I2C_Read... [08:34:43]Read from MH i2c: E2 03 00 7F 0C 00 90 00 FF [08:34:43]RAPDU: 90 00 [08:34:43]wFMCommunicate OK [08:34:43]wFMCommunicate request_size=255 [08:34:43]MH_SAM_APDU [08:34:43]CAPDU: 80 0D 02 02 FA 03 00 9B 01 1E 04 01 00 01 23 04 83 00 8A 04 0D 00 34 38 32 33 30 37 37 36 33 34 32 32 32 06 04 3F 00 D0 9F D0 B5 D1 87 20 4C 4F 56 49 54 41 20 D0 94 D0 B6 D0 B5 D0 BB D0 BB D0 B8 20 D0 9A D1 83 D0 BA D0 B8 D1 81 20 D0 B0 D0 BF D0 B5 D0 BB D1 8C D1 81 D0 B8 D0 BD 20 31 33 35 20 D0 B3 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 66 00 8A 04 0D 00 32 30 30 30 30 33 36 32 33 30 30 31 31 06 04 22 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 90 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 [08:34:43]Write to MH i2c: E2 02 01 80 0C 80 0D 02 02 FA 00 03 00 9B 01 1E 04 01 00 01 23 04 83 00 8A 04 0D 00 34 38 32 33 30 37 37 36 33 34 32 32 32 06 04 3F 00 D0 9F D0 B5 D1 87 20 4C 4F 56 49 54 41 20 D0 94 D0 B6 D0 B5 D0 BB D0 BB D0 B8 20 D0 9A D1 83 D0 BA D0 B8 D1 81 20 D0 B0 D0 BF D0 B5 D0 BB D1 8C D1 81 D0 B8 D0 BD 20 31 33 35 20 D0 B3 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 66 00 8A 04 0D 00 32 30 30 30 30 33 36 32 33 30 30 31 31 06 04 22 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 90 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 00 00 F6 [08:34:43]Write i2c OK [08:34:43]MH_I2C_Read... [08:34:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:34:43]Read from MH i2c: E2 [08:34:43]MH_I2C_Read... [08:34:43]Read from MH i2c: E2 03 00 [08:34:43]MH_I2C_Read... [08:34:43]Read from MH i2c: E2 03 00 80 0C 00 90 00 00 [08:34:43]RAPDU: 90 00 [08:34:43]wFMCommunicate OK [08:34:43]wFMCommunicate request_size=170 [08:34:43]MH_SAM_APDU [08:34:43]CAPDU: 80 0D 02 02 A5 FC 03 06 00 7C 92 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4C 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8E 0F 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 7C 92 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 23 CB F3 66 0E 04 04 00 DA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 D5 C5 01 00 35 04 06 00 6C BA 84 37 3C B3 [08:34:43]Write to MH i2c: E2 AD 00 81 0C 80 0D 02 02 A5 00 FC 03 06 00 7C 92 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4C 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8E 0F 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 7C 92 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 23 CB F3 66 0E 04 04 00 DA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 D5 C5 01 00 35 04 06 00 6C BA 84 37 3C B3 00 00 43 [08:34:43]Write i2c OK [08:34:43]MH_I2C_Read... [08:34:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:34:43]Read from MH i2c: E2 [08:34:43]MH_I2C_Read... [08:34:43]Read from MH i2c: E2 03 00 [08:34:43]MH_I2C_Read... [08:34:43]Read from MH i2c: E2 03 00 81 0C 00 90 00 01 [08:34:43]RAPDU: 90 00 [08:34:43]wFMCommunicate OK [08:34:43]wFMCommunicate request_size=4 [08:34:43]MH_SAM_APDU [08:34:43]CAPDU: 80 0D 03 02 [08:34:43]Write to MH i2c: E2 08 00 82 0C 80 0D 03 02 00 00 00 00 09 [08:34:43]Write i2c OK [08:34:43]MH_I2C_Read... [08:34:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:34:43]Read from MH i2c: E2 [08:34:43]MH_I2C_Read... [08:34:43]Read from MH i2c: E2 0B 00 [08:34:43]MH_I2C_Read... [08:34:43]Read from MH i2c: E2 0B 00 82 0C 00 88 59 0D 43 0F 95 70 FC 90 00 4B [08:34:43]RAPDU: 88 59 0D 43 0F 95 70 FC 90 00 [08:34:43]wFMCommunicate OK [08:34:43]SAM_PROTO_SignData done [08:34:43]FM_MakeSignedData done [08:34:43]CreateOFDProtocolMessage [08:34:43]wFMCommunicate request_size=4 [08:34:43]MH_SAM_APDU [08:34:43]CAPDU: 80 11 00 00 [08:34:43]Write to MH i2c: E2 08 00 83 0C 80 11 00 00 00 00 00 00 09 [08:34:43]Write i2c OK [08:34:43]MH_I2C_Read... [08:34:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:34:43]Read from MH i2c: E2 [08:34:43]MH_I2C_Read... [08:34:43]Read from MH i2c: E2 17 00 [08:34:43]MH_I2C_Read... [08:34:43]Read from MH i2c: E2 17 00 83 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 57 [08:34:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [08:34:43]wFMCommunicate OK [08:34:43]CreateOFDProtocolMessage done [08:34:43]OFDSenderStorePacket 116181 [08:34:43]StoreOFDPacket docnum=116181 [08:34:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 AF 01 00 00 6A E4 A7 01 FF B5 5A 03 01 00 03 00 9B 01 1E 04 01 00 01 23 04 83 00 8A 04 0D 00 34 38 32 33 30 37 37 36 33 34 32 32 32 06 04 3F 00 D0 9F D0 B5 D1 87 20 4C 4F 56 49 54 41 20 D0 94 D0 B6 D0 B5 D0 BB D0 BB D0 B8 20 D0 9A D1 83 D0 BA D0 B8 D1 81 20 D0 B0 D0 BF D0 B5 D0 BB D1 8C D1 81 D0 B8 D0 BD 20 31 33 35 20 D0 B3 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 66 00 8A 04 0D 00 32 30 30 30 30 33 36 32 33 30 30 31 31 06 04 22 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 90 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7C 92 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4C 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8E 0F 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 7C 92 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 23 CB F3 66 0E 04 04 00 DA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 D5 C5 01 00 35 04 06 00 6C BA 84 37 3C B3 88 59 0D 43 0F 95 70 FC [08:34:43]CheckFolder [08:34:43]dirname=/storage/ofd_packets [08:34:43]CheckFolder done [08:34:43]ProducePacketName [08:34:43]name=ofd_packets/00116181 [08:34:43]NVStorageSaveData ofd_packets/00116181 [08:34:43]File name is /storage/ofd_packets/00116181 [08:34:43]Write 461 bytes [08:34:44]NVStorageSaveData done [08:34:44]OFDSenderStorePacket done [08:34:44]KKMCreateOFDPacket done [08:34:44]NVStorageSaveData kkm_last_timestamp [08:34:44]File name is /storage/kkm_last_timestamp [08:34:44]Write 4 bytes [08:34:44]NVStorageSaveData done [08:34:44]ExternCall_PrintAddStr [08:34:44]wPrintStart [08:34:44]Write to MH i2c: 01 00 00 84 0C 90 [08:34:44]Write i2c OK [08:34:44]MH_I2C_Read... [08:34:44]Read from MH i2c: 01 [08:34:44]MH_I2C_Read... [08:34:44]Read from MH i2c: 01 07 00 [08:34:44]MH_I2C_Read... [08:34:44]Read from MH i2c: 01 07 00 84 0C 00 00 00 00 00 FF 0F A5 [08:34:44]RasterBufferAndPrint [08:34:44]line Счет N : (3)344362 [08:34:44]line ИНН: 02508201610067 [08:34:44]line Контрольно-Кассовый Чек [08:34:44]line ПРОДАЖА [08:34:44]line Товар: 4823077634222 [08:34:44]line Печ LOVITA Джелли Кукис апельсин 135 гр [08:34:44]line 1.000 * 115.00 [08:34:44]line = 115.00 [08:34:44]line НДС 12% НСП 1% [08:34:44]line > о реализуемом товаре [08:34:44]line Товар: 2000036230011 [08:34:44]line Кофе Латте XL(GABB TRADE) [08:34:44]line 2.000 * 130.00 [08:34:44]line = 260.00 [08:34:44]line НДС 12% НСП 1% [08:34:44]line > о реализуемом товаре [08:34:44]line ИТОГО: 375.00 [08:34:44]line НСП 1% : 3.32 [08:34:44]line НДС 12% : 39.82 [08:34:44]line Наличными: 0.00 [08:34:44]line Безнал.: 375.00 [08:34:44]line Место: АЗС № 90 "Партнер Нефть" [08:34:44]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [08:34:44]line СНО: Общий режим [08:34:44]line Чек 37 25.09.2024 08:34 [08:34:44]line Смена: 474 ФФД: 1.0 [08:34:44]line ЗНМ: 0300000120 [08:34:44]line РНМ: 0000000000091831 [08:34:44]line Версия ККМ: 001 [08:34:44]line Платежная система: Бакай Банк [08:34:44]line ФМ: 0000000000871830 [08:34:44]line ФД: 116181 [08:34:44]line ФПД: 119548337929395 [08:34:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240925T083443&type=1&operation_type=1&fn_number=0000000000871830&fd_number=116181&fm=119548337929395&tin=02508201610067®Number=0000000000091831&sum=37500 [08:34:44]line 0 [08:34:44]written 0, free lines is 4095 [08:34:44]OFD Sender: Processing packet 116181 [packets to send 482, broken 481] [08:34:44]ProducePacketName [08:34:44]name=ofd_packets/00116181 [08:34:44]OFD Sender: To server: pG, [08:34:44]CommunicateWithHost lk.salyk.kg:30040 [08:34:44]ConnectInit lk.salyk.kg [08:34:44]Connected sock=11 [08:34:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 AF 01 00 00 6A E4 A7 01 FF B5 5A 03 01 00 03 00 9B 01 1E 04 01 00 01 23 04 83 00 8A 04 0D 00 34 38 32 33 30 37 37 36 33 34 32 32 32 06 04 3F 00 D0 9F D0 B5 D1 87 20 4C 4F 56 49 54 41 20 D0 94 D0 B6 D0 B5 D0 BB D0 BB D0 B8 20 D0 9A D1 83 D0 BA D0 B8 D1 81 20 D0 B0 D0 BF D0 B5 D0 BB D1 8C D1 81 D0 B8 D0 BD 20 31 33 35 20 D0 B3 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 66 00 8A 04 0D 00 32 30 30 30 30 33 36 32 33 30 30 31 31 06 04 22 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 90 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7C 92 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4C 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8E 0F 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 7C 92 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 23 CB F3 66 0E 04 04 00 DA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 D5 C5 01 00 35 04 06 00 6C BA 84 37 3C B3 88 59 0D 43 0F 95 70 FC [08:34:44]Write to MH i2c: 01 00 00 B4 0C C0 [08:34:44]Write i2c OK [08:34:44]MH_I2C_Read... [08:34:44]Read from MH i2c: 01 [08:34:44]MH_I2C_Read... [08:34:44]Read from MH i2c: 01 07 00 [08:34:44]MH_I2C_Read... [08:34:44]Read from MH i2c: 01 07 00 B4 0C 00 00 00 00 00 C4 0B 96 [08:34:44]RasterBufferAndPrint [08:34:44]line [08:34:44]line [08:34:44]line [08:34:44]line [08:34:44]line [08:34:44]written 0, free lines is 3016 [08:34:44]MH_Cut [08:34:44]Write to MH i2c: D1 01 00 BB 0C 01 99 [08:34:44]Write i2c OK [08:34:44]MH_I2C_Read... [08:34:44]Read from MH i2c: D1 [08:34:44]MH_I2C_Read... [08:34:44]Read from MH i2c: D1 01 00 [08:34:44]MH_I2C_Read... [08:34:44]Read from MH i2c: D1 01 00 BB 0C 00 98 [08:34:44]Write to MH i2c: 01 00 00 BC 0C C8 [08:34:44]Write i2c OK [08:34:44]MH_I2C_Read... [08:34:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 A0 6A 47 00 75 DD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 D5 C5 01 00 F4 03 04 00 60 70 F3 66 B6 04 01 00 00 BA 1F AF DD 56 DA B0 5A [08:34:44]CommunicateWithHost err = 0 [08:34:44]CheckOFDResponse [08:34:44]1017 (14) - 77093643461234 [08:34:44]1041 (16) - 0000000000871830 [08:34:44]1040 (4) - 116181 [08:34:44]1012 (4) - 25.09.2024 02:07 [08:34:44]1206 (1) - 0 [08:34:44]OFD Sender: Remove packet 116181 [08:34:44]ProducePacketName [08:34:44]name=ofd_packets/00116181 [08:34:44]NVStorageDeleteData [08:34:45]OFD Sender: No OFD packet to send [08:34:46]*** Cut start [08:34:46]*** Partial cut [08:34:46]*** CUTSNS_PIN = 1 [08:34:46]*** CUTSNS_PIN = 0 [08:34:46]*** Brake cut motor [08:34:46]Read from MH i2c: 01 [08:34:46]MH_I2C_Read... [08:34:46]*** Stop cut motor [08:34:46]*** Cut end [08:34:46]Read from MH i2c: 01 07 00 [08:34:46]MH_I2C_Read... [08:34:46]Read from MH i2c: 01 07 00 BC 0C 00 00 00 00 00 FF 0F DD [08:34:46]process_action close_receipt done [08:34:46]requested_data is exist [08:34:46]produce_requested_data [08:34:46]requested_item fm.sn is exist - process it [08:34:46]wFMCommunicate request_size=4 [08:34:46]MH_SAM_APDU [08:34:46]CAPDU: 80 11 00 00 [08:34:46]Write to MH i2c: E2 08 00 BD 0C 80 11 00 00 00 00 00 00 43 [08:34:46]Write i2c OK [08:34:46]MH_I2C_Read... [08:34:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:34:46]Read from MH i2c: E2 [08:34:46]MH_I2C_Read... [08:34:46]Read from MH i2c: E2 17 00 [08:34:46]MH_I2C_Read... [08:34:46]Read from MH i2c: E2 17 00 BD 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 91 [08:34:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [08:34:46]wFMCommunicate OK [08:34:46]requested_item fd.num is exist - process it [08:34:46]SAM_PROTO_GetFieldsCounters [08:34:46]wFMCommunicate request_size=4 [08:34:46]MH_SAM_APDU [08:34:46]CAPDU: 80 13 00 00 [08:34:46]Write to MH i2c: E2 08 00 BE 0C 80 13 00 00 00 00 00 00 46 [08:34:46]Write i2c OK [08:34:46]MH_I2C_Read... [08:34:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:34:47]Read from MH i2c: E2 [08:34:47]MH_I2C_Read... [08:34:47]Read from MH i2c: E2 62 00 [08:34:47]MH_I2C_Read... [08:34:47]Read from MH i2c: E2 62 00 BE 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 D5 C5 01 00 0E 04 04 00 DA 01 00 00 12 04 04 00 25 00 00 00 5E 04 04 00 25 00 00 00 57 04 04 00 26 00 00 00 19 04 04 00 00 00 00 00 90 00 44 [08:34:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 D5 C5 01 00 0E 04 04 00 DA 01 00 00 12 04 04 00 25 00 00 00 5E 04 04 00 25 00 00 00 57 04 04 00 26 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:34:47]wFMCommunicate OK [08:34:47]SAM_PROTO_GetFieldsCounters done [08:34:47]requested_item shift.num is exist - process it [08:34:47]requested_item shift.opened is exist - process it [08:34:47]req_shift_opened [08:34:47]FM_GetShiftState [08:34:47]SAM_PROTO_GetShiftState [08:34:47]wFMCommunicate request_size=4 [08:34:47]MH_SAM_APDU [08:34:47]CAPDU: 80 13 01 00 [08:34:47]Write to MH i2c: E2 08 00 BF 0C 80 13 01 00 00 00 00 00 48 [08:34:47]Write i2c OK [08:34:47]MH_I2C_Read... [08:34:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:34:47]Read from MH i2c: E2 [08:34:47]MH_I2C_Read... [08:34:47]Read from MH i2c: E2 0E 00 [08:34:47]MH_I2C_Read... [08:34:47]Read from MH i2c: E2 0E 00 BF 0C 00 09 00 01 63 60 F3 66 00 00 00 00 90 00 70 [08:34:47]RAPDU: 09 00 01 63 60 F3 66 00 00 00 00 90 00 [08:34:47]wFMCommunicate OK [08:34:47]SAM_PROTO_GetShiftState done [08:34:47]FM_GetShiftState done [08:34:47]req_shift_opened done [08:34:47]requested_item shift.open_date is exist - process it [08:34:47]req_shift_open_date [08:34:47]req_shift_open_date done [08:34:47]produce_requested_data done [08:34:47]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":116181,"shift.num":474,"shift.opened":1,"shift.open_date":1727225955} [08:34:47]process_action_free close_receipt [08:34:47]json_value_free [08:34:47]json_value_free done [08:34:47]process_json_proto returns [08:34:47]Send response to host [08:34:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":116181,"shift.num":474,"shift.opened":1,"shift.open_date":1727225955}}} [08:34:47]free response buf [08:34:47]execute_script done [08:34:47]execute_script returns [08:34:47]free content buf [08:34:47]Sock 9.Close socket [08:34:47]Sock 9.Thread stoped [08:34:50]OFD Sender: No OFD packet to send [08:34:55]OFD Sender: No OFD packet to send [08:35:00]OFD Sender: No OFD packet to send [08:35:05]OFD Sender: No OFD packet to send [08:35:10]OFD Sender: No OFD packet to send [08:35:15]OFD Sender: No OFD packet to send [08:35:20]OFD Sender: No OFD packet to send [08:35:25]OFD Sender: No OFD packet to send [08:35:30]OFD Sender: No OFD packet to send [08:35:35]OFD Sender: No OFD packet to send [08:35:40]OFD Sender: No OFD packet to send [08:35:45]OFD Sender: No OFD packet to send [08:35:50]OFD Sender: No OFD packet to send [08:35:55]OFD Sender: No OFD packet to send [08:36:00]OFD Sender: No OFD packet to send [08:36:05]OFD Sender: No OFD packet to send [08:36:10]OFD Sender: No OFD packet to send [08:36:15]OFD Sender: No OFD packet to send [08:36:20]OFD Sender: No OFD packet to send [08:36:25]OFD Sender: No OFD packet to send [08:36:30]OFD Sender: No OFD packet to send [08:36:35]OFD Sender: No OFD packet to send [08:36:40]OFD Sender: No OFD packet to send [08:36:45]OFD Sender: No OFD packet to send [08:36:50]OFD Sender: No OFD packet to send [08:36:55]OFD Sender: No OFD packet to send [08:37:00]OFD Sender: No OFD packet to send [08:37:05]OFD Sender: No OFD packet to send [08:37:10]OFD Sender: No OFD packet to send [08:37:15]OFD Sender: No OFD packet to send [08:37:20]OFD Sender: No OFD packet to send [08:37:25]OFD Sender: No OFD packet to send [08:37:30]OFD Sender: No OFD packet to send [08:37:35]OFD Sender: No OFD packet to send [08:37:40]OFD Sender: No OFD packet to send [08:37:45]OFD Sender: No OFD packet to send [08:37:50]OFD Sender: No OFD packet to send [08:37:55]OFD Sender: No OFD packet to send [08:38:00]OFD Sender: No OFD packet to send [08:38:05]OFD Sender: No OFD packet to send [08:38:10]OFD Sender: No OFD packet to send [08:38:15]OFD Sender: No OFD packet to send [08:38:20]OFD Sender: No OFD packet to send [08:38:25]OFD Sender: No OFD packet to send [08:38:30]OFD Sender: No OFD packet to send [08:38:35]OFD Sender: No OFD packet to send [08:38:40]OFD Sender: No OFD packet to send [08:38:45]OFD Sender: No OFD packet to send [08:38:50]OFD Sender: No OFD packet to send [08:38:55]OFD Sender: No OFD packet to send [08:39:00]OFD Sender: No OFD packet to send [08:39:05]OFD Sender: No OFD packet to send [08:39:10]OFD Sender: No OFD packet to send [08:39:15]OFD Sender: No OFD packet to send [08:39:20]OFD Sender: No OFD packet to send [08:39:25]OFD Sender: No OFD packet to send [08:39:30]OFD Sender: No OFD packet to send [08:39:35]OFD Sender: No OFD packet to send [08:39:40]OFD Sender: No OFD packet to send [08:39:45]OFD Sender: No OFD packet to send [08:39:50]OFD Sender: No OFD packet to send [08:39:55]OFD Sender: No OFD packet to send [08:40:00]OFD Sender: No OFD packet to send [08:40:05]OFD Sender: No OFD packet to send [08:40:10]OFD Sender: No OFD packet to send [08:40:16]OFD Sender: No OFD packet to send [08:40:21]OFD Sender: No OFD packet to send [08:40:26]OFD Sender: No OFD packet to send [08:40:31]OFD Sender: No OFD packet to send [08:40:36]OFD Sender: No OFD packet to send [08:40:41]OFD Sender: No OFD packet to send [08:40:41]accept exits with 8 [08:40:41]New connection [08:40:41]New thread 3067207012 created [08:40:41]Thread 3067350372 joined [08:40:41]Waiting for new connection... [08:40:41] Sock 8.Parse request [08:40:41]Sock 8.Check first char [08:40:41]Sock 8.First char is OK [08:40:41]request: POST /json_proto HTTP/1.0 [08:40:41]Method: POST [08:40:41]URL: /json_proto [08:40:41]Method is POST - this is cgi request [08:40:41]url: /json_proto [08:40:41]query_string will be loaded in cgi processing [08:40:41]execute_cgi json_proto POST (null) [08:40:41]execute_cgi path=json_proto method=POST [08:40:41]POST find Content-Length [08:40:41]Host: 172.17.41.136:8080 [08:40:41]Content-Length: 646 [08:40:41]Content-Type: application/json [08:40:41] [08:40:41]POST finish read [08:40:41]Found Content-Length = 646 [08:40:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)344363", "tax_sys" : 0, "items" : [ { "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:40:41]execute_script... [08:40:41]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)344363", "tax_sys" : 0, "items" : [ { "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:40:41]POST & json_proto [08:40:41]process_json_proto [08:40:41]json parsed OK: [08:40:41]protocol is kg_v1.0 [08:40:41]action value=close_receipt [08:40:41]process_action close_receipt [08:40:41]cmd_close_receipt [08:40:41]MH_GetDate [08:40:41]Write to MH i2c: F0 00 00 C0 0C BB [08:40:41]Write i2c OK [08:40:41]MH_I2C_Read... [08:40:41]Read from MH i2c: F0 [08:40:41]MH_I2C_Read... [08:40:41]Read from MH i2c: F0 09 00 [08:40:41]MH_I2C_Read... [08:40:41]Read from MH i2c: F0 09 00 C0 0C 00 8B CC F3 66 1B D0 5A 64 1D [08:40:41]GetLastDocTimeStamp 1727253283 [08:40:41]current date 1727253643 [08:40:41]FM_GetShiftState [08:40:41]SAM_PROTO_GetShiftState [08:40:41]wFMCommunicate request_size=4 [08:40:41]MH_SAM_APDU [08:40:41]CAPDU: 80 13 01 00 [08:40:41]Write to MH i2c: E2 08 00 C1 0C 80 13 01 00 00 00 00 00 4A [08:40:41]Write i2c OK [08:40:41]MH_I2C_Read... [08:40:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:40:41]Read from MH i2c: E2 [08:40:41]MH_I2C_Read... [08:40:41]Read from MH i2c: E2 0E 00 [08:40:41]MH_I2C_Read... [08:40:41]Read from MH i2c: E2 0E 00 C1 0C 00 09 00 01 63 60 F3 66 00 00 00 00 90 00 72 [08:40:41]RAPDU: 09 00 01 63 60 F3 66 00 00 00 00 90 00 [08:40:41]wFMCommunicate OK [08:40:41]SAM_PROTO_GetShiftState done [08:40:41]FM_GetShiftState done [08:40:41]opened in 1727225955 [08:40:41]opened+sec_in_day 1727312355 [08:40:41]quantity*price = 13000 [08:40:41]sum+1 = 13001 [08:40:41]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 130.00 НСП 1% : 1.15 НДС 12% : 13.80 Наличными: 130.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 38 25.09.2024 08:40 Смена: 474 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 116182 ФПД: 134227870956543 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240925T084043&type=1&operation_type=1&fn_number=0000000000871830&fd_number=116182&fm=134227870956543&tin=02508201610067®Number=0000000000091831&sum=13000 0 [08:40:42]StoreToDocumentArchive [08:40:42]shift 474 fd 116182 [08:40:42]save to /storage/0474/doc_00116182 [08:40:42]save last doc name /storage/0474/doc_00116182 to /storage/kkm_last_doc_name [08:40:42]save OK [08:40:42]Clear old archive folders... [08:40:42]ProcessDocumentItem done err = 0, tmpTLVsize=282 [08:40:42]tlvbuf is 019C2AC0 [08:40:42]SAM_PROTO_ClearQueue [08:40:42]wFMCommunicate request_size=4 [08:40:42]MH_SAM_APDU [08:40:42]CAPDU: 80 09 00 00 [08:40:42]Write to MH i2c: E2 08 00 CE 0C 80 09 00 00 00 00 00 00 4C [08:40:42]Write i2c OK [08:40:42]MH_I2C_Read... [08:40:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:40:42]Read from MH i2c: E2 [08:40:42]MH_I2C_Read... [08:40:42]Read from MH i2c: E2 03 00 [08:40:42]MH_I2C_Read... [08:40:42]Read from MH i2c: E2 03 00 CE 0C 00 90 00 4E [08:40:42]RAPDU: 90 00 [08:40:42]wFMCommunicate OK [08:40:42]SAM_PROTO_ClearQueue done [08:40:42]KKMCreateOFDPacket [08:40:42]OFDProtocolAddRootSTLVToBuf [08:40:42]FM_MakeSignedData [08:40:42]FM_MakeSignedData [08:40:42]SAM_PROTO_SignData [08:40:42]wFMCommunicate request_size=4 [08:40:42]MH_SAM_APDU [08:40:42]CAPDU: 80 0D 01 02 [08:40:42]Write to MH i2c: E2 08 00 CF 0C 80 0D 01 02 00 00 00 00 54 [08:40:42]Write i2c OK [08:40:42]MH_I2C_Read... [08:40:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:40:43]Read from MH i2c: E2 [08:40:43]MH_I2C_Read... [08:40:43]Read from MH i2c: E2 03 00 [08:40:43]MH_I2C_Read... [08:40:43]Read from MH i2c: E2 03 00 CF 0C 00 90 00 4F [08:40:43]RAPDU: 90 00 [08:40:43]wFMCommunicate OK [08:40:43]wFMCommunicate request_size=255 [08:40:43]MH_SAM_APDU [08:40:43]CAPDU: 80 0D 02 02 FA 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 8B CC F3 66 0E 04 04 00 DA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 [08:40:43]Write to MH i2c: E2 02 01 D0 0C 80 0D 02 02 FA 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 8B CC F3 66 0E 04 04 00 DA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 00 00 11 [08:40:43]Write i2c OK [08:40:43]MH_I2C_Read... [08:40:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:40:43]Read from MH i2c: E2 [08:40:43]MH_I2C_Read... [08:40:43]Read from MH i2c: E2 03 00 [08:40:43]MH_I2C_Read... [08:40:43]Read from MH i2c: E2 03 00 D0 0C 00 90 00 50 [08:40:43]RAPDU: 90 00 [08:40:43]wFMCommunicate OK [08:40:43]wFMCommunicate request_size=41 [08:40:43]MH_SAM_APDU [08:40:43]CAPDU: 80 0D 02 02 24 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 D6 C5 01 00 35 04 06 00 7A 14 5C 91 3B FF [08:40:43]Write to MH i2c: E2 2C 00 D1 0C 80 0D 02 02 24 00 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 D6 C5 01 00 35 04 06 00 7A 14 5C 91 3B FF 00 00 72 [08:40:43]Write i2c OK [08:40:43]MH_I2C_Read... [08:40:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:40:43]Read from MH i2c: E2 [08:40:43]MH_I2C_Read... [08:40:43]Read from MH i2c: E2 03 00 [08:40:43]MH_I2C_Read... [08:40:43]Read from MH i2c: E2 03 00 D1 0C 00 90 00 51 [08:40:43]RAPDU: 90 00 [08:40:43]wFMCommunicate OK [08:40:43]wFMCommunicate request_size=4 [08:40:43]MH_SAM_APDU [08:40:43]CAPDU: 80 0D 03 02 [08:40:43]Write to MH i2c: E2 08 00 D2 0C 80 0D 03 02 00 00 00 00 59 [08:40:43]Write i2c OK [08:40:43]MH_I2C_Read... [08:40:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:40:43]Read from MH i2c: E2 [08:40:43]MH_I2C_Read... [08:40:43]Read from MH i2c: E2 0B 00 [08:40:43]MH_I2C_Read... [08:40:43]Read from MH i2c: E2 0B 00 D2 0C 00 F0 23 DA 8D 29 D8 01 A5 90 00 7B [08:40:43]RAPDU: F0 23 DA 8D 29 D8 01 A5 90 00 [08:40:43]wFMCommunicate OK [08:40:43]SAM_PROTO_SignData done [08:40:43]FM_MakeSignedData done [08:40:43]CreateOFDProtocolMessage [08:40:43]wFMCommunicate request_size=4 [08:40:43]MH_SAM_APDU [08:40:43]CAPDU: 80 11 00 00 [08:40:43]Write to MH i2c: E2 08 00 D3 0C 80 11 00 00 00 00 00 00 59 [08:40:43]Write i2c OK [08:40:43]MH_I2C_Read... [08:40:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:40:43]Read from MH i2c: E2 [08:40:43]MH_I2C_Read... [08:40:43]Read from MH i2c: E2 17 00 [08:40:43]MH_I2C_Read... [08:40:43]Read from MH i2c: E2 17 00 D3 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 A7 [08:40:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [08:40:43]wFMCommunicate OK [08:40:43]CreateOFDProtocolMessage done [08:40:43]OFDSenderStorePacket 116182 [08:40:43]StoreOFDPacket docnum=116182 [08:40:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 2E 01 00 00 D2 99 26 01 8D C7 5A 03 01 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 8B CC F3 66 0E 04 04 00 DA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 D6 C5 01 00 35 04 06 00 7A 14 5C 91 3B FF F0 23 DA 8D 29 D8 01 A5 [08:40:43]CheckFolder [08:40:43]dirname=/storage/ofd_packets [08:40:43]CheckFolder done [08:40:43]ProducePacketName [08:40:43]name=ofd_packets/00116182 [08:40:43]NVStorageSaveData ofd_packets/00116182 [08:40:43]File name is /storage/ofd_packets/00116182 [08:40:43]Write 332 bytes [08:40:43]NVStorageSaveData done [08:40:43]OFDSenderStorePacket done [08:40:43]KKMCreateOFDPacket done [08:40:43]NVStorageSaveData kkm_last_timestamp [08:40:43]File name is /storage/kkm_last_timestamp [08:40:43]Write 4 bytes [08:40:43]NVStorageSaveData done [08:40:43]ExternCall_PrintAddStr [08:40:43]wPrintStart [08:40:43]Write to MH i2c: 01 00 00 D4 0C E0 [08:40:43]Write i2c OK [08:40:43]MH_I2C_Read... [08:40:43]Read from MH i2c: 01 [08:40:43]MH_I2C_Read... [08:40:43]Read from MH i2c: 01 07 00 [08:40:43]MH_I2C_Read... [08:40:43]Read from MH i2c: 01 07 00 D4 0C 00 00 00 00 00 FF 0F F5 [08:40:43]RasterBufferAndPrint [08:40:43]line Счет N : (3)344363 [08:40:43]line ИНН: 02508201610067 [08:40:43]line Контрольно-Кассовый Чек [08:40:43]line ПРОДАЖА [08:40:43]line Товар: 2000036220012 [08:40:43]line Кофе Капучино XL(GABB TRADE) [08:40:43]line 1.000 * 130.00 [08:40:43]line = 130.00 [08:40:43]line НДС 12% НСП 1% [08:40:43]line > о реализуемом товаре [08:40:43]line ИТОГО: 130.00 [08:40:43]line НСП 1% : 1.15 [08:40:43]line НДС 12% : 13.80 [08:40:43]line Наличными: 130.00 [08:40:43]line Безнал.: 0.00 [08:40:43]line Место: АЗС № 90 "Партнер Нефть" [08:40:43]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [08:40:43]line СНО: Общий режим [08:40:43]line Чек 38 25.09.2024 08:40 [08:40:43]line Смена: 474 ФФД: 1.0 [08:40:43]line ЗНМ: 0300000120 [08:40:43]line РНМ: 0000000000091831 [08:40:43]line Версия ККМ: 001 [08:40:43]line ФМ: 0000000000871830 [08:40:43]line ФД: 116182 [08:40:43]line ФПД: 134227870956543 [08:40:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240925T084043&type=1&operation_type=1&fn_number=0000000000871830&fd_number=116182&fm=134227870956543&tin=02508201610067®Number=0000000000091831&sum=13000 [08:40:43]line 0 [08:40:43]OFD Sender: Processing packet 116182 [packets to send 482, broken 481] [08:40:43]ProducePacketName [08:40:43]name=ofd_packets/00116182 [08:40:43]OFD Sender: To server: pG, [08:40:43]CommunicateWithHost lk.salyk.kg:30040 [08:40:43]ConnectInit lk.salyk.kg [08:40:43]written 0, free lines is 4095 [08:40:44]Connected sock=10 [08:40:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 2E 01 00 00 D2 99 26 01 8D C7 5A 03 01 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 8B CC F3 66 0E 04 04 00 DA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 D6 C5 01 00 35 04 06 00 7A 14 5C 91 3B FF F0 23 DA 8D 29 D8 01 A5 [08:40:44]Write to MH i2c: 01 00 00 FC 0C 08 [08:40:44]Write i2c OK [08:40:44]MH_I2C_Read... [08:40:44]Read from MH i2c: 01 [08:40:44]MH_I2C_Read... [08:40:44]Read from MH i2c: 01 07 00 [08:40:44]MH_I2C_Read... [08:40:44]Read from MH i2c: 01 07 00 FC 0C 00 00 00 00 00 56 0C 71 [08:40:44]RasterBufferAndPrint [08:40:44]line [08:40:44]line [08:40:44]line [08:40:44]line [08:40:44]line [08:40:44]written 0, free lines is 3162 [08:40:44]MH_Cut [08:40:44]Write to MH i2c: D1 01 00 03 0D 01 E2 [08:40:44]Write i2c OK [08:40:44]MH_I2C_Read... [08:40:44]Read from MH i2c: D1 [08:40:44]MH_I2C_Read... [08:40:44]Read from MH i2c: D1 01 00 [08:40:44]MH_I2C_Read... [08:40:44]Read from MH i2c: D1 01 00 03 0D 00 E1 [08:40:44]Write to MH i2c: 01 00 00 04 0D 11 [08:40:44]Write i2c OK [08:40:44]MH_I2C_Read... [08:40:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 1C 0B 47 00 7D E4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 D6 C5 01 00 F4 03 04 00 C8 71 F3 66 B6 04 01 00 00 51 1C FE D7 31 A5 46 39 [08:40:44]CommunicateWithHost err = 0 [08:40:44]CheckOFDResponse [08:40:44]1017 (14) - 77093643461234 [08:40:44]1041 (16) - 0000000000871830 [08:40:44]1040 (4) - 116182 [08:40:44]1012 (4) - 25.09.2024 02:13 [08:40:44]1206 (1) - 0 [08:40:44]OFD Sender: Remove packet 116182 [08:40:44]ProducePacketName [08:40:44]name=ofd_packets/00116182 [08:40:44]NVStorageDeleteData [08:40:44]OFD Sender: No OFD packet to send [08:40:45]*** Cut start [08:40:45]*** Partial cut [08:40:45]*** CUTSNS_PIN = 1 [08:40:45]*** CUTSNS_PIN = 0 [08:40:45]*** Brake cut motor [08:40:46]Read from MH i2c: 01 [08:40:46]MH_I2C_Read... [08:40:46]*** Stop cut motor [08:40:46]*** Cut end [08:40:46]Read from MH i2c: 01 07 00 [08:40:46]MH_I2C_Read... [08:40:46]Read from MH i2c: 01 07 00 04 0D 00 00 00 00 00 FF 0F 26 [08:40:46]process_action close_receipt done [08:40:46]requested_data is exist [08:40:46]produce_requested_data [08:40:46]requested_item fm.sn is exist - process it [08:40:46]wFMCommunicate request_size=4 [08:40:46]MH_SAM_APDU [08:40:46]CAPDU: 80 11 00 00 [08:40:46]Write to MH i2c: E2 08 00 05 0D 80 11 00 00 00 00 00 00 8C [08:40:46]Write i2c OK [08:40:46]MH_I2C_Read... [08:40:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:40:46]Read from MH i2c: E2 [08:40:46]MH_I2C_Read... [08:40:46]Read from MH i2c: E2 17 00 [08:40:46]MH_I2C_Read... [08:40:46]Read from MH i2c: E2 17 00 05 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 DA [08:40:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [08:40:46]wFMCommunicate OK [08:40:46]requested_item fd.num is exist - process it [08:40:46]SAM_PROTO_GetFieldsCounters [08:40:46]wFMCommunicate request_size=4 [08:40:46]MH_SAM_APDU [08:40:46]CAPDU: 80 13 00 00 [08:40:46]Write to MH i2c: E2 08 00 06 0D 80 13 00 00 00 00 00 00 8F [08:40:46]Write i2c OK [08:40:46]MH_I2C_Read... [08:40:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:40:46]Read from MH i2c: E2 [08:40:46]MH_I2C_Read... [08:40:46]Read from MH i2c: E2 62 00 [08:40:46]MH_I2C_Read... [08:40:46]Read from MH i2c: E2 62 00 06 0D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 D6 C5 01 00 0E 04 04 00 DA 01 00 00 12 04 04 00 26 00 00 00 5E 04 04 00 26 00 00 00 57 04 04 00 27 00 00 00 19 04 04 00 00 00 00 00 90 00 91 [08:40:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 D6 C5 01 00 0E 04 04 00 DA 01 00 00 12 04 04 00 26 00 00 00 5E 04 04 00 26 00 00 00 57 04 04 00 27 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:40:46]wFMCommunicate OK [08:40:46]SAM_PROTO_GetFieldsCounters done [08:40:46]requested_item shift.num is exist - process it [08:40:46]requested_item shift.opened is exist - process it [08:40:46]req_shift_opened [08:40:46]FM_GetShiftState [08:40:46]SAM_PROTO_GetShiftState [08:40:46]wFMCommunicate request_size=4 [08:40:46]MH_SAM_APDU [08:40:46]CAPDU: 80 13 01 00 [08:40:46]Write to MH i2c: E2 08 00 07 0D 80 13 01 00 00 00 00 00 91 [08:40:46]Write i2c OK [08:40:46]MH_I2C_Read... [08:40:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:40:46]Read from MH i2c: E2 [08:40:46]MH_I2C_Read... [08:40:46]Read from MH i2c: E2 0E 00 [08:40:46]MH_I2C_Read... [08:40:46]Read from MH i2c: E2 0E 00 07 0D 00 09 00 01 63 60 F3 66 00 00 00 00 90 00 B9 [08:40:46]RAPDU: 09 00 01 63 60 F3 66 00 00 00 00 90 00 [08:40:46]wFMCommunicate OK [08:40:46]SAM_PROTO_GetShiftState done [08:40:46]FM_GetShiftState done [08:40:46]req_shift_opened done [08:40:46]requested_item shift.open_date is exist - process it [08:40:46]req_shift_open_date [08:40:46]req_shift_open_date done [08:40:46]produce_requested_data done [08:40:46]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":116182,"shift.num":474,"shift.opened":1,"shift.open_date":1727225955} [08:40:46]process_action_free close_receipt [08:40:46]json_value_free [08:40:46]json_value_free done [08:40:46]process_json_proto returns [08:40:46]Send response to host [08:40:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":116182,"shift.num":474,"shift.opened":1,"shift.open_date":1727225955}}} [08:40:46]free response buf [08:40:46]execute_script done [08:40:46]execute_script returns [08:40:46]free content buf [08:40:46]Sock 8.Close socket [08:40:46]Sock 8.Thread stoped [08:40:49]OFD Sender: No OFD packet to send [08:40:54]OFD Sender: No OFD packet to send [08:40:59]OFD Sender: No OFD packet to send [08:41:04]OFD Sender: No OFD packet to send [08:41:09]OFD Sender: No OFD packet to send [08:41:14]OFD Sender: No OFD packet to send [08:41:19]OFD Sender: No OFD packet to send [08:41:24]OFD Sender: No OFD packet to send [08:41:29]OFD Sender: No OFD packet to send [08:41:34]OFD Sender: No OFD packet to send [08:41:39]OFD Sender: No OFD packet to send [08:41:45]OFD Sender: No OFD packet to send [08:41:50]OFD Sender: No OFD packet to send [08:41:55]OFD Sender: No OFD packet to send [08:42:00]OFD Sender: No OFD packet to send [08:42:05]OFD Sender: No OFD packet to send [08:42:10]OFD Sender: No OFD packet to send [08:42:15]OFD Sender: No OFD packet to send [08:42:20]OFD Sender: No OFD packet to send [08:42:25]OFD Sender: No OFD packet to send [08:42:30]OFD Sender: No OFD packet to send [08:42:35]OFD Sender: No OFD packet to send [08:42:40]OFD Sender: No OFD packet to send [08:42:45]OFD Sender: No OFD packet to send [08:42:50]OFD Sender: No OFD packet to send [08:42:55]OFD Sender: No OFD packet to send [08:43:00]OFD Sender: No OFD packet to send [08:43:05]OFD Sender: No OFD packet to send [08:43:10]OFD Sender: No OFD packet to send [08:43:12]accept exits with 9 [08:43:12]New connection [08:43:12]New thread 3067350372 created [08:43:12]Thread 3067207012 joined [08:43:12]Waiting for new connection... [08:43:12] Sock 9.Parse request [08:43:12]Sock 9.Check first char [08:43:12]Sock 9.First char is OK [08:43:12]request: POST /json_proto HTTP/1.0 [08:43:12]Method: POST [08:43:12]URL: /json_proto [08:43:12]Method is POST - this is cgi request [08:43:12]url: /json_proto [08:43:12]query_string will be loaded in cgi processing [08:43:12]execute_cgi json_proto POST (null) [08:43:12]execute_cgi path=json_proto method=POST [08:43:12]POST find Content-Length [08:43:12]Host: 172.17.41.136:8080 [08:43:12]Content-Length: 681 [08:43:12]Content-Type: application/json [08:43:12] [08:43:12]POST finish read [08:43:12]Found Content-Length = 681 [08:43:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)24619058", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:43:12]execute_script... [08:43:12]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)24619058", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:43:12]POST & json_proto [08:43:12]process_json_proto [08:43:12]json parsed OK: [08:43:12]protocol is kg_v1.0 [08:43:12]action value=close_receipt [08:43:12]process_action close_receipt [08:43:12]cmd_close_receipt [08:43:12]MH_GetDate [08:43:12]Write to MH i2c: F0 00 00 08 0D 04 [08:43:12]Write i2c OK [08:43:12]MH_I2C_Read... [08:43:12]Read from MH i2c: F0 [08:43:12]MH_I2C_Read... [08:43:12]Read from MH i2c: F0 09 00 [08:43:12]MH_I2C_Read... [08:43:12]Read from MH i2c: F0 09 00 08 0D 00 22 CD F3 66 1B D0 5A 64 FE [08:43:12]GetLastDocTimeStamp 1727253643 [08:43:12]current date 1727253794 [08:43:12]FM_GetShiftState [08:43:12]SAM_PROTO_GetShiftState [08:43:12]wFMCommunicate request_size=4 [08:43:12]MH_SAM_APDU [08:43:12]CAPDU: 80 13 01 00 [08:43:12]Write to MH i2c: E2 08 00 09 0D 80 13 01 00 00 00 00 00 93 [08:43:12]Write i2c OK [08:43:12]MH_I2C_Read... [08:43:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:43:12]Read from MH i2c: E2 [08:43:12]MH_I2C_Read... [08:43:12]Read from MH i2c: E2 0E 00 [08:43:12]MH_I2C_Read... [08:43:12]Read from MH i2c: E2 0E 00 09 0D 00 09 00 01 63 60 F3 66 00 00 00 00 90 00 BB [08:43:12]RAPDU: 09 00 01 63 60 F3 66 00 00 00 00 90 00 [08:43:12]wFMCommunicate OK [08:43:12]SAM_PROTO_GetShiftState done [08:43:12]FM_GetShiftState done [08:43:12]opened in 1727225955 [08:43:12]opened+sec_in_day 1727312355 [08:43:12]quantity*price = 100050 [08:43:12]sum+1 = 100052 [08:43:12]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 39 25.09.2024 08:43 Смена: 474 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 116183 ФПД: 126693005050142 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240925T084314&type=1&operation_type=1&fn_number=0000000000871830&fd_number=116183&fm=126693005050142&tin=02508201610067®Number=0000000000091831&sum=100000 [08:43:13]StoreToDocumentArchive [08:43:13]shift 474 fd 116183 [08:43:13]save to /storage/0474/doc_00116183 [08:43:13]save last doc name /storage/0474/doc_00116183 to /storage/kkm_last_doc_name [08:43:13]save OK [08:43:13]Clear old archive folders... [08:43:13]ProcessDocumentItem done err = 0, tmpTLVsize=248 [08:43:13]tlvbuf is 019CFB30 [08:43:13]SAM_PROTO_ClearQueue [08:43:13]wFMCommunicate request_size=4 [08:43:13]MH_SAM_APDU [08:43:13]CAPDU: 80 09 00 00 [08:43:13]Write to MH i2c: E2 08 00 16 0D 80 09 00 00 00 00 00 00 95 [08:43:13]Write i2c OK [08:43:13]MH_I2C_Read... [08:43:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:43:13]Read from MH i2c: E2 [08:43:13]MH_I2C_Read... [08:43:13]Read from MH i2c: E2 03 00 [08:43:13]MH_I2C_Read... [08:43:13]Read from MH i2c: E2 03 00 16 0D 00 90 00 97 [08:43:13]RAPDU: 90 00 [08:43:13]wFMCommunicate OK [08:43:13]SAM_PROTO_ClearQueue done [08:43:13]KKMCreateOFDPacket [08:43:13]OFDProtocolAddRootSTLVToBuf [08:43:13]FM_MakeSignedData [08:43:13]FM_MakeSignedData [08:43:13]SAM_PROTO_SignData [08:43:13]wFMCommunicate request_size=4 [08:43:13]MH_SAM_APDU [08:43:13]CAPDU: 80 0D 01 02 [08:43:13]Write to MH i2c: E2 08 00 17 0D 80 0D 01 02 00 00 00 00 9D [08:43:13]Write i2c OK [08:43:13]MH_I2C_Read... [08:43:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:43:13]Read from MH i2c: E2 [08:43:13]MH_I2C_Read... [08:43:13]Read from MH i2c: E2 03 00 [08:43:13]MH_I2C_Read... [08:43:13]Read from MH i2c: E2 03 00 17 0D 00 90 00 98 [08:43:13]RAPDU: 90 00 [08:43:13]wFMCommunicate OK [08:43:13]wFMCommunicate request_size=255 [08:43:13]MH_SAM_APDU [08:43:13]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 00 00 00 F4 03 04 00 22 CD F3 66 0E 04 04 00 DA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 D7 C5 01 00 35 04 06 00 73 3A 03 8F [08:43:13]Write to MH i2c: E2 02 01 18 0D 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 00 00 00 F4 03 04 00 22 CD F3 66 0E 04 04 00 DA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 D7 C5 01 00 35 04 06 00 73 3A 03 8F 00 00 40 [08:43:13]Write i2c OK [08:43:13]MH_I2C_Read... [08:43:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:43:13]Read from MH i2c: E2 [08:43:13]MH_I2C_Read... [08:43:13]Read from MH i2c: E2 03 00 [08:43:13]MH_I2C_Read... [08:43:13]Read from MH i2c: E2 03 00 18 0D 00 90 00 99 [08:43:13]RAPDU: 90 00 [08:43:13]wFMCommunicate OK [08:43:13]wFMCommunicate request_size=7 [08:43:13]MH_SAM_APDU [08:43:13]CAPDU: 80 0D 02 02 02 C1 1E [08:43:13]Write to MH i2c: E2 0A 00 19 0D 80 0D 02 02 02 00 C1 1E 00 00 83 [08:43:13]Write i2c OK [08:43:13]MH_I2C_Read... [08:43:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:43:13]Read from MH i2c: E2 [08:43:13]MH_I2C_Read... [08:43:13]Read from MH i2c: E2 03 00 [08:43:13]MH_I2C_Read... [08:43:13]Read from MH i2c: E2 03 00 19 0D 00 90 00 9A [08:43:13]RAPDU: 90 00 [08:43:13]wFMCommunicate OK [08:43:13]wFMCommunicate request_size=4 [08:43:13]MH_SAM_APDU [08:43:13]CAPDU: 80 0D 03 02 [08:43:13]Write to MH i2c: E2 08 00 1A 0D 80 0D 03 02 00 00 00 00 A2 [08:43:13]Write i2c OK [08:43:13]MH_I2C_Read... [08:43:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:43:13]Read from MH i2c: E2 [08:43:13]MH_I2C_Read... [08:43:13]Read from MH i2c: E2 0B 00 [08:43:13]MH_I2C_Read... [08:43:13]Read from MH i2c: E2 0B 00 1A 0D 00 00 18 39 24 AF BC 12 CB 90 00 60 [08:43:13]RAPDU: 00 18 39 24 AF BC 12 CB 90 00 [08:43:13]wFMCommunicate OK [08:43:13]SAM_PROTO_SignData done [08:43:13]FM_MakeSignedData done [08:43:13]CreateOFDProtocolMessage [08:43:13]wFMCommunicate request_size=4 [08:43:13]MH_SAM_APDU [08:43:13]CAPDU: 80 11 00 00 [08:43:13]Write to MH i2c: E2 08 00 1B 0D 80 11 00 00 00 00 00 00 A2 [08:43:13]Write i2c OK [08:43:13]MH_I2C_Read... [08:43:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:43:13]Read from MH i2c: E2 [08:43:13]MH_I2C_Read... [08:43:13]Read from MH i2c: E2 17 00 [08:43:13]MH_I2C_Read... [08:43:13]Read from MH i2c: E2 17 00 1B 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 F0 [08:43:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [08:43:13]wFMCommunicate OK [08:43:13]CreateOFDProtocolMessage done [08:43:13]OFDSenderStorePacket 116183 [08:43:13]StoreOFDPacket docnum=116183 [08:43:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0C 01 00 00 B6 79 04 01 9C 07 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 00 00 00 F4 03 04 00 22 CD F3 66 0E 04 04 00 DA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 D7 C5 01 00 35 04 06 00 73 3A 03 8F C1 1E 00 18 39 24 AF BC 12 CB [08:43:13]CheckFolder [08:43:13]dirname=/storage/ofd_packets [08:43:13]CheckFolder done [08:43:13]ProducePacketName [08:43:13]name=ofd_packets/00116183 [08:43:13]NVStorageSaveData ofd_packets/00116183 [08:43:13]File name is /storage/ofd_packets/00116183 [08:43:13]Write 298 bytes [08:43:13]NVStorageSaveData done [08:43:13]OFDSenderStorePacket done [08:43:13]KKMCreateOFDPacket done [08:43:13]NVStorageSaveData kkm_last_timestamp [08:43:13]File name is /storage/kkm_last_timestamp [08:43:13]Write 4 bytes [08:43:13]NVStorageSaveData done [08:43:13]ExternCall_PrintAddStr [08:43:13]wPrintStart [08:43:13]Write to MH i2c: 01 00 00 1C 0D 29 [08:43:13]Write i2c OK [08:43:13]MH_I2C_Read... [08:43:13]Read from MH i2c: 01 [08:43:13]MH_I2C_Read... [08:43:13]Read from MH i2c: 01 07 00 [08:43:13]MH_I2C_Read... [08:43:13]Read from MH i2c: 01 07 00 1C 0D 00 00 00 00 00 FF 0F 3E [08:43:13]RasterBufferAndPrint [08:43:13]line Счет N : (1)24619058 [08:43:13]line ИНН: 02508201610067 [08:43:13]line Контрольно-Кассовый Чек [08:43:13]line ПРОДАЖА [08:43:13]line ТРК (МРК, ГНК) : 22 [08:43:13]line Товар: 2710194210 [08:43:13]line ДТ-К-5 [08:43:13]line 13.130 * 76.20 [08:43:13]line = 1000.51 [08:43:13]line НДС 12% НСП 1% [08:43:13]line > о реализуемом товаре [08:43:13]line ОКРУГЛЕНИЕ: -0.51 [08:43:13]line ИТОГО: 1000.00 [08:43:13]line Внесено: 1000.00 [08:43:13]line СДАЧА: 0.00 [08:43:13]line НСП 1% : 8.85 [08:43:13]line НДС 12% : 106.25 [08:43:13]line Наличными: 1000.00 [08:43:13]line Безнал.: 0.00 [08:43:13]line Место: АЗС № 90 "Партнер Нефть" [08:43:13]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [08:43:13]line СНО: Общий режим [08:43:13]line Чек 39 25.09.2024 08:43 [08:43:13]line Смена: 474 ФФД: 1.0 [08:43:13]line ЗНМ: 0300000120 [08:43:13]line РНМ: 0000000000091831 [08:43:13]line Версия ККМ: 001 [08:43:13]line ФМ: 0000000000871830 [08:43:13]line ФД: 116183 [08:43:13]line ФПД: 126693005050142 [08:43:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240925T084314&type=1&operation_type=1&fn_number=0000000000871830&fd_number=116183&fm=126693005050142&tin=02508201610067®Number=0000000000091831&sum=100000 [08:43:14]OFD Sender: Processing packet 116183 [packets to send 482, broken 481] [08:43:14]ProducePacketName [08:43:14]name=ofd_packets/00116183 [08:43:14]OFD Sender: To server: pG, [08:43:14]CommunicateWithHost lk.salyk.kg:30040 [08:43:14]ConnectInit lk.salyk.kg [08:43:14]written 0, free lines is 4095 [08:43:14]Connected sock=10 [08:43:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0C 01 00 00 B6 79 04 01 9C 07 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 00 00 00 F4 03 04 00 22 CD F3 66 0E 04 04 00 DA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 D7 C5 01 00 35 04 06 00 73 3A 03 8F C1 1E 00 18 39 24 AF BC 12 CB [08:43:14]Write to MH i2c: 01 00 00 46 0D 53 [08:43:14]Write i2c OK [08:43:14]MH_I2C_Read... [08:43:14]Read from MH i2c: 01 [08:43:14]MH_I2C_Read... [08:43:14]Read from MH i2c: 01 07 00 [08:43:14]MH_I2C_Read... [08:43:14]Read from MH i2c: 01 07 00 46 0D 00 00 00 00 00 47 0C AD [08:43:14]RasterBufferAndPrint [08:43:14]line [08:43:14]line [08:43:14]line [08:43:14]line [08:43:14]line [08:43:14]written 0, free lines is 3148 [08:43:14]MH_Cut [08:43:14]Write to MH i2c: D1 01 00 4D 0D 01 2C [08:43:14]Write i2c OK [08:43:14]MH_I2C_Read... [08:43:14]Read from MH i2c: D1 [08:43:14]MH_I2C_Read... [08:43:14]Read from MH i2c: D1 01 00 [08:43:14]MH_I2C_Read... [08:43:14]Read from MH i2c: D1 01 00 4D 0D 00 2B [08:43:14]Write to MH i2c: 01 00 00 4E 0D 5B [08:43:14]Write i2c OK [08:43:14]MH_I2C_Read... [08:43:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 BE 99 47 00 BA C5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 D7 C5 01 00 F4 03 04 00 5E 72 F3 66 B6 04 01 00 00 EE B6 79 A1 10 82 4D 83 [08:43:14]CommunicateWithHost err = 0 [08:43:14]CheckOFDResponse [08:43:14]1017 (14) - 77093643461234 [08:43:14]1041 (16) - 0000000000871830 [08:43:14]1040 (4) - 116183 [08:43:14]1012 (4) - 25.09.2024 02:15 [08:43:14]1206 (1) - 0 [08:43:14]OFD Sender: Remove packet 116183 [08:43:14]ProducePacketName [08:43:14]name=ofd_packets/00116183 [08:43:14]NVStorageDeleteData [08:43:15]OFD Sender: No OFD packet to send [08:43:16]*** Cut start [08:43:16]*** Partial cut [08:43:16]*** CUTSNS_PIN = 1 [08:43:16]*** CUTSNS_PIN = 0 [08:43:16]*** Brake cut motor [08:43:16]Read from MH i2c: 01 [08:43:16]MH_I2C_Read... [08:43:16]*** Stop cut motor [08:43:16]*** Cut end [08:43:16]Read from MH i2c: 01 07 00 [08:43:16]MH_I2C_Read... [08:43:16]Read from MH i2c: 01 07 00 4E 0D 00 00 00 00 00 FF 0F 70 [08:43:16]process_action close_receipt done [08:43:16]requested_data is exist [08:43:16]produce_requested_data [08:43:16]requested_item fm.sn is exist - process it [08:43:16]wFMCommunicate request_size=4 [08:43:16]MH_SAM_APDU [08:43:16]CAPDU: 80 11 00 00 [08:43:16]Write to MH i2c: E2 08 00 4F 0D 80 11 00 00 00 00 00 00 D6 [08:43:16]Write i2c OK [08:43:16]MH_I2C_Read... [08:43:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:43:16]Read from MH i2c: E2 [08:43:16]MH_I2C_Read... [08:43:16]Read from MH i2c: E2 17 00 [08:43:16]MH_I2C_Read... [08:43:16]Read from MH i2c: E2 17 00 4F 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 24 [08:43:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [08:43:16]wFMCommunicate OK [08:43:16]requested_item fd.num is exist - process it [08:43:16]SAM_PROTO_GetFieldsCounters [08:43:16]wFMCommunicate request_size=4 [08:43:16]MH_SAM_APDU [08:43:16]CAPDU: 80 13 00 00 [08:43:16]Write to MH i2c: E2 08 00 50 0D 80 13 00 00 00 00 00 00 D9 [08:43:16]Write i2c OK [08:43:16]MH_I2C_Read... [08:43:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:43:16]Read from MH i2c: E2 [08:43:16]MH_I2C_Read... [08:43:16]Read from MH i2c: E2 62 00 [08:43:16]MH_I2C_Read... [08:43:16]Read from MH i2c: E2 62 00 50 0D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 D7 C5 01 00 0E 04 04 00 DA 01 00 00 12 04 04 00 27 00 00 00 5E 04 04 00 27 00 00 00 57 04 04 00 28 00 00 00 19 04 04 00 00 00 00 00 90 00 DF [08:43:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 D7 C5 01 00 0E 04 04 00 DA 01 00 00 12 04 04 00 27 00 00 00 5E 04 04 00 27 00 00 00 57 04 04 00 28 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:43:16]wFMCommunicate OK [08:43:16]SAM_PROTO_GetFieldsCounters done [08:43:16]requested_item shift.num is exist - process it [08:43:16]requested_item shift.opened is exist - process it [08:43:16]req_shift_opened [08:43:16]FM_GetShiftState [08:43:16]SAM_PROTO_GetShiftState [08:43:16]wFMCommunicate request_size=4 [08:43:16]MH_SAM_APDU [08:43:16]CAPDU: 80 13 01 00 [08:43:16]Write to MH i2c: E2 08 00 51 0D 80 13 01 00 00 00 00 00 DB [08:43:16]Write i2c OK [08:43:16]MH_I2C_Read... [08:43:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:43:16]Read from MH i2c: E2 [08:43:16]MH_I2C_Read... [08:43:16]Read from MH i2c: E2 0E 00 [08:43:16]MH_I2C_Read... [08:43:16]Read from MH i2c: E2 0E 00 51 0D 00 09 00 01 63 60 F3 66 00 00 00 00 90 00 03 [08:43:16]RAPDU: 09 00 01 63 60 F3 66 00 00 00 00 90 00 [08:43:16]wFMCommunicate OK [08:43:16]SAM_PROTO_GetShiftState done [08:43:16]FM_GetShiftState done [08:43:16]req_shift_opened done [08:43:16]requested_item shift.open_date is exist - process it [08:43:16]req_shift_open_date [08:43:16]req_shift_open_date done [08:43:16]produce_requested_data done [08:43:16]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":116183,"shift.num":474,"shift.opened":1,"shift.open_date":1727225955} [08:43:16]process_action_free close_receipt [08:43:16]json_value_free [08:43:16]json_value_free done [08:43:16]process_json_proto returns [08:43:16]Send response to host [08:43:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":116183,"shift.num":474,"shift.opened":1,"shift.open_date":1727225955}}} [08:43:16]free response buf [08:43:16]execute_script done [08:43:16]execute_script returns [08:43:16]free content buf [08:43:16]Sock 9.Close socket [08:43:16]Sock 9.Thread stoped [08:43:20]OFD Sender: No OFD packet to send [08:43:25]OFD Sender: No OFD packet to send [08:43:30]OFD Sender: No OFD packet to send [08:43:35]OFD Sender: No OFD packet to send [08:43:36]accept exits with 8 [08:43:36]New connection [08:43:36]New thread 3067207012 created [08:43:36]Thread 3067350372 joined [08:43:36]Waiting for new connection... [08:43:36] Sock 8.Parse request [08:43:36]Sock 8.Check first char [08:43:36]Sock 8.First char is OK [08:43:36]request: POST /json_proto HTTP/1.0 [08:43:36]Method: POST [08:43:36]URL: /json_proto [08:43:36]Method is POST - this is cgi request [08:43:36]url: /json_proto [08:43:36]query_string will be loaded in cgi processing [08:43:36]execute_cgi json_proto POST (null) [08:43:36]execute_cgi path=json_proto method=POST [08:43:36]POST find Content-Length [08:43:36]Host: 172.17.41.136:8080 [08:43:36]Content-Length: 684 [08:43:36]Content-Type: application/json [08:43:36] [08:43:36]POST finish read [08:43:36]Found Content-Length = 684 [08:43:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)24619060", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 22.920, "sum" : 1700.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1700.00, "total" : 1700.00, "payments": [ { "type": 0, "sum" : 1700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:43:36]execute_script... [08:43: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)24619060", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 22.920, "sum" : 1700.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1700.00, "total" : 1700.00, "payments": [ { "type": 0, "sum" : 1700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:43:36]POST & json_proto [08:43:36]process_json_proto [08:43:36]json parsed OK: [08:43:36]protocol is kg_v1.0 [08:43:36]action value=close_receipt [08:43:36]process_action close_receipt [08:43:36]cmd_close_receipt [08:43:36]MH_GetDate [08:43:36]Write to MH i2c: F0 00 00 52 0D 4E [08:43:36]Write i2c OK [08:43:36]MH_I2C_Read... [08:43:36]Read from MH i2c: F0 [08:43:36]MH_I2C_Read... [08:43:36]Read from MH i2c: F0 09 00 [08:43:36]MH_I2C_Read... [08:43:36]Read from MH i2c: F0 09 00 52 0D 00 3A CD F3 66 1B D0 5A 64 60 [08:43:36]GetLastDocTimeStamp 1727253794 [08:43:36]current date 1727253818 [08:43:36]FM_GetShiftState [08:43:36]SAM_PROTO_GetShiftState [08:43:36]wFMCommunicate request_size=4 [08:43:36]MH_SAM_APDU [08:43:36]CAPDU: 80 13 01 00 [08:43:36]Write to MH i2c: E2 08 00 53 0D 80 13 01 00 00 00 00 00 DD [08:43:36]Write i2c OK [08:43:36]MH_I2C_Read... [08:43:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:43:36]Read from MH i2c: E2 [08:43:36]MH_I2C_Read... [08:43:36]Read from MH i2c: E2 0E 00 [08:43:36]MH_I2C_Read... [08:43:36]Read from MH i2c: E2 0E 00 53 0D 00 09 00 01 63 60 F3 66 00 00 00 00 90 00 05 [08:43:36]RAPDU: 09 00 01 63 60 F3 66 00 00 00 00 90 00 [08:43:36]wFMCommunicate OK [08:43:36]SAM_PROTO_GetShiftState done [08:43:36]FM_GetShiftState done [08:43:36]opened in 1727225955 [08:43:36]opened+sec_in_day 1727312355 [08:43:36]quantity*price = 170066 [08:43:36]sum+1 = 170067 [08:43:36]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.66 ИТОГО: 1700.00 Внесено: 1700.00 СДАЧА: 0.00 НСП 1% : 15.05 НДС 12% : 180.60 Наличными: 1700.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 40 25.09.2024 08:43 Смена: 474 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 116184 ФПД: 28973816046072 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240925T084338&type=1&operation_type=1&fn_number=0000000000871830&fd_number=116184&fm=28973816046072&tin=02508201610067®Number=0000000000091831&sum=170000 [08:43:37]StoreToDocumentArchive [08:43:37]shift 474 fd 116184 [08:43:37]save to /storage/0474/doc_00116184 [08:43:37]save last doc name /storage/0474/doc_00116184 to /storage/kkm_last_doc_name [08:43:37]save OK [08:43:37]Clear old archive folders... [08:43:37]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:43:37]tlvbuf is 019CEEC0 [08:43:37]SAM_PROTO_ClearQueue [08:43:37]wFMCommunicate request_size=4 [08:43:37]MH_SAM_APDU [08:43:37]CAPDU: 80 09 00 00 [08:43:37]Write to MH i2c: E2 08 00 60 0D 80 09 00 00 00 00 00 00 DF [08:43:37]Write i2c OK [08:43:37]MH_I2C_Read... [08:43:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:43:37]Read from MH i2c: E2 [08:43:37]MH_I2C_Read... [08:43:37]Read from MH i2c: E2 03 00 [08:43:37]MH_I2C_Read... [08:43:37]Read from MH i2c: E2 03 00 60 0D 00 90 00 E1 [08:43:37]RAPDU: 90 00 [08:43:37]wFMCommunicate OK [08:43:37]SAM_PROTO_ClearQueue done [08:43:37]KKMCreateOFDPacket [08:43:37]OFDProtocolAddRootSTLVToBuf [08:43:37]FM_MakeSignedData [08:43:37]FM_MakeSignedData [08:43:37]SAM_PROTO_SignData [08:43:37]wFMCommunicate request_size=4 [08:43:37]MH_SAM_APDU [08:43:37]CAPDU: 80 0D 01 02 [08:43:37]Write to MH i2c: E2 08 00 61 0D 80 0D 01 02 00 00 00 00 E7 [08:43:37]Write i2c OK [08:43:37]MH_I2C_Read... [08:43:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:43:37]Read from MH i2c: E2 [08:43:37]MH_I2C_Read... [08:43:37]Read from MH i2c: E2 03 00 [08:43:37]MH_I2C_Read... [08:43:37]Read from MH i2c: E2 03 00 61 0D 00 90 00 E2 [08:43:37]RAPDU: 90 00 [08:43:37]wFMCommunicate OK [08:43:37]wFMCommunicate request_size=255 [08:43:37]MH_SAM_APDU [08:43:37]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 88 59 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 52 98 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 98 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E1 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8C 46 00 00 00 00 07 04 06 00 10 98 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 00 00 00 F4 03 04 00 3A CD F3 66 0E 04 04 00 DA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 D8 C5 01 00 35 04 06 00 1A [08:43:37]Write to MH i2c: E2 02 01 62 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 88 59 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 52 98 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 98 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E1 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8C 46 00 00 00 00 07 04 06 00 10 98 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 00 00 00 F4 03 04 00 3A CD F3 66 0E 04 04 00 DA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 D8 C5 01 00 35 04 06 00 1A 00 00 F9 [08:43:37]Write i2c OK [08:43:37]MH_I2C_Read... [08:43:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:43:37]Read from MH i2c: E2 [08:43:37]MH_I2C_Read... [08:43:37]Read from MH i2c: E2 03 00 [08:43:37]MH_I2C_Read... [08:43:37]Read from MH i2c: E2 03 00 62 0D 00 90 00 E3 [08:43:37]RAPDU: 90 00 [08:43:37]wFMCommunicate OK [08:43:37]wFMCommunicate request_size=10 [08:43:37]MH_SAM_APDU [08:43:37]CAPDU: 80 0D 02 02 05 59 FE 03 61 F8 [08:43:37]Write to MH i2c: E2 0D 00 63 0D 80 0D 02 02 05 00 59 FE 03 61 F8 00 00 A7 [08:43:37]Write i2c OK [08:43:37]MH_I2C_Read... [08:43:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:43:37]Read from MH i2c: E2 [08:43:37]MH_I2C_Read... [08:43:37]Read from MH i2c: E2 03 00 [08:43:37]MH_I2C_Read... [08:43:37]Read from MH i2c: E2 03 00 63 0D 00 90 00 E4 [08:43:37]RAPDU: 90 00 [08:43:37]wFMCommunicate OK [08:43:37]wFMCommunicate request_size=4 [08:43:37]MH_SAM_APDU [08:43:37]CAPDU: 80 0D 03 02 [08:43:37]Write to MH i2c: E2 08 00 64 0D 80 0D 03 02 00 00 00 00 EC [08:43:37]Write i2c OK [08:43:37]MH_I2C_Read... [08:43:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:43:37]Read from MH i2c: E2 [08:43:37]MH_I2C_Read... [08:43:37]Read from MH i2c: E2 0B 00 [08:43:37]MH_I2C_Read... [08:43:37]Read from MH i2c: E2 0B 00 64 0D 00 16 49 49 89 14 E9 C7 B3 90 00 95 [08:43:37]RAPDU: 16 49 49 89 14 E9 C7 B3 90 00 [08:43:37]wFMCommunicate OK [08:43:37]SAM_PROTO_SignData done [08:43:37]FM_MakeSignedData done [08:43:37]CreateOFDProtocolMessage [08:43:37]wFMCommunicate request_size=4 [08:43:37]MH_SAM_APDU [08:43:37]CAPDU: 80 11 00 00 [08:43:37]Write to MH i2c: E2 08 00 65 0D 80 11 00 00 00 00 00 00 EC [08:43:37]Write i2c OK [08:43:37]MH_I2C_Read... [08:43:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:43:37]Read from MH i2c: E2 [08:43:37]MH_I2C_Read... [08:43:37]Read from MH i2c: E2 17 00 [08:43:37]MH_I2C_Read... [08:43:37]Read from MH i2c: E2 17 00 65 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 3A [08:43:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [08:43:37]wFMCommunicate OK [08:43:37]CreateOFDProtocolMessage done [08:43:37]OFDSenderStorePacket 116184 [08:43:37]StoreOFDPacket docnum=116184 [08:43:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0F 01 00 00 BC 62 07 01 54 C7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 88 59 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 52 98 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 98 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E1 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8C 46 00 00 00 00 07 04 06 00 10 98 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 00 00 00 F4 03 04 00 3A CD F3 66 0E 04 04 00 DA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 D8 C5 01 00 35 04 06 00 1A 59 FE 03 61 F8 16 49 49 89 14 E9 C7 B3 [08:43:37]CheckFolder [08:43:37]dirname=/storage/ofd_packets [08:43:37]CheckFolder done [08:43:37]ProducePacketName [08:43:37]name=ofd_packets/00116184 [08:43:37]NVStorageSaveData ofd_packets/00116184 [08:43:37]File name is /storage/ofd_packets/00116184 [08:43:37]Write 301 bytes [08:43:37]NVStorageSaveData done [08:43:37]OFDSenderStorePacket done [08:43:37]KKMCreateOFDPacket done [08:43:37]NVStorageSaveData kkm_last_timestamp [08:43:37]File name is /storage/kkm_last_timestamp [08:43:37]Write 4 bytes [08:43:37]NVStorageSaveData done [08:43:37]OFD Sender: Processing packet 116184 [packets to send 482, broken 481] [08:43:37]ProducePacketName [08:43:37]name=ofd_packets/00116184 [08:43:37]OFD Sender: To server: pG, [08:43:37]CommunicateWithHost lk.salyk.kg:30040 [08:43:37]ConnectInit lk.salyk.kg [08:43:37]ExternCall_PrintAddStr [08:43:37]wPrintStart [08:43:37]Write to MH i2c: 01 00 00 66 0D 73 [08:43:37]Write i2c OK [08:43:37]MH_I2C_Read... [08:43:37]Read from MH i2c: 01 [08:43:37]MH_I2C_Read... [08:43:37]Read from MH i2c: 01 07 00 [08:43:37]MH_I2C_Read... [08:43:37]Read from MH i2c: 01 07 00 66 0D 00 00 00 00 00 FF 0F 88 [08:43:37]RasterBufferAndPrint [08:43:37]line Счет N : (1)24619060 [08:43:37]line ИНН: 02508201610067 [08:43:37]line Контрольно-Кассовый Чек [08:43:37]line ПРОДАЖА [08:43:37]line ТРК (МРК, ГНК) : 42 [08:43:37]line Товар: 2710124500 [08:43:37]line Аи-95-К-5 [08:43:37]line 22.920 * 74.20 [08:43:37]line = 1700.66 [08:43:37]line НДС 12% НСП 1% [08:43:37]line > о реализуемом товаре [08:43:37]line ОКРУГЛЕНИЕ: -0.66 [08:43:37]line ИТОГО: 1700.00 [08:43:37]line Внесено: 1700.00 [08:43:37]line СДАЧА: 0.00 [08:43:37]line НСП 1% : 15.05 [08:43:37]line НДС 12% : 180.60 [08:43:37]line Наличными: 1700.00 [08:43:37]line Безнал.: 0.00 [08:43:37]line Место: АЗС № 90 "Партнер Нефть" [08:43:37]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [08:43:37]line СНО: Общий режим [08:43:37]line Чек 40 25.09.2024 08:43 [08:43:37]line Смена: 474 ФФД: 1.0 [08:43:37]line ЗНМ: 0300000120 [08:43:37]line РНМ: 0000000000091831 [08:43:37]line Версия ККМ: 001 [08:43:37]line ФМ: 0000000000871830 [08:43:37]line ФД: 116184 [08:43:37]line ФПД: 28973816046072 [08:43:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240925T084338&type=1&operation_type=1&fn_number=0000000000871830&fd_number=116184&fm=28973816046072&tin=02508201610067®Number=0000000000091831&sum=170000 [08:43:38]written 0, free lines is 4095 [08:43:38]Connected sock=11 [08:43:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0F 01 00 00 BC 62 07 01 54 C7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 88 59 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 52 98 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 98 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E1 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8C 46 00 00 00 00 07 04 06 00 10 98 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 00 00 00 F4 03 04 00 3A CD F3 66 0E 04 04 00 DA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 D8 C5 01 00 35 04 06 00 1A 59 FE 03 61 F8 16 49 49 89 14 E9 C7 B3 [08:43:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 25 AB 47 00 53 40 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 D8 C5 01 00 F4 03 04 00 76 72 F3 66 B6 04 01 00 00 5F 2E 30 63 80 50 FC EE [08:43:38]CommunicateWithHost err = 0 [08:43:38]CheckOFDResponse [08:43:38]1017 (14) - 77093643461234 [08:43:38]1041 (16) - 0000000000871830 [08:43:38]1040 (4) - 116184 [08:43:38]1012 (4) - 25.09.2024 02:16 [08:43:38]1206 (1) - 0 [08:43:38]OFD Sender: Remove packet 116184 [08:43:38]ProducePacketName [08:43:38]name=ofd_packets/00116184 [08:43:38]NVStorageDeleteData [08:43:38]Write to MH i2c: 01 00 00 90 0D 9D [08:43:38]Write i2c OK [08:43:38]MH_I2C_Read... [08:43:38]Read from MH i2c: 01 [08:43:38]MH_I2C_Read... [08:43:38]Read from MH i2c: 01 07 00 [08:43:38]MH_I2C_Read... [08:43:38]Read from MH i2c: 01 07 00 90 0D 00 00 00 00 00 4E 0C FE [08:43:38]RasterBufferAndPrint [08:43:38]line [08:43:38]line [08:43:38]line [08:43:38]line [08:43:38]line [08:43:38]written 0, free lines is 3154 [08:43:38]MH_Cut [08:43:38]Write to MH i2c: D1 01 00 97 0D 01 76 [08:43:38]Write i2c OK [08:43:38]MH_I2C_Read... [08:43:38]Read from MH i2c: D1 [08:43:38]MH_I2C_Read... [08:43:38]Read from MH i2c: D1 01 00 [08:43:38]MH_I2C_Read... [08:43:38]Read from MH i2c: D1 01 00 97 0D 00 75 [08:43:38]Write to MH i2c: 01 00 00 98 0D A5 [08:43:38]Write i2c OK [08:43:38]MH_I2C_Read... [08:43:39]OFD Sender: No OFD packet to send [08:43:39]*** Cut start [08:43:39]*** Partial cut [08:43:39]*** CUTSNS_PIN = 1 [08:43:40]*** CUTSNS_PIN = 0 [08:43:40]*** Brake cut motor [08:43:40]Read from MH i2c: 01 [08:43:40]MH_I2C_Read... [08:43:40]*** Stop cut motor [08:43:40]*** Cut end [08:43:40]Read from MH i2c: 01 07 00 [08:43:40]MH_I2C_Read... [08:43:40]Read from MH i2c: 01 07 00 98 0D 00 00 00 00 00 FF 0F BA [08:43:40]process_action close_receipt done [08:43:40]requested_data is exist [08:43:40]produce_requested_data [08:43:40]requested_item fm.sn is exist - process it [08:43:40]wFMCommunicate request_size=4 [08:43:40]MH_SAM_APDU [08:43:40]CAPDU: 80 11 00 00 [08:43:40]Write to MH i2c: E2 08 00 99 0D 80 11 00 00 00 00 00 00 20 [08:43:40]Write i2c OK [08:43:40]MH_I2C_Read... [08:43:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:43:40]Read from MH i2c: E2 [08:43:40]MH_I2C_Read... [08:43:40]Read from MH i2c: E2 17 00 [08:43:40]MH_I2C_Read... [08:43:40]Read from MH i2c: E2 17 00 99 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 6E [08:43:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [08:43:40]wFMCommunicate OK [08:43:40]requested_item fd.num is exist - process it [08:43:40]SAM_PROTO_GetFieldsCounters [08:43:40]wFMCommunicate request_size=4 [08:43:40]MH_SAM_APDU [08:43:40]CAPDU: 80 13 00 00 [08:43:40]Write to MH i2c: E2 08 00 9A 0D 80 13 00 00 00 00 00 00 23 [08:43:40]Write i2c OK [08:43:40]MH_I2C_Read... [08:43:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:43:40]Read from MH i2c: E2 [08:43:40]MH_I2C_Read... [08:43:40]Read from MH i2c: E2 62 00 [08:43:40]MH_I2C_Read... [08:43:40]Read from MH i2c: E2 62 00 9A 0D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 D8 C5 01 00 0E 04 04 00 DA 01 00 00 12 04 04 00 28 00 00 00 5E 04 04 00 28 00 00 00 57 04 04 00 29 00 00 00 19 04 04 00 00 00 00 00 90 00 2D [08:43:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 D8 C5 01 00 0E 04 04 00 DA 01 00 00 12 04 04 00 28 00 00 00 5E 04 04 00 28 00 00 00 57 04 04 00 29 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:43:40]wFMCommunicate OK [08:43:40]SAM_PROTO_GetFieldsCounters done [08:43:40]requested_item shift.num is exist - process it [08:43:40]requested_item shift.opened is exist - process it [08:43:40]req_shift_opened [08:43:40]FM_GetShiftState [08:43:40]SAM_PROTO_GetShiftState [08:43:40]wFMCommunicate request_size=4 [08:43:40]MH_SAM_APDU [08:43:40]CAPDU: 80 13 01 00 [08:43:40]Write to MH i2c: E2 08 00 9B 0D 80 13 01 00 00 00 00 00 25 [08:43:40]Write i2c OK [08:43:40]MH_I2C_Read... [08:43:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:43:40]Read from MH i2c: E2 [08:43:40]MH_I2C_Read... [08:43:40]Read from MH i2c: E2 0E 00 [08:43:40]MH_I2C_Read... [08:43:40]Read from MH i2c: E2 0E 00 9B 0D 00 09 00 01 63 60 F3 66 00 00 00 00 90 00 4D [08:43:40]RAPDU: 09 00 01 63 60 F3 66 00 00 00 00 90 00 [08:43:40]wFMCommunicate OK [08:43:40]SAM_PROTO_GetShiftState done [08:43:40]FM_GetShiftState done [08:43:40]req_shift_opened done [08:43:40]requested_item shift.open_date is exist - process it [08:43:40]req_shift_open_date [08:43:40]req_shift_open_date done [08:43:40]produce_requested_data done [08:43:40]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":116184,"shift.num":474,"shift.opened":1,"shift.open_date":1727225955} [08:43:40]process_action_free close_receipt [08:43:40]json_value_free [08:43:40]json_value_free done [08:43:40]process_json_proto returns [08:43:40]Send response to host [08:43:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":116184,"shift.num":474,"shift.opened":1,"shift.open_date":1727225955}}} [08:43:40]free response buf [08:43:40]execute_script done [08:43:40]execute_script returns [08:43:40]free content buf [08:43:40]Sock 8.Close socket [08:43:40]Sock 8.Thread stoped [08:43:44]OFD Sender: No OFD packet to send [08:43:49]OFD Sender: No OFD packet to send [08:43:54]OFD Sender: No OFD packet to send [08:43:59]OFD Sender: No OFD packet to send [08:44:04]OFD Sender: No OFD packet to send [08:44:09]OFD Sender: No OFD packet to send [08:44:14]OFD Sender: No OFD packet to send [08:44:19]OFD Sender: No OFD packet to send [08:44:24]OFD Sender: No OFD packet to send [08:44:29]OFD Sender: No OFD packet to send [08:44:34]OFD Sender: No OFD packet to send [08:44:39]OFD Sender: No OFD packet to send [08:44:44]OFD Sender: No OFD packet to send [08:44:49]OFD Sender: No OFD packet to send [08:44:54]OFD Sender: No OFD packet to send [08:44:59]OFD Sender: No OFD packet to send [08:45:04]OFD Sender: No OFD packet to send [08:45:09]OFD Sender: No OFD packet to send [08:45:14]OFD Sender: No OFD packet to send [08:45:19]OFD Sender: No OFD packet to send [08:45:24]OFD Sender: No OFD packet to send [08:45:29]OFD Sender: No OFD packet to send [08:45:34]OFD Sender: No OFD packet to send [08:45:39]OFD Sender: No OFD packet to send [08:45:44]OFD Sender: No OFD packet to send [08:45:49]OFD Sender: No OFD packet to send [08:45:54]OFD Sender: No OFD packet to send [08:45:59]OFD Sender: No OFD packet to send [08:46:04]OFD Sender: No OFD packet to send [08:46:09]OFD Sender: No OFD packet to send [08:46:14]OFD Sender: No OFD packet to send [08:46:19]OFD Sender: No OFD packet to send [08:46:24]OFD Sender: No OFD packet to send [08:46:29]OFD Sender: No OFD packet to send [08:46:34]OFD Sender: No OFD packet to send [08:46:39]OFD Sender: No OFD packet to send [08:46:44]OFD Sender: No OFD packet to send [08:46:49]OFD Sender: No OFD packet to send [08:46:54]OFD Sender: No OFD packet to send [08:46:59]OFD Sender: No OFD packet to send [08:47:04]OFD Sender: No OFD packet to send [08:47:09]OFD Sender: No OFD packet to send [08:47:14]OFD Sender: No OFD packet to send [08:47:19]OFD Sender: No OFD packet to send [08:47:24]OFD Sender: No OFD packet to send [08:47:29]OFD Sender: No OFD packet to send [08:47:34]OFD Sender: No OFD packet to send [08:47:39]OFD Sender: No OFD packet to send [08:47:44]OFD Sender: No OFD packet to send [08:47:49]OFD Sender: No OFD packet to send [08:47:54]OFD Sender: No OFD packet to send [08:47:59]OFD Sender: No OFD packet to send [08:48:04]OFD Sender: No OFD packet to send [08:48:09]OFD Sender: No OFD packet to send [08:48:14]OFD Sender: No OFD packet to send [08:48:19]OFD Sender: No OFD packet to send [08:48:24]OFD Sender: No OFD packet to send [08:48:26]int [08:48:26]Write to MH i2c: 01 00 00 9C 0D A9 [08:48:26]Write i2c OK [08:48:26]MH_I2C_Read... [08:48:26]Read from MH i2c: 01 [08:48:26]MH_I2C_Read... [08:48:26]Read from MH i2c: 01 07 00 [08:48:26]MH_I2C_Read... [08:48:26]Read from MH i2c: 01 07 00 9C 0D 00 00 00 00 00 FF 0F BE [08:48:26]state=0 [08:48:26]int [08:48:26]Write to MH i2c: 01 00 00 9D 0D AA [08:48:26]*** FLAG_PRN_PAP1 set [08:48:26]*** FLAG_PRN_PAP1 reset [08:48:26]*** FLAG_PRN_PAP1 set [08:48:26]Write i2c OK [08:48:26]MH_I2C_Read... [08:48:26]Read from MH i2c: 01 [08:48:26]MH_I2C_Read... [08:48:26]Read from MH i2c: 01 07 00 [08:48:26]MH_I2C_Read... [08:48:26]Read from MH i2c: 01 07 00 9D 0D 00 01 00 00 00 FF 0F C0 [08:48:26]state=0 [08:48:26]No paper [08:48:26]int [08:48:26]Write to MH i2c: 01 00 00 9E 0D AB [08:48:26]*** FLAG_PRN_PAP2 set [08:48:26]Write i2c OK [08:48:26]MH_I2C_Read... [08:48:26]Read from MH i2c: 01 [08:48:26]MH_I2C_Read... [08:48:26]Read from MH i2c: 01 07 00 [08:48:26]MH_I2C_Read... [08:48:26]Read from MH i2c: 01 07 00 9E 0D 00 03 00 00 00 FF 0F C3 [08:48:26]state=0 [08:48:26]No paper [08:48:26]Cover opened [08:48:28]int [08:48:28]Write to MH i2c: 01 00 00 9F 0D AC [08:48:28]*** FLAG_PRN_PAP2 reset [08:48:28]Write i2c OK [08:48:28]MH_I2C_Read... [08:48:28]Read from MH i2c: 01 [08:48:28]MH_I2C_Read... [08:48:28]Read from MH i2c: 01 07 00 [08:48:28]MH_I2C_Read... [08:48:28]Read from MH i2c: 01 07 00 9F 0D 00 01 00 00 00 FF 0F C2 [08:48:28]state=3 [08:48:28]No paper [08:48:28]Cover closed [08:48:28]int [08:48:28]Write to MH i2c: 01 00 00 A0 0D AD [08:48:28]*** FLAG_PRN_PAP2 set [08:48:28]Write i2c OK [08:48:28]MH_I2C_Read... [08:48:28]Read from MH i2c: 01 [08:48:28]MH_I2C_Read... [08:48:28]Read from MH i2c: 01 07 00 [08:48:28]MH_I2C_Read... [08:48:28]Read from MH i2c: 01 07 00 A0 0D 00 03 00 00 00 FF 0F C5 [08:48:28]state=0 [08:48:28]No paper [08:48:28]Cover opened [08:48:29]OFD Sender: No OFD packet to send [08:48:33]Write to MH i2c: 01 00 00 A1 0D AE [08:48:33]Write i2c OK [08:48:33]MH_I2C_Read... [08:48:33]Read from MH i2c: 01 [08:48:33]MH_I2C_Read... [08:48:33]Read from MH i2c: 01 07 00 [08:48:33]MH_I2C_Read... [08:48:33]Read from MH i2c: 01 07 00 A1 0D 00 03 00 00 00 FF 0F C6 [08:48:33]state=3 [08:48:33]No paper [08:48:33]Cover opened [08:48:34]OFD Sender: No OFD packet to send [08:48:36]int [08:48:36]Write to MH i2c: 01 00 00 A2 0D AF [08:48:36]*** FLAG_PRN_PAP2 reset [08:48:36]Write i2c OK [08:48:36]MH_I2C_Read... [08:48:36]Read from MH i2c: 01 [08:48:36]MH_I2C_Read... [08:48:36]Read from MH i2c: 01 07 00 [08:48:36]MH_I2C_Read... [08:48:36]Read from MH i2c: 01 07 00 A2 0D 00 01 00 00 00 FF 0F C5 [08:48:36]state=3 [08:48:36]No paper [08:48:36]Cover closed [08:48:36]int [08:48:36]Write to MH i2c: 01 00 00 A3 0D B0 [08:48:36]*** FLAG_PRN_PAP1 reset [08:48:36]Write i2c OK [08:48:36]MH_I2C_Read... [08:48:36]Read from MH i2c: 01 [08:48:36]MH_I2C_Read... [08:48:36]Read from MH i2c: 01 07 00 [08:48:36]MH_I2C_Read... [08:48:36]Read from MH i2c: 01 07 00 A3 0D 00 00 00 00 00 FF 0F C5 [08:48:36]state=0 [08:48:39]OFD Sender: No OFD packet to send [08:48:44]OFD Sender: No OFD packet to send [08:48:49]OFD Sender: No OFD packet to send [08:48:54]OFD Sender: No OFD packet to send [08:48:59]OFD Sender: No OFD packet to send [08:49:04]OFD Sender: No OFD packet to send [08:49:09]OFD Sender: No OFD packet to send [08:49:14]OFD Sender: No OFD packet to send [08:49:19]OFD Sender: No OFD packet to send [08:49:24]OFD Sender: No OFD packet to send [08:49:29]OFD Sender: No OFD packet to send [08:49:34]OFD Sender: No OFD packet to send [08:49:39]OFD Sender: No OFD packet to send [08:49:44]OFD Sender: No OFD packet to send [08:49:49]OFD Sender: No OFD packet to send [08:49:54]OFD Sender: No OFD packet to send [08:49:59]OFD Sender: No OFD packet to send [08:50:04]OFD Sender: No OFD packet to send [08:50:09]OFD Sender: No OFD packet to send [08:50:15]OFD Sender: No OFD packet to send [08:50:20]OFD Sender: No OFD packet to send [08:50:25]OFD Sender: No OFD packet to send [08:50:30]OFD Sender: No OFD packet to send [08:50:35]OFD Sender: No OFD packet to send [08:50:40]OFD Sender: No OFD packet to send [08:50:45]OFD Sender: No OFD packet to send [08:50:50]OFD Sender: No OFD packet to send [08:50:55]OFD Sender: No OFD packet to send [08:51:00]OFD Sender: No OFD packet to send [08:51:05]OFD Sender: No OFD packet to send [08:51:10]OFD Sender: No OFD packet to send [08:51:15]OFD Sender: No OFD packet to send [08:51:20]OFD Sender: No OFD packet to send [08:51:25]OFD Sender: No OFD packet to send [08:51:30]OFD Sender: No OFD packet to send [08:51:35]OFD Sender: No OFD packet to send [08:51:40]OFD Sender: No OFD packet to send [08:51:45]OFD Sender: No OFD packet to send [08:51:50]OFD Sender: No OFD packet to send [08:51:55]OFD Sender: No OFD packet to send [08:52:00]OFD Sender: No OFD packet to send [08:52:05]OFD Sender: No OFD packet to send [08:52:10]OFD Sender: No OFD packet to send [08:52:15]OFD Sender: No OFD packet to send [08:52:20]OFD Sender: No OFD packet to send [08:52:25]OFD Sender: No OFD packet to send [08:52:30]OFD Sender: No OFD packet to send [08:52:35]OFD Sender: No OFD packet to send [08:52:40]OFD Sender: No OFD packet to send [08:52:45]OFD Sender: No OFD packet to send [08:52:50]OFD Sender: No OFD packet to send [08:52:55]OFD Sender: No OFD packet to send [08:53:00]OFD Sender: No OFD packet to send [08:53:05]OFD Sender: No OFD packet to send [08:53:10]OFD Sender: No OFD packet to send [08:53:15]OFD Sender: No OFD packet to send [08:53:20]OFD Sender: No OFD packet to send [08:53:25]OFD Sender: No OFD packet to send [08:53:30]OFD Sender: No OFD packet to send [08:53:35]OFD Sender: No OFD packet to send [08:53:40]OFD Sender: No OFD packet to send [08:53:45]OFD Sender: No OFD packet to send [08:53:50]OFD Sender: No OFD packet to send [08:53:55]OFD Sender: No OFD packet to send [08:54:00]OFD Sender: No OFD packet to send [08:54:05]OFD Sender: No OFD packet to send [08:54:10]OFD Sender: No OFD packet to send [08:54:15]OFD Sender: No OFD packet to send [08:54:20]OFD Sender: No OFD packet to send [08:54:25]OFD Sender: No OFD packet to send [08:54:30]OFD Sender: No OFD packet to send [08:54:35]OFD Sender: No OFD packet to send [08:54:40]OFD Sender: No OFD packet to send [08:54:45]OFD Sender: No OFD packet to send [08:54:50]OFD Sender: No OFD packet to send [08:54:55]OFD Sender: No OFD packet to send [08:55:00]OFD Sender: No OFD packet to send [08:55:05]OFD Sender: No OFD packet to send [08:55:06]accept exits with 9 [08:55:06]New connection [08:55:06]New thread 3067350372 created [08:55:06]Thread 3067207012 joined [08:55:06]Waiting for new connection... [08:55:06] Sock 9.Parse request [08:55:06]Sock 9.Check first char [08:55:06]Sock 9.First char is OK [08:55:06]request: POST /json_proto HTTP/1.0 [08:55:06]Method: POST [08:55:06]URL: /json_proto [08:55:06]Method is POST - this is cgi request [08:55:06]url: /json_proto [08:55:06]query_string will be loaded in cgi processing [08:55:06]execute_cgi json_proto POST (null) [08:55:06]execute_cgi path=json_proto method=POST [08:55:06]POST find Content-Length [08:55:06]Host: 172.17.41.136:8080 [08:55:06]Content-Length: 805 [08:55:06]Content-Type: application/json [08:55:06] [08:55:06]POST finish read [08:55:06]Found Content-Length = 805 [08:55:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)344364", "tax_sys" : 0, "items" : [ { "code": "2000036230011", "name": "\u041A\u043E\u0444\u0435 \u041B\u0430\u0442\u0442\u0435 XL(GABB TRADE)", "price" : 130.00, "quantity" : 2.000, "sum" : 260.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 260.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:55:06]execute_script... [08:55: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 : (3)344364", "tax_sys" : 0, "items" : [ { "code": "2000036230011", "name": "\u041A\u043E\u0444\u0435 \u041B\u0430\u0442\u0442\u0435 XL(GABB TRADE)", "price" : 130.00, "quantity" : 2.000, "sum" : 260.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 260.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:55:06]POST & json_proto [08:55:06]process_json_proto [08:55:06]json parsed OK: [08:55:06]protocol is kg_v1.0 [08:55:06]action value=close_receipt [08:55:06]process_action close_receipt [08:55:06]cmd_close_receipt [08:55:06]MH_GetDate [08:55:06]Write to MH i2c: F0 00 00 A4 0D A0 [08:55:06]Write i2c OK [08:55:06]MH_I2C_Read... [08:55:06]Read from MH i2c: F0 [08:55:06]MH_I2C_Read... [08:55:06]Read from MH i2c: F0 09 00 [08:55:06]MH_I2C_Read... [08:55:06]Read from MH i2c: F0 09 00 A4 0D 00 EC CF F3 66 1B D0 5A 64 66 [08:55:06]GetLastDocTimeStamp 1727253818 [08:55:06]current date 1727254508 [08:55:06]FM_GetShiftState [08:55:06]SAM_PROTO_GetShiftState [08:55:06]wFMCommunicate request_size=4 [08:55:06]MH_SAM_APDU [08:55:06]CAPDU: 80 13 01 00 [08:55:06]Write to MH i2c: E2 08 00 A5 0D 80 13 01 00 00 00 00 00 2F [08:55:06]Write i2c OK [08:55:06]MH_I2C_Read... [08:55:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:55:06]Read from MH i2c: E2 [08:55:06]MH_I2C_Read... [08:55:06]Read from MH i2c: E2 0E 00 [08:55:06]MH_I2C_Read... [08:55:06]Read from MH i2c: E2 0E 00 A5 0D 00 09 00 01 63 60 F3 66 00 00 00 00 90 00 57 [08:55:06]RAPDU: 09 00 01 63 60 F3 66 00 00 00 00 90 00 [08:55:06]wFMCommunicate OK [08:55:06]SAM_PROTO_GetShiftState done [08:55:06]FM_GetShiftState done [08:55:06]opened in 1727225955 [08:55:06]opened+sec_in_day 1727312355 [08:55:06]quantity*price = 26000 [08:55:06]sum+1 = 26001 [08:55:06]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 260.00 НСП 1% : 2.30 НДС 12% : 27.61 Наличными: 0.00 Безнал.: 260.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 41 25.09.2024 08:55 Смена: 474 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000871830 ФД: 116185 ФПД: 183743091608441 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240925T085508&type=1&operation_type=1&fn_number=0000000000871830&fd_number=116185&fm=183743091608441&tin=02508201610067®Number=0000000000091831&sum=26000 0 [08:55:07]StoreToDocumentArchive [08:55:07]shift 474 fd 116185 [08:55:07]save to /storage/0474/doc_00116185 [08:55:07]save last doc name /storage/0474/doc_00116185 to /storage/kkm_last_doc_name [08:55:07]save OK [08:55:07]Clear old archive folders... [08:55:07]ProcessDocumentItem done err = 0, tmpTLVsize=276 [08:55:07]tlvbuf is 019C2790 [08:55:07]SAM_PROTO_ClearQueue [08:55:07]wFMCommunicate request_size=4 [08:55:07]MH_SAM_APDU [08:55:07]CAPDU: 80 09 00 00 [08:55:07]Write to MH i2c: E2 08 00 B2 0D 80 09 00 00 00 00 00 00 31 [08:55:07]Write i2c OK [08:55:07]MH_I2C_Read... [08:55:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:55:07]Read from MH i2c: E2 [08:55:07]MH_I2C_Read... [08:55:07]Read from MH i2c: E2 03 00 [08:55:07]MH_I2C_Read... [08:55:07]Read from MH i2c: E2 03 00 B2 0D 00 90 00 33 [08:55:07]RAPDU: 90 00 [08:55:07]wFMCommunicate OK [08:55:07]SAM_PROTO_ClearQueue done [08:55:07]KKMCreateOFDPacket [08:55:07]OFDProtocolAddRootSTLVToBuf [08:55:07]FM_MakeSignedData [08:55:07]FM_MakeSignedData [08:55:07]SAM_PROTO_SignData [08:55:07]wFMCommunicate request_size=4 [08:55:07]MH_SAM_APDU [08:55:07]CAPDU: 80 0D 01 02 [08:55:07]Write to MH i2c: E2 08 00 B3 0D 80 0D 01 02 00 00 00 00 39 [08:55:07]Write i2c OK [08:55:07]MH_I2C_Read... [08:55:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:55:08]Read from MH i2c: E2 [08:55:08]MH_I2C_Read... [08:55:08]Read from MH i2c: E2 03 00 [08:55:08]MH_I2C_Read... [08:55:08]Read from MH i2c: E2 03 00 B3 0D 00 90 00 34 [08:55:08]RAPDU: 90 00 [08:55:08]wFMCommunicate OK [08:55:08]wFMCommunicate request_size=255 [08:55:08]MH_SAM_APDU [08:55:08]CAPDU: 80 0D 02 02 FA 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 32 30 30 30 30 33 36 32 33 30 30 31 31 06 04 22 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 90 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 65 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 0A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 90 65 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 00 00 00 F4 03 04 00 EC CF F3 66 0E 04 04 00 DA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 [08:55:08]Write to MH i2c: E2 02 01 B4 0D 80 0D 02 02 FA 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 32 30 30 30 30 33 36 32 33 30 30 31 31 06 04 22 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 90 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 65 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 0A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 90 65 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 00 00 00 F4 03 04 00 EC CF F3 66 0E 04 04 00 DA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 00 00 23 [08:55:08]Write i2c OK [08:55:08]MH_I2C_Read... [08:55:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:55:08]Read from MH i2c: E2 [08:55:08]MH_I2C_Read... [08:55:08]Read from MH i2c: E2 03 00 [08:55:08]MH_I2C_Read... [08:55:08]Read from MH i2c: E2 03 00 B4 0D 00 90 00 35 [08:55:08]RAPDU: 90 00 [08:55:08]wFMCommunicate OK [08:55:08]wFMCommunicate request_size=35 [08:55:08]MH_SAM_APDU [08:55:08]CAPDU: 80 0D 02 02 1E 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 D9 C5 01 00 35 04 06 00 A7 1D 05 B4 8B 79 [08:55:08]Write to MH i2c: E2 26 00 B5 0D 80 0D 02 02 1E 00 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 D9 C5 01 00 35 04 06 00 A7 1D 05 B4 8B 79 00 00 4A [08:55:08]Write i2c OK [08:55:08]MH_I2C_Read... [08:55:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:55:08]Read from MH i2c: E2 [08:55:08]MH_I2C_Read... [08:55:08]Read from MH i2c: E2 03 00 [08:55:08]MH_I2C_Read... [08:55:08]Read from MH i2c: E2 03 00 B5 0D 00 90 00 36 [08:55:08]RAPDU: 90 00 [08:55:08]wFMCommunicate OK [08:55:08]wFMCommunicate request_size=4 [08:55:08]MH_SAM_APDU [08:55:08]CAPDU: 80 0D 03 02 [08:55:08]Write to MH i2c: E2 08 00 B6 0D 80 0D 03 02 00 00 00 00 3E [08:55:08]Write i2c OK [08:55:08]MH_I2C_Read... [08:55:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:55:08]Read from MH i2c: E2 [08:55:08]MH_I2C_Read... [08:55:08]Read from MH i2c: E2 0B 00 [08:55:08]MH_I2C_Read... [08:55:08]Read from MH i2c: E2 0B 00 B6 0D 00 1B D2 38 0F 3D 79 81 E7 90 00 91 [08:55:08]RAPDU: 1B D2 38 0F 3D 79 81 E7 90 00 [08:55:08]wFMCommunicate OK [08:55:08]SAM_PROTO_SignData done [08:55:08]FM_MakeSignedData done [08:55:08]CreateOFDProtocolMessage [08:55:08]wFMCommunicate request_size=4 [08:55:08]MH_SAM_APDU [08:55:08]CAPDU: 80 11 00 00 [08:55:08]Write to MH i2c: E2 08 00 B7 0D 80 11 00 00 00 00 00 00 3E [08:55:08]Write i2c OK [08:55:08]MH_I2C_Read... [08:55:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:55:08]Read from MH i2c: E2 [08:55:08]MH_I2C_Read... [08:55:08]Read from MH i2c: E2 17 00 [08:55:08]MH_I2C_Read... [08:55:08]Read from MH i2c: E2 17 00 B7 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 8C [08:55:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [08:55:08]wFMCommunicate OK [08:55:08]CreateOFDProtocolMessage done [08:55:08]OFDSenderStorePacket 116185 [08:55:08]StoreOFDPacket docnum=116185 [08:55:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 28 01 00 00 12 22 20 01 BC FD 5A 03 01 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 32 30 30 30 30 33 36 32 33 30 30 31 31 06 04 22 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 90 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 65 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 0A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 90 65 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 00 00 00 F4 03 04 00 EC CF F3 66 0E 04 04 00 DA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 D9 C5 01 00 35 04 06 00 A7 1D 05 B4 8B 79 1B D2 38 0F 3D 79 81 E7 [08:55:08]CheckFolder [08:55:08]dirname=/storage/ofd_packets [08:55:08]CheckFolder done [08:55:08]ProducePacketName [08:55:08]name=ofd_packets/00116185 [08:55:08]NVStorageSaveData ofd_packets/00116185 [08:55:08]File name is /storage/ofd_packets/00116185 [08:55:08]Write 326 bytes [08:55:08]NVStorageSaveData done [08:55:08]OFDSenderStorePacket done [08:55:08]KKMCreateOFDPacket done [08:55:08]NVStorageSaveData kkm_last_timestamp [08:55:08]File name is /storage/kkm_last_timestamp [08:55:08]Write 4 bytes [08:55:08]NVStorageSaveData done [08:55:08]ExternCall_PrintAddStr [08:55:08]wPrintStart [08:55:08]Write to MH i2c: 01 00 00 B8 0D C5 [08:55:08]Write i2c OK [08:55:08]MH_I2C_Read... [08:55:08]Read from MH i2c: 01 [08:55:08]MH_I2C_Read... [08:55:08]Read from MH i2c: 01 07 00 [08:55:08]MH_I2C_Read... [08:55:08]Read from MH i2c: 01 07 00 B8 0D 00 00 00 00 00 FF 0F DA [08:55:08]RasterBufferAndPrint [08:55:08]line Счет N : (3)344364 [08:55:08]line ИНН: 02508201610067 [08:55:08]line Контрольно-Кассовый Чек [08:55:08]line ПРОДАЖА [08:55:08]line Товар: 2000036230011 [08:55:08]line Кофе Латте XL(GABB TRADE) [08:55:08]line 2.000 * 130.00 [08:55:08]line = 260.00 [08:55:08]line НДС 12% НСП 1% [08:55:08]line > о реализуемом товаре [08:55:08]line ИТОГО: 260.00 [08:55:08]line НСП 1% : 2.30 [08:55:08]line НДС 12% : 27.61 [08:55:08]line Наличными: 0.00 [08:55:08]line Безнал.: 260.00 [08:55:08]line Место: АЗС № 90 "Партнер Нефть" [08:55:08]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [08:55:08]line СНО: Общий режим [08:55:08]line Чек 41 25.09.2024 08:55 [08:55:08]line Смена: 474 ФФД: 1.0 [08:55:08]line ЗНМ: 0300000120 [08:55:08]line РНМ: 0000000000091831 [08:55:08]line Версия ККМ: 001 [08:55:08]line Платежная система: Бакай Банк [08:55:08]line ФМ: 0000000000871830 [08:55:08]line ФД: 116185 [08:55:08]line ФПД: 183743091608441 [08:55:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240925T085508&type=1&operation_type=1&fn_number=0000000000871830&fd_number=116185&fm=183743091608441&tin=02508201610067®Number=0000000000091831&sum=26000 [08:55:08]line 0 [08:55:08]OFD Sender: Processing packet 116185 [packets to send 482, broken 481] [08:55:08]ProducePacketName [08:55:08]name=ofd_packets/00116185 [08:55:08]OFD Sender: To server: pG, [08:55:08]CommunicateWithHost lk.salyk.kg:30040 [08:55:08]ConnectInit lk.salyk.kg [08:55:08]written 0, free lines is 4095 [08:55:08]Connected sock=11 [08:55:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 28 01 00 00 12 22 20 01 BC FD 5A 03 01 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 32 30 30 30 30 33 36 32 33 30 30 31 31 06 04 22 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 90 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 65 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 0A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 90 65 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 00 00 00 F4 03 04 00 EC CF F3 66 0E 04 04 00 DA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 D9 C5 01 00 35 04 06 00 A7 1D 05 B4 8B 79 1B D2 38 0F 3D 79 81 E7 [08:55:08]Write to MH i2c: 01 00 00 E1 0D EE [08:55:08]Write i2c OK [08:55:08]MH_I2C_Read... [08:55:08]Read from MH i2c: 01 [08:55:08]MH_I2C_Read... [08:55:08]Read from MH i2c: 01 07 00 [08:55:08]MH_I2C_Read... [08:55:08]Read from MH i2c: 01 07 00 E1 0D 00 00 00 00 00 3F 0C 40 [08:55:08]RasterBufferAndPrint [08:55:08]line [08:55:08]line [08:55:08]line [08:55:08]line [08:55:08]line [08:55:08]written 0, free lines is 3137 [08:55:08]MH_Cut [08:55:08]Write to MH i2c: D1 01 00 E8 0D 01 C7 [08:55:08]Write i2c OK [08:55:08]MH_I2C_Read... [08:55:08]Read from MH i2c: D1 [08:55:09]MH_I2C_Read... [08:55:09]Read from MH i2c: D1 01 00 [08:55:09]MH_I2C_Read... [08:55:09]Read from MH i2c: D1 01 00 E8 0D 00 C6 [08:55:09]Write to MH i2c: 01 00 00 E9 0D F6 [08:55:09]Write i2c OK [08:55:09]MH_I2C_Read... [08:55:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 BF 0D 47 00 B1 91 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 D9 C5 01 00 F4 03 04 00 29 75 F3 66 B6 04 01 00 00 71 60 26 DA CB 35 49 4C [08:55:09]CommunicateWithHost err = 0 [08:55:09]CheckOFDResponse [08:55:09]1017 (14) - 77093643461234 [08:55:09]1041 (16) - 0000000000871830 [08:55:09]1040 (4) - 116185 [08:55:09]1012 (4) - 25.09.2024 02:27 [08:55:09]1206 (1) - 0 [08:55:09]OFD Sender: Remove packet 116185 [08:55:09]ProducePacketName [08:55:09]name=ofd_packets/00116185 [08:55:09]NVStorageDeleteData [08:55:09]OFD Sender: No OFD packet to send [08:55:10]*** Cut start [08:55:10]*** Partial cut [08:55:10]*** CUTSNS_PIN = 1 [08:55:10]*** CUTSNS_PIN = 0 [08:55:10]*** Brake cut motor [08:55:11]Read from MH i2c: 01 [08:55:11]MH_I2C_Read... [08:55:11]*** Stop cut motor [08:55:11]*** Cut end [08:55:11]Read from MH i2c: 01 07 00 [08:55:11]MH_I2C_Read... [08:55:11]Read from MH i2c: 01 07 00 E9 0D 00 00 00 00 00 FF 0F 0B [08:55:11]process_action close_receipt done [08:55:11]requested_data is exist [08:55:11]produce_requested_data [08:55:11]requested_item fm.sn is exist - process it [08:55:11]wFMCommunicate request_size=4 [08:55:11]MH_SAM_APDU [08:55:11]CAPDU: 80 11 00 00 [08:55:11]Write to MH i2c: E2 08 00 EA 0D 80 11 00 00 00 00 00 00 71 [08:55:11]Write i2c OK [08:55:11]MH_I2C_Read... [08:55:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:55:11]Read from MH i2c: E2 [08:55:11]MH_I2C_Read... [08:55:11]Read from MH i2c: E2 17 00 [08:55:11]MH_I2C_Read... [08:55:11]Read from MH i2c: E2 17 00 EA 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 BF [08:55:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [08:55:11]wFMCommunicate OK [08:55:11]requested_item fd.num is exist - process it [08:55:11]SAM_PROTO_GetFieldsCounters [08:55:11]wFMCommunicate request_size=4 [08:55:11]MH_SAM_APDU [08:55:11]CAPDU: 80 13 00 00 [08:55:11]Write to MH i2c: E2 08 00 EB 0D 80 13 00 00 00 00 00 00 74 [08:55:11]Write i2c OK [08:55:11]MH_I2C_Read... [08:55:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:55:11]Read from MH i2c: E2 [08:55:11]MH_I2C_Read... [08:55:11]Read from MH i2c: E2 62 00 [08:55:11]MH_I2C_Read... [08:55:11]Read from MH i2c: E2 62 00 EB 0D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 D9 C5 01 00 0E 04 04 00 DA 01 00 00 12 04 04 00 29 00 00 00 5E 04 04 00 29 00 00 00 57 04 04 00 2A 00 00 00 19 04 04 00 00 00 00 00 90 00 82 [08:55:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 D9 C5 01 00 0E 04 04 00 DA 01 00 00 12 04 04 00 29 00 00 00 5E 04 04 00 29 00 00 00 57 04 04 00 2A 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:55:11]wFMCommunicate OK [08:55:11]SAM_PROTO_GetFieldsCounters done [08:55:11]requested_item shift.num is exist - process it [08:55:11]requested_item shift.opened is exist - process it [08:55:11]req_shift_opened [08:55:11]FM_GetShiftState [08:55:11]SAM_PROTO_GetShiftState [08:55:11]wFMCommunicate request_size=4 [08:55:11]MH_SAM_APDU [08:55:11]CAPDU: 80 13 01 00 [08:55:11]Write to MH i2c: E2 08 00 EC 0D 80 13 01 00 00 00 00 00 76 [08:55:11]Write i2c OK [08:55:11]MH_I2C_Read... [08:55:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:55:11]Read from MH i2c: E2 [08:55:11]MH_I2C_Read... [08:55:11]Read from MH i2c: E2 0E 00 [08:55:11]MH_I2C_Read... [08:55:11]Read from MH i2c: E2 0E 00 EC 0D 00 09 00 01 63 60 F3 66 00 00 00 00 90 00 9E [08:55:11]RAPDU: 09 00 01 63 60 F3 66 00 00 00 00 90 00 [08:55:11]wFMCommunicate OK [08:55:11]SAM_PROTO_GetShiftState done [08:55:11]FM_GetShiftState done [08:55:11]req_shift_opened done [08:55:11]requested_item shift.open_date is exist - process it [08:55:11]req_shift_open_date [08:55:11]req_shift_open_date done [08:55:11]produce_requested_data done [08:55:11]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":116185,"shift.num":474,"shift.opened":1,"shift.open_date":1727225955} [08:55:11]process_action_free close_receipt [08:55:11]json_value_free [08:55:11]json_value_free done [08:55:11]process_json_proto returns [08:55:11]Send response to host [08:55:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":116185,"shift.num":474,"shift.opened":1,"shift.open_date":1727225955}}} [08:55:11]free response buf [08:55:11]execute_script done [08:55:11]execute_script returns [08:55:11]free content buf [08:55:11]Sock 9.Close socket [08:55:11]Sock 9.Thread stoped [08:55:14]OFD Sender: No OFD packet to send [08:55:19]OFD Sender: No OFD packet to send [08:55:24]OFD Sender: No OFD packet to send [08:55:29]OFD Sender: No OFD packet to send [08:55:34]OFD Sender: No OFD packet to send [08:55:39]OFD Sender: No OFD packet to send [08:55:43]accept exits with 8 [08:55:43]New connection [08:55:43]New thread 3067207012 created [08:55:43]Thread 3067350372 joined [08:55:43]Waiting for new connection... [08:55:43] Sock 8.Parse request [08:55:43]Sock 8.Check first char [08:55:43]Sock 8.First char is OK [08:55:43]request: POST /json_proto HTTP/1.0 [08:55:43]Method: POST [08:55:43]URL: /json_proto [08:55:43]Method is POST - this is cgi request [08:55:43]url: /json_proto [08:55:43]query_string will be loaded in cgi processing [08:55:43]execute_cgi json_proto POST (null) [08:55:43]execute_cgi path=json_proto method=POST [08:55:43]POST find Content-Length [08:55:43]Host: 172.17.41.136:8080 [08:55:43]Content-Length: 644 [08:55:43]Content-Type: application/json [08:55:43] [08:55:43]POST finish read [08:55:43]Found Content-Length = 644 [08:55:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)24619069", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 320.000, "sum" : 24384.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 24384.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:55:43]execute_script... [08:55: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)24619069", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 320.000, "sum" : 24384.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 24384.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:55:43]POST & json_proto [08:55:43]process_json_proto [08:55:43]json parsed OK: [08:55:43]protocol is kg_v1.0 [08:55:43]action value=close_receipt [08:55:43]process_action close_receipt [08:55:43]cmd_close_receipt [08:55:43]MH_GetDate [08:55:43]Write to MH i2c: F0 00 00 ED 0D E9 [08:55:43]Write i2c OK [08:55:43]MH_I2C_Read... [08:55:43]Read from MH i2c: F0 [08:55:43]MH_I2C_Read... [08:55:43]Read from MH i2c: F0 09 00 [08:55:43]MH_I2C_Read... [08:55:43]Read from MH i2c: F0 09 00 ED 0D 00 11 D0 F3 66 1B D0 5A 64 D5 [08:55:43]GetLastDocTimeStamp 1727254508 [08:55:43]current date 1727254545 [08:55:43]FM_GetShiftState [08:55:43]SAM_PROTO_GetShiftState [08:55:43]wFMCommunicate request_size=4 [08:55:43]MH_SAM_APDU [08:55:43]CAPDU: 80 13 01 00 [08:55:43]Write to MH i2c: E2 08 00 EE 0D 80 13 01 00 00 00 00 00 78 [08:55:43]Write i2c OK [08:55:43]MH_I2C_Read... [08:55:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:55:43]Read from MH i2c: E2 [08:55:43]MH_I2C_Read... [08:55:43]Read from MH i2c: E2 0E 00 [08:55:43]MH_I2C_Read... [08:55:43]Read from MH i2c: E2 0E 00 EE 0D 00 09 00 01 63 60 F3 66 00 00 00 00 90 00 A0 [08:55:43]RAPDU: 09 00 01 63 60 F3 66 00 00 00 00 90 00 [08:55:43]wFMCommunicate OK [08:55:43]SAM_PROTO_GetShiftState done [08:55:43]FM_GetShiftState done [08:55:43]opened in 1727225955 [08:55:43]opened+sec_in_day 1727312355 [08:55:43]quantity*price = 2438400 [08:55:43]sum+1 = 2438401 [08:55:43]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 24384.00 НСП 1% : 215.79 НДС 12% : 2589.45 Наличными: 24384.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 42 25.09.2024 08:55 Смена: 474 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 116186 ФПД: 143263258850638 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240925T085545&type=1&operation_type=1&fn_number=0000000000871830&fd_number=116186&fm=143263258850638&tin=02508201610067®Number=0000000000091831&sum=2438400 [08:55:45]StoreToDocumentArchive [08:55:45]shift 474 fd 116186 [08:55:45]save to /storage/0474/doc_00116186 [08:55:45]save last doc name /storage/0474/doc_00116186 to /storage/kkm_last_doc_name [08:55:45]save OK [08:55:45]Clear old archive folders... [08:55:45]ProcessDocumentItem done err = 0, tmpTLVsize=248 [08:55:45]tlvbuf is 01898BC0 [08:55:45]SAM_PROTO_ClearQueue [08:55:45]wFMCommunicate request_size=4 [08:55:45]MH_SAM_APDU [08:55:45]CAPDU: 80 09 00 00 [08:55:45]Write to MH i2c: E2 08 00 FB 0D 80 09 00 00 00 00 00 00 7A [08:55:45]Write i2c OK [08:55:45]MH_I2C_Read... [08:55:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:55:45]Read from MH i2c: E2 [08:55:45]MH_I2C_Read... [08:55:45]Read from MH i2c: E2 03 00 [08:55:45]MH_I2C_Read... [08:55:45]Read from MH i2c: E2 03 00 FB 0D 00 90 00 7C [08:55:45]RAPDU: 90 00 [08:55:45]wFMCommunicate OK [08:55:45]SAM_PROTO_ClearQueue done [08:55:45]KKMCreateOFDPacket [08:55:45]OFDProtocolAddRootSTLVToBuf [08:55:45]FM_MakeSignedData [08:55:45]FM_MakeSignedData [08:55:45]SAM_PROTO_SignData [08:55:45]wFMCommunicate request_size=4 [08:55:45]MH_SAM_APDU [08:55:45]CAPDU: 80 0D 01 02 [08:55:45]Write to MH i2c: E2 08 00 FC 0D 80 0D 01 02 00 00 00 00 82 [08:55:45]Write i2c OK [08:55:45]MH_I2C_Read... [08:55:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:55:45]Read from MH i2c: E2 [08:55:45]MH_I2C_Read... [08:55:45]Read from MH i2c: E2 03 00 [08:55:45]MH_I2C_Read... [08:55:45]Read from MH i2c: E2 03 00 FC 0D 00 90 00 7D [08:55:45]RAPDU: 90 00 [08:55:45]wFMCommunicate OK [08:55:45]wFMCommunicate request_size=255 [08:55:45]MH_SAM_APDU [08:55:45]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 00 E2 04 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 00 35 25 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 35 25 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 54 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 F3 03 00 00 00 07 04 06 00 00 35 25 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 00 00 00 F4 03 04 00 11 D0 F3 66 0E 04 04 00 DA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 DA C5 01 00 35 04 06 00 82 4C 13 A7 [08:55:45]Write to MH i2c: E2 02 01 FD 0D 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 00 E2 04 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 00 35 25 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 35 25 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 54 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 F3 03 00 00 00 07 04 06 00 00 35 25 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 00 00 00 F4 03 04 00 11 D0 F3 66 0E 04 04 00 DA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 DA C5 01 00 35 04 06 00 82 4C 13 A7 00 00 29 [08:55:45]Write i2c OK [08:55:45]MH_I2C_Read... [08:55:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:55:45]Read from MH i2c: E2 [08:55:45]MH_I2C_Read... [08:55:45]Read from MH i2c: E2 03 00 [08:55:45]MH_I2C_Read... [08:55:45]Read from MH i2c: E2 03 00 FD 0D 00 90 00 7E [08:55:45]RAPDU: 90 00 [08:55:45]wFMCommunicate OK [08:55:45]wFMCommunicate request_size=7 [08:55:45]MH_SAM_APDU [08:55:45]CAPDU: 80 0D 02 02 02 35 4E [08:55:45]Write to MH i2c: E2 0A 00 FE 0D 80 0D 02 02 02 00 35 4E 00 00 0C [08:55:45]Write i2c OK [08:55:45]MH_I2C_Read... [08:55:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:55:45]Read from MH i2c: E2 [08:55:45]MH_I2C_Read... [08:55:45]Read from MH i2c: E2 03 00 [08:55:45]MH_I2C_Read... [08:55:45]Read from MH i2c: E2 03 00 FE 0D 00 90 00 7F [08:55:45]RAPDU: 90 00 [08:55:45]wFMCommunicate OK [08:55:45]wFMCommunicate request_size=4 [08:55:45]MH_SAM_APDU [08:55:45]CAPDU: 80 0D 03 02 [08:55:45]Write to MH i2c: E2 08 00 FF 0D 80 0D 03 02 00 00 00 00 87 [08:55:45]Write i2c OK [08:55:45]MH_I2C_Read... [08:55:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:55:45]Read from MH i2c: E2 [08:55:45]MH_I2C_Read... [08:55:45]Read from MH i2c: E2 0B 00 [08:55:45]MH_I2C_Read... [08:55:45]Read from MH i2c: E2 0B 00 FF 0D 00 D8 DA 13 6F 6B 00 CE AF 90 00 A4 [08:55:45]RAPDU: D8 DA 13 6F 6B 00 CE AF 90 00 [08:55:45]wFMCommunicate OK [08:55:45]SAM_PROTO_SignData done [08:55:45]FM_MakeSignedData done [08:55:45]CreateOFDProtocolMessage [08:55:45]wFMCommunicate request_size=4 [08:55:45]MH_SAM_APDU [08:55:45]CAPDU: 80 11 00 00 [08:55:45]Write to MH i2c: E2 08 00 00 0E 80 11 00 00 00 00 00 00 88 [08:55:45]Write i2c OK [08:55:45]MH_I2C_Read... [08:55:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:55:45]Read from MH i2c: E2 [08:55:45]MH_I2C_Read... [08:55:45]Read from MH i2c: E2 17 00 [08:55:45]MH_I2C_Read... [08:55:45]Read from MH i2c: E2 17 00 00 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 D6 [08:55:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [08:55:45]wFMCommunicate OK [08:55:45]CreateOFDProtocolMessage done [08:55:45]OFDSenderStorePacket 116186 [08:55:45]StoreOFDPacket docnum=116186 [08:55:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0C 01 00 00 82 47 04 01 E0 40 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 00 E2 04 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 00 35 25 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 35 25 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 54 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 F3 03 00 00 00 07 04 06 00 00 35 25 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 00 00 00 F4 03 04 00 11 D0 F3 66 0E 04 04 00 DA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 DA C5 01 00 35 04 06 00 82 4C 13 A7 35 4E D8 DA 13 6F 6B 00 CE AF [08:55:45]CheckFolder [08:55:45]dirname=/storage/ofd_packets [08:55:45]CheckFolder done [08:55:45]ProducePacketName [08:55:45]name=ofd_packets/00116186 [08:55:45]NVStorageSaveData ofd_packets/00116186 [08:55:45]File name is /storage/ofd_packets/00116186 [08:55:45]Write 298 bytes [08:55:45]NVStorageSaveData done [08:55:45]OFDSenderStorePacket done [08:55:45]KKMCreateOFDPacket done [08:55:45]NVStorageSaveData kkm_last_timestamp [08:55:45]File name is /storage/kkm_last_timestamp [08:55:45]Write 4 bytes [08:55:45]NVStorageSaveData done [08:55:45]ExternCall_PrintAddStr [08:55:45]wPrintStart [08:55:45]Write to MH i2c: 01 00 00 01 0E 0F [08:55:45]Write i2c OK [08:55:45]MH_I2C_Read... [08:55:45]Read from MH i2c: 01 [08:55:45]MH_I2C_Read... [08:55:45]Read from MH i2c: 01 07 00 [08:55:45]MH_I2C_Read... [08:55:45]Read from MH i2c: 01 07 00 01 0E 00 00 00 00 00 FF 0F 24 [08:55:45]RasterBufferAndPrint [08:55:45]line Счет N : (1)24619069 [08:55:45]line ИНН: 02508201610067 [08:55:45]line Контрольно-Кассовый Чек [08:55:45]line ПРОДАЖА [08:55:45]line ТРК (МРК, ГНК) : 11 [08:55:45]line Товар: 2710194210 [08:55:45]line ДТ-К-5 [08:55:45]line 320.000 * 76.20 [08:55:45]line = 24384.00 [08:55:45]line НДС 12% НСП 1% [08:55:45]line > о реализуемом товаре [08:55:45]line ИТОГО: 24384.00 [08:55:45]line НСП 1% : 215.79 [08:55:45]line НДС 12% : 2589.45 [08:55:45]line Наличными: 24384.00 [08:55:45]line Безнал.: 0.00 [08:55:45]line Место: АЗС № 90 "Партнер Нефть" [08:55:45]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [08:55:45]line СНО: Общий режим [08:55:45]line Чек 42 25.09.2024 08:55 [08:55:45]line Смена: 474 ФФД: 1.0 [08:55:45]line ЗНМ: 0300000120 [08:55:45]line РНМ: 0000000000091831 [08:55:45]line Версия ККМ: 001 [08:55:45]line ФМ: 0000000000871830 [08:55:45]line ФД: 116186 [08:55:45]line ФПД: 143263258850638 [08:55:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240925T085545&type=1&operation_type=1&fn_number=0000000000871830&fd_number=116186&fm=143263258850638&tin=02508201610067®Number=0000000000091831&sum=2438400 [08:55:45]OFD Sender: Processing packet 116186 [packets to send 482, broken 481] [08:55:45]ProducePacketName [08:55:45]name=ofd_packets/00116186 [08:55:45]OFD Sender: To server: pG, [08:55:45]CommunicateWithHost lk.salyk.kg:30040 [08:55:45]ConnectInit lk.salyk.kg [08:55:45]written 0, free lines is 4095 [08:55:45]Connected sock=10 [08:55:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0C 01 00 00 82 47 04 01 E0 40 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 00 E2 04 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 00 35 25 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 35 25 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 54 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 F3 03 00 00 00 07 04 06 00 00 35 25 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 00 00 00 F4 03 04 00 11 D0 F3 66 0E 04 04 00 DA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 DA C5 01 00 35 04 06 00 82 4C 13 A7 35 4E D8 DA 13 6F 6B 00 CE AF [08:55:46]Write to MH i2c: 01 00 00 28 0E 36 [08:55:46]Write i2c OK [08:55:46]MH_I2C_Read... [08:55:46]Read from MH i2c: 01 [08:55:46]MH_I2C_Read... [08:55:46]Read from MH i2c: 01 07 00 [08:55:46]MH_I2C_Read... [08:55:46]Read from MH i2c: 01 07 00 28 0E 00 00 00 00 00 8C 0C D5 [08:55:46]RasterBufferAndPrint [08:55:46]line [08:55:46]line [08:55:46]line [08:55:46]line [08:55:46]line [08:55:46]written 0, free lines is 3217 [08:55:46]MH_Cut [08:55:46]Write to MH i2c: D1 01 00 2F 0E 01 0F [08:55:46]Write i2c OK [08:55:46]MH_I2C_Read... [08:55:46]Read from MH i2c: D1 [08:55:46]MH_I2C_Read... [08:55:46]Read from MH i2c: D1 01 00 [08:55:46]MH_I2C_Read... [08:55:46]Read from MH i2c: D1 01 00 2F 0E 00 0E [08:55:46]Write to MH i2c: 01 00 00 30 0E 3E [08:55:46]Write i2c OK [08:55:46]MH_I2C_Read... [08:55:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 94 40 47 00 1F 3F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 DA C5 01 00 F4 03 04 00 4E 75 F3 66 B6 04 01 00 00 CA E5 A1 7C F5 6D 4F 40 [08:55:46]CommunicateWithHost err = 0 [08:55:46]CheckOFDResponse [08:55:46]1017 (14) - 77093643461234 [08:55:46]1041 (16) - 0000000000871830 [08:55:46]1040 (4) - 116186 [08:55:46]1012 (4) - 25.09.2024 02:28 [08:55:46]1206 (1) - 0 [08:55:46]OFD Sender: Remove packet 116186 [08:55:46]ProducePacketName [08:55:46]name=ofd_packets/00116186 [08:55:46]NVStorageDeleteData [08:55:46]OFD Sender: No OFD packet to send [08:55:47]*** Cut start [08:55:47]*** Partial cut [08:55:47]*** CUTSNS_PIN = 1 [08:55:47]*** CUTSNS_PIN = 0 [08:55:47]*** Brake cut motor [08:55:48]Read from MH i2c: 01 [08:55:48]MH_I2C_Read... [08:55:48]*** Stop cut motor [08:55:48]*** Cut end [08:55:48]Read from MH i2c: 01 07 00 [08:55:48]MH_I2C_Read... [08:55:48]Read from MH i2c: 01 07 00 30 0E 00 00 00 00 00 FF 0F 53 [08:55:48]process_action close_receipt done [08:55:48]requested_data is exist [08:55:48]produce_requested_data [08:55:48]requested_item fm.sn is exist - process it [08:55:48]wFMCommunicate request_size=4 [08:55:48]MH_SAM_APDU [08:55:48]CAPDU: 80 11 00 00 [08:55:48]Write to MH i2c: E2 08 00 31 0E 80 11 00 00 00 00 00 00 B9 [08:55:48]Write i2c OK [08:55:48]MH_I2C_Read... [08:55:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:55:48]Read from MH i2c: E2 [08:55:48]MH_I2C_Read... [08:55:48]Read from MH i2c: E2 17 00 [08:55:48]MH_I2C_Read... [08:55:48]Read from MH i2c: E2 17 00 31 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 07 [08:55:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [08:55:48]wFMCommunicate OK [08:55:48]requested_item fd.num is exist - process it [08:55:48]SAM_PROTO_GetFieldsCounters [08:55:48]wFMCommunicate request_size=4 [08:55:48]MH_SAM_APDU [08:55:48]CAPDU: 80 13 00 00 [08:55:48]Write to MH i2c: E2 08 00 32 0E 80 13 00 00 00 00 00 00 BC [08:55:48]Write i2c OK [08:55:48]MH_I2C_Read... [08:55:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:55:48]Read from MH i2c: E2 [08:55:48]MH_I2C_Read... [08:55:48]Read from MH i2c: E2 62 00 [08:55:48]MH_I2C_Read... [08:55:48]Read from MH i2c: E2 62 00 32 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 DA C5 01 00 0E 04 04 00 DA 01 00 00 12 04 04 00 2A 00 00 00 5E 04 04 00 2A 00 00 00 57 04 04 00 2B 00 00 00 19 04 04 00 00 00 00 00 90 00 CE [08:55:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 DA C5 01 00 0E 04 04 00 DA 01 00 00 12 04 04 00 2A 00 00 00 5E 04 04 00 2A 00 00 00 57 04 04 00 2B 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:55:48]wFMCommunicate OK [08:55:48]SAM_PROTO_GetFieldsCounters done [08:55:48]requested_item shift.num is exist - process it [08:55:48]requested_item shift.opened is exist - process it [08:55:48]req_shift_opened [08:55:48]FM_GetShiftState [08:55:48]SAM_PROTO_GetShiftState [08:55:48]wFMCommunicate request_size=4 [08:55:48]MH_SAM_APDU [08:55:48]CAPDU: 80 13 01 00 [08:55:48]Write to MH i2c: E2 08 00 33 0E 80 13 01 00 00 00 00 00 BE [08:55:48]Write i2c OK [08:55:48]MH_I2C_Read... [08:55:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:55:48]Read from MH i2c: E2 [08:55:48]MH_I2C_Read... [08:55:48]Read from MH i2c: E2 0E 00 [08:55:48]MH_I2C_Read... [08:55:48]Read from MH i2c: E2 0E 00 33 0E 00 09 00 01 63 60 F3 66 00 00 00 00 90 00 E6 [08:55:48]RAPDU: 09 00 01 63 60 F3 66 00 00 00 00 90 00 [08:55:48]wFMCommunicate OK [08:55:48]SAM_PROTO_GetShiftState done [08:55:48]FM_GetShiftState done [08:55:48]req_shift_opened done [08:55:48]requested_item shift.open_date is exist - process it [08:55:48]req_shift_open_date [08:55:48]req_shift_open_date done [08:55:48]produce_requested_data done [08:55:48]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":116186,"shift.num":474,"shift.opened":1,"shift.open_date":1727225955} [08:55:48]process_action_free close_receipt [08:55:48]json_value_free [08:55:48]json_value_free done [08:55:48]process_json_proto returns [08:55:48]Send response to host [08:55:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":116186,"shift.num":474,"shift.opened":1,"shift.open_date":1727225955}}} [08:55:48]free response buf [08:55:48]execute_script done [08:55:48]execute_script returns [08:55:48]free content buf [08:55:48]Sock 8.Close socket [08:55:48]Sock 8.Thread stoped [08:55:49]accept exits with 9 [08:55:49]New connection [08:55:49]New thread 3067350372 created [08:55:49]Thread 3067207012 joined [08:55:49]Waiting for new connection... [08:55:49] Sock 9.Parse request [08:55:49]Sock 9.Check first char [08:55:49]Sock 9.First char is OK [08:55:49]request: POST /json_proto HTTP/1.0 [08:55:49]Method: POST [08:55:49]URL: /json_proto [08:55:49]Method is POST - this is cgi request [08:55:49]url: /json_proto [08:55:49]query_string will be loaded in cgi processing [08:55:49]execute_cgi json_proto POST (null) [08:55:49]execute_cgi path=json_proto method=POST [08:55:49]POST find Content-Length [08:55:49]Host: 172.17.41.136:8080 [08:55:49]Content-Length: 701 [08:55:49]Content-Type: application/json [08:55:49] [08:55:49]POST finish read [08:55:49]Found Content-Length = 701 [08:55:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 116186, "base_FM": "0000000000871830", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)24619069", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 320.000, "sum" : 24384.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 24384.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:55:49]execute_script... [08:55:49]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 116186, "base_FM": "0000000000871830", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)24619069", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 320.000, "sum" : 24384.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 24384.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:55:49]POST & json_proto [08:55:49]process_json_proto [08:55:49]json parsed OK: [08:55:49]protocol is kg_v1.0 [08:55:49]action value=close_receipt [08:55:49]process_action close_receipt [08:55:49]cmd_close_receipt [08:55:49]MH_GetDate [08:55:49]Write to MH i2c: F0 00 00 34 0E 31 [08:55:49]Write i2c OK [08:55:49]MH_I2C_Read... [08:55:49]Read from MH i2c: F0 [08:55:49]MH_I2C_Read... [08:55:49]Read from MH i2c: F0 09 00 [08:55:49]MH_I2C_Read... [08:55:49]Read from MH i2c: F0 09 00 34 0E 00 17 D0 F3 66 1B D0 5A 64 23 [08:55:49]GetLastDocTimeStamp 1727254545 [08:55:49]current date 1727254551 [08:55:49]FM_GetShiftState [08:55:49]SAM_PROTO_GetShiftState [08:55:49]wFMCommunicate request_size=4 [08:55:49]MH_SAM_APDU [08:55:49]CAPDU: 80 13 01 00 [08:55:49]Write to MH i2c: E2 08 00 35 0E 80 13 01 00 00 00 00 00 C0 [08:55:49]Write i2c OK [08:55:49]MH_I2C_Read... [08:55:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:55:49]Read from MH i2c: E2 [08:55:49]MH_I2C_Read... [08:55:49]Read from MH i2c: E2 0E 00 [08:55:49]MH_I2C_Read... [08:55:49]Read from MH i2c: E2 0E 00 35 0E 00 09 00 01 63 60 F3 66 00 00 00 00 90 00 E8 [08:55:49]RAPDU: 09 00 01 63 60 F3 66 00 00 00 00 90 00 [08:55:49]wFMCommunicate OK [08:55:49]SAM_PROTO_GetShiftState done [08:55:49]FM_GetShiftState done [08:55:49]opened in 1727225955 [08:55:49]opened+sec_in_day 1727312355 [08:55:49]quantity*price = 2438400 [08:55:49]sum+1 = 2438401 [08:55:49]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 24384.00 НСП 1% : 215.79 НДС 12% : 2589.45 Наличными: 24384.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 43 25.09.2024 08:55 Смена: 474 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФД осн.: 116186 ФМ осн.: 0000000000871830 ФМ: 0000000000871830 ФД: 116187 ФПД: 1255694539615 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240925T085551&type=2&operation_type=1&fn_number=0000000000871830&fd_number=116187&fm=1255694539615&tin=02508201610067®Number=0000000000091831&sum=2438400 [08:55:51]StoreToDocumentArchive [08:55:51]shift 474 fd 116187 [08:55:51]save to /storage/0474/doc_00116187 [08:55:51]save last doc name /storage/0474/doc_00116187 to /storage/kkm_last_doc_name [08:55:51]save OK [08:55:51]Clear old archive folders... [08:55:51]ProcessDocumentItem done err = 0, tmpTLVsize=276 [08:55:51]tlvbuf is 019E0C00 [08:55:51]SAM_PROTO_ClearQueue [08:55:51]wFMCommunicate request_size=4 [08:55:51]MH_SAM_APDU [08:55:51]CAPDU: 80 09 00 00 [08:55:51]Write to MH i2c: E2 08 00 44 0E 80 09 00 00 00 00 00 00 C4 [08:55:51]Write i2c OK [08:55:51]MH_I2C_Read... [08:55:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:55:51]Read from MH i2c: E2 [08:55:51]MH_I2C_Read... [08:55:51]Read from MH i2c: E2 03 00 [08:55:51]MH_I2C_Read... [08:55:51]Read from MH i2c: E2 03 00 44 0E 00 90 00 C6 [08:55:51]RAPDU: 90 00 [08:55:51]wFMCommunicate OK [08:55:51]SAM_PROTO_ClearQueue done [08:55:51]KKMCreateOFDPacket [08:55:51]OFDProtocolAddRootSTLVToBuf [08:55:51]FM_MakeSignedData [08:55:51]FM_MakeSignedData [08:55:51]SAM_PROTO_SignData [08:55:51]wFMCommunicate request_size=4 [08:55:51]MH_SAM_APDU [08:55:51]CAPDU: 80 0D 01 02 [08:55:51]Write to MH i2c: E2 08 00 45 0E 80 0D 01 02 00 00 00 00 CC [08:55:51]Write i2c OK [08:55:51]MH_I2C_Read... [08:55:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:55:51]Read from MH i2c: E2 [08:55:51]MH_I2C_Read... [08:55:51]Read from MH i2c: E2 03 00 [08:55:51]MH_I2C_Read... [08:55:51]Read from MH i2c: E2 03 00 45 0E 00 90 00 C7 [08:55:51]RAPDU: 90 00 [08:55:51]wFMCommunicate OK [08:55:51]wFMCommunicate request_size=255 [08:55:51]MH_SAM_APDU [08:55:51]CAPDU: 80 0D 02 02 FA 03 00 14 01 1E 04 01 00 02 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 00 E2 04 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 00 35 25 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 35 25 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 54 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 F3 03 00 00 00 07 04 06 00 00 35 25 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 17 D0 F3 66 0E 04 04 00 DA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 27 04 04 00 DA C5 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 11 04 10 00 30 30 30 30 [08:55:51]Write to MH i2c: E2 02 01 46 0E 80 0D 02 02 FA 00 03 00 14 01 1E 04 01 00 02 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 00 E2 04 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 00 35 25 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 35 25 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 54 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 F3 03 00 00 00 07 04 06 00 00 35 25 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 17 D0 F3 66 0E 04 04 00 DA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 27 04 04 00 DA C5 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 11 04 10 00 30 30 30 30 00 00 E4 [08:55:51]Write i2c OK [08:55:51]MH_I2C_Read... [08:55:51]OFD Sender: No OFD packet to send [08:55:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:55:51]Read from MH i2c: E2 [08:55:51]MH_I2C_Read... [08:55:51]Read from MH i2c: E2 03 00 [08:55:51]MH_I2C_Read... [08:55:51]Read from MH i2c: E2 03 00 46 0E 00 90 00 C8 [08:55:51]RAPDU: 90 00 [08:55:51]wFMCommunicate OK [08:55:51]wFMCommunicate request_size=35 [08:55:51]MH_SAM_APDU [08:55:51]CAPDU: 80 0D 02 02 1E 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 DB C5 01 00 35 04 06 00 01 24 5D 3A 1B 5F [08:55:51]Write to MH i2c: E2 26 00 47 0E 80 0D 02 02 1E 00 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 DB C5 01 00 35 04 06 00 01 24 5D 3A 1B 5F 00 00 94 [08:55:51]Write i2c OK [08:55:51]MH_I2C_Read... [08:55:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:55:51]Read from MH i2c: E2 [08:55:51]MH_I2C_Read... [08:55:51]Read from MH i2c: E2 03 00 [08:55:51]MH_I2C_Read... [08:55:51]Read from MH i2c: E2 03 00 47 0E 00 90 00 C9 [08:55:51]RAPDU: 90 00 [08:55:51]wFMCommunicate OK [08:55:51]wFMCommunicate request_size=4 [08:55:51]MH_SAM_APDU [08:55:51]CAPDU: 80 0D 03 02 [08:55:51]Write to MH i2c: E2 08 00 48 0E 80 0D 03 02 00 00 00 00 D1 [08:55:51]Write i2c OK [08:55:51]MH_I2C_Read... [08:55:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:55:51]Read from MH i2c: E2 [08:55:51]MH_I2C_Read... [08:55:51]Read from MH i2c: E2 0B 00 [08:55:51]MH_I2C_Read... [08:55:51]Read from MH i2c: E2 0B 00 48 0E 00 8E 96 37 15 4A 5B 0B 65 90 00 57 [08:55:51]RAPDU: 8E 96 37 15 4A 5B 0B 65 90 00 [08:55:51]wFMCommunicate OK [08:55:51]SAM_PROTO_SignData done [08:55:51]FM_MakeSignedData done [08:55:51]CreateOFDProtocolMessage [08:55:51]wFMCommunicate request_size=4 [08:55:51]MH_SAM_APDU [08:55:51]CAPDU: 80 11 00 00 [08:55:51]Write to MH i2c: E2 08 00 49 0E 80 11 00 00 00 00 00 00 D1 [08:55:51]Write i2c OK [08:55:51]MH_I2C_Read... [08:55:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:55:52]Read from MH i2c: E2 [08:55:52]MH_I2C_Read... [08:55:52]Read from MH i2c: E2 17 00 [08:55:52]MH_I2C_Read... [08:55:52]Read from MH i2c: E2 17 00 49 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 1F [08:55:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [08:55:52]wFMCommunicate OK [08:55:52]CreateOFDProtocolMessage done [08:55:52]OFDSenderStorePacket 116187 [08:55:52]StoreOFDPacket docnum=116187 [08:55:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 28 01 00 00 60 65 20 01 28 71 5A 03 01 00 03 00 14 01 1E 04 01 00 02 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 00 E2 04 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 00 35 25 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 35 25 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 54 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 F3 03 00 00 00 07 04 06 00 00 35 25 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 17 D0 F3 66 0E 04 04 00 DA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 27 04 04 00 DA C5 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 DB C5 01 00 35 04 06 00 01 24 5D 3A 1B 5F 8E 96 37 15 4A 5B 0B 65 [08:55:52]CheckFolder [08:55:52]dirname=/storage/ofd_packets [08:55:52]CheckFolder done [08:55:52]ProducePacketName [08:55:52]name=ofd_packets/00116187 [08:55:52]NVStorageSaveData ofd_packets/00116187 [08:55:52]File name is /storage/ofd_packets/00116187 [08:55:52]Write 326 bytes [08:55:52]NVStorageSaveData done [08:55:52]OFDSenderStorePacket done [08:55:52]KKMCreateOFDPacket done [08:55:52]NVStorageSaveData kkm_last_timestamp [08:55:52]File name is /storage/kkm_last_timestamp [08:55:52]Write 4 bytes [08:55:52]NVStorageSaveData done [08:55:52]ExternCall_PrintAddStr [08:55:52]wPrintStart [08:55:52]Write to MH i2c: 01 00 00 4A 0E 58 [08:55:52]Write i2c OK [08:55:52]MH_I2C_Read... [08:55:52]Read from MH i2c: 01 [08:55:52]MH_I2C_Read... [08:55:52]Read from MH i2c: 01 07 00 [08:55:52]MH_I2C_Read... [08:55:52]Read from MH i2c: 01 07 00 4A 0E 00 00 00 00 00 FF 0F 6D [08:55:52]RasterBufferAndPrint [08:55:52]line Счет N : (1)24619069 [08:55:52]line ИНН: 02508201610067 [08:55:52]line Контрольно-Кассовый Чек [08:55:52]line ВОЗВРАТ ПРОДАЖИ [08:55:52]line ТРК (МРК, ГНК) : 11 [08:55:52]line Товар: 2710194210 [08:55:52]line ДТ-К-5 [08:55:52]line 320.000 * 76.20 [08:55:52]line = 24384.00 [08:55:52]line НДС 12% НСП 1% [08:55:52]line > о реализуемом товаре [08:55:52]line ИТОГО: 24384.00 [08:55:52]line НСП 1% : 215.79 [08:55:52]line НДС 12% : 2589.45 [08:55:52]line Наличными: 24384.00 [08:55:52]line Безнал.: 0.00 [08:55:52]line Место: АЗС № 90 "Партнер Нефть" [08:55:52]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [08:55:52]line СНО: Общий режим [08:55:52]line Чек 43 25.09.2024 08:55 [08:55:52]line Смена: 474 ФФД: 1.0 [08:55:52]line ЗНМ: 0300000120 [08:55:52]line РНМ: 0000000000091831 [08:55:52]line Версия ККМ: 001 [08:55:52]line ФД осн.: 116186 [08:55:52]line ФМ осн.: 0000000000871830 [08:55:52]line ФМ: 0000000000871830 [08:55:52]line ФД: 116187 [08:55:52]line ФПД: 1255694539615 [08:55:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240925T085551&type=2&operation_type=1&fn_number=0000000000871830&fd_number=116187&fm=1255694539615&tin=02508201610067®Number=0000000000091831&sum=2438400 [08:55:52]written 0, free lines is 4095 [08:55:52]OFD Sender: Processing packet 116187 [packets to send 482, broken 481] [08:55:52]ProducePacketName [08:55:52]name=ofd_packets/00116187 [08:55:52]OFD Sender: To server: pG, [08:55:52]CommunicateWithHost lk.salyk.kg:30040 [08:55:52]ConnectInit lk.salyk.kg [08:55:52]Connected sock=10 [08:55:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 28 01 00 00 60 65 20 01 28 71 5A 03 01 00 03 00 14 01 1E 04 01 00 02 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 00 E2 04 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 00 35 25 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 35 25 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 54 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 F3 03 00 00 00 07 04 06 00 00 35 25 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 17 D0 F3 66 0E 04 04 00 DA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 27 04 04 00 DA C5 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 DB C5 01 00 35 04 06 00 01 24 5D 3A 1B 5F 8E 96 37 15 4A 5B 0B 65 [08:55:52]Write to MH i2c: 01 00 00 73 0E 81 [08:55:52]Write i2c OK [08:55:52]MH_I2C_Read... [08:55:52]Read from MH i2c: 01 [08:55:52]MH_I2C_Read... [08:55:52]Read from MH i2c: 01 07 00 [08:55:52]MH_I2C_Read... [08:55:52]Read from MH i2c: 01 07 00 73 0E 00 00 00 00 00 64 0C F8 [08:55:52]RasterBufferAndPrint [08:55:52]line [08:55:52]line [08:55:52]line [08:55:52]line [08:55:52]line [08:55:52]written 0, free lines is 3180 [08:55:52]MH_Cut [08:55:52]Write to MH i2c: D1 01 00 7A 0E 01 5A [08:55:52]Write i2c OK [08:55:52]MH_I2C_Read... [08:55:52]Read from MH i2c: D1 [08:55:52]MH_I2C_Read... [08:55:52]Read from MH i2c: D1 01 00 [08:55:52]MH_I2C_Read... [08:55:52]Read from MH i2c: D1 01 00 7A 0E 00 59 [08:55:52]Write to MH i2c: 01 00 00 7B 0E 89 [08:55:52]Write i2c OK [08:55:52]MH_I2C_Read... [08:55:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 24 B2 47 00 55 69 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 DB C5 01 00 F4 03 04 00 54 75 F3 66 B6 04 01 00 00 B6 A3 EE 24 84 DA 2B FE [08:55:52]CommunicateWithHost err = 0 [08:55:52]CheckOFDResponse [08:55:52]1017 (14) - 77093643461234 [08:55:52]1041 (16) - 0000000000871830 [08:55:52]1040 (4) - 116187 [08:55:52]1012 (4) - 25.09.2024 02:28 [08:55:52]1206 (1) - 0 [08:55:52]OFD Sender: Remove packet 116187 [08:55:52]ProducePacketName [08:55:52]name=ofd_packets/00116187 [08:55:52]NVStorageDeleteData [08:55:53]OFD Sender: No OFD packet to send [08:55:53]*** Cut start [08:55:53]*** Partial cut [08:55:53]*** CUTSNS_PIN = 1 [08:55:53]*** CUTSNS_PIN = 0 [08:55:54]*** Brake cut motor [08:55:54]Read from MH i2c: 01 [08:55:54]MH_I2C_Read... [08:55:54]*** Stop cut motor [08:55:54]*** Cut end [08:55:54]Read from MH i2c: 01 07 00 [08:55:54]MH_I2C_Read... [08:55:54]Read from MH i2c: 01 07 00 7B 0E 00 00 00 00 00 FF 0F 9E [08:55:54]process_action close_receipt done [08:55:54]requested_data is exist [08:55:54]produce_requested_data [08:55:54]requested_item fm.sn is exist - process it [08:55:54]wFMCommunicate request_size=4 [08:55:54]MH_SAM_APDU [08:55:54]CAPDU: 80 11 00 00 [08:55:54]Write to MH i2c: E2 08 00 7C 0E 80 11 00 00 00 00 00 00 04 [08:55:54]Write i2c OK [08:55:54]MH_I2C_Read... [08:55:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:55:54]Read from MH i2c: E2 [08:55:54]MH_I2C_Read... [08:55:54]Read from MH i2c: E2 17 00 [08:55:54]MH_I2C_Read... [08:55:54]Read from MH i2c: E2 17 00 7C 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 52 [08:55:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [08:55:54]wFMCommunicate OK [08:55:54]requested_item fd.num is exist - process it [08:55:54]SAM_PROTO_GetFieldsCounters [08:55:54]wFMCommunicate request_size=4 [08:55:54]MH_SAM_APDU [08:55:54]CAPDU: 80 13 00 00 [08:55:54]Write to MH i2c: E2 08 00 7D 0E 80 13 00 00 00 00 00 00 07 [08:55:54]Write i2c OK [08:55:54]MH_I2C_Read... [08:55:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:55:54]Read from MH i2c: E2 [08:55:54]MH_I2C_Read... [08:55:54]Read from MH i2c: E2 62 00 [08:55:54]MH_I2C_Read... [08:55:54]Read from MH i2c: E2 62 00 7D 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 DB C5 01 00 0E 04 04 00 DA 01 00 00 12 04 04 00 2B 00 00 00 5E 04 04 00 2B 00 00 00 57 04 04 00 2C 00 00 00 19 04 04 00 00 00 00 00 90 00 1D [08:55:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 DB C5 01 00 0E 04 04 00 DA 01 00 00 12 04 04 00 2B 00 00 00 5E 04 04 00 2B 00 00 00 57 04 04 00 2C 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:55:54]wFMCommunicate OK [08:55:54]SAM_PROTO_GetFieldsCounters done [08:55:54]requested_item shift.num is exist - process it [08:55:54]requested_item shift.opened is exist - process it [08:55:54]req_shift_opened [08:55:54]FM_GetShiftState [08:55:54]SAM_PROTO_GetShiftState [08:55:54]wFMCommunicate request_size=4 [08:55:54]MH_SAM_APDU [08:55:54]CAPDU: 80 13 01 00 [08:55:54]Write to MH i2c: E2 08 00 7E 0E 80 13 01 00 00 00 00 00 09 [08:55:54]Write i2c OK [08:55:54]MH_I2C_Read... [08:55:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:55:54]Read from MH i2c: E2 [08:55:54]MH_I2C_Read... [08:55:54]Read from MH i2c: E2 0E 00 [08:55:54]MH_I2C_Read... [08:55:54]Read from MH i2c: E2 0E 00 7E 0E 00 09 00 01 63 60 F3 66 00 00 00 00 90 00 31 [08:55:54]RAPDU: 09 00 01 63 60 F3 66 00 00 00 00 90 00 [08:55:54]wFMCommunicate OK [08:55:54]SAM_PROTO_GetShiftState done [08:55:54]FM_GetShiftState done [08:55:54]req_shift_opened done [08:55:54]requested_item shift.open_date is exist - process it [08:55:54]req_shift_open_date [08:55:54]req_shift_open_date done [08:55:54]produce_requested_data done [08:55:54]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":116187,"shift.num":474,"shift.opened":1,"shift.open_date":1727225955} [08:55:54]process_action_free close_receipt [08:55:54]json_value_free [08:55:54]json_value_free done [08:55:54]process_json_proto returns [08:55:54]Send response to host [08:55:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":116187,"shift.num":474,"shift.opened":1,"shift.open_date":1727225955}}} [08:55:54]free response buf [08:55:54]execute_script done [08:55:54]execute_script returns [08:55:54]free content buf [08:55:54]Sock 9.Close socket [08:55:54]Sock 9.Thread stoped [08:55:58]OFD Sender: No OFD packet to send [08:56:03]OFD Sender: No OFD packet to send [08:56:08]OFD Sender: No OFD packet to send [08:56:13]OFD Sender: No OFD packet to send [08:56:18]OFD Sender: No OFD packet to send [08:56:23]OFD Sender: No OFD packet to send [08:56:28]OFD Sender: No OFD packet to send [08:56:33]OFD Sender: No OFD packet to send [08:56:38]OFD Sender: No OFD packet to send [08:56:43]OFD Sender: No OFD packet to send [08:56:48]OFD Sender: No OFD packet to send [08:56:53]OFD Sender: No OFD packet to send [08:56:58]OFD Sender: No OFD packet to send [08:57:03]OFD Sender: No OFD packet to send [08:57:08]OFD Sender: No OFD packet to send [08:57:13]OFD Sender: No OFD packet to send [08:57:18]OFD Sender: No OFD packet to send [08:57:23]OFD Sender: No OFD packet to send [08:57:28]OFD Sender: No OFD packet to send [08:57:33]OFD Sender: No OFD packet to send [08:57:38]OFD Sender: No OFD packet to send [08:57:43]OFD Sender: No OFD packet to send [08:57:48]OFD Sender: No OFD packet to send [08:57:53]OFD Sender: No OFD packet to send [08:57:58]OFD Sender: No OFD packet to send [08:58:03]OFD Sender: No OFD packet to send [08:58:08]OFD Sender: No OFD packet to send [08:58:13]OFD Sender: No OFD packet to send [08:58:18]OFD Sender: No OFD packet to send [08:58:23]OFD Sender: No OFD packet to send [08:58:28]OFD Sender: No OFD packet to send [08:58:33]OFD Sender: No OFD packet to send [08:58:38]OFD Sender: No OFD packet to send [08:58:43]OFD Sender: No OFD packet to send [08:58:48]OFD Sender: No OFD packet to send [08:58:53]OFD Sender: No OFD packet to send [08:58:58]OFD Sender: No OFD packet to send [08:59:03]OFD Sender: No OFD packet to send [08:59:08]OFD Sender: No OFD packet to send [08:59:13]OFD Sender: No OFD packet to send [08:59:18]OFD Sender: No OFD packet to send [08:59:23]OFD Sender: No OFD packet to send [08:59:28]OFD Sender: No OFD packet to send [08:59:33]OFD Sender: No OFD packet to send [08:59:38]OFD Sender: No OFD packet to send [08:59:43]OFD Sender: No OFD packet to send [08:59:48]OFD Sender: No OFD packet to send [08:59:53]OFD Sender: No OFD packet to send [08:59:58]OFD Sender: No OFD packet to send [09:00:03]OFD Sender: No OFD packet to send [09:00:08]OFD Sender: No OFD packet to send [09:00:13]OFD Sender: No OFD packet to send [09:00:18]OFD Sender: No OFD packet to send [09:00:23]OFD Sender: No OFD packet to send [09:00:28]OFD Sender: No OFD packet to send [09:00:33]OFD Sender: No OFD packet to send [09:00:38]OFD Sender: No OFD packet to send [09:00:43]OFD Sender: No OFD packet to send [09:00:48]OFD Sender: No OFD packet to send [00:00:10]/dev/ttyS4 opened [00:00:10] *** EcrCore started. Build 196 *** [00:00:10]MH_InterfaceInit /dev/i2c-1 [00:00:10]Malloc ok [00:00:10]MH_GetMetrics [00:00:10]Write to MH i2c: 00 00 00 01 00 00 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 29 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 29 00 01 00 00 03 9C 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 B9 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 01 03 00 5E [00:00:10]Are we in boot? [00:00:10]We are in boot - try to switch [00:00:10]Write to MH i2c: A0 00 00 02 00 A1 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: A0 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: A0 01 00 [00:00:10]MH_I2C_Read... [00:00:10]*** Check firmware version 30620, crc_r 49A1A6DB, crc_c: 49A1A6DB, size: 53248 [00:00:10]Read from MH i2c: A0 *** [00:00:10]01 00 02 00 00 A2 [00:00:10]*** Starting fw at address 01020100 (2007E328 010249C5) [00:00:10]*** Waiting for read because exit forced [00:00:10]*** 10 ms more... [00:00:10]*** MH1903S init start (LINUX_LIGHT) [00:00:10]*** Compilation Date Jun 20 2023 Time 12:36:20 [00:00:10]*** Serial: 3139303353513838 54000000005725B9 (1903SQ88T) [00:00:10]*** User serial: FFFFFFFFFFFFFFFF FFFFFFFFFFFFFFFF () [00:00:10]*** step 0: 5000 (2650, 2350 REF) [00:00:10]*** step 1: 4835 (2500, 2335 REF) [00:00:10]*** step 2: 4676 (2440, 2236 REF) [00:00:10]*** step 3: 4523 (2280, 2243 REF) [00:00:10]*** step 4: 4376 (2160, 2216 REF) [00:00:10]*** step 5: 4235 (2050, 2185 REF) [00:00:10]*** step 6: 4098 (1950, 2148 REF) [00:00:10]*** step 7: 3967 (1870, 2097 REF) [00:00:10]*** step 8: 3840 (1828, 2012 REF) [00:00:10]*** step 9: 3719 (1728, 1991 REF) [00:00:10]*** step 10: 3601 (1675, 1926 REF) [00:00:10]*** step 11: 3488 (1635, 1853 REF) [00:00:10]*** step 12: 3379 (1595, 1784 REF) [00:00:10]*** step 13: 3275 (1565, 1710 REF) [00:00:10]*** step 14: 3174 (1543, 1631 REF) [00:00:10]*** step 15: 3077 (1523, 1554 REF) [00:00:10]*** step 16: 2983 (1503, 1480 REF) [00:00:10]*** step 17: 2893 (1486, 1407 REF) [00:00:10]*** step 18: 2806 (1466, 1340 REF) [00:00:10]*** step 19: 2723 (1426, 1297 REF) [00:00:10]*** step 20: 2642 (1406, 1236 REF) [00:00:10]*** step 21: 2565 (1384, 1181 REF) [00:00:10]*** step 22: 2490 (1364, 1126 REF) [00:00:10]*** step 23: 2418 (1344, 1074 REF) [00:00:10]*** step 24: 2349 (1322, 1027 REF) [00:00:10]*** step 25: 2283 (1302, 981 REF) [00:00:10]*** step 26: 2218 (1282, 936 REF) [00:00:10]*** step 27: 2157 (1262, 895 REF) [00:00:10]*** step 28: 2097 (1242, 855 REF) [00:00:10]*** step 29: 2040 (1222, 818 REF) [00:00:10]*** step 30: 1985 (1202, 783 REF) [00:00:10]*** step 31: 1932 (1191, 741 REF) [00:00:10]*** step 32: 1880 (1181, 699 REF) [00:00:10]*** step 33: 1831 (1171, 660 REF) [00:00:10]*** step 34: 1784 (1161, 623 REF) [00:00:10]*** step 35: 1738 (1151, 587 REF) [00:00:10]*** step 36: 1694 (1141, 553 REF) [00:00:10]*** step 37: 1652 (1131, 521 REF) [00:00:10]*** step 38: 1611 (1121, 490 REF) [00:00:10]*** step 39: 1572 (1111, 461 REF) [00:00:10]*** step 40: 1534 (1103, 431 REF) [00:00:10]*** step 41: 1497 (1093, 404 REF) [00:00:10]*** step 42: 1462 (1083, 379 REF) [00:00:10]*** step 43: 1428 (1073, 355 REF) [00:00:10]*** step 44: 1396 (1063, 333 REF) [00:00:10]*** step 45: 1365 (1053, 312 REF) [00:00:10]*** step 46: 1334 (1043, 291 REF) [00:00:10]*** step 47: 1305 (1033, 272 REF) [00:00:10]*** step 48: 1277 (1023, 254 REF) [00:00:10]*** step 49: 1250 (1013, 237 REF) [00:00:10]*** step 50: 1224 (990, 234 REF) [00:00:10]*** step 51: 1199 (980, 219 REF) [00:00:10]*** step 52: 1175 (970, 205 REF) [00:00:10]*** step 53: 1152 (960, 192 REF) [00:00:10]*** step 54: 1130 (950, 180 REF) [00:00:10]*** step 55: 1108 (940, 168 REF) [00:00:10]*** step 56: 1088 (930, 158 REF) [00:00:10]*** step 57: 1068 (920, 148 REF) [00:00:10]*** step 58: 1049 (910, 139 REF) [00:00:10]*** step 59: 1030 (900, 130 REF) [00:00:10]*** step 60: 1012 (890, 122 REF) [00:00:10]*** step 61: 995 (880, 115 REF) [00:00:10]*** step 62: 979 (870, 109 REF) [00:00:10]*** step 63: 963 (860, 103 REF) [00:00:10]*** step 64: 948 (850, 98 REF) [00:00:10]*** step 65: 933 (840, 93 REF) [00:00:10]*** step 66: 919 (830, 89 REF) [00:00:10]*** step 67: 905 (820, 85 REF) [00:00:10]*** step 68: 892 (810, 82 REF) [00:00:10]*** step 69: 879 (800, 79 REF) [00:00:10]*** step 70: 867 (790, 77 REF) [00:00:10]*** step 71: 855 (780, 75 REF) [00:00:10]*** step 72: 844 (770, 74 REF) [00:00:10]*** step 73: 833 (760, 73 REF) [00:00:10]*** step 74: 822 (750, 72 REF) [00:00:10]*** step 75: 812 (740, 72 REF) [00:00:10]*** step 76: 803 (730, 73 REF) [00:00:10]*** step 77: 793 (720, 73 REF) [00:00:10]*** step 78: 784 (710, 74 REF) [00:00:10]*** step 79: 776 (700, 76 REF) [00:00:10]*** step 80: 767 (690, 77 REF) [00:00:10]*** step 81: 759 (680, 79 REF) [00:00:10]*** step 82: 751 (670, 81 REF) [00:00:10]*** step 83: 744 (660, 84 REF) [00:00:10]*** step 84: 737 (650, 87 REF) [00:00:10]*** step 85: 730 (640, 90 REF) [00:00:10]*** step 86: 723 (630, 93 REF) [00:00:10]*** step 87: 717 (620, 97 REF) [00:00:10]*** step 88: 710 (610, 100 REF) [00:00:10]*** step 89: 705 (600, 105 REF) [00:00:10]*** step 90: 699 [00:00:10]*** step 91: 693 [00:00:10]*** step 92: 688 [00:00:10]*** step 93: 683 [00:00:10]*** step 94: 678 [00:00:10]*** step 95: 673 [00:00:10]*** step 96: 669 [00:00:10]*** step 97: 664 [00:00:10]*** step 98: 660 [00:00:10]*** step 99: 656 [00:00:10]*** step 100: 652 [00:00:10]*** step 101: 648 [00:00:10]*** step 102: 644 [00:00:10]*** step 103: 641 [00:00:10]*** step 104: 638 [00:00:10]*** step 105: 634 [00:00:10]*** step 106: 631 [00:00:10]*** step 107: 628 [00:00:10]*** step 108: 625 [00:00:10]*** step 109: 622 [00:00:10]*** step 110: 620 [00:00:10]*** step 111: 617 [00:00:10]*** step 112: 615 [00:00:10]*** step 113: 612 [00:00:10]*** step 114: 610 [00:00:10]*** step 115: 608 [00:00:10]*** step 116: 605 [00:00:10]*** step 117: 603 [00:00:10]*** step 118: 601 [00:00:10]*** step 119: 599 [00:00:10]*** printer: Printer HW initialized [00:00:10]*** initSamCard finished [00:00:10]*** RTC: 43581763+1683673115=1727254878 [00:00:10]*** BPK Status Register BPK_RDY = 0x0 [00:00:11]*** SEN State Register SEN_STATE = 0x200ff [00:00:11]*** 32K Frequency Sensor Enable SEN_XTAL32_EN = 0x80000055 [00:00:11]*** Analog Control Register 0 SEN_ANA0 = 0x334f0623 [00:00:11]*** Is cutter blocked? [00:00:11]MH_GetMetrics [00:00:11]Write to MH i2c: 00 00 00 03 00 02 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 29 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 29 00 03 00 00 03 9C 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 B9 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 00 03 00 5F [00:00:11]Are we in boot? [00:00:11]We are not in boot now [00:00:11]Write to MH i2c: 01 00 00 04 00 04 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 07 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 07 00 04 00 00 00 00 00 00 FF 0F 19 [00:00:11]Model is 3 [00:00:11]MH firmware is 30620 [00:00:11]MH boot firmware is 3 [00:00:11]MH_SetPrinterDots 448 [00:00:11]HeadWidthInBytes 56 [00:00:11]maxmasksize 7 [00:00:11]Write to MH i2c: D6 06 00 05 00 78 00 38 00 FF FF 8E [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 01 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 01 00 05 00 00 DB [00:00:11]Write to MH i2c: D5 00 00 06 00 DA [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 01 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 01 00 06 00 00 DB [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]ExternCall_SetCallbacks [00:00:11]NVStorageInit [00:00:11]MH_GetDate [00:00:11]Write to MH i2c: F0 00 00 07 00 F6 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 09 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 09 00 07 00 00 5E D1 F3 66 1B D0 5A 64 30 [09:01:18]Current date/time: 25.09.2024 09:01 [09:01:18]FM_Init [09:01:18]wFMConnect [09:01:18]MH_SAM_On [09:01:18]Write to MH i2c: E0 00 00 08 00 E7 [09:01:18]Write i2c OK [09:01:18]MH_I2C_Read... [09:01:18]*** iso7816_init finished! [09:01:18]*** atr: [09:01:18]*** 0F 3B D5 18 FF 81 91 FE [09:01:18]*** 1F C3 80 73 C8 21 10 0A [09:01:18]*** 00 00 00 00 00 00 00 00 [09:01:18]*** 00 00 00 00 00 00 00 00 [09:01:18]*** 00 00 00 00 00 00 00 00 [09:01:18]*** 00 00 00 00 00 00 00 00 [09:01:18]*** 00 00 00 00 00 00 00 00 [09:01:18]*** 00 00 00 00 00 00 00 00 [09:01:18]Read from MH i2c: E0 [09:01:18]MH_I2C_Read... [09:01:18]Read from MH i2c: E0 10 00 [09:01:18]MH_I2C_Read... [09:01:18]Read from MH i2c: E0 10 00 08 00 00 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A 06 [09:01:18]ATR: 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A [09:01:18]wFMCommunicate request_size=10 [09:01:18]MH_SAM_APDU [09:01:18]CAPDU: 00 A4 04 00 05 01 02 03 04 05 [09:01:18]Write to MH i2c: E2 0D 00 09 00 00 A4 04 00 05 00 01 02 03 04 05 00 00 B3 [09:01:18]Write i2c OK [09:01:18]MH_I2C_Read... [09:01:18]*** iso7816_exchange 00 A4 04 00... Resp OK rsp.len_out = 0! [09:01:18]Read from MH i2c: E2 [09:01:18]MH_I2C_Read... [09:01:18]Read from MH i2c: E2 03 00 [09:01:18]MH_I2C_Read... [09:01:18]Read from MH i2c: E2 03 00 09 00 00 90 00 7D [09:01:18]RAPDU: 90 00 [09:01:18]wFMCommunicate OK [09:01:18]wFMCommunicate request_size=4 [09:01:18]MH_SAM_APDU [09:01:18]CAPDU: 80 11 00 00 [09:01:18]Write to MH i2c: E2 08 00 0A 00 80 11 00 00 00 00 00 00 84 [09:01:18]Write i2c OK [09:01:18]MH_I2C_Read... [09:01:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:01:18]Read from MH i2c: E2 [09:01:18]MH_I2C_Read... [09:01:18]Read from MH i2c: E2 17 00 [09:01:18]MH_I2C_Read... [09:01:18]Read from MH i2c: E2 17 00 0A 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 D2 [09:01:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [09:01:18]wFMCommunicate OK [09:01:18]Detected FM SN is 0000000000871830 [09:01:18]Stored FM SN is 0000000000871830 [09:01:18]wFMCommunicate request_size=9 [09:01:18]MH_SAM_APDU [09:01:18]CAPDU: 80 16 00 00 04 2B 08 01 00 [09:01:18]Write to MH i2c: E2 0C 00 0B 00 80 16 00 00 04 00 2B 08 01 00 00 00 C6 [09:01:18]Write i2c OK [09:01:18]MH_I2C_Read... [09:01:18]*** iso7816_exchange 80 16 00 00... Resp OK rsp.len_out = 0! [09:01:18]Read from MH i2c: E2 [09:01:18]MH_I2C_Read... [09:01:18]Read from MH i2c: E2 03 00 [09:01:18]MH_I2C_Read... [09:01:18]Read from MH i2c: E2 03 00 0B 00 00 90 00 7F [09:01:18]RAPDU: 90 00 [09:01:18]wFMCommunicate OK [09:01:18]FM PIN OK [09:01:18]wFMCommunicate request_size=8 [09:01:18]MH_SAM_APDU [09:01:18]CAPDU: 80 14 04 00 03 02 00 01 [09:01:18]Write to MH i2c: E2 0B 00 0C 00 80 14 04 00 03 00 02 00 01 00 00 96 [09:01:18]Write i2c OK [09:01:18]MH_I2C_Read... [09:01:18]*** iso7816_exchange 80 14 04 00... Resp OK rsp.len_out = 0! [09:01:18]Read from MH i2c: E2 [09:01:18]MH_I2C_Read... [09:01:18]Read from MH i2c: E2 03 00 [09:01:18]MH_I2C_Read... [09:01:18]Read from MH i2c: E2 03 00 0C 00 00 90 00 80 [09:01:18]RAPDU: 90 00 [09:01:18]wFMCommunicate OK [09:01:18]wFMCommunicate request_size=13 [09:01:18]MH_SAM_APDU [09:01:18]CAPDU: 80 14 04 01 08 07 00 01 02 03 04 05 06 [09:01:18]Write to MH i2c: E2 10 00 0D 00 80 14 04 01 08 00 07 00 01 02 03 04 05 06 00 00 BB [09:01:18]Write i2c OK [09:01:18]MH_I2C_Read... [09:01:18]*** iso7816_exchange 80 14 04 01... Resp OK rsp.len_out = 0! [09:01:18]Read from MH i2c: E2 [09:01:18]MH_I2C_Read... [09:01:18]Read from MH i2c: E2 03 00 [09:01:18]MH_I2C_Read... [09:01:18]Read from MH i2c: E2 03 00 0D 00 00 90 00 81 [09:01:18]RAPDU: 90 00 [09:01:18]wFMCommunicate OK [09:01:18]wFMCommunicate request_size=4 [09:01:18]MH_SAM_APDU [09:01:18]CAPDU: 80 11 00 00 [09:01:18]Write to MH i2c: E2 08 00 0E 00 80 11 00 00 00 00 00 00 88 [09:01:18]Write i2c OK [09:01:18]MH_I2C_Read... [09:01:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:01:18]Read from MH i2c: E2 [09:01:18]MH_I2C_Read... [09:01:18]Read from MH i2c: E2 17 00 [09:01:18]MH_I2C_Read... [09:01:18]Read from MH i2c: E2 17 00 0E 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 D6 [09:01:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [09:01:18]wFMCommunicate OK [09:01:18]DocumentArchiveInit [09:01:18]Start Httpd... [09:01:18]Httpd thread 3067067748 created [09:01:18]Write to MH i2c: 01 00 00 0F 00 0F [09:01:18]Write i2c OK [09:01:18]MH_I2C_Read... [09:01:18]Read from MH i2c: 01 [09:01:18]MH_I2C_Read... [09:01:18]Read from MH i2c: 01 07 00 [09:01:18]MH_I2C_Read... [09:01:18]Read from MH i2c: 01 07 00 0F 00 00 00 00 00 00 FF 0F 24 [09:01:18]MH Int Process started [09:01:18]Allocated Socket 5 [09:01:18]Bind OK [09:01:18]Listen OK [09:01:18]httpd running on port 8080 [09:01:18]Waiting for new connection... [09:01:19]OFD Sender: No OFD packet to send [09:01:24]OFD Sender: No OFD packet to send [09:01:25]accept exits with 7 [09:01:25]New connection [09:01:25]New thread 3066781028 created [09:01:25]Waiting for new connection... [09:01:25] Sock 7.Parse request [09:01:25]Sock 7.Check first char [09:01:25]Sock 7.First char is OK [09:01:25]request: POST /json_proto HTTP/1.0 [09:01:25]Method: POST [09:01:25]URL: /json_proto [09:01:25]Method is POST - this is cgi request [09:01:25]url: /json_proto [09:01:25]query_string will be loaded in cgi processing [09:01:25]execute_cgi json_proto POST (null) [09:01:25]execute_cgi path=json_proto method=POST [09:01:25]POST find Content-Length [09:01:25]Host: 172.17.41.136:8080 [09:01:25]Content-Length: 215 [09:01:25]Content-Type: application/json [09:01:25] [09:01:25]POST finish read [09:01:25]Found Content-Length = 215 [09:01:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:01:25]execute_script... [09:01:25]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:01:25]POST & json_proto [09:01:25]process_json_proto [09:01:25]json parsed OK: [09:01:25]protocol is kg_v1.0 [09:01:25]action value=get_value [09:01:25]process_action get_value [09:01:25]cmd_get_value [09:01:25]process_action get_value done [09:01:25]requested_data is exist [09:01:25]produce_requested_data [09:01:25]requested_item kkm.sn is exist - process it [09:01:25]requested_item kkm.ver is exist - process it [09:01:25]requested_item fm.sn is exist - process it [09:01:25]wFMCommunicate request_size=4 [09:01:25]MH_SAM_APDU [09:01:25]CAPDU: 80 11 00 00 [09:01:25]Write to MH i2c: E2 08 00 10 00 80 11 00 00 00 00 00 00 8A [09:01:25]Write i2c OK [09:01:25]MH_I2C_Read... [09:01:25]Read from MH i2c: E2 [09:01:25]MH_I2C_Read... [09:01:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:01:25]Read from MH i2c: E2 17 00 [09:01:25]MH_I2C_Read... [09:01:25]Read from MH i2c: E2 17 00 10 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 D8 [09:01:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [09:01:25]wFMCommunicate OK [09:01:25]requested_item fd.num is exist - process it [09:01:25]SAM_PROTO_GetFieldsCounters [09:01:25]wFMCommunicate request_size=4 [09:01:25]MH_SAM_APDU [09:01:25]CAPDU: 80 13 00 00 [09:01:25]Write to MH i2c: E2 08 00 11 00 80 13 00 00 00 00 00 00 8D [09:01:25]Write i2c OK [09:01:25]MH_I2C_Read... [09:01:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:01:25]Read from MH i2c: E2 [09:01:25]MH_I2C_Read... [09:01:25]Read from MH i2c: E2 62 00 [09:01:25]MH_I2C_Read... [09:01:25]Read from MH i2c: E2 62 00 11 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 DB C5 01 00 0E 04 04 00 DA 01 00 00 12 04 04 00 2B 00 00 00 5E 04 04 00 2B 00 00 00 57 04 04 00 2C 00 00 00 19 04 04 00 00 00 00 00 90 00 A3 [09:01:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 DB C5 01 00 0E 04 04 00 DA 01 00 00 12 04 04 00 2B 00 00 00 5E 04 04 00 2B 00 00 00 57 04 04 00 2C 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:01:25]wFMCommunicate OK [09:01:25]SAM_PROTO_GetFieldsCounters done [09:01:25]requested_item shift.num is exist - process it [09:01:25]requested_item shift.opened is exist - process it [09:01:25]req_shift_opened [09:01:25]FM_GetShiftState [09:01:25]SAM_PROTO_GetShiftState [09:01:25]wFMCommunicate request_size=4 [09:01:25]MH_SAM_APDU [09:01:25]CAPDU: 80 13 01 00 [09:01:25]Write to MH i2c: E2 08 00 12 00 80 13 01 00 00 00 00 00 8F [09:01:25]Write i2c OK [09:01:25]MH_I2C_Read... [09:01:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:01:25]Read from MH i2c: E2 [09:01:25]MH_I2C_Read... [09:01:25]Read from MH i2c: E2 0E 00 [09:01:25]MH_I2C_Read... [09:01:25]Read from MH i2c: E2 0E 00 12 00 00 09 00 01 63 60 F3 66 00 00 00 00 90 00 B7 [09:01:25]RAPDU: 09 00 01 63 60 F3 66 00 00 00 00 90 00 [09:01:25]wFMCommunicate OK [09:01:25]SAM_PROTO_GetShiftState done [09:01:25]FM_GetShiftState done [09:01:25]req_shift_opened done [09:01:25]requested_item shift.open_date is exist - process it [09:01:25]req_shift_open_date [09:01:25]req_shift_open_date done [09:01:25]produce_requested_data done [09:01:25]produce_requested_data return {"kkm.sn":"0300000120","kkm.ver":"001","fm.sn":"0000000000871830","fd.num":116187,"shift.num":474,"shift.opened":1,"shift.open_date":1727225955} [09:01:25]process_action_free get_value [09:01:25]json_value_free [09:01:25]json_value_free done [09:01:25]process_json_proto returns [09:01:25]Send response to host [09:01:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000120","kkm.ver":"001","fm.sn":"0000000000871830","fd.num":116187,"shift.num":474,"shift.opened":1,"shift.open_date":1727225955}}} [09:01:25]free response buf [09:01:25]execute_script done [09:01:25]execute_script returns [09:01:25]free content buf [09:01:25]Sock 7.Close socket [09:01:25]Sock 7.Thread stoped [09:01:25]accept exits with 9 [09:01:25]New connection [09:01:25]New thread 3066637668 created [09:01:25]Thread 3066781028 joined [09:01:25]Waiting for new connection... [09:01:25] Sock 9.Parse request [09:01:25]Sock 9.Check first char [09:01:25]Sock 9.First char is OK [09:01:25]request: POST /json_proto HTTP/1.0 [09:01:25]Method: POST [09:01:25]URL: /json_proto [09:01:25]Method is POST - this is cgi request [09:01:25]url: /json_proto [09:01:25]query_string will be loaded in cgi processing [09:01:25]execute_cgi json_proto POST (null) [09:01:25]execute_cgi path=json_proto method=POST [09:01:25]POST find Content-Length [09:01:25]Host: 172.17.41.136:8080 [09:01:25]Content-Length: 331 [09:01:25]Content-Type: application/json [09:01:25] [09:01:25]POST finish read [09:01:25]Found Content-Length = 331 [09:01: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" ] } } [09:01:25]execute_script... [09:01: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" ] } } [09:01:25]POST & json_proto [09:01:25]process_json_proto [09:01:25]json parsed OK: [09:01:25]protocol is kg_v1.0 [09:01:25]action value=get_value [09:01:25]process_action get_value [09:01:25]cmd_get_value [09:01:25]process_action get_value done [09:01:25]requested_data is exist [09:01:25]produce_requested_data [09:01:25]requested_item fm.sale.total is exist - process it [09:01:25]SAM_PROTO_GetFMData [09:01:25]wFMCommunicate request_size=4 [09:01:25]MH_SAM_APDU [09:01:25]CAPDU: 80 13 03 00 [09:01:25]Write to MH i2c: E2 08 00 13 00 80 13 03 00 00 00 00 00 92 [09:01:25]Write i2c OK [09:01:25]MH_I2C_Read... [09:01:26]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [09:01:26]Read from MH i2c: E2 [09:01:26]MH_I2C_Read... [09:01:26]Read from MH i2c: E2 FD 00 [09:01:26]MH_I2C_Read... [09:01:26]Read from MH i2c: E2 FD 00 13 00 00 C5 04 85 04 C1 04 6E 04 04 00 26 C2 01 00 69 04 A3 00 6F 04 04 00 A6 C0 01 00 B1 04 05 00 ED 6E 4F 83 01 70 04 05 00 11 81 F2 48 01 72 04 04 00 DC ED 5C 3A 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 4E 3E 23 29 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 DE 63 6D 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 80 01 00 00 B1 04 04 00 CC 60 FF 0F 70 04 04 00 CC 60 FF 0F 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 16 ED B2 01 EF 03 09 90 00 94 [09:01:26]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 26 C2 01 00 69 04 A3 00 6F 04 04 00 A6 C0 01 00 B1 04 05 00 ED 6E 4F 83 01 70 04 05 00 11 81 F2 48 01 72 04 04 00 DC ED 5C 3A 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 4E 3E 23 29 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 DE 63 6D 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 80 01 00 00 B1 04 04 00 CC 60 FF 0F 70 04 04 00 CC 60 FF 0F 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 16 ED B2 01 EF 03 09 90 00 [09:01:26]wFMCommunicate OK [09:01:26]wFMCommunicate request_size=4 [09:01:26]MH_SAM_APDU [09:01:26]CAPDU: 80 17 00 00 [09:01:26]Write to MH i2c: E2 08 00 14 00 80 17 00 00 00 00 00 00 94 [09:01:26]Write i2c OK [09:01:26]MH_I2C_Read... [09:01:26]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [09:01:26]Read from MH i2c: E2 [09:01:26]MH_I2C_Read... [09:01:26]Read from MH i2c: E2 FD 00 [09:01:26]MH_I2C_Read... [09:01:26]Read from MH i2c: E2 FD 00 14 00 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 50 3E 24 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 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 FC [09:01: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 50 3E 24 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 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 [09:01:26]wFMCommunicate OK [09:01:26]wFMCommunicate request_size=4 [09:01:26]MH_SAM_APDU [09:01:26]CAPDU: 80 17 00 00 [09:01:26]Write to MH i2c: E2 08 00 15 00 80 17 00 00 00 00 00 00 95 [09:01:26]Write i2c OK [09:01:26]MH_I2C_Read... [09:01:26]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [09:01:26]Read from MH i2c: E2 [09:01:26]MH_I2C_Read... [09:01:26]Read from MH i2c: E2 FD 00 [09:01:26]MH_I2C_Read... [09:01:26]Read from MH i2c: E2 FD 00 15 00 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 A7 [09:01: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 [09:01:26]wFMCommunicate OK [09:01:26]wFMCommunicate request_size=4 [09:01:26]MH_SAM_APDU [09:01:26]CAPDU: 80 17 00 00 [09:01:26]Write to MH i2c: E2 08 00 16 00 80 17 00 00 00 00 00 00 96 [09:01:26]Write i2c OK [09:01:26]MH_I2C_Read... [09:01:27]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [09:01:27]Read from MH i2c: E2 [09:01:27]MH_I2C_Read... [09:01:27]Read from MH i2c: E2 FD 00 [09:01:27]MH_I2C_Read... [09:01:27]Read from MH i2c: E2 FD 00 16 00 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 22 [09:01: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 [09:01:27]wFMCommunicate OK [09:01:27]wFMCommunicate request_size=4 [09:01:27]MH_SAM_APDU [09:01:27]CAPDU: 80 17 00 00 [09:01:27]Write to MH i2c: E2 08 00 17 00 80 17 00 00 00 00 00 00 97 [09:01:27]Write i2c OK [09:01:27]MH_I2C_Read... [09:01:27]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [09:01:27]Read from MH i2c: E2 [09:01:27]MH_I2C_Read... [09:01:27]Read from MH i2c: E2 E2 00 [09:01:27]MH_I2C_Read... [09:01:27]Read from MH i2c: E2 E2 00 17 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 75 [09:01: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 [09:01:27]wFMCommunicate OK [09:01:27]SAM_PROTO_GetFMData done [09:01:27]requested_item fm.sale_refund.total is exist - process it [09:01:27]requested_item fm.buy.total is exist - process it [09:01:27]requested_item shift.sale.total is exist - process it [09:01:27]SAM_PROTO_GetShiftData [09:01:27]wFMCommunicate request_size=4 [09:01:27]MH_SAM_APDU [09:01:27]CAPDU: 80 13 02 00 [09:01:27]Write to MH i2c: E2 08 00 18 00 80 13 02 00 00 00 00 00 96 [09:01:27]Write i2c OK [09:01:27]MH_I2C_Read... [09:01:27]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [09:01:27]Read from MH i2c: E2 [09:01:27]MH_I2C_Read... [09:01:27]Read from MH i2c: E2 FD 00 [09:01:27]MH_I2C_Read... [09:01:27]Read from MH i2c: E2 FD 00 18 00 00 B9 04 AA 04 B5 04 6E 04 04 00 2B 00 00 00 69 04 9B 00 6F 04 04 00 29 00 00 00 B1 04 03 00 1C 24 47 70 04 03 00 1C 74 42 72 04 03 00 00 B0 04 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 14 8E 07 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 2A A1 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 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 02 00 00 00 B1 04 03 00 90 D5 30 70 04 03 00 90 D5 30 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 99 2F 05 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 59 [09:01:27]RAPDU: B9 04 AA 04 B5 04 6E 04 04 00 2B 00 00 00 69 04 9B 00 6F 04 04 00 29 00 00 00 B1 04 03 00 1C 24 47 70 04 03 00 1C 74 42 72 04 03 00 00 B0 04 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 14 8E 07 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 2A A1 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 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 02 00 00 00 B1 04 03 00 90 D5 30 70 04 03 00 90 D5 30 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 99 2F 05 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 [09:01:27]wFMCommunicate OK [09:01:27]wFMCommunicate request_size=4 [09:01:27]MH_SAM_APDU [09:01:27]CAPDU: 80 17 00 00 [09:01:27]Write to MH i2c: E2 08 00 19 00 80 17 00 00 00 00 00 00 99 [09:01:27]Write i2c OK [09:01:27]MH_I2C_Read... [09:01:28]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [09:01:28]Read from MH i2c: E2 [09:01:28]MH_I2C_Read... [09:01:28]Read from MH i2c: E2 FD 00 [09:01:28]MH_I2C_Read... [09:01:28]Read from MH i2c: E2 FD 00 19 00 00 03 0B 00 F6 03 01 00 01 F7 03 02 00 A2 6E EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 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 90 00 68 [09:01:28]RAPDU: 03 0B 00 F6 03 01 00 01 F7 03 02 00 A2 6E EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 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 90 00 [09:01:28]wFMCommunicate OK [09:01:28]wFMCommunicate request_size=4 [09:01:28]MH_SAM_APDU [09:01:28]CAPDU: 80 17 00 00 [09:01:28]Write to MH i2c: E2 08 00 1A 00 80 17 00 00 00 00 00 00 9A [09:01:28]Write i2c OK [09:01:28]MH_I2C_Read... [09:01:28]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [09:01:28]Read from MH i2c: E2 [09:01:28]MH_I2C_Read... [09:01:28]Read from MH i2c: E2 FD 00 [09:01:28]MH_I2C_Read... [09:01:28]Read from MH i2c: E2 FD 00 1A 00 00 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 90 00 C2 [09:01:28]RAPDU: 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 90 00 [09:01:28]wFMCommunicate OK [09:01:28]wFMCommunicate request_size=4 [09:01:28]MH_SAM_APDU [09:01:28]CAPDU: 80 17 00 00 [09:01:28]Write to MH i2c: E2 08 00 1B 00 80 17 00 00 00 00 00 00 9B [09:01:28]Write i2c OK [09:01:28]MH_I2C_Read... [09:01:28]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [09:01:28]Read from MH i2c: E2 [09:01:28]MH_I2C_Read... [09:01:28]Read from MH i2c: E2 FD 00 [09:01:28]MH_I2C_Read... [09:01:28]Read from MH i2c: E2 FD 00 1B 00 00 EF 03 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 90 00 13 [09:01:28]RAPDU: EF 03 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 90 00 [09:01:28]wFMCommunicate OK [09:01:28]wFMCommunicate request_size=4 [09:01:28]MH_SAM_APDU [09:01:28]CAPDU: 80 17 00 00 [09:01:28]Write to MH i2c: E2 08 00 1C 00 80 17 00 00 00 00 00 00 9C [09:01:28]Write i2c OK [09:01:28]MH_I2C_Read... [09:01:28]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 211! [09:01:28]Read from MH i2c: E2 [09:01:28]MH_I2C_Read... [09:01:28]Read from MH i2c: E2 D6 00 [09:01:28]MH_I2C_Read... [09:01:28]Read from MH i2c: E2 D6 00 1C 00 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 7E [09:01: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 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [09:01:28]wFMCommunicate OK [09:01:28]SAM_PROTO_GetShiftData done [09:01:28]requested_item shift.sale.total_cash is exist - process it [09:01:28]requested_item shift.sale_refund.total is exist - process it [09:01:28]requested_item shift.sale_refund.total_cash is exist - process it [09:01:28]requested_item shift.buy.total is exist - process it [09:01:28]requested_item shift.buy.total_cash is exist - process it [09:01:28]produce_requested_data done [09:01:28]produce_requested_data return {"fm.sale.total":64979883.33,"fm.sale_refund.total":2683947.00,"fm.buy.total":0.00,"shift.sale.total":46623.00,"shift.sale.total_cash":43551.00,"shift.sale_refund.total":32004.00,"shift.sale_refund.total_cash":32004.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [09:01:28]process_action_free get_value [09:01:28]json_value_free [09:01:28]json_value_free done [09:01:28]process_json_proto returns [09:01:28]Send response to host [09:01:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":64979883.33,"fm.sale_refund.total":2683947.00,"fm.buy.total":0.00,"shift.sale.total":46623.00,"shift.sale.total_cash":43551.00,"shift.sale_refund.total":32004.00,"shift.sale_refund.total_cash":32004.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [09:01:28]free response buf [09:01:28]execute_script done [09:01:28]execute_script returns [09:01:28]free content buf [09:01:28]Sock 9.Close socket [09:01:28]Sock 9.Thread stoped [09:01:29]OFD Sender: No OFD packet to send [09:01:34]OFD Sender: No OFD packet to send [09:01:39]OFD Sender: No OFD packet to send [09:01:44]OFD Sender: No OFD packet to send [09:01:47]accept exits with 7 [09:01:47]New connection [09:01:47]New thread 3066781028 created [09:01:47]Thread 3066637668 joined [09:01:47]Waiting for new connection... [09:01:47] Sock 7.Parse request [09:01:47]Sock 7.Check first char [09:01:47]Sock 7.First char is OK [09:01:47]request: POST /json_proto HTTP/1.0 [09:01:47]Method: POST [09:01:47]URL: /json_proto [09:01:47]Method is POST - this is cgi request [09:01:47]url: /json_proto [09:01:47]query_string will be loaded in cgi processing [09:01:47]execute_cgi json_proto POST (null) [09:01:47]execute_cgi path=json_proto method=POST [09:01:47]POST find Content-Length [09:01:47]Host: 172.17.41.136:8080 [09:01:47]Content-Length: 215 [09:01:47]Content-Type: application/json [09:01:47] [09:01:47]POST finish read [09:01:47]Found Content-Length = 215 [09:01:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:01:47]execute_script... [09:01:47]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:01:47]POST & json_proto [09:01:47]process_json_proto [09:01:47]json parsed OK: [09:01:47]protocol is kg_v1.0 [09:01:47]action value=get_value [09:01:47]process_action get_value [09:01:47]cmd_get_value [09:01:47]process_action get_value done [09:01:47]requested_data is exist [09:01:47]produce_requested_data [09:01:47]requested_item kkm.sn is exist - process it [09:01:47]requested_item kkm.ver is exist - process it [09:01:47]requested_item fm.sn is exist - process it [09:01:47]wFMCommunicate request_size=4 [09:01:47]MH_SAM_APDU [09:01:47]CAPDU: 80 11 00 00 [09:01:47]Write to MH i2c: E2 08 00 1D 00 80 11 00 00 00 00 00 00 97 [09:01:47]Write i2c OK [09:01:47]MH_I2C_Read... [09:01:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:01:47]Read from MH i2c: E2 [09:01:47]MH_I2C_Read... [09:01:47]Read from MH i2c: E2 17 00 [09:01:47]MH_I2C_Read... [09:01:47]Read from MH i2c: E2 17 00 1D 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 E5 [09:01:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [09:01:47]wFMCommunicate OK [09:01:47]requested_item fd.num is exist - process it [09:01:47]SAM_PROTO_GetFieldsCounters [09:01:47]wFMCommunicate request_size=4 [09:01:47]MH_SAM_APDU [09:01:47]CAPDU: 80 13 00 00 [09:01:47]Write to MH i2c: E2 08 00 1E 00 80 13 00 00 00 00 00 00 9A [09:01:47]Write i2c OK [09:01:47]MH_I2C_Read... [09:01:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:01:47]Read from MH i2c: E2 [09:01:47]MH_I2C_Read... [09:01:47]Read from MH i2c: E2 62 00 [09:01:47]MH_I2C_Read... [09:01:47]Read from MH i2c: E2 62 00 1E 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 DB C5 01 00 0E 04 04 00 DA 01 00 00 12 04 04 00 2B 00 00 00 5E 04 04 00 2B 00 00 00 57 04 04 00 2C 00 00 00 19 04 04 00 00 00 00 00 90 00 B0 [09:01:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 DB C5 01 00 0E 04 04 00 DA 01 00 00 12 04 04 00 2B 00 00 00 5E 04 04 00 2B 00 00 00 57 04 04 00 2C 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:01:47]wFMCommunicate OK [09:01:47]SAM_PROTO_GetFieldsCounters done [09:01:47]requested_item shift.num is exist - process it [09:01:47]requested_item shift.opened is exist - process it [09:01:47]req_shift_opened [09:01:47]FM_GetShiftState [09:01:47]SAM_PROTO_GetShiftState [09:01:47]wFMCommunicate request_size=4 [09:01:47]MH_SAM_APDU [09:01:47]CAPDU: 80 13 01 00 [09:01:47]Write to MH i2c: E2 08 00 1F 00 80 13 01 00 00 00 00 00 9C [09:01:48]Write i2c OK [09:01:48]MH_I2C_Read... [09:01:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:01:48]Read from MH i2c: E2 [09:01:48]MH_I2C_Read... [09:01:48]Read from MH i2c: E2 0E 00 [09:01:48]MH_I2C_Read... [09:01:48]Read from MH i2c: E2 0E 00 1F 00 00 09 00 01 63 60 F3 66 00 00 00 00 90 00 C4 [09:01:48]RAPDU: 09 00 01 63 60 F3 66 00 00 00 00 90 00 [09:01:48]wFMCommunicate OK [09:01:48]SAM_PROTO_GetShiftState done [09:01:48]FM_GetShiftState done [09:01:48]req_shift_opened done [09:01:48]requested_item shift.open_date is exist - process it [09:01:48]req_shift_open_date [09:01:48]req_shift_open_date done [09:01:48]produce_requested_data done [09:01:48]produce_requested_data return {"kkm.sn":"0300000120","kkm.ver":"001","fm.sn":"0000000000871830","fd.num":116187,"shift.num":474,"shift.opened":1,"shift.open_date":1727225955} [09:01:48]process_action_free get_value [09:01:48]json_value_free [09:01:48]json_value_free done [09:01:48]process_json_proto returns [09:01:48]Send response to host [09:01:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000120","kkm.ver":"001","fm.sn":"0000000000871830","fd.num":116187,"shift.num":474,"shift.opened":1,"shift.open_date":1727225955}}} [09:01:48]free response buf [09:01:48]execute_script done [09:01:48]execute_script returns [09:01:48]free content buf [09:01:48]Sock 7.Close socket [09:01:48]Sock 7.Thread stoped [09:01:48]accept exits with 9 [09:01:48]New connection [09:01:48]New thread 3066637668 created [09:01:48]Thread 3066781028 joined [09:01:48]Waiting for new connection... [09:01:48] Sock 9.Parse request [09:01:48]Sock 9.Check first char [09:01:48]Sock 9.First char is OK [09:01:48]request: POST /json_proto HTTP/1.0 [09:01:48]Method: POST [09:01:48]URL: /json_proto [09:01:48]Method is POST - this is cgi request [09:01:48]url: /json_proto [09:01:48]query_string will be loaded in cgi processing [09:01:48]execute_cgi json_proto POST (null) [09:01:48]execute_cgi path=json_proto method=POST [09:01:48]POST find Content-Length [09:01:48]Host: 172.17.41.136:8080 [09:01:48]Content-Length: 331 [09:01:48]Content-Type: application/json [09:01:48] [09:01:48]POST finish read [09:01:48]Found Content-Length = 331 [09:01:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [09:01:48]execute_script... [09:01:48]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [09:01:48]POST & json_proto [09:01:48]process_json_proto [09:01:48]json parsed OK: [09:01:48]protocol is kg_v1.0 [09:01:48]action value=get_value [09:01:48]process_action get_value [09:01:48]cmd_get_value [09:01:48]process_action get_value done [09:01:48]requested_data is exist [09:01:48]produce_requested_data [09:01:48]requested_item fm.sale.total is exist - process it [09:01:48]SAM_PROTO_GetFMData [09:01:48]wFMCommunicate request_size=4 [09:01:48]MH_SAM_APDU [09:01:48]CAPDU: 80 13 03 00 [09:01:48]Write to MH i2c: E2 08 00 20 00 80 13 03 00 00 00 00 00 9F [09:01:48]Write i2c OK [09:01:48]MH_I2C_Read... [09:01:48]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [09:01:48]Read from MH i2c: E2 [09:01:48]MH_I2C_Read... [09:01:48]Read from MH i2c: E2 FD 00 [09:01:48]MH_I2C_Read... [09:01:48]Read from MH i2c: E2 FD 00 20 00 00 C5 04 85 04 C1 04 6E 04 04 00 26 C2 01 00 69 04 A3 00 6F 04 04 00 A6 C0 01 00 B1 04 05 00 ED 6E 4F 83 01 70 04 05 00 11 81 F2 48 01 72 04 04 00 DC ED 5C 3A 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 4E 3E 23 29 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 DE 63 6D 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 80 01 00 00 B1 04 04 00 CC 60 FF 0F 70 04 04 00 CC 60 FF 0F 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 16 ED B2 01 EF 03 09 90 00 A1 [09:01:48]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 26 C2 01 00 69 04 A3 00 6F 04 04 00 A6 C0 01 00 B1 04 05 00 ED 6E 4F 83 01 70 04 05 00 11 81 F2 48 01 72 04 04 00 DC ED 5C 3A 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 4E 3E 23 29 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 DE 63 6D 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 80 01 00 00 B1 04 04 00 CC 60 FF 0F 70 04 04 00 CC 60 FF 0F 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 16 ED B2 01 EF 03 09 90 00 [09:01:48]wFMCommunicate OK [09:01:48]wFMCommunicate request_size=4 [09:01:48]MH_SAM_APDU [09:01:48]CAPDU: 80 17 00 00 [09:01:48]Write to MH i2c: E2 08 00 21 00 80 17 00 00 00 00 00 00 A1 [09:01:48]Write i2c OK [09:01:48]MH_I2C_Read... [09:01:49]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [09:01:49]Read from MH i2c: E2 [09:01:49]MH_I2C_Read... [09:01:49]Read from MH i2c: E2 FD 00 [09:01:49]MH_I2C_Read... [09:01:49]Read from MH i2c: E2 FD 00 21 00 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 50 3E 24 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 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 09 [09:01:49]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 50 3E 24 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 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 [09:01:49]wFMCommunicate OK [09:01:49]wFMCommunicate request_size=4 [09:01:49]MH_SAM_APDU [09:01:49]CAPDU: 80 17 00 00 [09:01:49]Write to MH i2c: E2 08 00 22 00 80 17 00 00 00 00 00 00 A2 [09:01:49]Write i2c OK [09:01:49]MH_I2C_Read... [09:01:49]OFD Sender: No OFD packet to send [09:01:49]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [09:01:49]Read from MH i2c: E2 [09:01:49]MH_I2C_Read... [09:01:49]Read from MH i2c: E2 FD 00 [09:01:49]MH_I2C_Read... [09:01:49]Read from MH i2c: E2 FD 00 22 00 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 B4 [09:01:49]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 [09:01:49]wFMCommunicate OK [09:01:49]wFMCommunicate request_size=4 [09:01:49]MH_SAM_APDU [09:01:49]CAPDU: 80 17 00 00 [09:01:49]Write to MH i2c: E2 08 00 23 00 80 17 00 00 00 00 00 00 A3 [09:01:49]Write i2c OK [09:01:49]MH_I2C_Read... [09:01:49]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [09:01:49]Read from MH i2c: E2 [09:01:49]MH_I2C_Read... [09:01:49]Read from MH i2c: E2 FD 00 [09:01:49]MH_I2C_Read... [09:01:49]Read from MH i2c: E2 FD 00 23 00 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 2F [09:01:49]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 [09:01:49]wFMCommunicate OK [09:01:49]wFMCommunicate request_size=4 [09:01:49]MH_SAM_APDU [09:01:49]CAPDU: 80 17 00 00 [09:01:49]Write to MH i2c: E2 08 00 24 00 80 17 00 00 00 00 00 00 A4 [09:01:49]Write i2c OK [09:01:49]MH_I2C_Read... [09:01:49]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [09:01:49]Read from MH i2c: E2 [09:01:49]MH_I2C_Read... [09:01:49]Read from MH i2c: E2 E2 00 [09:01:49]MH_I2C_Read... [09:01:49]Read from MH i2c: E2 E2 00 24 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 82 [09:01:49]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 [09:01:49]wFMCommunicate OK [09:01:49]SAM_PROTO_GetFMData done [09:01:49]requested_item fm.sale_refund.total is exist - process it [09:01:49]requested_item fm.buy.total is exist - process it [09:01:49]requested_item shift.sale.total is exist - process it [09:01:49]SAM_PROTO_GetShiftData [09:01:49]wFMCommunicate request_size=4 [09:01:49]MH_SAM_APDU [09:01:49]CAPDU: 80 13 02 00 [09:01:49]Write to MH i2c: E2 08 00 25 00 80 13 02 00 00 00 00 00 A3 [09:01:49]Write i2c OK [09:01:49]MH_I2C_Read... [09:01:50]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [09:01:50]Read from MH i2c: E2 [09:01:50]MH_I2C_Read... [09:01:50]Read from MH i2c: E2 FD 00 [09:01:50]MH_I2C_Read... [09:01:50]Read from MH i2c: E2 FD 00 25 00 00 B9 04 AA 04 B5 04 6E 04 04 00 2B 00 00 00 69 04 9B 00 6F 04 04 00 29 00 00 00 B1 04 03 00 1C 24 47 70 04 03 00 1C 74 42 72 04 03 00 00 B0 04 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 14 8E 07 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 2A A1 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 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 02 00 00 00 B1 04 03 00 90 D5 30 70 04 03 00 90 D5 30 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 99 2F 05 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 66 [09:01:50]RAPDU: B9 04 AA 04 B5 04 6E 04 04 00 2B 00 00 00 69 04 9B 00 6F 04 04 00 29 00 00 00 B1 04 03 00 1C 24 47 70 04 03 00 1C 74 42 72 04 03 00 00 B0 04 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 14 8E 07 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 2A A1 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 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 02 00 00 00 B1 04 03 00 90 D5 30 70 04 03 00 90 D5 30 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 99 2F 05 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 [09:01:50]wFMCommunicate OK [09:01:50]wFMCommunicate request_size=4 [09:01:50]MH_SAM_APDU [09:01:50]CAPDU: 80 17 00 00 [09:01:50]Write to MH i2c: E2 08 00 26 00 80 17 00 00 00 00 00 00 A6 [09:01:50]Write i2c OK [09:01:50]MH_I2C_Read... [09:01:50]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [09:01:50]Read from MH i2c: E2 [09:01:50]MH_I2C_Read... [09:01:50]Read from MH i2c: E2 FD 00 [09:01:50]MH_I2C_Read... [09:01:50]Read from MH i2c: E2 FD 00 26 00 00 03 0B 00 F6 03 01 00 01 F7 03 02 00 A2 6E EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 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 90 00 75 [09:01:50]RAPDU: 03 0B 00 F6 03 01 00 01 F7 03 02 00 A2 6E EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 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 90 00 [09:01:50]wFMCommunicate OK [09:01:50]wFMCommunicate request_size=4 [09:01:50]MH_SAM_APDU [09:01:50]CAPDU: 80 17 00 00 [09:01:50]Write to MH i2c: E2 08 00 27 00 80 17 00 00 00 00 00 00 A7 [09:01:50]Write i2c OK [09:01:50]MH_I2C_Read... [09:01:50]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [09:01:50]Read from MH i2c: E2 [09:01:50]MH_I2C_Read... [09:01:50]Read from MH i2c: E2 FD 00 [09:01:50]MH_I2C_Read... [09:01:50]Read from MH i2c: E2 FD 00 27 00 00 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 90 00 CF [09:01:50]RAPDU: 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 90 00 [09:01:50]wFMCommunicate OK [09:01:50]wFMCommunicate request_size=4 [09:01:50]MH_SAM_APDU [09:01:50]CAPDU: 80 17 00 00 [09:01:50]Write to MH i2c: E2 08 00 28 00 80 17 00 00 00 00 00 00 A8 [09:01:50]Write i2c OK [09:01:50]MH_I2C_Read... [09:01:51]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [09:01:51]Read from MH i2c: E2 [09:01:51]MH_I2C_Read... [09:01:51]Read from MH i2c: E2 FD 00 [09:01:51]MH_I2C_Read... [09:01:51]Read from MH i2c: E2 FD 00 28 00 00 EF 03 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 90 00 20 [09:01:51]RAPDU: EF 03 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 90 00 [09:01:51]wFMCommunicate OK [09:01:51]wFMCommunicate request_size=4 [09:01:51]MH_SAM_APDU [09:01:51]CAPDU: 80 17 00 00 [09:01:51]Write to MH i2c: E2 08 00 29 00 80 17 00 00 00 00 00 00 A9 [09:01:51]Write i2c OK [09:01:51]MH_I2C_Read... [09:01:51]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 211! [09:01:51]Read from MH i2c: E2 [09:01:51]MH_I2C_Read... [09:01:51]Read from MH i2c: E2 D6 00 [09:01:51]MH_I2C_Read... [09:01:51]Read from MH i2c: E2 D6 00 29 00 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 8B [09:01:51]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 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [09:01:51]wFMCommunicate OK [09:01:51]SAM_PROTO_GetShiftData done [09:01:51]requested_item shift.sale.total_cash is exist - process it [09:01:51]requested_item shift.sale_refund.total is exist - process it [09:01:51]requested_item shift.sale_refund.total_cash is exist - process it [09:01:51]requested_item shift.buy.total is exist - process it [09:01:51]requested_item shift.buy.total_cash is exist - process it [09:01:51]produce_requested_data done [09:01:51]produce_requested_data return {"fm.sale.total":64979883.33,"fm.sale_refund.total":2683947.00,"fm.buy.total":0.00,"shift.sale.total":46623.00,"shift.sale.total_cash":43551.00,"shift.sale_refund.total":32004.00,"shift.sale_refund.total_cash":32004.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [09:01:51]process_action_free get_value [09:01:51]json_value_free [09:01:51]json_value_free done [09:01:51]process_json_proto returns [09:01:51]Send response to host [09:01:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":64979883.33,"fm.sale_refund.total":2683947.00,"fm.buy.total":0.00,"shift.sale.total":46623.00,"shift.sale.total_cash":43551.00,"shift.sale_refund.total":32004.00,"shift.sale_refund.total_cash":32004.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [09:01:51]free response buf [09:01:51]execute_script done [09:01:51]execute_script returns [09:01:51]free content buf [09:01:51]Sock 9.Close socket [09:01:51]Sock 9.Thread stoped [09:01:54]OFD Sender: No OFD packet to send [09:01:59]OFD Sender: No OFD packet to send [09:02:04]OFD Sender: No OFD packet to send [09:02:09]OFD Sender: No OFD packet to send [09:02:14]OFD Sender: No OFD packet to send [09:02:19]OFD Sender: No OFD packet to send [09:02:24]OFD Sender: No OFD packet to send [09:02:29]OFD Sender: No OFD packet to send [09:02:34]OFD Sender: No OFD packet to send [09:02:39]OFD Sender: No OFD packet to send [09:02:44]OFD Sender: No OFD packet to send [09:02:49]OFD Sender: No OFD packet to send [09:02:54]OFD Sender: No OFD packet to send [09:02:59]OFD Sender: No OFD packet to send [09:03:04]OFD Sender: No OFD packet to send [09:03:09]OFD Sender: No OFD packet to send [09:03:14]OFD Sender: No OFD packet to send [09:03:19]OFD Sender: No OFD packet to send [09:03:24]OFD Sender: No OFD packet to send [09:03:29]OFD Sender: No OFD packet to send [09:03:34]OFD Sender: No OFD packet to send [09:03:39]OFD Sender: No OFD packet to send [09:03:44]OFD Sender: No OFD packet to send [09:03:49]OFD Sender: No OFD packet to send [09:03:54]OFD Sender: No OFD packet to send [09:03:59]OFD Sender: No OFD packet to send [09:04:04]OFD Sender: No OFD packet to send [09:04:09]OFD Sender: No OFD packet to send [09:04:14]OFD Sender: No OFD packet to send [09:04:19]OFD Sender: No OFD packet to send [09:04:24]OFD Sender: No OFD packet to send [09:04:29]OFD Sender: No OFD packet to send [09:04:34]OFD Sender: No OFD packet to send [09:04:39]OFD Sender: No OFD packet to send [09:04:44]OFD Sender: No OFD packet to send [09:04:49]OFD Sender: No OFD packet to send [09:04:54]OFD Sender: No OFD packet to send [09:04:59]OFD Sender: No OFD packet to send [09:05:04]OFD Sender: No OFD packet to send [09:05:09]OFD Sender: No OFD packet to send [09:05:14]OFD Sender: No OFD packet to send [09:05:19]OFD Sender: No OFD packet to send [09:05:24]OFD Sender: No OFD packet to send [09:05:29]OFD Sender: No OFD packet to send [09:05:34]OFD Sender: No OFD packet to send [09:05:39]OFD Sender: No OFD packet to send [09:05:44]OFD Sender: No OFD packet to send [09:05:49]OFD Sender: No OFD packet to send [09:05:54]OFD Sender: No OFD packet to send [09:05:59]OFD Sender: No OFD packet to send [09:06:04]OFD Sender: No OFD packet to send [09:06:09]OFD Sender: No OFD packet to send [09:06:14]OFD Sender: No OFD packet to send [09:06:19]OFD Sender: No OFD packet to send [09:06:24]OFD Sender: No OFD packet to send [09:06:30]OFD Sender: No OFD packet to send [09:06:35]OFD Sender: No OFD packet to send [09:06:40]OFD Sender: No OFD packet to send [09:06:45]OFD Sender: No OFD packet to send [09:06:50]OFD Sender: No OFD packet to send [09:06:55]OFD Sender: No OFD packet to send [09:07:00]OFD Sender: No OFD packet to send [09:07:05]OFD Sender: No OFD packet to send [09:07:10]OFD Sender: No OFD packet to send [09:07:15]OFD Sender: No OFD packet to send [09:07:20]OFD Sender: No OFD packet to send [09:07:25]OFD Sender: No OFD packet to send [09:07:30]OFD Sender: No OFD packet to send [09:07:35]OFD Sender: No OFD packet to send [09:07:40]OFD Sender: No OFD packet to send [09:07:45]OFD Sender: No OFD packet to send [09:07:50]OFD Sender: No OFD packet to send [09:07:55]OFD Sender: No OFD packet to send [09:08:00]OFD Sender: No OFD packet to send [00:00:09] *** EcrCore started. Build 196 *** [00:00:09]MH_InterfaceInit /dev/i2c-1 [00:00:09]Malloc ok [00:00:09]/dev/ttyS4 opened [00:00:09]MH_GetMetrics [00:00:09]Write to MH i2c: 00 00 00 01 00 00 [00:00:09]Write i2c OK [00:00:09]MH_I2C_Read... [00:00:09]Read from MH i2c: 00 [00:00:09]MH_I2C_Read... [00:00:09]Read from MH i2c: 00 29 00 [00:00:09]MH_I2C_Read... [00:00:09]Read from MH i2c: 00 29 00 01 00 00 03 9C 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 B9 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 01 03 00 5E [00:00:09]Are we in boot? [00:00:09]We are in boot - try to switch [00:00:09]Write to MH i2c: A0 00 00 02 00 A1 [00:00:09]Write i2c OK [00:00:09]MH_I2C_Read... [00:00:09]*** Check firmware version 30620, crc_r 49A1A6DB, crc_c: 49A1A6DB, size: 53248 [00:00:09]*** [00:00:09]Read from MH i2c: A0 [00:00:09]MH_I2C_Read... [00:00:09]Read from MH i2c: A0 01 00 [00:00:09]MH_I2C_Read... [00:00:09]Read from MH i2c: A0 01 00 02 00 00 A2 [00:00:09]*** Starting fw at address 01020100 (2007E328 010249C5) [00:00:09]*** Waiting for read because exit forced [00:00:09]*** 10 ms more... [00:00:09]*** MH1903S init start (LINUX_LIGHT) [00:00:09]*** Compilation Date Jun 20 2023 Time 12:36:20 [00:00:09]*** Serial: 3139303353513838 54000000005725B9 (1903SQ88T) [00:00:09]*** User serial: FFFFFFFFFFFFFFFF FFFFFFFFFFFFFFFF () [00:00:09]*** step 0: 5000 (2650, 2350 REF) [00:00:09]*** step 1: 4835 (2500, 2335 REF) [00:00:09]*** step 2: 4676 (2440, 2236 REF) [00:00:09]*** step 3: 4523 (2280, 2243 REF) [00:00:09]*** step 4: 4376 (2160, 2216 REF) [00:00:09]*** step 5: 4235 (2050, 2185 REF) [00:00:09]*** step 6: 4098 (1950, 2148 REF) [00:00:09]*** step 7: 3967 (1870, 2097 REF) [00:00:09]*** step 8: 3840 (1828, 2012 REF) [00:00:09]*** step 9: 3719 (1728, 1991 REF) [00:00:09]*** step 10: 3601 (1675, 1926 REF) [00:00:09]*** step 11: 3488 (1635, 1853 REF) [00:00:09]*** step 12: 3379 (1595, 1784 REF) [00:00:09]*** step 13: 3275 (1565, 1710 REF) [00:00:09]*** step 14: 3174 (1543, 1631 REF) [00:00:09]*** step 15: 3077 (1523, 1554 REF) [00:00:09]*** step 16: 2983 (1503, 1480 REF) [00:00:09]*** step 17: 2893 (1486, 1407 REF) [00:00:09]*** step 18: 2806 (1466, 1340 REF) [00:00:09]*** step 19: 2723 (1426, 1297 REF) [00:00:09]*** step 20: 2642 (1406, 1236 REF) [00:00:09]*** step 21: 2565 (1384, 1181 REF) [00:00:09]*** step 22: 2490 (1364, 1126 REF) [00:00:09]*** step 23: 2418 (1344, 1074 REF) [00:00:09]*** step 24: 2349 (1322, 1027 REF) [00:00:09]*** step 25: 2283 (1302, 981 REF) [00:00:09]*** step 26: 2218 (1282, 936 REF) [00:00:09]*** step 27: 2157 (1262, 895 REF) [00:00:09]*** step 28: 2097 (1242, 855 REF) [00:00:09]*** step 29: 2040 (1222, 818 REF) [00:00:09]*** step 30: 1985 (1202, 783 REF) [00:00:09]*** step 31: 1932 (1191, 741 REF) [00:00:09]*** step 32: 1880 (1181, 699 REF) [00:00:09]*** step 33: 1831 (1171, 660 REF) [00:00:09]*** step 34: 1784 (1161, 623 REF) [00:00:09]*** step 35: 1738 (1151, 587 REF) [00:00:09]*** step 36: 1694 (1141, 553 REF) [00:00:09]*** step 37: 1652 (1131, 521 REF) [00:00:09]*** step 38: 1611 (1121, 490 REF) [00:00:09]*** step 39: 1572 (1111, 461 REF) [00:00:09]*** step 40: 1534 (1103, 431 REF) [00:00:09]*** step 41: 1497 (1093, 404 REF) [00:00:09]*** step 42: 1462 (1083, 379 REF) [00:00:09]*** step 43: 1428 (1073, 355 REF) [00:00:09]*** step 44: 1396 (1063, 333 REF) [00:00:09]*** step 45: 1365 (1053, 312 REF) [00:00:09]*** step 46: 1334 (1043, 291 REF) [00:00:09]*** step 47: 1305 (1033, 272 REF) [00:00:09]*** step 48: 1277 (1023, 254 REF) [00:00:09]*** step 49: 1250 (1013, 237 REF) [00:00:09]*** step 50: 1224 (990, 234 REF) [00:00:09]*** step 51: 1199 (980, 219 REF) [00:00:09]*** step 52: 1175 (970, 205 REF) [00:00:09]*** step 53: 1152 (960, 192 REF) [00:00:09]*** step 54: 1130 (950, 180 REF) [00:00:09]*** step 55: 1108 (940, 168 REF) [00:00:09]*** step 56: 1088 (930, 158 REF) [00:00:09]*** step 57: 1068 (920, 148 REF) [00:00:09]*** step 58: 1049 (910, 139 REF) [00:00:09]*** step 59: 1030 (900, 130 REF) [00:00:09]*** step 60: 1012 (890, 122 REF) [00:00:09]*** step 61: 995 (880, 115 REF) [00:00:09]*** step 62: 979 (870, 109 REF) [00:00:09]*** step 63: 963 (860, 103 REF) [00:00:09]*** step 64: 948 (850, 98 REF) [00:00:09]*** step 65: 933 (840, 93 REF) [00:00:09]*** step 66: 919 (830, 89 REF) [00:00:09]*** step 67: 905 (820, 85 REF) [00:00:09]*** step 68: 892 (810, 82 REF) [00:00:09]*** step 69: 879 (800, 79 REF) [00:00:09]*** step 70: 867 (790, 77 REF) [00:00:09]*** step 71: 855 (780, 75 REF) [00:00:09]*** step 72: 844 (770, 74 REF) [00:00:09]*** step 73: 833 (760, 73 REF) [00:00:09]*** step 74: 822 (750, 72 REF) [00:00:09]*** step 75: 812 (740, 72 REF) [00:00:09]*** step 76: 803 (730, 73 REF) [00:00:09]*** step 77: 793 (720, 73 REF) [00:00:09]*** step 78: 784 (710, 74 REF) [00:00:09]*** step 79: 776 (700, 76 REF) [00:00:09]*** step 80: 767 (690, 77 REF) [00:00:09]*** step 81: 759 (680, 79 REF) [00:00:09]*** step 82: 751 (670, 81 REF) [00:00:09]*** step 83: 744 (660, 84 REF) [00:00:09]*** step 84: 737 (650, 87 REF) [00:00:09]*** step 85: 730 (640, 90 REF) [00:00:09]*** step 86: 723 (630, 93 REF) [00:00:09]*** step 87: 717 (620, 97 REF) [00:00:09]*** step 88: 710 (610, 100 REF) [00:00:09]*** step 89: 705 (600, 105 REF) [00:00:09]*** step 90: 699 [00:00:09]*** step 91: 693 [00:00:09]*** step 92: 688 [00:00:09]*** step 93: 683 [00:00:09]*** step 94: 678 [00:00:09]*** step 95: 673 [00:00:09]*** step 96: 669 [00:00:09]*** step 97: 664 [00:00:09]*** step 98: 660 [00:00:09]*** step 99: 656 [00:00:09]*** step 100: 652 [00:00:09]*** step 101: 648 [00:00:09]*** step 102: 644 [00:00:09]*** step 103: 641 [00:00:09]*** step 104: 638 [00:00:09]*** step 105: 634 [00:00:09]*** step 106: 631 [00:00:09]*** step 107: 628 [00:00:09]*** step 108: 625 [00:00:09]*** step 109: 622 [00:00:09]*** step 110: 620 [00:00:09]*** step 111: 617 [00:00:09]*** step 112: 615 [00:00:09]*** step 113: 612 [00:00:09]*** step 114: 610 [00:00:09]*** step 115: 608 [00:00:09]*** step 116: 605 [00:00:09]*** step 117: 603 [00:00:09]*** step 118: 601 [00:00:09]*** step 119: 599 [00:00:09]*** printer: Printer HW initialized [00:00:09]*** initSamCard finished [00:00:09]*** RTC: 43582186+1683673115=1727255301 [00:00:09]*** BPK Status Register BPK_RDY = 0x0 [00:00:09]*** SEN State Register SEN_STATE = 0x200ff [00:00:09]*** 32K Frequency Sensor Enable SEN_XTAL32_EN = 0x80000055 [00:00:09]*** Analog Control Register 0 SEN_ANA0 = 0x334f0623 [00:00:09]*** Is cutter blocked? [00:00:10]MH_GetMetrics [00:00:10]Write to MH i2c: 00 00 00 03 00 02 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 29 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 29 00 03 00 00 03 9C 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 B9 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 00 03 00 5F [00:00:10]Are we in boot? [00:00:10]We are not in boot now [00:00:10]Write to MH i2c: 01 00 00 04 00 04 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 01 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 01 07 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 01 07 00 04 00 00 00 00 00 00 FF 0F 19 [00:00:10]Model is 3 [00:00:10]MH firmware is 30620 [00:00:10]MH boot firmware is 3 [00:00:10]MH_SetPrinterDots 448 [00:00:10]HeadWidthInBytes 56 [00:00:10]maxmasksize 7 [00:00:10]Write to MH i2c: D6 06 00 05 00 78 00 38 00 FF FF 8E [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: D6 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: D6 01 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: D6 01 00 05 00 00 DB [00:00:10]Write to MH i2c: D5 00 00 06 00 DA [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: D5 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: D5 01 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: D5 01 00 06 00 00 DB [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]ExternCall_SetCallbacks [00:00:10]NVStorageInit [00:00:10]MH_GetDate [00:00:10]Write to MH i2c: F0 00 00 07 00 F6 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: F0 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: F0 09 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: F0 09 00 07 00 00 06 D3 F3 66 1B D0 5A 64 DA [09:08:22]Current date/time: 25.09.2024 09:08 [09:08:22]FM_Init [09:08:22]wFMConnect [09:08:22]MH_SAM_On [09:08:22]Write to MH i2c: E0 00 00 08 00 E7 [09:08:22]Write i2c OK [09:08:22]MH_I2C_Read... [09:08:22]*** iso7816_init finished! [09:08:22]*** atr: [09:08:22]*** 0F 3B D5 18 FF 81 91 FE [09:08:22]*** 1F C3 80 73 C8 21 10 0A [09:08:22]*** 00 00 00 00 00 00 00 00 [09:08:22]*** 00 00 00 00 00 00 00 00 [09:08:22]*** 00 00 00 00 00 00 00 00 [09:08:22]*** 00 00 00 00 00 00 00 00 [09:08:22]*** 00 00 00 00 00 00 00 00 [09:08:22]*** 00 00 00 00 00 00 00 00 [09:08:22]Read from MH i2c: E0 [09:08:22]MH_I2C_Read... [09:08:22]Read from MH i2c: E0 10 00 [09:08:22]MH_I2C_Read... [09:08:22]Read from MH i2c: E0 10 00 08 00 00 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A 06 [09:08:22]ATR: 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A [09:08:22]wFMCommunicate request_size=10 [09:08:22]MH_SAM_APDU [09:08:22]CAPDU: 00 A4 04 00 05 01 02 03 04 05 [09:08:22]Write to MH i2c: E2 0D 00 09 00 00 A4 04 00 05 00 01 02 03 04 05 00 00 B3 [09:08:22]Write i2c OK [09:08:22]MH_I2C_Read... [09:08:22]*** iso7816_exchange 00 A4 04 00... Resp OK rsp.len_out = 0! [09:08:22]Read from MH i2c: E2 [09:08:22]MH_I2C_Read... [09:08:22]Read from MH i2c: E2 03 00 [09:08:22]MH_I2C_Read... [09:08:22]Read from MH i2c: E2 03 00 09 00 00 90 00 7D [09:08:22]RAPDU: 90 00 [09:08:22]wFMCommunicate OK [09:08:22]wFMCommunicate request_size=4 [09:08:22]MH_SAM_APDU [09:08:22]CAPDU: 80 11 00 00 [09:08:22]Write to MH i2c: E2 08 00 0A 00 80 11 00 00 00 00 00 00 84 [09:08:22]Write i2c OK [09:08:22]MH_I2C_Read... [09:08:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:08:22]Read from MH i2c: E2 [09:08:22]MH_I2C_Read... [09:08:22]Read from MH i2c: E2 17 00 [09:08:22]MH_I2C_Read... [09:08:22]Read from MH i2c: E2 17 00 0A 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 D2 [09:08:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [09:08:22]wFMCommunicate OK [09:08:22]Detected FM SN is 0000000000871830 [09:08:22]Stored FM SN is 0000000000871830 [09:08:22]wFMCommunicate request_size=9 [09:08:22]MH_SAM_APDU [09:08:22]CAPDU: 80 16 00 00 04 2B 08 01 00 [09:08:22]Write to MH i2c: E2 0C 00 0B 00 80 16 00 00 04 00 2B 08 01 00 00 00 C6 [09:08:22]Write i2c OK [09:08:22]MH_I2C_Read... [09:08:22]*** iso7816_exchange 80 16 00 00... Resp OK rsp.len_out = 0! [09:08:22]Read from MH i2c: E2 [09:08:22]MH_I2C_Read... [09:08:22]Read from MH i2c: E2 03 00 [09:08:22]MH_I2C_Read... [09:08:22]Read from MH i2c: E2 03 00 0B 00 00 90 00 7F [09:08:22]RAPDU: 90 00 [09:08:22]wFMCommunicate OK [09:08:22]FM PIN OK [09:08:22]wFMCommunicate request_size=8 [09:08:22]MH_SAM_APDU [09:08:22]CAPDU: 80 14 04 00 03 02 00 01 [09:08:22]Write to MH i2c: E2 0B 00 0C 00 80 14 04 00 03 00 02 00 01 00 00 96 [09:08:22]Write i2c OK [09:08:22]MH_I2C_Read... [09:08:22]*** iso7816_exchange 80 14 04 00... Resp OK rsp.len_out = 0! [09:08:22]Read from MH i2c: E2 [09:08:22]MH_I2C_Read... [09:08:22]Read from MH i2c: E2 03 00 [09:08:22]MH_I2C_Read... [09:08:22]Read from MH i2c: E2 03 00 0C 00 00 90 00 80 [09:08:22]RAPDU: 90 00 [09:08:22]wFMCommunicate OK [09:08:22]wFMCommunicate request_size=13 [09:08:22]MH_SAM_APDU [09:08:22]CAPDU: 80 14 04 01 08 07 00 01 02 03 04 05 06 [09:08:22]Write to MH i2c: E2 10 00 0D 00 80 14 04 01 08 00 07 00 01 02 03 04 05 06 00 00 BB [09:08:22]Write i2c OK [09:08:22]MH_I2C_Read... [09:08:22]*** iso7816_exchange 80 14 04 01... Resp OK rsp.len_out = 0! [09:08:22]Read from MH i2c: E2 [09:08:22]MH_I2C_Read... [09:08:22]Read from MH i2c: E2 03 00 [09:08:22]MH_I2C_Read... [09:08:22]Read from MH i2c: E2 03 00 0D 00 00 90 00 81 [09:08:22]RAPDU: 90 00 [09:08:22]wFMCommunicate OK [09:08:22]wFMCommunicate request_size=4 [09:08:22]MH_SAM_APDU [09:08:22]CAPDU: 80 11 00 00 [09:08:22]Write to MH i2c: E2 08 00 0E 00 80 11 00 00 00 00 00 00 88 [09:08:22]Write i2c OK [09:08:22]MH_I2C_Read... [09:08:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:08:22]Read from MH i2c: E2 [09:08:22]MH_I2C_Read... [09:08:22]Read from MH i2c: E2 17 00 [09:08:22]MH_I2C_Read... [09:08:22]Read from MH i2c: E2 17 00 0E 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 D6 [09:08:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [09:08:22]wFMCommunicate OK [09:08:22]DocumentArchiveInit [09:08:22]Start Httpd... [09:08:22]Httpd thread 3067428196 created [09:08:22]Write to MH i2c: 01 00 00 0F 00 0F [09:08:22]Write i2c OK [09:08:22]MH_I2C_Read... [09:08:22]Read from MH i2c: 01 [09:08:22]MH_I2C_Read... [09:08:22]Read from MH i2c: 01 07 00 [09:08:22]MH_I2C_Read... [09:08:22]Read from MH i2c: 01 07 00 0F 00 00 00 00 00 00 FF 0F 24 [09:08:22]Allocated Socket 5 [09:08:22]Bind OK [09:08:22]Listen OK [09:08:22]httpd running on port 8080 [09:08:22]Waiting for new connection... [09:08:22]MH Int Process started [09:08:23]OFD Sender: No OFD packet to send [09:08:28]OFD Sender: No OFD packet to send [09:08:32]accept exits with 6 [09:08:32]New connection [09:08:32]New thread 3067141476 created [09:08:32]Waiting for new connection... [09:08:32] Sock 6.Parse request [09:08:32]Sock 6.Check first char [09:08:32]Sock 6.First char is OK [09:08:32]request: POST /json_proto HTTP/1.0 [09:08:32]Method: POST [09:08:32]URL: /json_proto [09:08:32]Method is POST - this is cgi request [09:08:32]url: /json_proto [09:08:32]query_string will be loaded in cgi processing [09:08:32]execute_cgi json_proto POST (null) [09:08:32]execute_cgi path=json_proto method=POST [09:08:32]POST find Content-Length [09:08:32]Host: 172.17.41.136:8080 [09:08:32]Content-Length: 215 [09:08:32]Content-Type: application/json [09:08:32] [09:08:32]POST finish read [09:08:32]Found Content-Length = 215 [09:08:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:08:32]execute_script... [09:08:32]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:08:32]POST & json_proto [09:08:32]process_json_proto [09:08:32]json parsed OK: [09:08:32]protocol is kg_v1.0 [09:08:32]action value=get_value [09:08:32]process_action get_value [09:08:32]cmd_get_value [09:08:32]process_action get_value done [09:08:32]requested_data is exist [09:08:32]produce_requested_data [09:08:32]requested_item kkm.sn is exist - process it [09:08:32]requested_item kkm.ver is exist - process it [09:08:32]requested_item fm.sn is exist - process it [09:08:32]wFMCommunicate request_size=4 [09:08:32]MH_SAM_APDU [09:08:32]CAPDU: 80 11 00 00 [09:08:32]Write to MH i2c: E2 08 00 10 00 80 11 00 00 00 00 00 00 8A [09:08:32]Write i2c OK [09:08:32]MH_I2C_Read... [09:08:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:08:32]Read from MH i2c: E2 [09:08:32]MH_I2C_Read... [09:08:32]Read from MH i2c: E2 17 00 [09:08:32]MH_I2C_Read... [09:08:32]Read from MH i2c: E2 17 00 10 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 D8 [09:08:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [09:08:32]wFMCommunicate OK [09:08:32]requested_item fd.num is exist - process it [09:08:32]SAM_PROTO_GetFieldsCounters [09:08:32]wFMCommunicate request_size=4 [09:08:32]MH_SAM_APDU [09:08:32]CAPDU: 80 13 00 00 [09:08:32]Write to MH i2c: E2 08 00 11 00 80 13 00 00 00 00 00 00 8D [09:08:32]Write i2c OK [09:08:32]MH_I2C_Read... [09:08:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:08:32]Read from MH i2c: E2 [09:08:32]MH_I2C_Read... [09:08:32]Read from MH i2c: E2 62 00 [09:08:32]MH_I2C_Read... [09:08:32]Read from MH i2c: E2 62 00 11 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 DB C5 01 00 0E 04 04 00 DA 01 00 00 12 04 04 00 2B 00 00 00 5E 04 04 00 2B 00 00 00 57 04 04 00 2C 00 00 00 19 04 04 00 00 00 00 00 90 00 A3 [09:08:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 DB C5 01 00 0E 04 04 00 DA 01 00 00 12 04 04 00 2B 00 00 00 5E 04 04 00 2B 00 00 00 57 04 04 00 2C 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:08:32]wFMCommunicate OK [09:08:32]SAM_PROTO_GetFieldsCounters done [09:08:32]requested_item shift.num is exist - process it [09:08:32]requested_item shift.opened is exist - process it [09:08:32]req_shift_opened [09:08:32]FM_GetShiftState [09:08:32]SAM_PROTO_GetShiftState [09:08:32]wFMCommunicate request_size=4 [09:08:32]MH_SAM_APDU [09:08:32]CAPDU: 80 13 01 00 [09:08:32]Write to MH i2c: E2 08 00 12 00 80 13 01 00 00 00 00 00 8F [09:08:32]Write i2c OK [09:08:32]MH_I2C_Read... [09:08:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:08:32]Read from MH i2c: E2 [09:08:32]MH_I2C_Read... [09:08:32]Read from MH i2c: E2 0E 00 [09:08:32]MH_I2C_Read... [09:08:32]Read from MH i2c: E2 0E 00 12 00 00 09 00 01 63 60 F3 66 00 00 00 00 90 00 B7 [09:08:32]RAPDU: 09 00 01 63 60 F3 66 00 00 00 00 90 00 [09:08:32]wFMCommunicate OK [09:08:32]SAM_PROTO_GetShiftState done [09:08:32]FM_GetShiftState done [09:08:32]req_shift_opened done [09:08:32]requested_item shift.open_date is exist - process it [09:08:32]req_shift_open_date [09:08:32]req_shift_open_date done [09:08:32]produce_requested_data done [09:08:32]produce_requested_data return {"kkm.sn":"0300000120","kkm.ver":"001","fm.sn":"0000000000871830","fd.num":116187,"shift.num":474,"shift.opened":1,"shift.open_date":1727225955} [09:08:32]process_action_free get_value [09:08:32]json_value_free [09:08:32]json_value_free done [09:08:32]process_json_proto returns [09:08:32]Send response to host [09:08:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000120","kkm.ver":"001","fm.sn":"0000000000871830","fd.num":116187,"shift.num":474,"shift.opened":1,"shift.open_date":1727225955}}} [09:08:32]free response buf [09:08:32]execute_script done [09:08:32]execute_script returns [09:08:32]free content buf [09:08:32]Sock 6.Close socket [09:08:32]Sock 6.Thread stoped [09:08:32]accept exits with 9 [09:08:32]New connection [09:08:32]New thread 3066998116 created [09:08:32]Thread 3067141476 joined [09:08:32]Waiting for new connection... [09:08:32] Sock 9.Parse request [09:08:32]Sock 9.Check first char [09:08:32]Sock 9.First char is OK [09:08:32]request: POST /json_proto HTTP/1.0 [09:08:32]Method: POST [09:08:32]URL: /json_proto [09:08:32]Method is POST - this is cgi request [09:08:32]url: /json_proto [09:08:32]query_string will be loaded in cgi processing [09:08:32]execute_cgi json_proto POST (null) [09:08:32]execute_cgi path=json_proto method=POST [09:08:32]POST find Content-Length [09:08:32]Host: 172.17.41.136:8080 [09:08:32]Content-Length: 331 [09:08:32]Content-Type: application/json [09:08:32] [09:08:32]POST finish read [09:08:32]Found Content-Length = 331 [09:08:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [09:08:32]execute_script... [09:08:32]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [09:08:32]POST & json_proto [09:08:32]process_json_proto [09:08:32]json parsed OK: [09:08:32]protocol is kg_v1.0 [09:08:32]action value=get_value [09:08:32]process_action get_value [09:08:33]cmd_get_value [09:08:33]process_action get_value done [09:08:33]requested_data is exist [09:08:33]produce_requested_data [09:08:33]requested_item fm.sale.total is exist - process it [09:08:33]SAM_PROTO_GetFMData [09:08:33]wFMCommunicate request_size=4 [09:08:33]MH_SAM_APDU [09:08:33]CAPDU: 80 13 03 00 [09:08:33]Write to MH i2c: E2 08 00 13 00 80 13 03 00 00 00 00 00 92 [09:08:33]Write i2c OK [09:08:33]MH_I2C_Read... [09:08:33]OFD Sender: No OFD packet to send [09:08:33]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [09:08:33]Read from MH i2c: E2 [09:08:33]MH_I2C_Read... [09:08:33]Read from MH i2c: E2 FD 00 [09:08:33]MH_I2C_Read... [09:08:33]Read from MH i2c: E2 FD 00 13 00 00 C5 04 85 04 C1 04 6E 04 04 00 26 C2 01 00 69 04 A3 00 6F 04 04 00 A6 C0 01 00 B1 04 05 00 ED 6E 4F 83 01 70 04 05 00 11 81 F2 48 01 72 04 04 00 DC ED 5C 3A 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 4E 3E 23 29 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 DE 63 6D 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 80 01 00 00 B1 04 04 00 CC 60 FF 0F 70 04 04 00 CC 60 FF 0F 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 16 ED B2 01 EF 03 09 90 00 94 [09:08:33]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 26 C2 01 00 69 04 A3 00 6F 04 04 00 A6 C0 01 00 B1 04 05 00 ED 6E 4F 83 01 70 04 05 00 11 81 F2 48 01 72 04 04 00 DC ED 5C 3A 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 4E 3E 23 29 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 DE 63 6D 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 80 01 00 00 B1 04 04 00 CC 60 FF 0F 70 04 04 00 CC 60 FF 0F 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 16 ED B2 01 EF 03 09 90 00 [09:08:33]wFMCommunicate OK [09:08:33]wFMCommunicate request_size=4 [09:08:33]MH_SAM_APDU [09:08:33]CAPDU: 80 17 00 00 [09:08:33]Write to MH i2c: E2 08 00 14 00 80 17 00 00 00 00 00 00 94 [09:08:33]Write i2c OK [09:08:33]MH_I2C_Read... [09:08:33]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [09:08:33]Read from MH i2c: E2 [09:08:33]MH_I2C_Read... [09:08:33]Read from MH i2c: E2 FD 00 [09:08:33]MH_I2C_Read... [09:08:33]Read from MH i2c: E2 FD 00 14 00 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 50 3E 24 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 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 FC [09:08: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 50 3E 24 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 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 [09:08:33]wFMCommunicate OK [09:08:33]wFMCommunicate request_size=4 [09:08:33]MH_SAM_APDU [09:08:33]CAPDU: 80 17 00 00 [09:08:33]Write to MH i2c: E2 08 00 15 00 80 17 00 00 00 00 00 00 95 [09:08:33]Write i2c OK [09:08:33]MH_I2C_Read... [09:08:33]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [09:08:33]Read from MH i2c: E2 [09:08:33]MH_I2C_Read... [09:08:33]Read from MH i2c: E2 FD 00 [09:08:33]MH_I2C_Read... [09:08:33]Read from MH i2c: E2 FD 00 15 00 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 A7 [09:08:33]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 [09:08:33]wFMCommunicate OK [09:08:33]wFMCommunicate request_size=4 [09:08:33]MH_SAM_APDU [09:08:33]CAPDU: 80 17 00 00 [09:08:33]Write to MH i2c: E2 08 00 16 00 80 17 00 00 00 00 00 00 96 [09:08:33]Write i2c OK [09:08:33]MH_I2C_Read... [09:08:34]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [09:08:34]Read from MH i2c: E2 [09:08:34]MH_I2C_Read... [09:08:34]Read from MH i2c: E2 FD 00 [09:08:34]MH_I2C_Read... [09:08:34]Read from MH i2c: E2 FD 00 16 00 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 22 [09:08: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 [09:08:34]wFMCommunicate OK [09:08:34]wFMCommunicate request_size=4 [09:08:34]MH_SAM_APDU [09:08:34]CAPDU: 80 17 00 00 [09:08:34]Write to MH i2c: E2 08 00 17 00 80 17 00 00 00 00 00 00 97 [09:08:34]Write i2c OK [09:08:34]MH_I2C_Read... [09:08:34]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [09:08:34]Read from MH i2c: E2 [09:08:34]MH_I2C_Read... [09:08:34]Read from MH i2c: E2 E2 00 [09:08:34]MH_I2C_Read... [09:08:34]Read from MH i2c: E2 E2 00 17 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 75 [09:08:34]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 [09:08:34]wFMCommunicate OK [09:08:34]SAM_PROTO_GetFMData done [09:08:34]requested_item fm.sale_refund.total is exist - process it [09:08:34]requested_item fm.buy.total is exist - process it [09:08:34]requested_item shift.sale.total is exist - process it [09:08:34]SAM_PROTO_GetShiftData [09:08:34]wFMCommunicate request_size=4 [09:08:34]MH_SAM_APDU [09:08:34]CAPDU: 80 13 02 00 [09:08:34]Write to MH i2c: E2 08 00 18 00 80 13 02 00 00 00 00 00 96 [09:08:34]Write i2c OK [09:08:34]MH_I2C_Read... [09:08:34]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [09:08:34]Read from MH i2c: E2 [09:08:34]MH_I2C_Read... [09:08:34]Read from MH i2c: E2 FD 00 [09:08:34]MH_I2C_Read... [09:08:34]Read from MH i2c: E2 FD 00 18 00 00 B9 04 AA 04 B5 04 6E 04 04 00 2B 00 00 00 69 04 9B 00 6F 04 04 00 29 00 00 00 B1 04 03 00 1C 24 47 70 04 03 00 1C 74 42 72 04 03 00 00 B0 04 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 14 8E 07 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 2A A1 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 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 02 00 00 00 B1 04 03 00 90 D5 30 70 04 03 00 90 D5 30 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 99 2F 05 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 59 [09:08:34]RAPDU: B9 04 AA 04 B5 04 6E 04 04 00 2B 00 00 00 69 04 9B 00 6F 04 04 00 29 00 00 00 B1 04 03 00 1C 24 47 70 04 03 00 1C 74 42 72 04 03 00 00 B0 04 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 14 8E 07 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 2A A1 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 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 02 00 00 00 B1 04 03 00 90 D5 30 70 04 03 00 90 D5 30 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 99 2F 05 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 [09:08:34]wFMCommunicate OK [09:08:34]wFMCommunicate request_size=4 [09:08:34]MH_SAM_APDU [09:08:34]CAPDU: 80 17 00 00 [09:08:34]Write to MH i2c: E2 08 00 19 00 80 17 00 00 00 00 00 00 99 [09:08:34]Write i2c OK [09:08:34]MH_I2C_Read... [09:08:35]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [09:08:35]Read from MH i2c: E2 [09:08:35]MH_I2C_Read... [09:08:35]Read from MH i2c: E2 FD 00 [09:08:35]MH_I2C_Read... [09:08:35]Read from MH i2c: E2 FD 00 19 00 00 03 0B 00 F6 03 01 00 01 F7 03 02 00 A2 6E EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 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 90 00 68 [09:08:35]RAPDU: 03 0B 00 F6 03 01 00 01 F7 03 02 00 A2 6E EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 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 90 00 [09:08:35]wFMCommunicate OK [09:08:35]wFMCommunicate request_size=4 [09:08:35]MH_SAM_APDU [09:08:35]CAPDU: 80 17 00 00 [09:08:35]Write to MH i2c: E2 08 00 1A 00 80 17 00 00 00 00 00 00 9A [09:08:35]Write i2c OK [09:08:35]MH_I2C_Read... [09:08:35]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [09:08:35]Read from MH i2c: E2 [09:08:35]MH_I2C_Read... [09:08:35]Read from MH i2c: E2 FD 00 [09:08:35]MH_I2C_Read... [09:08:35]Read from MH i2c: E2 FD 00 1A 00 00 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 90 00 C2 [09:08:35]RAPDU: 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 90 00 [09:08:35]wFMCommunicate OK [09:08:35]wFMCommunicate request_size=4 [09:08:35]MH_SAM_APDU [09:08:35]CAPDU: 80 17 00 00 [09:08:35]Write to MH i2c: E2 08 00 1B 00 80 17 00 00 00 00 00 00 9B [09:08:35]Write i2c OK [09:08:35]MH_I2C_Read... [09:08:35]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [09:08:35]Read from MH i2c: E2 [09:08:35]MH_I2C_Read... [09:08:35]Read from MH i2c: E2 FD 00 [09:08:35]MH_I2C_Read... [09:08:35]Read from MH i2c: E2 FD 00 1B 00 00 EF 03 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 90 00 13 [09:08:35]RAPDU: EF 03 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 90 00 [09:08:35]wFMCommunicate OK [09:08:35]wFMCommunicate request_size=4 [09:08:35]MH_SAM_APDU [09:08:35]CAPDU: 80 17 00 00 [09:08:35]Write to MH i2c: E2 08 00 1C 00 80 17 00 00 00 00 00 00 9C [09:08:35]Write i2c OK [09:08:35]MH_I2C_Read... [09:08:36]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 211! [09:08:36]Read from MH i2c: E2 [09:08:36]MH_I2C_Read... [09:08:36]Read from MH i2c: E2 D6 00 [09:08:36]MH_I2C_Read... [09:08:36]Read from MH i2c: E2 D6 00 1C 00 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 7E [09:08:36]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 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [09:08:36]wFMCommunicate OK [09:08:36]SAM_PROTO_GetShiftData done [09:08:36]requested_item shift.sale.total_cash is exist - process it [09:08:36]requested_item shift.sale_refund.total is exist - process it [09:08:36]requested_item shift.sale_refund.total_cash is exist - process it [09:08:36]requested_item shift.buy.total is exist - process it [09:08:36]requested_item shift.buy.total_cash is exist - process it [09:08:36]produce_requested_data done [09:08:36]produce_requested_data return {"fm.sale.total":64979883.33,"fm.sale_refund.total":2683947.00,"fm.buy.total":0.00,"shift.sale.total":46623.00,"shift.sale.total_cash":43551.00,"shift.sale_refund.total":32004.00,"shift.sale_refund.total_cash":32004.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [09:08:36]process_action_free get_value [09:08:36]json_value_free [09:08:36]json_value_free done [09:08:36]process_json_proto returns [09:08:36]Send response to host [09:08:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":64979883.33,"fm.sale_refund.total":2683947.00,"fm.buy.total":0.00,"shift.sale.total":46623.00,"shift.sale.total_cash":43551.00,"shift.sale_refund.total":32004.00,"shift.sale_refund.total_cash":32004.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [09:08:36]free response buf [09:08:36]execute_script done [09:08:36]execute_script returns [09:08:36]free content buf [09:08:36]Sock 9.Close socket [09:08:36]Sock 9.Thread stoped [09:08:38]OFD Sender: No OFD packet to send [09:08:43]OFD Sender: No OFD packet to send [09:08:48]OFD Sender: No OFD packet to send [09:08:53]OFD Sender: No OFD packet to send [09:08:58]OFD Sender: No OFD packet to send [09:09:03]OFD Sender: No OFD packet to send [09:09:08]OFD Sender: No OFD packet to send [09:09:13]OFD Sender: No OFD packet to send [09:09:18]OFD Sender: No OFD packet to send [09:09:23]OFD Sender: No OFD packet to send [09:09:28]OFD Sender: No OFD packet to send [09:09:33]OFD Sender: No OFD packet to send [09:09:38]OFD Sender: No OFD packet to send [09:09:43]OFD Sender: No OFD packet to send [09:09:48]OFD Sender: No OFD packet to send [09:09:53]OFD Sender: No OFD packet to send [09:09:58]OFD Sender: No OFD packet to send [09:10:03]OFD Sender: No OFD packet to send [09:10:08]OFD Sender: No OFD packet to send [09:10:13]OFD Sender: No OFD packet to send [09:10:18]OFD Sender: No OFD packet to send [09:10:23]OFD Sender: No OFD packet to send [09:10:28]OFD Sender: No OFD packet to send [09:10:33]OFD Sender: No OFD packet to send [09:10:38]OFD Sender: No OFD packet to send [09:10:43]OFD Sender: No OFD packet to send [09:10:48]OFD Sender: No OFD packet to send [09:10:53]OFD Sender: No OFD packet to send [09:10:58]OFD Sender: No OFD packet to send [09:11:03]OFD Sender: No OFD packet to send [09:11:08]OFD Sender: No OFD packet to send [09:11:13]OFD Sender: No OFD packet to send [09:11:18]OFD Sender: No OFD packet to send [09:11:23]OFD Sender: No OFD packet to send [09:11:28]OFD Sender: No OFD packet to send [09:11:33]OFD Sender: No OFD packet to send [09:11:38]OFD Sender: No OFD packet to send [09:11:43]OFD Sender: No OFD packet to send [09:11:48]OFD Sender: No OFD packet to send [09:11:53]OFD Sender: No OFD packet to send [09:11:58]OFD Sender: No OFD packet to send [09:12:03]OFD Sender: No OFD packet to send [09:12:08]OFD Sender: No OFD packet to send [09:12:13]OFD Sender: No OFD packet to send [09:12:18]OFD Sender: No OFD packet to send [09:12:23]OFD Sender: No OFD packet to send [09:12:28]OFD Sender: No OFD packet to send [09:12:33]OFD Sender: No OFD packet to send [09:12:38]OFD Sender: No OFD packet to send [09:12:43]OFD Sender: No OFD packet to send [09:12:48]OFD Sender: No OFD packet to send [09:12:53]OFD Sender: No OFD packet to send [09:12:58]OFD Sender: No OFD packet to send [09:13:03]OFD Sender: No OFD packet to send [09:13:08]OFD Sender: No OFD packet to send [09:13:13]OFD Sender: No OFD packet to send [09:13:18]OFD Sender: No OFD packet to send [09:13:23]OFD Sender: No OFD packet to send [09:13:28]OFD Sender: No OFD packet to send [09:13:33]OFD Sender: No OFD packet to send [09:13:38]OFD Sender: No OFD packet to send [09:13:44]OFD Sender: No OFD packet to send [09:13:49]OFD Sender: No OFD packet to send [09:13:54]OFD Sender: No OFD packet to send [09:13:59]OFD Sender: No OFD packet to send [09:14:04]OFD Sender: No OFD packet to send [09:14:09]OFD Sender: No OFD packet to send [09:14:14]OFD Sender: No OFD packet to send [09:14:19]OFD Sender: No OFD packet to send [09:14:24]OFD Sender: No OFD packet to send [09:14:29]OFD Sender: No OFD packet to send [09:14:34]OFD Sender: No OFD packet to send [09:14:39]OFD Sender: No OFD packet to send [09:14:44]OFD Sender: No OFD packet to send [09:14:49]OFD Sender: No OFD packet to send [09:14:54]OFD Sender: No OFD packet to send [09:14:59]OFD Sender: No OFD packet to send [09:15:04]OFD Sender: No OFD packet to send [09:15:09]OFD Sender: No OFD packet to send [09:15:14]OFD Sender: No OFD packet to send [09:15:19]OFD Sender: No OFD packet to send [09:15:24]OFD Sender: No OFD packet to send [09:15:29]OFD Sender: No OFD packet to send [09:15:34]OFD Sender: No OFD packet to send [09:15:39]OFD Sender: No OFD packet to send [09:15:44]OFD Sender: No OFD packet to send [09:15:49]OFD Sender: No OFD packet to send [09:15:54]OFD Sender: No OFD packet to send [09:15:59]OFD Sender: No OFD packet to send [09:16:04]OFD Sender: No OFD packet to send [09:16:09]OFD Sender: No OFD packet to send [09:16:14]OFD Sender: No OFD packet to send [09:16:19]OFD Sender: No OFD packet to send [09:16:24]OFD Sender: No OFD packet to send [09:16:29]OFD Sender: No OFD packet to send [09:16:34]OFD Sender: No OFD packet to send [09:16:39]OFD Sender: No OFD packet to send [09:16:44]OFD Sender: No OFD packet to send [09:16:49]OFD Sender: No OFD packet to send [09:16:54]OFD Sender: No OFD packet to send [09:16:59]OFD Sender: No OFD packet to send [09:17:04]OFD Sender: No OFD packet to send [09:17:09]OFD Sender: No OFD packet to send [09:17:14]OFD Sender: No OFD packet to send [09:17:19]OFD Sender: No OFD packet to send [09:17:24]OFD Sender: No OFD packet to send [09:17:29]OFD Sender: No OFD packet to send [09:17:34]OFD Sender: No OFD packet to send [09:17:39]OFD Sender: No OFD packet to send [09:17:44]OFD Sender: No OFD packet to send [09:17:49]OFD Sender: No OFD packet to send [09:17:54]OFD Sender: No OFD packet to send [09:17:59]OFD Sender: No OFD packet to send [09:18:04]OFD Sender: No OFD packet to send [09:18:09]OFD Sender: No OFD packet to send [09:18:14]OFD Sender: No OFD packet to send [09:18:19]OFD Sender: No OFD packet to send [09:18:24]OFD Sender: No OFD packet to send [09:18:29]OFD Sender: No OFD packet to send [09:18:34]OFD Sender: No OFD packet to send [09:18:39]OFD Sender: No OFD packet to send [09:18:44]OFD Sender: No OFD packet to send [09:18:49]OFD Sender: No OFD packet to send [09:18:54]OFD Sender: No OFD packet to send [09:18:59]OFD Sender: No OFD packet to send [09:19:04]OFD Sender: No OFD packet to send [09:19:09]OFD Sender: No OFD packet to send [09:19:14]OFD Sender: No OFD packet to send [09:19:19]OFD Sender: No OFD packet to send [09:19:24]OFD Sender: No OFD packet to send [09:19:29]OFD Sender: No OFD packet to send [09:19:34]OFD Sender: No OFD packet to send [09:19:39]OFD Sender: No OFD packet to send [09:19:44]OFD Sender: No OFD packet to send [09:19:49]OFD Sender: No OFD packet to send [09:19:54]OFD Sender: No OFD packet to send [09:19:59]OFD Sender: No OFD packet to send [09:20:04]OFD Sender: No OFD packet to send [09:20:09]OFD Sender: No OFD packet to send [09:20:14]OFD Sender: No OFD packet to send [09:20:19]OFD Sender: No OFD packet to send [09:20:24]OFD Sender: No OFD packet to send [09:20:29]OFD Sender: No OFD packet to send [09:20:34]OFD Sender: No OFD packet to send [09:20:39]OFD Sender: No OFD packet to send [09:20:45]OFD Sender: No OFD packet to send [09:20:50]OFD Sender: No OFD packet to send [09:20:55]OFD Sender: No OFD packet to send [09:21:00]OFD Sender: No OFD packet to send [09:21:05]OFD Sender: No OFD packet to send [09:21:10]OFD Sender: No OFD packet to send [09:21:15]OFD Sender: No OFD packet to send [09:21:20]OFD Sender: No OFD packet to send [09:21:25]OFD Sender: No OFD packet to send [09:21:30]OFD Sender: No OFD packet to send [09:21:35]OFD Sender: No OFD packet to send [09:21:40]OFD Sender: No OFD packet to send [09:21:45]OFD Sender: No OFD packet to send [09:21:50]OFD Sender: No OFD packet to send [09:21:55]OFD Sender: No OFD packet to send [09:22:00]OFD Sender: No OFD packet to send [09:22:05]OFD Sender: No OFD packet to send [09:22:10]OFD Sender: No OFD packet to send [09:22:15]OFD Sender: No OFD packet to send [09:22:20]OFD Sender: No OFD packet to send [09:22:25]OFD Sender: No OFD packet to send [09:22:30]OFD Sender: No OFD packet to send [09:22:35]OFD Sender: No OFD packet to send [09:22:40]OFD Sender: No OFD packet to send [09:22:45]OFD Sender: No OFD packet to send [09:22:50]OFD Sender: No OFD packet to send [09:22:55]OFD Sender: No OFD packet to send [09:23:00]OFD Sender: No OFD packet to send [09:23:05]OFD Sender: No OFD packet to send [09:23:10]OFD Sender: No OFD packet to send [09:23:15]OFD Sender: No OFD packet to send [09:23:20]OFD Sender: No OFD packet to send [09:23:25]OFD Sender: No OFD packet to send [09:23:30]OFD Sender: No OFD packet to send [09:23:35]OFD Sender: No OFD packet to send [09:23:40]OFD Sender: No OFD packet to send [09:23:45]OFD Sender: No OFD packet to send [09:23:50]OFD Sender: No OFD packet to send [09:23:55]OFD Sender: No OFD packet to send [09:24:00]OFD Sender: No OFD packet to send [09:24:05]OFD Sender: No OFD packet to send [09:24:10]OFD Sender: No OFD packet to send [09:24:15]OFD Sender: No OFD packet to send [09:24:20]OFD Sender: No OFD packet to send [09:24:25]OFD Sender: No OFD packet to send [09:24:30]OFD Sender: No OFD packet to send [09:24:35]OFD Sender: No OFD packet to send [09:24:40]OFD Sender: No OFD packet to send [09:24:45]OFD Sender: No OFD packet to send [09:24:50]OFD Sender: No OFD packet to send [09:24:55]OFD Sender: No OFD packet to send [09:24:55]accept exits with 6 [09:24:55]New connection [09:24:55]New thread 3067141476 created [09:24:55]Thread 3066998116 joined [09:24:55]Waiting for new connection... [09:24:55] Sock 6.Parse request [09:24:55]Sock 6.Check first char [09:24:55]Sock 6.First char is OK [09:24:55]request: POST /json_proto HTTP/1.0 [09:24:55]Method: POST [09:24:55]URL: /json_proto [09:24:55]Method is POST - this is cgi request [09:24:55]url: /json_proto [09:24:55]query_string will be loaded in cgi processing [09:24:55]execute_cgi json_proto POST (null) [09:24:55]execute_cgi path=json_proto method=POST [09:24:55]POST find Content-Length [09:24:55]Host: 172.17.41.136:8080 [09:24:55]Content-Length: 756 [09:24:55]Content-Type: application/json [09:24:55] [09:24:55]POST finish read [09:24:55]Found Content-Length = 756 [09:24:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)24619080", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 0.00, "quantity" : 15.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30145629", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:24:55]execute_script... [09:24:55]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)24619080", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 0.00, "quantity" : 15.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30145629", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:24:55]POST & json_proto [09:24:55]process_json_proto [09:24:55]json parsed OK: [09:24:55]protocol is kg_v1.0 [09:24:55]action value=close_receipt [09:24:55]process_action close_receipt [09:24:55]cmd_close_receipt [09:24:55]MH_GetDate [09:24:55]Write to MH i2c: F0 00 00 1D 00 0C [09:24:55]Write i2c OK [09:24:55]MH_I2C_Read... [09:24:55]Read from MH i2c: F0 [09:24:55]MH_I2C_Read... [09:24:55]Read from MH i2c: F0 09 00 [09:24:55]MH_I2C_Read... [09:24:55]Read from MH i2c: F0 09 00 1D 00 00 E8 D6 F3 66 1B D0 5A 64 D5 [09:24:55]GetLastDocTimeStamp 1727254551 [09:24:55]current date 1727256296 [09:24:55]FM_GetShiftState [09:24:55]SAM_PROTO_GetShiftState [09:24:55]wFMCommunicate request_size=4 [09:24:55]MH_SAM_APDU [09:24:55]CAPDU: 80 13 01 00 [09:24:55]Write to MH i2c: E2 08 00 1E 00 80 13 01 00 00 00 00 00 9B [09:24:55]Write i2c OK [09:24:55]MH_I2C_Read... [09:24:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:24:56]Read from MH i2c: E2 [09:24:56]MH_I2C_Read... [09:24:56]Read from MH i2c: E2 0E 00 [09:24:56]MH_I2C_Read... [09:24:56]Read from MH i2c: E2 0E 00 1E 00 00 09 00 01 63 60 F3 66 00 00 00 00 90 00 C3 [09:24:56]RAPDU: 09 00 01 63 60 F3 66 00 00 00 00 90 00 [09:24:56]wFMCommunicate OK [09:24:56]SAM_PROTO_GetShiftState done [09:24:56]FM_GetShiftState done [09:24:56]opened in 1727225955 [09:24:56]opened+sec_in_day 1727312355 [09:24:56]quantity*price = 0 [09:24:56]sum+1 = 1 [09:24:56]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 44 25.09.2024 09:24 Смена: 474 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 Талоны: ТК ГПНА Online 30145629 ФМ: 0000000000871830 ФД: 116188 ФПД: 13874909525623 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240925T092456&type=1&operation_type=1&fn_number=0000000000871830&fd_number=116188&fm=13874909525623&tin=02508201610067®Number=0000000000091831&sum=0 [09:24:57]StoreToDocumentArchive [09:24:57]shift 474 fd 116188 [09:24:57]save to /storage/0474/doc_00116188 [09:24:57]save last doc name /storage/0474/doc_00116188 to /storage/kkm_last_doc_name [09:24:57]save OK [09:24:57]Clear old archive folders... [09:24:57]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:24:57]tlvbuf is 018D3A30 [09:24:57]SAM_PROTO_ClearQueue [09:24:57]wFMCommunicate request_size=4 [09:24:57]MH_SAM_APDU [09:24:57]CAPDU: 80 09 00 00 [09:24:57]Write to MH i2c: E2 08 00 2B 00 80 09 00 00 00 00 00 00 9D [09:24:57]Write i2c OK [09:24:57]MH_I2C_Read... [09:24:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:24:57]Read from MH i2c: E2 [09:24:57]MH_I2C_Read... [09:24:57]Read from MH i2c: E2 03 00 [09:24:57]MH_I2C_Read... [09:24:57]Read from MH i2c: E2 03 00 2B 00 00 90 00 9F [09:24:57]RAPDU: 90 00 [09:24:57]wFMCommunicate OK [09:24:57]SAM_PROTO_ClearQueue done [09:24:57]KKMCreateOFDPacket [09:24:57]OFDProtocolAddRootSTLVToBuf [09:24:57]FM_MakeSignedData [09:24:57]FM_MakeSignedData [09:24:57]SAM_PROTO_SignData [09:24:57]wFMCommunicate request_size=4 [09:24:57]MH_SAM_APDU [09:24:57]CAPDU: 80 0D 01 02 [09:24:57]Write to MH i2c: E2 08 00 2C 00 80 0D 01 02 00 00 00 00 A5 [09:24:57]Write i2c OK [09:24:57]MH_I2C_Read... [09:24:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:24:57]Read from MH i2c: E2 [09:24:57]MH_I2C_Read... [09:24:57]Read from MH i2c: E2 03 00 [09:24:57]MH_I2C_Read... [09:24:57]Read from MH i2c: E2 03 00 2C 00 00 90 00 A0 [09:24:57]RAPDU: 90 00 [09:24:57]wFMCommunicate OK [09:24:57]wFMCommunicate request_size=255 [09:24:57]MH_SAM_APDU [09:24:57]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 98 3A 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 E8 D6 F3 66 0E 04 04 00 DA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 DC C5 01 00 35 04 06 00 0C [09:24:57]Write to MH i2c: E2 02 01 2D 00 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 98 3A 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 E8 D6 F3 66 0E 04 04 00 DA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 DC C5 01 00 35 04 06 00 0C 00 00 49 [09:24:57]Write i2c OK [09:24:57]MH_I2C_Read... [09:24:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:24:57]Read from MH i2c: E2 [09:24:57]MH_I2C_Read... [09:24:57]Read from MH i2c: E2 03 00 [09:24:57]MH_I2C_Read... [09:24:57]Read from MH i2c: E2 03 00 2D 00 00 90 00 A1 [09:24:57]RAPDU: 90 00 [09:24:57]wFMCommunicate OK [09:24:57]wFMCommunicate request_size=10 [09:24:57]MH_SAM_APDU [09:24:57]CAPDU: 80 0D 02 02 05 9E 81 0D B6 77 [09:24:57]Write to MH i2c: E2 0D 00 2E 00 80 0D 02 02 05 00 9E 81 0D B6 77 00 00 0B [09:24:57]Write i2c OK [09:24:57]MH_I2C_Read... [09:24:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:24:57]Read from MH i2c: E2 [09:24:57]MH_I2C_Read... [09:24:57]Read from MH i2c: E2 03 00 [09:24:57]MH_I2C_Read... [09:24:57]Read from MH i2c: E2 03 00 2E 00 00 90 00 A2 [09:24:57]RAPDU: 90 00 [09:24:57]wFMCommunicate OK [09:24:57]wFMCommunicate request_size=4 [09:24:57]MH_SAM_APDU [09:24:57]CAPDU: 80 0D 03 02 [09:24:57]Write to MH i2c: E2 08 00 2F 00 80 0D 03 02 00 00 00 00 AA [09:24:57]Write i2c OK [09:24:57]MH_I2C_Read... [09:24:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:24:57]Read from MH i2c: E2 [09:24:57]MH_I2C_Read... [09:24:57]Read from MH i2c: E2 0B 00 [09:24:57]MH_I2C_Read... [09:24:57]Read from MH i2c: E2 0B 00 2F 00 00 51 A2 D7 AE 84 11 37 6D 90 00 5C [09:24:57]RAPDU: 51 A2 D7 AE 84 11 37 6D 90 00 [09:24:57]wFMCommunicate OK [09:24:57]SAM_PROTO_SignData done [09:24:57]FM_MakeSignedData done [09:24:57]CreateOFDProtocolMessage [09:24:57]wFMCommunicate request_size=4 [09:24:57]MH_SAM_APDU [09:24:57]CAPDU: 80 11 00 00 [09:24:57]Write to MH i2c: E2 08 00 30 00 80 11 00 00 00 00 00 00 AA [09:24:57]Write i2c OK [09:24:57]MH_I2C_Read... [09:24:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:24:57]Read from MH i2c: E2 [09:24:57]MH_I2C_Read... [09:24:57]Read from MH i2c: E2 17 00 [09:24:57]MH_I2C_Read... [09:24:57]Read from MH i2c: E2 17 00 30 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 F8 [09:24:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [09:24:57]wFMCommunicate OK [09:24:57]CreateOFDProtocolMessage done [09:24:57]OFDSenderStorePacket 116188 [09:24:57]StoreOFDPacket docnum=116188 [09:24:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0F 01 00 00 E9 4A 07 01 62 51 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 98 3A 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 E8 D6 F3 66 0E 04 04 00 DA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 DC C5 01 00 35 04 06 00 0C 9E 81 0D B6 77 51 A2 D7 AE 84 11 37 6D [09:24:57]CheckFolder [09:24:57]dirname=/storage/ofd_packets [09:24:57]CheckFolder done [09:24:57]ProducePacketName [09:24:57]name=ofd_packets/00116188 [09:24:57]NVStorageSaveData ofd_packets/00116188 [09:24:57]File name is /storage/ofd_packets/00116188 [09:24:57]Write 301 bytes [09:24:57]NVStorageSaveData done [09:24:57]OFDSenderStorePacket done [09:24:57]KKMCreateOFDPacket done [09:24:57]NVStorageSaveData kkm_last_timestamp [09:24:57]File name is /storage/kkm_last_timestamp [09:24:57]Write 4 bytes [09:24:57]NVStorageSaveData done [09:24:57]ExternCall_PrintAddStr [09:24:57]wPrintStart [09:24:57]Write to MH i2c: 01 00 00 31 00 31 [09:24:57]Write i2c OK [09:24:57]MH_I2C_Read... [09:24:57]Read from MH i2c: 01 [09:24:57]MH_I2C_Read... [09:24:57]Read from MH i2c: 01 07 00 [09:24:57]MH_I2C_Read... [09:24:57]Read from MH i2c: 01 07 00 31 00 00 00 00 00 00 FF 0F 46 [09:24:57]RasterBufferAndPrint [09:24:57]line Счет N : (1)24619080 [09:24:57]line ИНН: 02508201610067 [09:24:57]line Контрольно-Кассовый Чек [09:24:57]line ПРОДАЖА [09:24:57]line ТРК (МРК, ГНК) : 42 [09:24:57]line Товар: 2710124500 [09:24:57]line Аи-95-К-5 [09:24:57]line 15.000 * 0.00 [09:24:57]line = 0.00 [09:24:57]line НДС 12% НСП 1% [09:24:57]line > о реализуемом товаре [09:24:57]line ИТОГО: 0.00 [09:24:57]line НСП 1% : 0.00 [09:24:57]line НДС 12% : 0.00 [09:24:57]line Наличными: 0.00 [09:24:57]line Безнал.: 0.00 [09:24:57]line Место: АЗС № 90 "Партнер Нефть" [09:24:57]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [09:24:57]line СНО: Общий режим [09:24:57]line Чек 44 25.09.2024 09:24 [09:24:57]line Смена: 474 ФФД: 1.0 [09:24:57]line ЗНМ: 0300000120 [09:24:57]line РНМ: 0000000000091831 [09:24:57]line Версия ККМ: 001 [09:24:57]line Талоны: ТК ГПНА Online [09:24:57]line 30145629 [09:24:57]line ФМ: 0000000000871830 [09:24:57]line ФД: 116188 [09:24:57]line ФПД: 13874909525623 [09:24:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240925T092456&type=1&operation_type=1&fn_number=0000000000871830&fd_number=116188&fm=13874909525623&tin=02508201610067®Number=0000000000091831&sum=0 [09:24:57]written 0, free lines is 4095 [09:24:57]OFD Sender: Processing packet 116188 [packets to send 482, broken 481] [09:24:57]ProducePacketName [09:24:57]name=ofd_packets/00116188 [09:24:57]OFD Sender: To server: pG, [09:24:57]CommunicateWithHost lk.salyk.kg:30040 [09:24:57]ConnectInit lk.salyk.kg [09:24:58]Connected sock=10 [09:24:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0F 01 00 00 E9 4A 07 01 62 51 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 98 3A 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 E8 D6 F3 66 0E 04 04 00 DA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 DC C5 01 00 35 04 06 00 0C 9E 81 0D B6 77 51 A2 D7 AE 84 11 37 6D [09:24:58]Write to MH i2c: 01 00 00 5A 00 5A [09:24:58]Write i2c OK [09:24:58]MH_I2C_Read... [09:24:58]Read from MH i2c: 01 [09:24:58]MH_I2C_Read... [09:24:58]Read from MH i2c: 01 07 00 [09:24:58]MH_I2C_Read... [09:24:58]Read from MH i2c: 01 07 00 5A 00 00 00 00 00 00 6E 0C DB [09:24:58]RasterBufferAndPrint [09:24:58]line [09:24:58]line [09:24:58]line [09:24:58]line [09:24:58]line [09:24:58]written 0, free lines is 3187 [09:24:58]MH_Cut [09:24:58]Write to MH i2c: D1 01 00 61 00 01 33 [09:24:58]Write i2c OK [09:24:58]MH_I2C_Read... [09:24:58]Read from MH i2c: D1 [09:24:58]MH_I2C_Read... [09:24:58]Read from MH i2c: D1 01 00 [09:24:58]MH_I2C_Read... [09:24:58]Read from MH i2c: D1 01 00 61 00 00 32 [09:24:58]Write to MH i2c: 01 00 00 62 00 62 [09:24:58]Write i2c OK [09:24:58]MH_I2C_Read... [09:24:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 C4 85 47 00 73 18 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 DC C5 01 00 F4 03 04 00 25 7C F3 66 B6 04 01 00 00 B3 9A 2E 86 93 A5 F2 F5 [09:24:58]CommunicateWithHost err = 0 [09:24:58]CheckOFDResponse [09:24:58]1017 (14) - 77093643461234 [09:24:58]1041 (16) - 0000000000871830 [09:24:58]1040 (4) - 116188 [09:24:58]1012 (4) - 25.09.2024 02:57 [09:24:58]1206 (1) - 0 [09:24:58]OFD Sender: Remove packet 116188 [09:24:58]ProducePacketName [09:24:58]name=ofd_packets/00116188 [09:24:58]NVStorageDeleteData [09:24:58]OFD Sender: No OFD packet to send [09:24:59]*** Cut start [09:24:59]*** Partial cut [09:24:59]*** CUTSNS_PIN = 1 [09:24:59]*** CUTSNS_PIN = 0 [09:24:59]*** Brake cut motor [09:25:00]Read from MH i2c: 01 [09:25:00]MH_I2C_Read... [09:25:00]*** Stop cut motor [09:25:00]*** Cut end [09:25:00]Read from MH i2c: 01 07 00 [09:25:00]MH_I2C_Read... [09:25:00]Read from MH i2c: 01 07 00 62 00 00 00 00 00 00 FF 0F 77 [09:25:00]process_action close_receipt done [09:25:00]requested_data is exist [09:25:00]produce_requested_data [09:25:00]requested_item fm.sn is exist - process it [09:25:00]wFMCommunicate request_size=4 [09:25:00]MH_SAM_APDU [09:25:00]CAPDU: 80 11 00 00 [09:25:00]Write to MH i2c: E2 08 00 63 00 80 11 00 00 00 00 00 00 DD [09:25:00]Write i2c OK [09:25:00]MH_I2C_Read... [09:25:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:25:00]Read from MH i2c: E2 [09:25:00]MH_I2C_Read... [09:25:00]Read from MH i2c: E2 17 00 [09:25:00]MH_I2C_Read... [09:25:00]Read from MH i2c: E2 17 00 63 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 2B [09:25:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [09:25:00]wFMCommunicate OK [09:25:00]requested_item fd.num is exist - process it [09:25:00]SAM_PROTO_GetFieldsCounters [09:25:00]wFMCommunicate request_size=4 [09:25:00]MH_SAM_APDU [09:25:00]CAPDU: 80 13 00 00 [09:25:00]Write to MH i2c: E2 08 00 64 00 80 13 00 00 00 00 00 00 E0 [09:25:00]Write i2c OK [09:25:00]MH_I2C_Read... [09:25:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:25:00]Read from MH i2c: E2 [09:25:00]MH_I2C_Read... [09:25:00]Read from MH i2c: E2 62 00 [09:25:00]MH_I2C_Read... [09:25:00]Read from MH i2c: E2 62 00 64 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 DC C5 01 00 0E 04 04 00 DA 01 00 00 12 04 04 00 2C 00 00 00 5E 04 04 00 2C 00 00 00 57 04 04 00 2D 00 00 00 19 04 04 00 00 00 00 00 90 00 FA [09:25:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 DC C5 01 00 0E 04 04 00 DA 01 00 00 12 04 04 00 2C 00 00 00 5E 04 04 00 2C 00 00 00 57 04 04 00 2D 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:25:00]wFMCommunicate OK [09:25:00]SAM_PROTO_GetFieldsCounters done [09:25:00]requested_item shift.num is exist - process it [09:25:00]requested_item shift.opened is exist - process it [09:25:00]req_shift_opened [09:25:00]FM_GetShiftState [09:25:00]SAM_PROTO_GetShiftState [09:25:00]wFMCommunicate request_size=4 [09:25:00]MH_SAM_APDU [09:25:00]CAPDU: 80 13 01 00 [09:25:00]Write to MH i2c: E2 08 00 65 00 80 13 01 00 00 00 00 00 E2 [09:25:00]Write i2c OK [09:25:00]MH_I2C_Read... [09:25:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:25:00]Read from MH i2c: E2 [09:25:00]MH_I2C_Read... [09:25:00]Read from MH i2c: E2 0E 00 [09:25:00]MH_I2C_Read... [09:25:00]Read from MH i2c: E2 0E 00 65 00 00 09 00 01 63 60 F3 66 00 00 00 00 90 00 0A [09:25:00]RAPDU: 09 00 01 63 60 F3 66 00 00 00 00 90 00 [09:25:00]wFMCommunicate OK [09:25:00]SAM_PROTO_GetShiftState done [09:25:00]FM_GetShiftState done [09:25:00]req_shift_opened done [09:25:00]requested_item shift.open_date is exist - process it [09:25:00]req_shift_open_date [09:25:00]req_shift_open_date done [09:25:00]produce_requested_data done [09:25:00]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":116188,"shift.num":474,"shift.opened":1,"shift.open_date":1727225955} [09:25:00]process_action_free close_receipt [09:25:00]json_value_free [09:25:00]json_value_free done [09:25:00]process_json_proto returns [09:25:00]Send response to host [09:25:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":116188,"shift.num":474,"shift.opened":1,"shift.open_date":1727225955}}} [09:25:00]free response buf [09:25:00]execute_script done [09:25:00]execute_script returns [09:25:00]free content buf [09:25:00]Sock 6.Close socket [09:25:00]Sock 6.Thread stoped [09:25:03]OFD Sender: No OFD packet to send [09:25:08]OFD Sender: No OFD packet to send [09:25:13]OFD Sender: No OFD packet to send [09:25:18]OFD Sender: No OFD packet to send [09:25:23]OFD Sender: No OFD packet to send [09:25:28]OFD Sender: No OFD packet to send [09:25:33]OFD Sender: No OFD packet to send [09:25:39]OFD Sender: No OFD packet to send [09:25:44]OFD Sender: No OFD packet to send [09:25:49]OFD Sender: No OFD packet to send [09:25:54]OFD Sender: No OFD packet to send [09:25:59]OFD Sender: No OFD packet to send [09:26:04]OFD Sender: No OFD packet to send [09:26:09]OFD Sender: No OFD packet to send [09:26:14]OFD Sender: No OFD packet to send [09:26:19]OFD Sender: No OFD packet to send [09:26:24]OFD Sender: No OFD packet to send [09:26:29]OFD Sender: No OFD packet to send [09:26:34]OFD Sender: No OFD packet to send [09:26:39]OFD Sender: No OFD packet to send [09:26:44]OFD Sender: No OFD packet to send [09:26:49]OFD Sender: No OFD packet to send [09:26:54]OFD Sender: No OFD packet to send [09:26:59]OFD Sender: No OFD packet to send [09:27:04]OFD Sender: No OFD packet to send [09:27:09]OFD Sender: No OFD packet to send [09:27:14]OFD Sender: No OFD packet to send [09:27:19]OFD Sender: No OFD packet to send [09:27:24]OFD Sender: No OFD packet to send [09:27:29]OFD Sender: No OFD packet to send [09:27:34]OFD Sender: No OFD packet to send [09:27:39]OFD Sender: No OFD packet to send [09:27:44]OFD Sender: No OFD packet to send [09:27:49]OFD Sender: No OFD packet to send [09:27:54]OFD Sender: No OFD packet to send [09:27:59]OFD Sender: No OFD packet to send [09:28:04]OFD Sender: No OFD packet to send [09:28:09]OFD Sender: No OFD packet to send [09:28:14]OFD Sender: No OFD packet to send [09:28:19]OFD Sender: No OFD packet to send [09:28:24]OFD Sender: No OFD packet to send [09:28:29]OFD Sender: No OFD packet to send [09:28:34]OFD Sender: No OFD packet to send [09:28:39]OFD Sender: No OFD packet to send [09:28:44]OFD Sender: No OFD packet to send [09:28:49]OFD Sender: No OFD packet to send [09:28:54]OFD Sender: No OFD packet to send [09:28:59]OFD Sender: No OFD packet to send [09:29:04]OFD Sender: No OFD packet to send [09:29:09]OFD Sender: No OFD packet to send [09:29:14]OFD Sender: No OFD packet to send [09:29:19]OFD Sender: No OFD packet to send [09:29:24]OFD Sender: No OFD packet to send [09:29:29]OFD Sender: No OFD packet to send [09:29:34]OFD Sender: No OFD packet to send [09:29:39]OFD Sender: No OFD packet to send [09:29:44]OFD Sender: No OFD packet to send [09:29:49]OFD Sender: No OFD packet to send [09:29:54]OFD Sender: No OFD packet to send [09:29:59]OFD Sender: No OFD packet to send [09:30:04]OFD Sender: No OFD packet to send [09:30:09]OFD Sender: No OFD packet to send [09:30:14]OFD Sender: No OFD packet to send [09:30:19]OFD Sender: No OFD packet to send [09:30:24]OFD Sender: No OFD packet to send [09:30:29]OFD Sender: No OFD packet to send [09:30:34]OFD Sender: No OFD packet to send [09:30:39]OFD Sender: No OFD packet to send [09:30:44]OFD Sender: No OFD packet to send [09:30:49]OFD Sender: No OFD packet to send [09:30:54]OFD Sender: No OFD packet to send [09:30:59]OFD Sender: No OFD packet to send [09:31:04]OFD Sender: No OFD packet to send [09:31:09]OFD Sender: No OFD packet to send [09:31:14]OFD Sender: No OFD packet to send [09:31:19]OFD Sender: No OFD packet to send [09:31:24]OFD Sender: No OFD packet to send [09:31:29]OFD Sender: No OFD packet to send [09:31:34]OFD Sender: No OFD packet to send [09:31:39]OFD Sender: No OFD packet to send [09:31:44]OFD Sender: No OFD packet to send [09:31:49]OFD Sender: No OFD packet to send [09:31:54]OFD Sender: No OFD packet to send [09:31:59]OFD Sender: No OFD packet to send [09:32:04]OFD Sender: No OFD packet to send [09:32:09]OFD Sender: No OFD packet to send [09:32:14]OFD Sender: No OFD packet to send [09:32:19]OFD Sender: No OFD packet to send [09:32:25]OFD Sender: No OFD packet to send [09:32:30]OFD Sender: No OFD packet to send [09:32:35]OFD Sender: No OFD packet to send [09:32:40]OFD Sender: No OFD packet to send [09:32:45]OFD Sender: No OFD packet to send [09:32:50]OFD Sender: No OFD packet to send [09:32:55]OFD Sender: No OFD packet to send [09:33:00]OFD Sender: No OFD packet to send [09:33:05]OFD Sender: No OFD packet to send [09:33:10]OFD Sender: No OFD packet to send [09:33:15]OFD Sender: No OFD packet to send [09:33:20]OFD Sender: No OFD packet to send [09:33:25]OFD Sender: No OFD packet to send [09:33:30]OFD Sender: No OFD packet to send [09:33:35]OFD Sender: No OFD packet to send [09:33:40]OFD Sender: No OFD packet to send [09:33:45]OFD Sender: No OFD packet to send [09:33:50]OFD Sender: No OFD packet to send [09:33:55]OFD Sender: No OFD packet to send [09:34:00]OFD Sender: No OFD packet to send [09:34:05]OFD Sender: No OFD packet to send [09:34:10]OFD Sender: No OFD packet to send [09:34:15]OFD Sender: No OFD packet to send [09:34:20]OFD Sender: No OFD packet to send [09:34:25]OFD Sender: No OFD packet to send [09:34:30]OFD Sender: No OFD packet to send [09:34:35]OFD Sender: No OFD packet to send [09:34:40]OFD Sender: No OFD packet to send [09:34:45]OFD Sender: No OFD packet to send [09:34:50]OFD Sender: No OFD packet to send [09:34:55]OFD Sender: No OFD packet to send [09:35:00]OFD Sender: No OFD packet to send [09:35:05]OFD Sender: No OFD packet to send [09:35:10]OFD Sender: No OFD packet to send [09:35:15]OFD Sender: No OFD packet to send [09:35:20]OFD Sender: No OFD packet to send [09:35:25]OFD Sender: No OFD packet to send [09:35:30]OFD Sender: No OFD packet to send [09:35:35]OFD Sender: No OFD packet to send [09:35:40]OFD Sender: No OFD packet to send [09:35:45]OFD Sender: No OFD packet to send [09:35:50]OFD Sender: No OFD packet to send [09:35:55]OFD Sender: No OFD packet to send [09:36:00]OFD Sender: No OFD packet to send [09:36:05]OFD Sender: No OFD packet to send [09:36:10]OFD Sender: No OFD packet to send [09:36:15]OFD Sender: No OFD packet to send [09:36:20]OFD Sender: No OFD packet to send [09:36:25]OFD Sender: No OFD packet to send [09:36:30]OFD Sender: No OFD packet to send [09:36:35]OFD Sender: No OFD packet to send [09:36:40]OFD Sender: No OFD packet to send [09:36:45]OFD Sender: No OFD packet to send [09:36:50]OFD Sender: No OFD packet to send [09:36:55]OFD Sender: No OFD packet to send [09:37:00]OFD Sender: No OFD packet to send [09:37:05]OFD Sender: No OFD packet to send [09:37:10]OFD Sender: No OFD packet to send [09:37:15]OFD Sender: No OFD packet to send [09:37:20]OFD Sender: No OFD packet to send [09:37:25]OFD Sender: No OFD packet to send [09:37:30]OFD Sender: No OFD packet to send [09:37:35]OFD Sender: No OFD packet to send [09:37:40]OFD Sender: No OFD packet to send [09:37:45]OFD Sender: No OFD packet to send [09:37:50]OFD Sender: No OFD packet to send [09:37:55]OFD Sender: No OFD packet to send [09:38:00]OFD Sender: No OFD packet to send [09:38:05]OFD Sender: No OFD packet to send [09:38:10]OFD Sender: No OFD packet to send [09:38:15]OFD Sender: No OFD packet to send [09:38:20]OFD Sender: No OFD packet to send [09:38:25]OFD Sender: No OFD packet to send [09:38:30]OFD Sender: No OFD packet to send [09:38:35]OFD Sender: No OFD packet to send [09:38:40]OFD Sender: No OFD packet to send [09:38:45]OFD Sender: No OFD packet to send [09:38:50]OFD Sender: No OFD packet to send [09:38:55]OFD Sender: No OFD packet to send [09:39:00]OFD Sender: No OFD packet to send [09:39:05]OFD Sender: No OFD packet to send [09:39:10]OFD Sender: No OFD packet to send [09:39:15]OFD Sender: No OFD packet to send [09:39:21]OFD Sender: No OFD packet to send [09:39:26]OFD Sender: No OFD packet to send [09:39:31]OFD Sender: No OFD packet to send [09:39:36]OFD Sender: No OFD packet to send [09:39:41]OFD Sender: No OFD packet to send [09:39:46]OFD Sender: No OFD packet to send [09:39:51]OFD Sender: No OFD packet to send [09:39:56]OFD Sender: No OFD packet to send [09:40:01]OFD Sender: No OFD packet to send [09:40:06]OFD Sender: No OFD packet to send [09:40:11]OFD Sender: No OFD packet to send [09:40:16]OFD Sender: No OFD packet to send [09:40:21]OFD Sender: No OFD packet to send [09:40:26]OFD Sender: No OFD packet to send [09:40:31]OFD Sender: No OFD packet to send [09:40:36]OFD Sender: No OFD packet to send [09:40:41]OFD Sender: No OFD packet to send [09:40:46]OFD Sender: No OFD packet to send [09:40:51]OFD Sender: No OFD packet to send [09:40:56]OFD Sender: No OFD packet to send [09:41:01]OFD Sender: No OFD packet to send [09:41:06]OFD Sender: No OFD packet to send [09:41:11]OFD Sender: No OFD packet to send [09:41:16]OFD Sender: No OFD packet to send [09:41:21]OFD Sender: No OFD packet to send [09:41:26]OFD Sender: No OFD packet to send [09:41:31]OFD Sender: No OFD packet to send [09:41:36]OFD Sender: No OFD packet to send [09:41:41]OFD Sender: No OFD packet to send [09:41:46]OFD Sender: No OFD packet to send [09:41:51]OFD Sender: No OFD packet to send [09:41:56]OFD Sender: No OFD packet to send [09:42:01]OFD Sender: No OFD packet to send [09:42:06]OFD Sender: No OFD packet to send [09:42:11]OFD Sender: No OFD packet to send [09:42:16]OFD Sender: No OFD packet to send [09:42:21]OFD Sender: No OFD packet to send [09:42:26]OFD Sender: No OFD packet to send [09:42:31]OFD Sender: No OFD packet to send [09:42:36]OFD Sender: No OFD packet to send [09:42:41]accept exits with 9 [09:42:41]New connection [09:42:41]New thread 3066998116 created [09:42:41]Thread 3067141476 joined [09:42:41]Waiting for new connection... [09:42:41] Sock 9.Parse request [09:42:41]Sock 9.Check first char [09:42:41]Sock 9.First char is OK [09:42:41]request: POST /json_proto HTTP/1.0 [09:42:41]Method: POST [09:42:41]URL: /json_proto [09:42:41]Method is POST - this is cgi request [09:42:41]url: /json_proto [09:42:41]query_string will be loaded in cgi processing [09:42:41]execute_cgi json_proto POST (null) [09:42:41]execute_cgi path=json_proto method=POST [09:42:41]POST find Content-Length [09:42:41]Host: 172.17.41.136:8080 [09:42:41]Content-Length: 2217 [09:42:41]Content-Type: application/json [09:42:41] [09:42:41]POST finish read [09:42:41]Found Content-Length = 2217 [09:42:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)344366", "tax_sys" : 0, "items" : [ { "code": "48747066", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston True Silver", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "47011656", "name": "\u0412\u043E\u0434\u043A\u0430 \u041F\u0448\u0435\u043D\u0438\u0447\u043D\u0430\u044F 0,1\u043B", "price" : 65.00, "quantity" : 1.000, "sum" : 65.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000027474", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A FuzeTea \u0437\u0435\u043B \u0447\u0430\u0439 \u043C\u0430\u043D\u0433\u043E,\u0440\u043E\u043C\u0430\u0448\u043A\u0430 1\u043B", "price" : 105.00, "quantity" : 1.000, "sum" : 105.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4600721018832", "name": "\u041F\u0438\u0432\u043E \u0421\u0438\u0431.\u041A\u043E\u0440 \u0437\u043E\u043B 0,5\u043B \u0441\u0442", "price" : 145.00, "quantity" : 1.000, "sum" : 145.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48746717", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Caster + Dream M", "price" : 147.00, "quantity" : 2.000, "sum" : 294.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48741156", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B LD Blue", "price" : 134.00, "quantity" : 1.000, "sum" : 134.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 1031.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:42:41]execute_script... [09:42:41]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)344366", "tax_sys" : 0, "items" : [ { "code": "48747066", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston True Silver", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "47011656", "name": "\u0412\u043E\u0434\u043A\u0430 \u041F\u0448\u0435\u043D\u0438\u0447\u043D\u0430\u044F 0,1\u043B", "price" : 65.00, "quantity" : 1.000, "sum" : 65.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000027474", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A FuzeTea \u0437\u0435\u043B \u0447\u0430\u0439 \u043C\u0430\u043D\u0433\u043E,\u0440\u043E\u043C\u0430\u0448\u043A\u0430 1\u043B", "price" : 105.00, "quantity" : 1.000, "sum" : 105.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4600721018832", "name": "\u041F\u0438\u0432\u043E \u0421\u0438\u0431.\u041A\u043E\u0440 \u0437\u043E\u043B 0,5\u043B \u0441\u0442", "price" : 145.00, "quantity" : 1.000, "sum" : 145.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48746717", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Caster + Dream M", "price" : 147.00, "quantity" : 2.000, "sum" : 294.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48741156", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B LD Blue", "price" : 134.00, "quantity" : 1.000, "sum" : 134.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 1031.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:42:41]POST & json_proto [09:42:41]process_json_proto [09:42:41]json parsed OK: [09:42:41]protocol is kg_v1.0 [09:42:41]action value=close_receipt [09:42:41]process_action close_receipt [09:42:41]cmd_close_receipt [09:42:41]MH_GetDate [09:42:41]Write to MH i2c: F0 00 00 66 00 55 [09:42:41]OFD Sender: No OFD packet to send [09:42:41]Write i2c OK [09:42:41]MH_I2C_Read... [09:42:41]Read from MH i2c: F0 [09:42:41]MH_I2C_Read... [09:42:41]Read from MH i2c: F0 09 00 [09:42:41]MH_I2C_Read... [09:42:41]Read from MH i2c: F0 09 00 66 00 00 12 DB F3 66 1B D0 5A 64 4D [09:42:41]GetLastDocTimeStamp 1727256296 [09:42:41]current date 1727257362 [09:42:41]FM_GetShiftState [09:42:41]SAM_PROTO_GetShiftState [09:42:41]wFMCommunicate request_size=4 [09:42:41]MH_SAM_APDU [09:42:41]CAPDU: 80 13 01 00 [09:42:41]Write to MH i2c: E2 08 00 67 00 80 13 01 00 00 00 00 00 E4 [09:42:41]Write i2c OK [09:42:41]MH_I2C_Read... [09:42:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:42:41]Read from MH i2c: E2 [09:42:41]MH_I2C_Read... [09:42:41]Read from MH i2c: E2 0E 00 [09:42:41]MH_I2C_Read... [09:42:41]Read from MH i2c: E2 0E 00 67 00 00 09 00 01 63 60 F3 66 00 00 00 00 90 00 0C [09:42:41]RAPDU: 09 00 01 63 60 F3 66 00 00 00 00 90 00 [09:42:41]wFMCommunicate OK [09:42:41]SAM_PROTO_GetShiftState done [09:42:41]FM_GetShiftState done [09:42:41]opened in 1727225955 [09:42:41]opened+sec_in_day 1727312355 [09:42:41]quantity*price = 14400 [09:42:41]sum+1 = 14401 [09:42:41]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 47011656 Водка Пшеничная 0,1л 1.000 * 65.00 = 65.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 5449000027474 Напиток FuzeTea зел чай манго,ромашка 1л 1.000 * 105.00 = 105.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4600721018832 Пиво Сиб.Кор зол 0,5л ст 1.000 * 145.00 = 145.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 48743570 Сигареты Winston XStyle Blue 1.000 * 144.00 = 144.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 48746717 Сигареты Winston XStyle Caster + Dream M 2.000 * 147.00 = 294.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 48741156 Сигареты LD Blue 1.000 * 134.00 = 134.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 1031.00 НСП 1% : 9.11 НДС 12% : 109.48 Наличными: 1031.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 45 25.09.2024 09:42 Смена: 474 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 116189 ФПД: 152029333257207 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240925T094242&type=1&operation_type=1&fn_number=0000000000871830&fd_number=116189&fm=152029333257207&tin=02508201610067®Number=0000000000091831&sum=103100 0 [09:42:43]StoreToDocumentArchive [09:42:43]shift 474 fd 116189 [09:42:43]save to /storage/0474/doc_00116189 [09:42:43]save last doc name /storage/0474/doc_00116189 to /storage/kkm_last_doc_name [09:42:43]save OK [09:42:43]Clear old archive folders... [09:42:43]ProcessDocumentItem done err = 0, tmpTLVsize=934 [09:42:43]tlvbuf is 018E41F0 [09:42:43]SAM_PROTO_ClearQueue [09:42:43]wFMCommunicate request_size=4 [09:42:43]MH_SAM_APDU [09:42:43]CAPDU: 80 09 00 00 [09:42:43]Write to MH i2c: E2 08 00 74 00 80 09 00 00 00 00 00 00 E6 [09:42:43]Write i2c OK [09:42:43]MH_I2C_Read... [09:42:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:42:43]Read from MH i2c: E2 [09:42:43]MH_I2C_Read... [09:42:43]Read from MH i2c: E2 03 00 [09:42:43]MH_I2C_Read... [09:42:43]Read from MH i2c: E2 03 00 74 00 00 90 00 E8 [09:42:43]RAPDU: 90 00 [09:42:43]wFMCommunicate OK [09:42:43]SAM_PROTO_ClearQueue done [09:42:43]KKMCreateOFDPacket [09:42:43]OFDProtocolAddRootSTLVToBuf [09:42:43]FM_MakeSignedData [09:42:43]FM_MakeSignedData [09:42:43]SAM_PROTO_SignData [09:42:43]wFMCommunicate request_size=4 [09:42:43]MH_SAM_APDU [09:42:43]CAPDU: 80 0D 01 02 [09:42:43]Write to MH i2c: E2 08 00 75 00 80 0D 01 02 00 00 00 00 EE [09:42:43]Write i2c OK [09:42:43]MH_I2C_Read... [09:42:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:42:43]Read from MH i2c: E2 [09:42:43]MH_I2C_Read... [09:42:43]Read from MH i2c: E2 03 00 [09:42:43]MH_I2C_Read... [09:42:43]Read from MH i2c: E2 03 00 75 00 00 90 00 E9 [09:42:43]RAPDU: 90 00 [09:42:43]wFMCommunicate OK [09:42:43]wFMCommunicate request_size=255 [09:42:43]MH_SAM_APDU [09:42:43]CAPDU: 80 0D 02 02 FA 03 00 A6 03 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 37 30 36 36 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 54 72 75 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 62 00 8A 04 08 00 34 37 30 31 31 36 35 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 9F D1 88 D0 B5 D0 BD D0 B8 D1 87 D0 BD D0 B0 D1 8F 20 30 2C 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 86 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 37 34 37 34 06 04 42 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 [09:42:43]Write to MH i2c: E2 02 01 76 00 80 0D 02 02 FA 00 03 00 A6 03 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 37 30 36 36 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 54 72 75 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 62 00 8A 04 08 00 34 37 30 31 31 36 35 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 9F D1 88 D0 B5 D0 BD D0 B8 D1 87 D0 BD D0 B0 D1 8F 20 30 2C 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 86 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 37 34 37 34 06 04 42 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 00 00 D3 [09:42:43]Write i2c OK [09:42:43]MH_I2C_Read... [09:42:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:42:43]Read from MH i2c: E2 [09:42:43]MH_I2C_Read... [09:42:43]Read from MH i2c: E2 03 00 [09:42:43]MH_I2C_Read... [09:42:43]Read from MH i2c: E2 03 00 76 00 00 90 00 EA [09:42:43]RAPDU: 90 00 [09:42:43]wFMCommunicate OK [09:42:43]wFMCommunicate request_size=255 [09:42:43]MH_SAM_APDU [09:42:43]CAPDU: 80 0D 02 02 FA BE D0 BA 20 46 75 7A 65 54 65 61 20 D0 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC D0 B0 D1 88 D0 BA D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6C 00 8A 04 0D 00 34 36 30 30 37 32 31 30 31 38 38 33 32 06 04 28 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 A1 D0 B8 D0 B1 2E D0 9A D0 BE D1 80 20 D0 B7 D0 BE D0 BB 20 30 2C 35 D0 BB 20 D1 81 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A4 38 00 00 00 00 13 04 06 00 A4 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B [09:42:43]Write to MH i2c: E2 02 01 77 00 80 0D 02 02 FA 00 BE D0 BA 20 46 75 7A 65 54 65 61 20 D0 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC D0 B0 D1 88 D0 BA D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6C 00 8A 04 0D 00 34 36 30 30 37 32 31 30 31 38 38 33 32 06 04 28 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 A1 D0 B8 D0 B1 2E D0 9A D0 BE D1 80 20 D0 B7 D0 BE D0 BB 20 30 2C 35 D0 BB 20 D1 81 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A4 38 00 00 00 00 13 04 06 00 A4 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 00 00 C8 [09:42:43]Write i2c OK [09:42:43]MH_I2C_Read... [09:42:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:42:43]Read from MH i2c: E2 [09:42:43]MH_I2C_Read... [09:42:43]Read from MH i2c: E2 03 00 [09:42:43]MH_I2C_Read... [09:42:43]Read from MH i2c: E2 03 00 77 00 00 90 00 EB [09:42:43]RAPDU: 90 00 [09:42:43]wFMCommunicate OK [09:42:43]wFMCommunicate request_size=255 [09:42:43]MH_SAM_APDU [09:42:43]CAPDU: 80 0D 02 02 FA 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6F 00 8A 04 08 00 34 38 37 34 36 37 31 37 06 04 30 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 43 61 73 74 65 72 20 2B 20 44 72 65 61 6D 20 4D FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 6C 39 00 00 00 00 13 04 06 00 D8 72 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 57 00 8A 04 08 00 34 38 37 34 31 31 35 36 06 04 18 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 4C 44 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 34 00 00 00 00 13 04 [09:42:43]Write to MH i2c: E2 02 01 78 00 80 0D 02 02 FA 00 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6F 00 8A 04 08 00 34 38 37 34 36 37 31 37 06 04 30 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 43 61 73 74 65 72 20 2B 20 44 72 65 61 6D 20 4D FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 6C 39 00 00 00 00 13 04 06 00 D8 72 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 57 00 8A 04 08 00 34 38 37 34 31 31 35 36 06 04 18 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 4C 44 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 34 00 00 00 00 13 04 00 00 09 [09:42:43]Write i2c OK [09:42:43]MH_I2C_Read... [09:42:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:42:44]Read from MH i2c: E2 [09:42:44]MH_I2C_Read... [09:42:44]Read from MH i2c: E2 03 00 [09:42:44]MH_I2C_Read... [09:42:44]Read from MH i2c: E2 03 00 78 00 00 90 00 EC [09:42:44]RAPDU: 90 00 [09:42:44]wFMCommunicate OK [09:42:44]wFMCommunicate request_size=193 [09:42:44]MH_SAM_APDU [09:42:44]CAPDU: 80 0D 02 02 BC 06 00 58 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 92 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8F 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 2A 00 00 00 00 07 04 06 00 BC 92 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 12 DB F3 66 0E 04 04 00 DA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 DD C5 01 00 35 04 06 00 8A 45 16 67 7B F7 [09:42:44]Write to MH i2c: E2 C4 00 79 00 80 0D 02 02 BC 00 06 00 58 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 92 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8F 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 2A 00 00 00 00 07 04 06 00 BC 92 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 12 DB F3 66 0E 04 04 00 DA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 DD C5 01 00 35 04 06 00 8A 45 16 67 7B F7 00 00 B8 [09:42:44]Write i2c OK [09:42:44]MH_I2C_Read... [09:42:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:42:44]Read from MH i2c: E2 [09:42:44]MH_I2C_Read... [09:42:44]Read from MH i2c: E2 03 00 [09:42:44]MH_I2C_Read... [09:42:44]Read from MH i2c: E2 03 00 79 00 00 90 00 ED [09:42:44]RAPDU: 90 00 [09:42:44]wFMCommunicate OK [09:42:44]wFMCommunicate request_size=4 [09:42:44]MH_SAM_APDU [09:42:44]CAPDU: 80 0D 03 02 [09:42:44]Write to MH i2c: E2 08 00 7A 00 80 0D 03 02 00 00 00 00 F5 [09:42:44]Write i2c OK [09:42:44]MH_I2C_Read... [09:42:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:42:44]Read from MH i2c: E2 [09:42:44]MH_I2C_Read... [09:42:44]Read from MH i2c: E2 0B 00 [09:42:44]MH_I2C_Read... [09:42:44]Read from MH i2c: E2 0B 00 7A 00 00 98 4F 8D 17 17 49 EB 40 90 00 0C [09:42:44]RAPDU: 98 4F 8D 17 17 49 EB 40 90 00 [09:42:44]wFMCommunicate OK [09:42:44]SAM_PROTO_SignData done [09:42:44]FM_MakeSignedData done [09:42:44]CreateOFDProtocolMessage [09:42:44]wFMCommunicate request_size=4 [09:42:44]MH_SAM_APDU [09:42:44]CAPDU: 80 11 00 00 [09:42:44]Write to MH i2c: E2 08 00 7B 00 80 11 00 00 00 00 00 00 F5 [09:42:44]Write i2c OK [09:42:44]MH_I2C_Read... [09:42:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:42:44]Read from MH i2c: E2 [09:42:44]MH_I2C_Read... [09:42:44]Read from MH i2c: E2 17 00 [09:42:44]MH_I2C_Read... [09:42:44]Read from MH i2c: E2 17 00 7B 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 43 [09:42:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [09:42:44]wFMCommunicate OK [09:42:44]CreateOFDProtocolMessage done [09:42:44]OFDSenderStorePacket 116189 [09:42:44]StoreOFDPacket docnum=116189 [09:42:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 BA 03 00 00 51 32 B2 03 74 E0 5A 03 01 00 03 00 A6 03 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 37 30 36 36 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 54 72 75 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 62 00 8A 04 08 00 34 37 30 31 31 36 35 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 9F D1 88 D0 B5 D0 BD D0 B8 D1 87 D0 BD D0 B0 D1 8F 20 30 2C 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 86 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 37 34 37 34 06 04 42 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 20 D0 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC D0 B0 D1 88 D0 BA D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6C 00 8A 04 0D 00 34 36 30 30 37 32 31 30 31 38 38 33 32 06 04 28 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 A1 D0 B8 D0 B1 2E D0 9A D0 BE D1 80 20 D0 B7 D0 BE D0 BB 20 30 2C 35 D0 BB 20 D1 81 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A4 38 00 00 00 00 13 04 06 00 A4 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6F 00 8A 04 08 00 34 38 37 34 36 37 31 37 06 04 30 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 43 61 73 74 65 72 20 2B 20 44 72 65 61 6D 20 4D FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 6C 39 00 00 00 00 13 04 06 00 D8 72 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 57 00 8A 04 08 00 34 38 37 34 31 31 35 36 06 04 18 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 4C 44 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 34 00 00 00 00 13 04 06 00 58 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 92 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8F 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 2A 00 00 00 00 07 04 06 00 BC 92 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 12 DB F3 66 0E 04 04 00 DA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 DD C5 01 00 35 04 06 00 8A 45 16 67 7B F7 98 4F 8D 17 17 49 EB 40 [09:42:44]CheckFolder [09:42:44]dirname=/storage/ofd_packets [09:42:44]CheckFolder done [09:42:44]ProducePacketName [09:42:44]name=ofd_packets/00116189 [09:42:44]NVStorageSaveData ofd_packets/00116189 [09:42:44]File name is /storage/ofd_packets/00116189 [09:42:44]Write 984 bytes [09:42:44]NVStorageSaveData done [09:42:44]OFDSenderStorePacket done [09:42:44]KKMCreateOFDPacket done [09:42:44]NVStorageSaveData kkm_last_timestamp [09:42:44]File name is /storage/kkm_last_timestamp [09:42:44]Write 4 bytes [09:42:44]NVStorageSaveData done [09:42:44]ExternCall_PrintAddStr [09:42:44]wPrintStart [09:42:44]Write to MH i2c: 01 00 00 7C 00 7C [09:42:44]Write i2c OK [09:42:44]MH_I2C_Read... [09:42:44]Read from MH i2c: 01 [09:42:44]MH_I2C_Read... [09:42:44]Read from MH i2c: 01 07 00 [09:42:44]MH_I2C_Read... [09:42:44]Read from MH i2c: 01 07 00 7C 00 00 00 00 00 00 FF 0F 91 [09:42:44]RasterBufferAndPrint [09:42:44]line Счет N : (3)344366 [09:42:44]line ИНН: 02508201610067 [09:42:44]line Контрольно-Кассовый Чек [09:42:44]line ПРОДАЖА [09:42:44]line Товар: 48747066 [09:42:44]line Сигареты Winston True Silver [09:42:44]line 1.000 * 144.00 [09:42:44]line = 144.00 [09:42:44]line НДС 12% НСП 1% [09:42:44]line > о реализуемом товаре [09:42:44]line Товар: 47011656 [09:42:44]line Водка Пшеничная 0,1л [09:42:44]line 1.000 * 65.00 [09:42:44]line = 65.00 [09:42:44]line НДС 12% НСП 1% [09:42:44]line > о реализуемом товаре [09:42:44]line Товар: 5449000027474 [09:42:44]line Напиток FuzeTea зел чай манго,ромашка 1л [09:42:44]line 1.000 * 105.00 [09:42:44]line = 105.00 [09:42:44]line НДС 12% НСП 1% [09:42:44]line > о реализуемом товаре [09:42:44]line Товар: 4600721018832 [09:42:44]line Пиво Сиб.Кор зол 0,5л ст [09:42:44]line 1.000 * 145.00 [09:42:44]line = 145.00 [09:42:44]line НДС 12% НСП 1% [09:42:44]line > о реализуемом товаре [09:42:44]line Товар: 48743570 [09:42:44]line Сигареты Winston XStyle Blue [09:42:44]line 1.000 * 144.00 [09:42:44]line = 144.00 [09:42:44]line НДС 12% НСП 1% [09:42:44]line > о реализуемом товаре [09:42:44]line Товар: 48746717 [09:42:44]line Сигареты Winston XStyle Caster + Dream M [09:42:44]line 2.000 * 147.00 [09:42:44]line = 294.00 [09:42:44]line НДС 12% НСП 1% [09:42:44]line > о реализуемом товаре [09:42:44]line Товар: 48741156 [09:42:44]line Сигареты LD Blue [09:42:44]line 1.000 * 134.00 [09:42:44]line = 134.00 [09:42:44]line НДС 12% НСП 1% [09:42:44]line > о реализуемом товаре [09:42:44]line ИТОГО: 1031.00 [09:42:44]line НСП 1% : 9.11 [09:42:44]line НДС 12% : 109.48 [09:42:44]line Наличными: 1031.00 [09:42:44]line Безнал.: 0.00 [09:42:44]line Место: АЗС № 90 "Партнер Нефть" [09:42:44]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [09:42:44]line СНО: Общий режим [09:42:44]line Чек 45 25.09.2024 09:42 [09:42:44]line Смена: 474 ФФД: 1.0 [09:42:44]line ЗНМ: 0300000120 [09:42:44]line РНМ: 0000000000091831 [09:42:44]line Версия ККМ: 001 [09:42:44]line ФМ: 0000000000871830 [09:42:44]line ФД: 116189 [09:42:44]line ФПД: 152029333257207 [09:42:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240925T094242&type=1&operation_type=1&fn_number=0000000000871830&fd_number=116189&fm=152029333257207&tin=02508201610067®Number=0000000000091831&sum=103100 [09:42:44]line 0 [09:42:44]written 0, free lines is 4095 [09:42:44]OFD Sender: Processing packet 116189 [packets to send 482, broken 481] [09:42:44]ProducePacketName [09:42:44]name=ofd_packets/00116189 [09:42:44]OFD Sender: To server: pG, [09:42:44]CommunicateWithHost lk.salyk.kg:30040 [09:42:44]ConnectInit lk.salyk.kg [09:42:45]Connected sock=7 [09:42:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 BA 03 00 00 51 32 B2 03 74 E0 5A 03 01 00 03 00 A6 03 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 37 30 36 36 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 54 72 75 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 62 00 8A 04 08 00 34 37 30 31 31 36 35 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 9F D1 88 D0 B5 D0 BD D0 B8 D1 87 D0 BD D0 B0 D1 8F 20 30 2C 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 86 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 37 34 37 34 06 04 42 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 20 D0 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC D0 B0 D1 88 D0 BA D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6C 00 8A 04 0D 00 34 36 30 30 37 32 31 30 31 38 38 33 32 06 04 28 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 A1 D0 B8 D0 B1 2E D0 9A D0 BE D1 80 20 D0 B7 D0 BE D0 BB 20 30 2C 35 D0 BB 20 D1 81 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A4 38 00 00 00 00 13 04 06 00 A4 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6F 00 8A 04 08 00 34 38 37 34 36 37 31 37 06 04 30 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 43 61 73 74 65 72 20 2B 20 44 72 65 61 6D 20 4D FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 6C 39 00 00 00 00 13 04 06 00 D8 72 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 57 00 8A 04 08 00 34 38 37 34 31 31 35 36 06 04 18 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 4C 44 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 34 00 00 00 00 13 04 06 00 58 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 92 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8F 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 2A 00 00 00 00 07 04 06 00 BC 92 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 12 DB F3 66 0E 04 04 00 DA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 DD C5 01 00 35 04 06 00 8A 45 16 67 7B F7 98 4F 8D 17 17 49 EB 40 [09:42:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 E1 D7 47 00 06 16 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 DD C5 01 00 F4 03 04 00 50 80 F3 66 B6 04 01 00 00 71 E5 BD 37 3B 97 F9 D5 [09:42:45]CommunicateWithHost err = 0 [09:42:45]CheckOFDResponse [09:42:45]1017 (14) - 77093643461234 [09:42:45]1041 (16) - 0000000000871830 [09:42:45]1040 (4) - 116189 [09:42:45]1012 (4) - 25.09.2024 03:15 [09:42:45]1206 (1) - 0 [09:42:45]OFD Sender: Remove packet 116189 [09:42:45]ProducePacketName [09:42:45]name=ofd_packets/00116189 [09:42:45]NVStorageDeleteData [09:42:45]Write to MH i2c: 01 00 00 C9 00 C9 [09:42:45]Write i2c OK [09:42:45]MH_I2C_Read... [09:42:45]Read from MH i2c: 01 [09:42:45]MH_I2C_Read... [09:42:45]Read from MH i2c: 01 07 00 [09:42:45]MH_I2C_Read... [09:42:45]Read from MH i2c: 01 07 00 C9 00 00 00 00 00 00 4B 09 24 [09:42:45]RasterBufferAndPrint [09:42:45]line [09:42:45]line [09:42:45]line [09:42:45]line [09:42:45]line [09:42:45]written 0, free lines is 2383 [09:42:45]MH_Cut [09:42:45]Write to MH i2c: D1 01 00 D0 00 01 A2 [09:42:45]Write i2c OK [09:42:45]MH_I2C_Read... [09:42:45]Read from MH i2c: D1 [09:42:45]MH_I2C_Read... [09:42:45]Read from MH i2c: D1 01 00 [09:42:45]MH_I2C_Read... [09:42:45]Read from MH i2c: D1 01 00 D0 00 00 A1 [09:42:45]Write to MH i2c: 01 00 00 D1 00 D1 [09:42:45]Write i2c OK [09:42:45]MH_I2C_Read... [09:42:46]OFD Sender: No OFD packet to send [09:42:48]*** Cut start [09:42:48]*** Partial cut [09:42:48]*** CUTSNS_PIN = 1 [09:42:48]*** CUTSNS_PIN = 0 [09:42:48]*** Brake cut motor [09:42:48]Read from MH i2c: 01 [09:42:48]MH_I2C_Read... [09:42:48]*** Stop cut motor [09:42:48]*** Cut end [09:42:48]Read from MH i2c: 01 07 00 [09:42:48]MH_I2C_Read... [09:42:48]Read from MH i2c: 01 07 00 D1 00 00 00 00 00 00 FF 0F E6 [09:42:48]process_action close_receipt done [09:42:48]requested_data is exist [09:42:48]produce_requested_data [09:42:48]requested_item fm.sn is exist - process it [09:42:48]wFMCommunicate request_size=4 [09:42:48]MH_SAM_APDU [09:42:48]CAPDU: 80 11 00 00 [09:42:48]Write to MH i2c: E2 08 00 D2 00 80 11 00 00 00 00 00 00 4C [09:42:48]Write i2c OK [09:42:48]MH_I2C_Read... [09:42:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:42:48]Read from MH i2c: E2 [09:42:48]MH_I2C_Read... [09:42:48]Read from MH i2c: E2 17 00 [09:42:48]MH_I2C_Read... [09:42:48]Read from MH i2c: E2 17 00 D2 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 9A [09:42:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [09:42:48]wFMCommunicate OK [09:42:48]requested_item fd.num is exist - process it [09:42:48]SAM_PROTO_GetFieldsCounters [09:42:48]wFMCommunicate request_size=4 [09:42:48]MH_SAM_APDU [09:42:48]CAPDU: 80 13 00 00 [09:42:48]Write to MH i2c: E2 08 00 D3 00 80 13 00 00 00 00 00 00 4F [09:42:48]Write i2c OK [09:42:48]MH_I2C_Read... [09:42:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:42:48]Read from MH i2c: E2 [09:42:48]MH_I2C_Read... [09:42:48]Read from MH i2c: E2 62 00 [09:42:48]MH_I2C_Read... [09:42:48]Read from MH i2c: E2 62 00 D3 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 DD C5 01 00 0E 04 04 00 DA 01 00 00 12 04 04 00 2D 00 00 00 5E 04 04 00 2D 00 00 00 57 04 04 00 2E 00 00 00 19 04 04 00 00 00 00 00 90 00 6D [09:42:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 DD C5 01 00 0E 04 04 00 DA 01 00 00 12 04 04 00 2D 00 00 00 5E 04 04 00 2D 00 00 00 57 04 04 00 2E 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:42:48]wFMCommunicate OK [09:42:48]SAM_PROTO_GetFieldsCounters done [09:42:48]requested_item shift.num is exist - process it [09:42:48]requested_item shift.opened is exist - process it [09:42:48]req_shift_opened [09:42:48]FM_GetShiftState [09:42:48]SAM_PROTO_GetShiftState [09:42:48]wFMCommunicate request_size=4 [09:42:48]MH_SAM_APDU [09:42:48]CAPDU: 80 13 01 00 [09:42:48]Write to MH i2c: E2 08 00 D4 00 80 13 01 00 00 00 00 00 51 [09:42:48]Write i2c OK [09:42:48]MH_I2C_Read... [09:42:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:42:48]Read from MH i2c: E2 [09:42:48]MH_I2C_Read... [09:42:48]Read from MH i2c: E2 0E 00 [09:42:48]MH_I2C_Read... [09:42:48]Read from MH i2c: E2 0E 00 D4 00 00 09 00 01 63 60 F3 66 00 00 00 00 90 00 79 [09:42:48]RAPDU: 09 00 01 63 60 F3 66 00 00 00 00 90 00 [09:42:48]wFMCommunicate OK [09:42:48]SAM_PROTO_GetShiftState done [09:42:48]FM_GetShiftState done [09:42:48]req_shift_opened done [09:42:48]requested_item shift.open_date is exist - process it [09:42:48]req_shift_open_date [09:42:48]req_shift_open_date done [09:42:48]produce_requested_data done [09:42:48]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":116189,"shift.num":474,"shift.opened":1,"shift.open_date":1727225955} [09:42:48]process_action_free close_receipt [09:42:48]json_value_free [09:42:48]json_value_free done [09:42:48]process_json_proto returns [09:42:48]Send response to host [09:42:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":116189,"shift.num":474,"shift.opened":1,"shift.open_date":1727225955}}} [09:42:48]free response buf [09:42:48]execute_script done [09:42:48]execute_script returns [09:42:48]free content buf [09:42:48]Sock 9.Close socket [09:42:48]Sock 9.Thread stoped [09:42:51]OFD Sender: No OFD packet to send [09:42:56]OFD Sender: No OFD packet to send [09:43:01]OFD Sender: No OFD packet to send [09:43:06]OFD Sender: No OFD packet to send [09:43:11]OFD Sender: No OFD packet to send [09:43:16]OFD Sender: No OFD packet to send [09:43:21]OFD Sender: No OFD packet to send [09:43:26]OFD Sender: No OFD packet to send [09:43:31]OFD Sender: No OFD packet to send [09:43:36]OFD Sender: No OFD packet to send [09:43:41]OFD Sender: No OFD packet to send [09:43:46]OFD Sender: No OFD packet to send [09:43:51]OFD Sender: No OFD packet to send [09:43:56]OFD Sender: No OFD packet to send [09:44:01]OFD Sender: No OFD packet to send [09:44:06]OFD Sender: No OFD packet to send [09:44:11]OFD Sender: No OFD packet to send [09:44:16]OFD Sender: No OFD packet to send [09:44:21]OFD Sender: No OFD packet to send [09:44:26]OFD Sender: No OFD packet to send [09:44:31]OFD Sender: No OFD packet to send [09:44:36]OFD Sender: No OFD packet to send [09:44:41]OFD Sender: No OFD packet to send [09:44:46]OFD Sender: No OFD packet to send [09:44:51]OFD Sender: No OFD packet to send [09:44:56]OFD Sender: No OFD packet to send [09:45:01]OFD Sender: No OFD packet to send [09:45:06]OFD Sender: No OFD packet to send [09:45:11]OFD Sender: No OFD packet to send [09:45:16]OFD Sender: No OFD packet to send [09:45:21]OFD Sender: No OFD packet to send [09:45:26]OFD Sender: No OFD packet to send [09:45:31]OFD Sender: No OFD packet to send [09:45:36]OFD Sender: No OFD packet to send [09:45:41]OFD Sender: No OFD packet to send [09:45:46]OFD Sender: No OFD packet to send [09:45:51]OFD Sender: No OFD packet to send [09:45:56]OFD Sender: No OFD packet to send [09:46:01]OFD Sender: No OFD packet to send [09:46:06]OFD Sender: No OFD packet to send [09:46:11]OFD Sender: No OFD packet to send [09:46:16]OFD Sender: No OFD packet to send [09:46:21]OFD Sender: No OFD packet to send [09:46:26]OFD Sender: No OFD packet to send [09:46:31]OFD Sender: No OFD packet to send [09:46:36]OFD Sender: No OFD packet to send [09:46:41]OFD Sender: No OFD packet to send [09:46:46]OFD Sender: No OFD packet to send [09:46:51]OFD Sender: No OFD packet to send [09:46:56]OFD Sender: No OFD packet to send [09:47:01]OFD Sender: No OFD packet to send [09:47:06]OFD Sender: No OFD packet to send [09:47:11]OFD Sender: No OFD packet to send [09:47:16]OFD Sender: No OFD packet to send [09:47:21]OFD Sender: No OFD packet to send [09:47:26]OFD Sender: No OFD packet to send [09:47:31]OFD Sender: No OFD packet to send [09:47:36]OFD Sender: No OFD packet to send [09:47:41]OFD Sender: No OFD packet to send [09:47:46]OFD Sender: No OFD packet to send [09:47:51]OFD Sender: No OFD packet to send [09:47:56]OFD Sender: No OFD packet to send [09:48:01]OFD Sender: No OFD packet to send [09:48:06]OFD Sender: No OFD packet to send [09:48:11]OFD Sender: No OFD packet to send [09:48:16]OFD Sender: No OFD packet to send [09:48:21]OFD Sender: No OFD packet to send [09:48:26]OFD Sender: No OFD packet to send [09:48:31]OFD Sender: No OFD packet to send [09:48:37]OFD Sender: No OFD packet to send [09:48:42]OFD Sender: No OFD packet to send [09:48:47]OFD Sender: No OFD packet to send [09:48:52]OFD Sender: No OFD packet to send [09:48:57]OFD Sender: No OFD packet to send [09:49:02]OFD Sender: No OFD packet to send [09:49:07]OFD Sender: No OFD packet to send [09:49:12]OFD Sender: No OFD packet to send [09:49:17]OFD Sender: No OFD packet to send [09:49:22]OFD Sender: No OFD packet to send [09:49:27]OFD Sender: No OFD packet to send [09:49:32]OFD Sender: No OFD packet to send [09:49:37]OFD Sender: No OFD packet to send [09:49:42]OFD Sender: No OFD packet to send [09:49:47]OFD Sender: No OFD packet to send [09:49:52]OFD Sender: No OFD packet to send [09:49:57]OFD Sender: No OFD packet to send [09:50:02]OFD Sender: No OFD packet to send [09:50:07]OFD Sender: No OFD packet to send [09:50:12]OFD Sender: No OFD packet to send [09:50:17]OFD Sender: No OFD packet to send [09:50:22]OFD Sender: No OFD packet to send [09:50:27]OFD Sender: No OFD packet to send [09:50:32]OFD Sender: No OFD packet to send [09:50:37]OFD Sender: No OFD packet to send [09:50:42]OFD Sender: No OFD packet to send [09:50:47]OFD Sender: No OFD packet to send [09:50:52]OFD Sender: No OFD packet to send [09:50:57]OFD Sender: No OFD packet to send [09:51:02]OFD Sender: No OFD packet to send [09:51:07]OFD Sender: No OFD packet to send [09:51:12]OFD Sender: No OFD packet to send [09:51:17]OFD Sender: No OFD packet to send [09:51:22]OFD Sender: No OFD packet to send [09:51:27]OFD Sender: No OFD packet to send [09:51:32]OFD Sender: No OFD packet to send [09:51:37]OFD Sender: No OFD packet to send [09:51:42]OFD Sender: No OFD packet to send [09:51:47]OFD Sender: No OFD packet to send [09:51:52]OFD Sender: No OFD packet to send [09:51:57]OFD Sender: No OFD packet to send [09:52:02]OFD Sender: No OFD packet to send [09:52:07]OFD Sender: No OFD packet to send [09:52:12]OFD Sender: No OFD packet to send [09:52:17]OFD Sender: No OFD packet to send [09:52:22]OFD Sender: No OFD packet to send [09:52:27]OFD Sender: No OFD packet to send [09:52:32]OFD Sender: No OFD packet to send [09:52:37]OFD Sender: No OFD packet to send [09:52:42]OFD Sender: No OFD packet to send [09:52:47]OFD Sender: No OFD packet to send [09:52:52]OFD Sender: No OFD packet to send [09:52:57]OFD Sender: No OFD packet to send [09:53:02]OFD Sender: No OFD packet to send [09:53:07]OFD Sender: No OFD packet to send [09:53:12]OFD Sender: No OFD packet to send [09:53:17]OFD Sender: No OFD packet to send [09:53:22]OFD Sender: No OFD packet to send [09:53:27]OFD Sender: No OFD packet to send [09:53:32]OFD Sender: No OFD packet to send [09:53:37]OFD Sender: No OFD packet to send [09:53:42]OFD Sender: No OFD packet to send [09:53:47]OFD Sender: No OFD packet to send [09:53:52]OFD Sender: No OFD packet to send [09:53:57]OFD Sender: No OFD packet to send [09:54:02]OFD Sender: No OFD packet to send [09:54:07]OFD Sender: No OFD packet to send [09:54:12]OFD Sender: No OFD packet to send [09:54:17]OFD Sender: No OFD packet to send [09:54:22]OFD Sender: No OFD packet to send [09:54:27]OFD Sender: No OFD packet to send [09:54:32]OFD Sender: No OFD packet to send [09:54:37]OFD Sender: No OFD packet to send [09:54:42]OFD Sender: No OFD packet to send [09:54:47]OFD Sender: No OFD packet to send [09:54:52]OFD Sender: No OFD packet to send [09:54:57]OFD Sender: No OFD packet to send [09:55:02]OFD Sender: No OFD packet to send [09:55:07]OFD Sender: No OFD packet to send [09:55:12]OFD Sender: No OFD packet to send [09:55:17]OFD Sender: No OFD packet to send [09:55:22]OFD Sender: No OFD packet to send [09:55:27]OFD Sender: No OFD packet to send [09:55:33]OFD Sender: No OFD packet to send [09:55:38]OFD Sender: No OFD packet to send [09:55:43]OFD Sender: No OFD packet to send [09:55:48]OFD Sender: No OFD packet to send [09:55:53]OFD Sender: No OFD packet to send [09:55:58]OFD Sender: No OFD packet to send [09:56:03]OFD Sender: No OFD packet to send [09:56:08]OFD Sender: No OFD packet to send [09:56:13]OFD Sender: No OFD packet to send [09:56:18]OFD Sender: No OFD packet to send [09:56:23]OFD Sender: No OFD packet to send [09:56:28]OFD Sender: No OFD packet to send [09:56:33]OFD Sender: No OFD packet to send [09:56:38]OFD Sender: No OFD packet to send [09:56:43]OFD Sender: No OFD packet to send [09:56:48]OFD Sender: No OFD packet to send [09:56:53]accept exits with 10 [09:56:53]New connection [09:56:53]New thread 3067141476 created [09:56:53]Thread 3066998116 joined [09:56:53]Waiting for new connection... [09:56:53] Sock 10.Parse request [09:56:53]Sock 10.Check first char [09:56:53]Sock 10.First char is OK [09:56:53]request: POST /json_proto HTTP/1.0 [09:56:53]Method: POST [09:56:53]URL: /json_proto [09:56:53]Method is POST - this is cgi request [09:56:53]url: /json_proto [09:56:53]query_string will be loaded in cgi processing [09:56:53]execute_cgi json_proto POST (null) [09:56:53]execute_cgi path=json_proto method=POST [09:56:53]POST find Content-Length [09:56:53]Host: 172.17.41.136:8080 [09:56:53]Content-Length: 614 [09:56:53]Content-Type: application/json [09:56:53] [09:56:53]POST finish read [09:56:53]Found Content-Length = 614 [09:56:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)344367", "tax_sys" : 0, "items" : [ { "code": "4870001570071", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 1\u043B", "price" : 110.00, "quantity" : 1.000, "sum" : 110.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 110.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:56:53]execute_script... [09:56:53]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)344367", "tax_sys" : 0, "items" : [ { "code": "4870001570071", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 1\u043B", "price" : 110.00, "quantity" : 1.000, "sum" : 110.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 110.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:56:53]POST & json_proto [09:56:53]process_json_proto [09:56:53]json parsed OK: [09:56:53]protocol is kg_v1.0 [09:56:53]action value=close_receipt [09:56:53]process_action close_receipt [09:56:53]cmd_close_receipt [09:56:53]MH_GetDate [09:56:53]Write to MH i2c: F0 00 00 D5 00 C4 [09:56:53]Write i2c OK [09:56:53]MH_I2C_Read... [09:56:53]Read from MH i2c: F0 [09:56:53]MH_I2C_Read... [09:56:53]Read from MH i2c: F0 09 00 [09:56:53]MH_I2C_Read... [09:56:53]Read from MH i2c: F0 09 00 D5 00 00 65 DE F3 66 1B D0 5A 64 12 [09:56:53]GetLastDocTimeStamp 1727257362 [09:56:53]current date 1727258213 [09:56:53]FM_GetShiftState [09:56:53]SAM_PROTO_GetShiftState [09:56:53]wFMCommunicate request_size=4 [09:56:53]MH_SAM_APDU [09:56:53]CAPDU: 80 13 01 00 [09:56:53]Write to MH i2c: E2 08 00 D6 00 80 13 01 00 00 00 00 00 53 [09:56:53]Write i2c OK [09:56:53]MH_I2C_Read... [09:56:53]OFD Sender: No OFD packet to send [09:56:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:56:53]Read from MH i2c: E2 [09:56:53]MH_I2C_Read... [09:56:53]Read from MH i2c: E2 0E 00 [09:56:53]MH_I2C_Read... [09:56:53]Read from MH i2c: E2 0E 00 D6 00 00 09 00 01 63 60 F3 66 00 00 00 00 90 00 7B [09:56:53]RAPDU: 09 00 01 63 60 F3 66 00 00 00 00 90 00 [09:56:53]wFMCommunicate OK [09:56:53]SAM_PROTO_GetShiftState done [09:56:53]FM_GetShiftState done [09:56:53]opened in 1727225955 [09:56:53]opened+sec_in_day 1727312355 [09:56:53]quantity*price = 11000 [09:56:53]sum+1 = 11001 [09:56:53]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 110.00 НСП 1% : 0.97 НДС 12% : 11.68 Наличными: 110.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 46 25.09.2024 09:56 Смена: 474 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 116190 ФПД: 42513976051353 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240925T095653&type=1&operation_type=1&fn_number=0000000000871830&fd_number=116190&fm=42513976051353&tin=02508201610067®Number=0000000000091831&sum=11000 0 [09:56:54]StoreToDocumentArchive [09:56:54]shift 474 fd 116190 [09:56:54]save to /storage/0474/doc_00116190 [09:56:54]save last doc name /storage/0474/doc_00116190 to /storage/kkm_last_doc_name [09:56:54]save OK [09:56:54]Clear old archive folders... [09:56:54]ProcessDocumentItem done err = 0, tmpTLVsize=266 [09:56:54]tlvbuf is 018BDF60 [09:56:54]SAM_PROTO_ClearQueue [09:56:54]wFMCommunicate request_size=4 [09:56:54]MH_SAM_APDU [09:56:54]CAPDU: 80 09 00 00 [09:56:54]Write to MH i2c: E2 08 00 E3 00 80 09 00 00 00 00 00 00 55 [09:56:54]Write i2c OK [09:56:54]MH_I2C_Read... [09:56:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:56:54]Read from MH i2c: E2 [09:56:54]MH_I2C_Read... [09:56:54]Read from MH i2c: E2 03 00 [09:56:54]MH_I2C_Read... [09:56:54]Read from MH i2c: E2 03 00 E3 00 00 90 00 57 [09:56:54]RAPDU: 90 00 [09:56:54]wFMCommunicate OK [09:56:54]SAM_PROTO_ClearQueue done [09:56:54]KKMCreateOFDPacket [09:56:54]OFDProtocolAddRootSTLVToBuf [09:56:54]FM_MakeSignedData [09:56:54]FM_MakeSignedData [09:56:54]SAM_PROTO_SignData [09:56:54]wFMCommunicate request_size=4 [09:56:54]MH_SAM_APDU [09:56:54]CAPDU: 80 0D 01 02 [09:56:54]Write to MH i2c: E2 08 00 E4 00 80 0D 01 02 00 00 00 00 5D [09:56:54]Write i2c OK [09:56:54]MH_I2C_Read... [09:56:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:56:54]Read from MH i2c: E2 [09:56:54]MH_I2C_Read... [09:56:54]Read from MH i2c: E2 03 00 [09:56:54]MH_I2C_Read... [09:56:54]Read from MH i2c: E2 03 00 E4 00 00 90 00 58 [09:56:54]RAPDU: 90 00 [09:56:54]wFMCommunicate OK [09:56:54]wFMCommunicate request_size=255 [09:56:54]MH_SAM_APDU [09:56:54]CAPDU: 80 0D 02 02 FA 03 00 0A 01 1E 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 2A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 61 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 90 04 00 00 00 00 07 04 06 00 F8 2A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 00 00 00 F4 03 04 00 65 DE F3 66 0E 04 04 00 DA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 [09:56:54]Write to MH i2c: E2 02 01 E5 00 80 0D 02 02 FA 00 03 00 0A 01 1E 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 2A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 61 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 90 04 00 00 00 00 07 04 06 00 F8 2A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 00 00 00 F4 03 04 00 65 DE F3 66 0E 04 04 00 DA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 00 00 76 [09:56:54]Write i2c OK [09:56:54]MH_I2C_Read... [09:56:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:56:54]Read from MH i2c: E2 [09:56:54]MH_I2C_Read... [09:56:54]Read from MH i2c: E2 03 00 [09:56:54]MH_I2C_Read... [09:56:54]Read from MH i2c: E2 03 00 E5 00 00 90 00 59 [09:56:54]RAPDU: 90 00 [09:56:54]wFMCommunicate OK [09:56:54]wFMCommunicate request_size=25 [09:56:54]MH_SAM_APDU [09:56:54]CAPDU: 80 0D 02 02 14 33 30 10 04 04 00 DE C5 01 00 35 04 06 00 26 AA 8E 70 C6 99 [09:56:54]Write to MH i2c: E2 1C 00 E6 00 80 0D 02 02 14 00 33 30 10 04 04 00 DE C5 01 00 35 04 06 00 26 AA 8E 70 C6 99 00 00 13 [09:56:54]Write i2c OK [09:56:54]MH_I2C_Read... [09:56:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:56:54]Read from MH i2c: E2 [09:56:54]MH_I2C_Read... [09:56:54]Read from MH i2c: E2 03 00 [09:56:54]MH_I2C_Read... [09:56:54]Read from MH i2c: E2 03 00 E6 00 00 90 00 5A [09:56:54]RAPDU: 90 00 [09:56:54]wFMCommunicate OK [09:56:54]wFMCommunicate request_size=4 [09:56:54]MH_SAM_APDU [09:56:54]CAPDU: 80 0D 03 02 [09:56:54]Write to MH i2c: E2 08 00 E7 00 80 0D 03 02 00 00 00 00 62 [09:56:54]Write i2c OK [09:56:54]MH_I2C_Read... [09:56:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:56:54]Read from MH i2c: E2 [09:56:54]MH_I2C_Read... [09:56:54]Read from MH i2c: E2 0B 00 [09:56:54]MH_I2C_Read... [09:56:54]Read from MH i2c: E2 0B 00 E7 00 00 1A 27 49 7E 3E 16 83 41 90 00 83 [09:56:54]RAPDU: 1A 27 49 7E 3E 16 83 41 90 00 [09:56:54]wFMCommunicate OK [09:56:54]SAM_PROTO_SignData done [09:56:54]FM_MakeSignedData done [09:56:54]CreateOFDProtocolMessage [09:56:54]wFMCommunicate request_size=4 [09:56:54]MH_SAM_APDU [09:56:54]CAPDU: 80 11 00 00 [09:56:54]Write to MH i2c: E2 08 00 E8 00 80 11 00 00 00 00 00 00 62 [09:56:54]Write i2c OK [09:56:54]MH_I2C_Read... [09:56:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:56:54]Read from MH i2c: E2 [09:56:54]MH_I2C_Read... [09:56:54]Read from MH i2c: E2 17 00 [09:56:54]MH_I2C_Read... [09:56:54]Read from MH i2c: E2 17 00 E8 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 B0 [09:56:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [09:56:54]wFMCommunicate OK [09:56:54]CreateOFDProtocolMessage done [09:56:54]OFDSenderStorePacket 116190 [09:56:54]StoreOFDPacket docnum=116190 [09:56:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 1E 01 00 00 25 B5 16 01 C1 76 5A 03 01 00 03 00 0A 01 1E 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 2A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 61 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 90 04 00 00 00 00 07 04 06 00 F8 2A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 00 00 00 F4 03 04 00 65 DE F3 66 0E 04 04 00 DA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 DE C5 01 00 35 04 06 00 26 AA 8E 70 C6 99 1A 27 49 7E 3E 16 83 41 [09:56:54]CheckFolder [09:56:54]dirname=/storage/ofd_packets [09:56:54]CheckFolder done [09:56:54]ProducePacketName [09:56:54]name=ofd_packets/00116190 [09:56:54]NVStorageSaveData ofd_packets/00116190 [09:56:54]File name is /storage/ofd_packets/00116190 [09:56:54]Write 316 bytes [09:56:54]NVStorageSaveData done [09:56:54]OFDSenderStorePacket done [09:56:54]KKMCreateOFDPacket done [09:56:54]NVStorageSaveData kkm_last_timestamp [09:56:54]File name is /storage/kkm_last_timestamp [09:56:54]Write 4 bytes [09:56:54]NVStorageSaveData done [09:56:54]ExternCall_PrintAddStr [09:56:54]wPrintStart [09:56:54]Write to MH i2c: 01 00 00 E9 00 E9 [09:56:54]Write i2c OK [09:56:54]MH_I2C_Read... [09:56:54]Read from MH i2c: 01 [09:56:54]MH_I2C_Read... [09:56:54]Read from MH i2c: 01 07 00 [09:56:54]MH_I2C_Read... [09:56:54]Read from MH i2c: 01 07 00 E9 00 00 00 00 00 00 FF 0F FE [09:56:54]RasterBufferAndPrint [09:56:54]line Счет N : (3)344367 [09:56:54]line ИНН: 02508201610067 [09:56:54]line Контрольно-Кассовый Чек [09:56:54]line ПРОДАЖА [09:56:54]line Товар: 4870001570071 [09:56:54]line Напиток Pepsi 1л [09:56:54]line 1.000 * 110.00 [09:56:54]line = 110.00 [09:56:54]line НДС 12% НСП 1% [09:56:54]line > о реализуемом товаре [09:56:54]line ИТОГО: 110.00 [09:56:54]line НСП 1% : 0.97 [09:56:54]line НДС 12% : 11.68 [09:56:54]line Наличными: 110.00 [09:56:54]line Безнал.: 0.00 [09:56:54]line Место: АЗС № 90 "Партнер Нефть" [09:56:54]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [09:56:54]line СНО: Общий режим [09:56:54]line Чек 46 25.09.2024 09:56 [09:56:54]line Смена: 474 ФФД: 1.0 [09:56:54]line ЗНМ: 0300000120 [09:56:54]line РНМ: 0000000000091831 [09:56:54]line Версия ККМ: 001 [09:56:54]line ФМ: 0000000000871830 [09:56:54]line ФД: 116190 [09:56:54]line ФПД: 42513976051353 [09:56:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240925T095653&type=1&operation_type=1&fn_number=0000000000871830&fd_number=116190&fm=42513976051353&tin=02508201610067®Number=0000000000091831&sum=11000 [09:56:54]line 0 [09:56:54]written 0, free lines is 4095 [09:56:54]OFD Sender: Processing packet 116190 [packets to send 482, broken 481] [09:56:54]ProducePacketName [09:56:54]name=ofd_packets/00116190 [09:56:54]OFD Sender: To server: pG, [09:56:54]CommunicateWithHost lk.salyk.kg:30040 [09:56:54]ConnectInit lk.salyk.kg [09:56:55]Write to MH i2c: 01 00 00 10 01 11 [09:56:55]Write i2c OK [09:56:55]MH_I2C_Read... [09:56:55]Read from MH i2c: 01 [09:56:55]MH_I2C_Read... [09:56:55]Read from MH i2c: 01 07 00 [09:56:55]MH_I2C_Read... [09:56:55]Read from MH i2c: 01 07 00 10 01 00 00 00 00 00 7C 0C A0 [09:56:55]RasterBufferAndPrint [09:56:55]line [09:56:55]line [09:56:55]line [09:56:55]line [09:56:55]line [09:56:55]written 0, free lines is 3199 [09:56:55]MH_Cut [09:56:55]Write to MH i2c: D1 01 00 17 01 01 EA [09:56:55]Write i2c OK [09:56:55]MH_I2C_Read... [09:56:55]Read from MH i2c: D1 [09:56:55]MH_I2C_Read... [09:56:55]Read from MH i2c: D1 01 00 [09:56:55]MH_I2C_Read... [09:56:55]Read from MH i2c: D1 01 00 17 01 00 E9 [09:56:55]Write to MH i2c: 01 00 00 18 01 19 [09:56:55]Write i2c OK [09:56:55]MH_I2C_Read... [09:56:55]Connected sock=11 [09:56:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 1E 01 00 00 25 B5 16 01 C1 76 5A 03 01 00 03 00 0A 01 1E 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 2A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 61 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 90 04 00 00 00 00 07 04 06 00 F8 2A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 00 00 00 F4 03 04 00 65 DE F3 66 0E 04 04 00 DA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 DE C5 01 00 35 04 06 00 26 AA 8E 70 C6 99 1A 27 49 7E 3E 16 83 41 [09:56:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 B0 D6 47 00 B0 22 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 DE C5 01 00 F4 03 04 00 A2 83 F3 66 B6 04 01 00 00 C3 E2 F6 C4 E3 34 E4 5B [09:56:55]CommunicateWithHost err = 0 [09:56:55]CheckOFDResponse [09:56:55]1017 (14) - 77093643461234 [09:56:55]1041 (16) - 0000000000871830 [09:56:55]1040 (4) - 116190 [09:56:55]1012 (4) - 25.09.2024 03:29 [09:56:55]1206 (1) - 0 [09:56:55]OFD Sender: Remove packet 116190 [09:56:55]ProducePacketName [09:56:55]name=ofd_packets/00116190 [09:56:55]NVStorageDeleteData [09:56:56]OFD Sender: No OFD packet to send [09:56:56]*** Cut start [09:56:56]*** Partial cut [09:56:56]*** CUTSNS_PIN = 1 [09:56:56]*** CUTSNS_PIN = 0 [09:56:56]*** Brake cut motor [09:56:57]Read from MH i2c: 01 [09:56:57]MH_I2C_Read... [09:56:57]*** Stop cut motor [09:56:57]*** Cut end [09:56:57]Read from MH i2c: 01 07 00 [09:56:57]MH_I2C_Read... [09:56:57]Read from MH i2c: 01 07 00 18 01 00 00 00 00 00 FF 0F 2E [09:56:57]process_action close_receipt done [09:56:57]requested_data is exist [09:56:57]produce_requested_data [09:56:57]requested_item fm.sn is exist - process it [09:56:57]wFMCommunicate request_size=4 [09:56:57]MH_SAM_APDU [09:56:57]CAPDU: 80 11 00 00 [09:56:57]Write to MH i2c: E2 08 00 19 01 80 11 00 00 00 00 00 00 94 [09:56:57]Write i2c OK [09:56:57]MH_I2C_Read... [09:56:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:56:57]Read from MH i2c: E2 [09:56:57]MH_I2C_Read... [09:56:57]Read from MH i2c: E2 17 00 [09:56:57]MH_I2C_Read... [09:56:57]Read from MH i2c: E2 17 00 19 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 E2 [09:56:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [09:56:57]wFMCommunicate OK [09:56:57]requested_item fd.num is exist - process it [09:56:57]SAM_PROTO_GetFieldsCounters [09:56:57]wFMCommunicate request_size=4 [09:56:57]MH_SAM_APDU [09:56:57]CAPDU: 80 13 00 00 [09:56:57]Write to MH i2c: E2 08 00 1A 01 80 13 00 00 00 00 00 00 97 [09:56:57]Write i2c OK [09:56:57]MH_I2C_Read... [09:56:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:56:57]Read from MH i2c: E2 [09:56:57]MH_I2C_Read... [09:56:57]Read from MH i2c: E2 62 00 [09:56:57]MH_I2C_Read... [09:56:57]Read from MH i2c: E2 62 00 1A 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 DE C5 01 00 0E 04 04 00 DA 01 00 00 12 04 04 00 2E 00 00 00 5E 04 04 00 2E 00 00 00 57 04 04 00 2F 00 00 00 19 04 04 00 00 00 00 00 90 00 B9 [09:56:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 DE C5 01 00 0E 04 04 00 DA 01 00 00 12 04 04 00 2E 00 00 00 5E 04 04 00 2E 00 00 00 57 04 04 00 2F 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:56:57]wFMCommunicate OK [09:56:57]SAM_PROTO_GetFieldsCounters done [09:56:57]requested_item shift.num is exist - process it [09:56:57]requested_item shift.opened is exist - process it [09:56:57]req_shift_opened [09:56:57]FM_GetShiftState [09:56:57]SAM_PROTO_GetShiftState [09:56:57]wFMCommunicate request_size=4 [09:56:57]MH_SAM_APDU [09:56:57]CAPDU: 80 13 01 00 [09:56:57]Write to MH i2c: E2 08 00 1B 01 80 13 01 00 00 00 00 00 99 [09:56:57]Write i2c OK [09:56:57]MH_I2C_Read... [09:56:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:56:57]Read from MH i2c: E2 [09:56:57]MH_I2C_Read... [09:56:57]Read from MH i2c: E2 0E 00 [09:56:57]MH_I2C_Read... [09:56:57]Read from MH i2c: E2 0E 00 1B 01 00 09 00 01 63 60 F3 66 00 00 00 00 90 00 C1 [09:56:57]RAPDU: 09 00 01 63 60 F3 66 00 00 00 00 90 00 [09:56:57]wFMCommunicate OK [09:56:57]SAM_PROTO_GetShiftState done [09:56:57]FM_GetShiftState done [09:56:57]req_shift_opened done [09:56:57]requested_item shift.open_date is exist - process it [09:56:57]req_shift_open_date [09:56:57]req_shift_open_date done [09:56:57]produce_requested_data done [09:56:57]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":116190,"shift.num":474,"shift.opened":1,"shift.open_date":1727225955} [09:56:57]process_action_free close_receipt [09:56:57]json_value_free [09:56:57]json_value_free done [09:56:57]process_json_proto returns [09:56:57]Send response to host [09:56:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":116190,"shift.num":474,"shift.opened":1,"shift.open_date":1727225955}}} [09:56:57]free response buf [09:56:57]execute_script done [09:56:57]execute_script returns [09:56:57]free content buf [09:56:57]Sock 10.Close socket [09:56:57]Sock 10.Thread stoped [09:57:01]OFD Sender: No OFD packet to send [09:57:06]OFD Sender: No OFD packet to send [09:57:11]OFD Sender: No OFD packet to send [09:57:16]OFD Sender: No OFD packet to send [09:57:21]OFD Sender: No OFD packet to send [09:57:26]OFD Sender: No OFD packet to send [09:57:31]OFD Sender: No OFD packet to send [09:57:36]OFD Sender: No OFD packet to send [09:57:41]OFD Sender: No OFD packet to send [09:57:46]OFD Sender: No OFD packet to send [09:57:51]OFD Sender: No OFD packet to send [09:57:56]OFD Sender: No OFD packet to send [09:58:01]OFD Sender: No OFD packet to send [09:58:06]OFD Sender: No OFD packet to send [09:58:11]OFD Sender: No OFD packet to send [09:58:16]OFD Sender: No OFD packet to send [09:58:21]OFD Sender: No OFD packet to send [09:58:26]OFD Sender: No OFD packet to send [09:58:31]OFD Sender: No OFD packet to send [09:58:36]OFD Sender: No OFD packet to send [09:58:41]OFD Sender: No OFD packet to send [09:58:46]OFD Sender: No OFD packet to send [09:58:51]OFD Sender: No OFD packet to send [09:58:56]OFD Sender: No OFD packet to send [09:59:01]OFD Sender: No OFD packet to send [09:59:06]OFD Sender: No OFD packet to send [09:59:11]OFD Sender: No OFD packet to send [09:59:16]OFD Sender: No OFD packet to send [09:59:21]OFD Sender: No OFD packet to send [09:59:26]OFD Sender: No OFD packet to send [09:59:31]OFD Sender: No OFD packet to send [09:59:36]OFD Sender: No OFD packet to send [09:59:41]OFD Sender: No OFD packet to send [09:59:46]accept exits with 7 [09:59:46]New connection [09:59:46]New thread 3066998116 created [09:59:46]Thread 3067141476 joined [09:59:46]Waiting for new connection... [09:59:46] Sock 7.Parse request [09:59:46]Sock 7.Check first char [09:59:46]Sock 7.First char is OK [09:59:46]request: POST /json_proto HTTP/1.0 [09:59:46]Method: POST [09:59:46]URL: /json_proto [09:59:46]Method is POST - this is cgi request [09:59:46]url: /json_proto [09:59:46]query_string will be loaded in cgi processing [09:59:46]execute_cgi json_proto POST (null) [09:59:46]execute_cgi path=json_proto method=POST [09:59:46]POST find Content-Length [09:59:46]Host: 172.17.41.136:8080 [09:59:46]Content-Length: 1160 [09:59:46]Content-Type: application/json [09:59:46] [09:59:46]POST finish read [09:59:46]Found Content-Length = 1160 [09:59:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)344368", "tax_sys" : 0, "items" : [ { "code": "5449000027474", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A FuzeTea \u0437\u0435\u043B \u0447\u0430\u0439 \u043C\u0430\u043D\u0433\u043E,\u0440\u043E\u043C\u0430\u0448\u043A\u0430 1\u043B", "price" : 105.00, "quantity" : 1.000, "sum" : 105.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4860019001414", "name": "\u0412\u043E\u0434\u0430 \u0411\u043E\u0440\u0436\u043E\u043C\u0438 0,75\u043B \u041F\u042D\u0422", "price" : 165.00, "quantity" : 1.000, "sum" : 165.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 270.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:59:46]execute_script... [09:59:46]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)344368", "tax_sys" : 0, "items" : [ { "code": "5449000027474", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A FuzeTea \u0437\u0435\u043B \u0447\u0430\u0439 \u043C\u0430\u043D\u0433\u043E,\u0440\u043E\u043C\u0430\u0448\u043A\u0430 1\u043B", "price" : 105.00, "quantity" : 1.000, "sum" : 105.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4860019001414", "name": "\u0412\u043E\u0434\u0430 \u0411\u043E\u0440\u0436\u043E\u043C\u0438 0,75\u043B \u041F\u042D\u0422", "price" : 165.00, "quantity" : 1.000, "sum" : 165.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 270.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:59:46]POST & json_proto [09:59:46]process_json_proto [09:59:46]json parsed OK: [09:59:46]protocol is kg_v1.0 [09:59:46]action value=close_receipt [09:59:46]process_action close_receipt [09:59:46]cmd_close_receipt [09:59:46]MH_GetDate [09:59:46]Write to MH i2c: F0 00 00 1C 01 0C [09:59:46]Write i2c OK [09:59:46]MH_I2C_Read... [09:59:46]Read from MH i2c: F0 [09:59:46]MH_I2C_Read... [09:59:46]Read from MH i2c: F0 09 00 [09:59:46]MH_I2C_Read... [09:59:46]Read from MH i2c: F0 09 00 1C 01 00 12 DF F3 66 1B D0 5A 64 08 [09:59:46]GetLastDocTimeStamp 1727258213 [09:59:46]current date 1727258386 [09:59:46]FM_GetShiftState [09:59:46]SAM_PROTO_GetShiftState [09:59:46]wFMCommunicate request_size=4 [09:59:46]MH_SAM_APDU [09:59:46]CAPDU: 80 13 01 00 [09:59:46]Write to MH i2c: E2 08 00 1D 01 80 13 01 00 00 00 00 00 9B [09:59:46]Write i2c OK [09:59:46]MH_I2C_Read... [09:59:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:59:46]Read from MH i2c: E2 [09:59:46]MH_I2C_Read... [09:59:46]Read from MH i2c: E2 0E 00 [09:59:46]MH_I2C_Read... [09:59:46]Read from MH i2c: E2 0E 00 1D 01 00 09 00 01 63 60 F3 66 00 00 00 00 90 00 C3 [09:59:46]RAPDU: 09 00 01 63 60 F3 66 00 00 00 00 90 00 [09:59:46]wFMCommunicate OK [09:59:46]SAM_PROTO_GetShiftState done [09:59:46]FM_GetShiftState done [09:59:46]opened in 1727225955 [09:59:46]opened+sec_in_day 1727312355 [09:59:46]quantity*price = 10500 [09:59:46]sum+1 = 10501 [09:59:46]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4860019001414 Вода Боржоми 0,75л ПЭТ 1.000 * 165.00 = 165.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 270.00 НСП 1% : 2.39 НДС 12% : 28.67 Наличными: 0.00 Безнал.: 270.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 47 25.09.2024 09:59 Смена: 474 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871830 ФД: 116191 ФПД: 279185764754636 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240925T095947&type=1&operation_type=1&fn_number=0000000000871830&fd_number=116191&fm=279185764754636&tin=02508201610067®Number=0000000000091831&sum=27000 0 [09:59:47]StoreToDocumentArchive [09:59:47]shift 474 fd 116191 [09:59:47]save to /storage/0474/doc_00116191 [09:59:47]save last doc name /storage/0474/doc_00116191 to /storage/kkm_last_doc_name [09:59:47]save OK [09:59:47]Clear old archive folders... [09:59:47]ProcessDocumentItem done err = 0, tmpTLVsize=417 [09:59:47]tlvbuf is 018BDBE0 [09:59:47]SAM_PROTO_ClearQueue [09:59:47]wFMCommunicate request_size=4 [09:59:47]MH_SAM_APDU [09:59:47]CAPDU: 80 09 00 00 [09:59:47]Write to MH i2c: E2 08 00 2A 01 80 09 00 00 00 00 00 00 9D [09:59:47]Write i2c OK [09:59:47]MH_I2C_Read... [09:59:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:59:47]Read from MH i2c: E2 [09:59:47]MH_I2C_Read... [09:59:47]Read from MH i2c: E2 03 00 [09:59:47]MH_I2C_Read... [09:59:47]Read from MH i2c: E2 03 00 2A 01 00 90 00 9F [09:59:47]RAPDU: 90 00 [09:59:47]wFMCommunicate OK [09:59:47]SAM_PROTO_ClearQueue done [09:59:47]KKMCreateOFDPacket [09:59:47]OFDProtocolAddRootSTLVToBuf [09:59:47]FM_MakeSignedData [09:59:47]FM_MakeSignedData [09:59:47]SAM_PROTO_SignData [09:59:47]wFMCommunicate request_size=4 [09:59:47]MH_SAM_APDU [09:59:47]CAPDU: 80 0D 01 02 [09:59:47]Write to MH i2c: E2 08 00 2B 01 80 0D 01 02 00 00 00 00 A5 [09:59:47]Write i2c OK [09:59:47]MH_I2C_Read... [09:59:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:59:47]Read from MH i2c: E2 [09:59:47]MH_I2C_Read... [09:59:47]Read from MH i2c: E2 03 00 [09:59:47]MH_I2C_Read... [09:59:47]Read from MH i2c: E2 03 00 2B 01 00 90 00 A0 [09:59:47]RAPDU: 90 00 [09:59:47]wFMCommunicate OK [09:59:47]wFMCommunicate request_size=255 [09:59:47]MH_SAM_APDU [09:59:47]CAPDU: 80 0D 02 02 FA 03 00 A1 01 1E 04 01 00 01 23 04 86 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 37 34 37 34 06 04 42 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 20 D0 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC D0 B0 D1 88 D0 BA D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 69 00 8A 04 0D 00 34 38 36 30 30 31 39 30 30 31 34 31 34 06 04 25 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D1 80 D0 B6 D0 BE D0 BC D0 B8 20 30 2C 37 35 D0 BB 20 D0 9F D0 AD D0 A2 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 74 40 00 00 00 00 13 04 06 00 74 40 00 00 00 00 F2 03 01 00 01 F6 03 01 00 [09:59:47]Write to MH i2c: E2 02 01 2C 01 80 0D 02 02 FA 00 03 00 A1 01 1E 04 01 00 01 23 04 86 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 37 34 37 34 06 04 42 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 20 D0 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC D0 B0 D1 88 D0 BA D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 69 00 8A 04 0D 00 34 38 36 30 30 31 39 30 30 31 34 31 34 06 04 25 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D1 80 D0 B6 D0 BE D0 BC D0 B8 20 30 2C 37 35 D0 BB 20 D0 9F D0 AD D0 A2 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 74 40 00 00 00 00 13 04 06 00 74 40 00 00 00 00 F2 03 01 00 01 F6 03 01 00 00 00 A2 [09:59:47]Write i2c OK [09:59:47]MH_I2C_Read... [09:59:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:59:47]Read from MH i2c: E2 [09:59:47]MH_I2C_Read... [09:59:47]Read from MH i2c: E2 03 00 [09:59:47]MH_I2C_Read... [09:59:47]Read from MH i2c: E2 03 00 2C 01 00 90 00 A1 [09:59:47]RAPDU: 90 00 [09:59:47]wFMCommunicate OK [09:59:47]wFMCommunicate request_size=176 [09:59:47]MH_SAM_APDU [09:59:47]CAPDU: 80 0D 02 02 AB 01 BC 04 01 00 01 FC 03 06 00 78 69 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 33 0B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 78 69 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 13 DF F3 66 0E 04 04 00 DA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 DF C5 01 00 35 04 06 00 FD EB 00 55 A4 CC [09:59:47]Write to MH i2c: E2 B3 00 2D 01 80 0D 02 02 AB 00 01 BC 04 01 00 01 FC 03 06 00 78 69 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 33 0B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 78 69 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 13 DF F3 66 0E 04 04 00 DA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 DF C5 01 00 35 04 06 00 FD EB 00 55 A4 CC 00 00 91 [09:59:47]Write i2c OK [09:59:47]MH_I2C_Read... [09:59:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:59:47]Read from MH i2c: E2 [09:59:47]MH_I2C_Read... [09:59:47]Read from MH i2c: E2 03 00 [09:59:47]MH_I2C_Read... [09:59:47]Read from MH i2c: E2 03 00 2D 01 00 90 00 A2 [09:59:47]RAPDU: 90 00 [09:59:47]wFMCommunicate OK [09:59:47]wFMCommunicate request_size=4 [09:59:47]MH_SAM_APDU [09:59:47]CAPDU: 80 0D 03 02 [09:59:47]Write to MH i2c: E2 08 00 2E 01 80 0D 03 02 00 00 00 00 AA [09:59:47]Write i2c OK [09:59:47]MH_I2C_Read... [09:59:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:59:47]Read from MH i2c: E2 [09:59:47]MH_I2C_Read... [09:59:47]Read from MH i2c: E2 0B 00 [09:59:47]MH_I2C_Read... [09:59:47]Read from MH i2c: E2 0B 00 2E 01 00 B5 4E A6 18 B7 8E 21 1B 90 00 ED [09:59:47]RAPDU: B5 4E A6 18 B7 8E 21 1B 90 00 [09:59:47]wFMCommunicate OK [09:59:47]SAM_PROTO_SignData done [09:59:47]FM_MakeSignedData done [09:59:47]CreateOFDProtocolMessage [09:59:47]wFMCommunicate request_size=4 [09:59:47]MH_SAM_APDU [09:59:47]CAPDU: 80 11 00 00 [09:59:47]Write to MH i2c: E2 08 00 2F 01 80 11 00 00 00 00 00 00 AA [09:59:47]Write i2c OK [09:59:47]MH_I2C_Read... [09:59:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:59:48]Read from MH i2c: E2 [09:59:48]MH_I2C_Read... [09:59:48]Read from MH i2c: E2 17 00 [09:59:48]MH_I2C_Read... [09:59:48]Read from MH i2c: E2 17 00 2F 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 F8 [09:59:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [09:59:48]wFMCommunicate OK [09:59:48]CreateOFDProtocolMessage done [09:59:48]OFDSenderStorePacket 116191 [09:59:48]StoreOFDPacket docnum=116191 [09:59:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 B5 01 00 00 DF E1 AD 01 DC 64 5A 03 01 00 03 00 A1 01 1E 04 01 00 01 23 04 86 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 37 34 37 34 06 04 42 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 20 D0 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC D0 B0 D1 88 D0 BA D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 69 00 8A 04 0D 00 34 38 36 30 30 31 39 30 30 31 34 31 34 06 04 25 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D1 80 D0 B6 D0 BE D0 BC D0 B8 20 30 2C 37 35 D0 BB 20 D0 9F D0 AD D0 A2 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 74 40 00 00 00 00 13 04 06 00 74 40 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 69 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 33 0B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 78 69 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 13 DF F3 66 0E 04 04 00 DA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 DF C5 01 00 35 04 06 00 FD EB 00 55 A4 CC B5 4E A6 18 B7 8E 21 1B [09:59:48]CheckFolder [09:59:48]dirname=/storage/ofd_packets [09:59:48]CheckFolder done [09:59:48]ProducePacketName [09:59:48]name=ofd_packets/00116191 [09:59:48]NVStorageSaveData ofd_packets/00116191 [09:59:48]File name is /storage/ofd_packets/00116191 [09:59:48]Write 467 bytes [09:59:48]NVStorageSaveData done [09:59:48]OFDSenderStorePacket done [09:59:48]KKMCreateOFDPacket done [09:59:48]NVStorageSaveData kkm_last_timestamp [09:59:48]File name is /storage/kkm_last_timestamp [09:59:48]Write 4 bytes [09:59:48]NVStorageSaveData done [09:59:48]ExternCall_PrintAddStr [09:59:48]wPrintStart [09:59:48]Write to MH i2c: 01 00 00 30 01 31 [09:59:48]Write i2c OK [09:59:48]MH_I2C_Read... [09:59:48]Read from MH i2c: 01 [09:59:48]MH_I2C_Read... [09:59:48]Read from MH i2c: 01 07 00 [09:59:48]MH_I2C_Read... [09:59:48]Read from MH i2c: 01 07 00 30 01 00 00 00 00 00 FF 0F 46 [09:59:48]RasterBufferAndPrint [09:59:48]line Счет N : (3)344368 [09:59:48]line ИНН: 02508201610067 [09:59:48]line Контрольно-Кассовый Чек [09:59:48]line ПРОДАЖА [09:59:48]line Товар: 5449000027474 [09:59:48]line Напиток FuzeTea зел чай манго,ромашка 1л [09:59:48]line 1.000 * 105.00 [09:59:48]line = 105.00 [09:59:48]line НДС 12% НСП 1% [09:59:48]line > о реализуемом товаре [09:59:48]line Товар: 4860019001414 [09:59:48]line Вода Боржоми 0,75л ПЭТ [09:59:48]line 1.000 * 165.00 [09:59:48]line = 165.00 [09:59:48]line НДС 12% НСП 1% [09:59:48]line > о реализуемом товаре [09:59:48]line ИТОГО: 270.00 [09:59:48]line НСП 1% : 2.39 [09:59:48]line НДС 12% : 28.67 [09:59:48]line Наличными: 0.00 [09:59:48]line Безнал.: 270.00 [09:59:48]line Место: АЗС № 90 "Партнер Нефть" [09:59:48]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [09:59:48]line СНО: Общий режим [09:59:48]line Чек 47 25.09.2024 09:59 [09:59:48]line Смена: 474 ФФД: 1.0 [09:59:48]line ЗНМ: 0300000120 [09:59:48]line РНМ: 0000000000091831 [09:59:48]line Версия ККМ: 001 [09:59:48]line Платежная система: O! деньги [09:59:48]line ФМ: 0000000000871830 [09:59:48]line ФД: 116191 [09:59:48]line ФПД: 279185764754636 [09:59:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240925T095947&type=1&operation_type=1&fn_number=0000000000871830&fd_number=116191&fm=279185764754636&tin=02508201610067®Number=0000000000091831&sum=27000 [09:59:48]line 0 [09:59:48]written 0, free lines is 4095 [09:59:48]OFD Sender: Processing packet 116191 [packets to send 482, broken 481] [09:59:48]ProducePacketName [09:59:48]name=ofd_packets/00116191 [09:59:48]OFD Sender: To server: pG, [09:59:48]CommunicateWithHost lk.salyk.kg:30040 [09:59:48]ConnectInit lk.salyk.kg [09:59:48]Write to MH i2c: 01 00 00 60 01 61 [09:59:48]Write i2c OK [09:59:48]MH_I2C_Read... [09:59:48]Read from MH i2c: 01 [09:59:48]MH_I2C_Read... [09:59:48]Read from MH i2c: 01 07 00 [09:59:48]MH_I2C_Read... [09:59:48]Read from MH i2c: 01 07 00 60 01 00 00 00 00 00 C1 0B 34 [09:59:48]RasterBufferAndPrint [09:59:48]line [09:59:48]line [09:59:48]line [09:59:48]line [09:59:48]line [09:59:48]written 0, free lines is 3012 [09:59:48]MH_Cut [09:59:48]Write to MH i2c: D1 01 00 67 01 01 3A [09:59:48]Write i2c OK [09:59:48]MH_I2C_Read... [09:59:48]Read from MH i2c: D1 [09:59:48]MH_I2C_Read... [09:59:48]Read from MH i2c: D1 01 00 [09:59:48]MH_I2C_Read... [09:59:48]Read from MH i2c: D1 01 00 67 01 00 39 [09:59:48]Write to MH i2c: 01 00 00 68 01 69 [09:59:48]Write i2c OK [09:59:48]MH_I2C_Read... [09:59:48]Connected sock=11 [09:59:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 B5 01 00 00 DF E1 AD 01 DC 64 5A 03 01 00 03 00 A1 01 1E 04 01 00 01 23 04 86 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 37 34 37 34 06 04 42 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 20 D0 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC D0 B0 D1 88 D0 BA D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 69 00 8A 04 0D 00 34 38 36 30 30 31 39 30 30 31 34 31 34 06 04 25 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D1 80 D0 B6 D0 BE D0 BC D0 B8 20 30 2C 37 35 D0 BB 20 D0 9F D0 AD D0 A2 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 74 40 00 00 00 00 13 04 06 00 74 40 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 69 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 33 0B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 78 69 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 13 DF F3 66 0E 04 04 00 DA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 DF C5 01 00 35 04 06 00 FD EB 00 55 A4 CC B5 4E A6 18 B7 8E 21 1B [09:59:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 E1 9F 47 00 C2 0C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 DF C5 01 00 F4 03 04 00 50 84 F3 66 B6 04 01 00 00 E4 5D 85 0A D5 18 01 B6 [09:59:49]CommunicateWithHost err = 0 [09:59:49]CheckOFDResponse [09:59:49]1017 (14) - 77093643461234 [09:59:49]1041 (16) - 0000000000871830 [09:59:49]1040 (4) - 116191 [09:59:49]1012 (4) - 25.09.2024 03:32 [09:59:49]1206 (1) - 0 [09:59:49]OFD Sender: Remove packet 116191 [09:59:49]ProducePacketName [09:59:49]name=ofd_packets/00116191 [09:59:49]NVStorageDeleteData [09:59:49]OFD Sender: No OFD packet to send [09:59:50]*** Cut start [09:59:50]*** Partial cut [09:59:50]*** CUTSNS_PIN = 1 [09:59:50]*** CUTSNS_PIN = 0 [09:59:50]*** Brake cut motor [09:59:51]Read from MH i2c: 01 [09:59:51]MH_I2C_Read... [09:59:51]*** Stop cut motor [09:59:51]*** Cut end [09:59:51]Read from MH i2c: 01 07 00 [09:59:51]MH_I2C_Read... [09:59:51]Read from MH i2c: 01 07 00 68 01 00 00 00 00 00 FF 0F 7E [09:59:51]process_action close_receipt done [09:59:51]requested_data is exist [09:59:51]produce_requested_data [09:59:51]requested_item fm.sn is exist - process it [09:59:51]wFMCommunicate request_size=4 [09:59:51]MH_SAM_APDU [09:59:51]CAPDU: 80 11 00 00 [09:59:51]Write to MH i2c: E2 08 00 69 01 80 11 00 00 00 00 00 00 E4 [09:59:51]Write i2c OK [09:59:51]MH_I2C_Read... [09:59:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:59:51]Read from MH i2c: E2 [09:59:51]MH_I2C_Read... [09:59:51]Read from MH i2c: E2 17 00 [09:59:51]MH_I2C_Read... [09:59:51]Read from MH i2c: E2 17 00 69 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 32 [09:59:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [09:59:51]wFMCommunicate OK [09:59:51]requested_item fd.num is exist - process it [09:59:51]SAM_PROTO_GetFieldsCounters [09:59:51]wFMCommunicate request_size=4 [09:59:51]MH_SAM_APDU [09:59:51]CAPDU: 80 13 00 00 [09:59:51]Write to MH i2c: E2 08 00 6A 01 80 13 00 00 00 00 00 00 E7 [09:59:51]Write i2c OK [09:59:51]MH_I2C_Read... [09:59:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:59:51]Read from MH i2c: E2 [09:59:51]MH_I2C_Read... [09:59:51]Read from MH i2c: E2 62 00 [09:59:51]MH_I2C_Read... [09:59:51]Read from MH i2c: E2 62 00 6A 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 DF C5 01 00 0E 04 04 00 DA 01 00 00 12 04 04 00 2F 00 00 00 5E 04 04 00 2F 00 00 00 57 04 04 00 30 00 00 00 19 04 04 00 00 00 00 00 90 00 0D [09:59:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 DF C5 01 00 0E 04 04 00 DA 01 00 00 12 04 04 00 2F 00 00 00 5E 04 04 00 2F 00 00 00 57 04 04 00 30 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:59:51]wFMCommunicate OK [09:59:51]SAM_PROTO_GetFieldsCounters done [09:59:51]requested_item shift.num is exist - process it [09:59:51]requested_item shift.opened is exist - process it [09:59:51]req_shift_opened [09:59:51]FM_GetShiftState [09:59:51]SAM_PROTO_GetShiftState [09:59:51]wFMCommunicate request_size=4 [09:59:51]MH_SAM_APDU [09:59:51]CAPDU: 80 13 01 00 [09:59:51]Write to MH i2c: E2 08 00 6B 01 80 13 01 00 00 00 00 00 E9 [09:59:51]Write i2c OK [09:59:51]MH_I2C_Read... [09:59:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:59:51]Read from MH i2c: E2 [09:59:51]MH_I2C_Read... [09:59:51]Read from MH i2c: E2 0E 00 [09:59:51]MH_I2C_Read... [09:59:51]Read from MH i2c: E2 0E 00 6B 01 00 09 00 01 63 60 F3 66 00 00 00 00 90 00 11 [09:59:51]RAPDU: 09 00 01 63 60 F3 66 00 00 00 00 90 00 [09:59:51]wFMCommunicate OK [09:59:51]SAM_PROTO_GetShiftState done [09:59:51]FM_GetShiftState done [09:59:51]req_shift_opened done [09:59:51]requested_item shift.open_date is exist - process it [09:59:51]req_shift_open_date [09:59:51]req_shift_open_date done [09:59:51]produce_requested_data done [09:59:51]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":116191,"shift.num":474,"shift.opened":1,"shift.open_date":1727225955} [09:59:51]process_action_free close_receipt [09:59:51]json_value_free [09:59:51]json_value_free done [09:59:51]process_json_proto returns [09:59:51]Send response to host [09:59:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":116191,"shift.num":474,"shift.opened":1,"shift.open_date":1727225955}}} [09:59:51]free response buf [09:59:51]execute_script done [09:59:51]execute_script returns [09:59:51]free content buf [09:59:51]Sock 7.Close socket [09:59:51]Sock 7.Thread stoped [09:59:54]OFD Sender: No OFD packet to send [09:59:59]OFD Sender: No OFD packet to send [10:00:04]OFD Sender: No OFD packet to send [10:00:09]OFD Sender: No OFD packet to send [10:00:14]OFD Sender: No OFD packet to send [10:00:19]OFD Sender: No OFD packet to send [10:00:24]OFD Sender: No OFD packet to send [10:00:29]OFD Sender: No OFD packet to send [10:00:34]OFD Sender: No OFD packet to send [10:00:39]OFD Sender: No OFD packet to send [10:00:44]OFD Sender: No OFD packet to send [10:00:49]OFD Sender: No OFD packet to send [10:00:54]OFD Sender: No OFD packet to send [10:00:59]OFD Sender: No OFD packet to send [10:01:04]OFD Sender: No OFD packet to send [10:01:09]OFD Sender: No OFD packet to send [10:01:15]OFD Sender: No OFD packet to send [10:01:20]OFD Sender: No OFD packet to send [10:01:25]OFD Sender: No OFD packet to send [10:01:30]OFD Sender: No OFD packet to send [10:01:35]OFD Sender: No OFD packet to send [10:01:40]OFD Sender: No OFD packet to send [10:01:45]OFD Sender: No OFD packet to send [10:01:50]OFD Sender: No OFD packet to send [10:01:55]OFD Sender: No OFD packet to send [10:02:00]OFD Sender: No OFD packet to send [10:02:05]OFD Sender: No OFD packet to send [10:02:10]OFD Sender: No OFD packet to send [10:02:15]OFD Sender: No OFD packet to send [10:02:20]OFD Sender: No OFD packet to send [10:02:25]OFD Sender: No OFD packet to send [10:02:30]OFD Sender: No OFD packet to send [10:02:35]OFD Sender: No OFD packet to send [10:02:40]OFD Sender: No OFD packet to send [10:02:45]OFD Sender: No OFD packet to send [10:02:50]OFD Sender: No OFD packet to send [10:02:55]OFD Sender: No OFD packet to send [10:03:00]OFD Sender: No OFD packet to send [10:03:05]OFD Sender: No OFD packet to send [10:03:10]OFD Sender: No OFD packet to send [10:03:15]OFD Sender: No OFD packet to send [10:03:20]OFD Sender: No OFD packet to send [10:03:25]OFD Sender: No OFD packet to send [10:03:30]OFD Sender: No OFD packet to send [10:03:35]OFD Sender: No OFD packet to send [10:03:40]OFD Sender: No OFD packet to send [10:03:45]OFD Sender: No OFD packet to send [10:03:50]OFD Sender: No OFD packet to send [10:03:55]OFD Sender: No OFD packet to send [10:04:00]OFD Sender: No OFD packet to send [10:04:05]OFD Sender: No OFD packet to send [10:04:10]OFD Sender: No OFD packet to send [10:04:15]OFD Sender: No OFD packet to send [10:04:20]OFD Sender: No OFD packet to send [10:04:25]OFD Sender: No OFD packet to send [10:04:30]OFD Sender: No OFD packet to send [10:04:35]OFD Sender: No OFD packet to send [10:04:40]OFD Sender: No OFD packet to send [10:04:45]OFD Sender: No OFD packet to send [10:04:50]OFD Sender: No OFD packet to send [10:04:55]OFD Sender: No OFD packet to send [10:05:00]OFD Sender: No OFD packet to send [10:05:05]OFD Sender: No OFD packet to send [10:05:10]OFD Sender: No OFD packet to send [10:05:15]OFD Sender: No OFD packet to send [10:05:20]OFD Sender: No OFD packet to send [10:05:25]OFD Sender: No OFD packet to send [10:05:30]OFD Sender: No OFD packet to send [10:05:35]OFD Sender: No OFD packet to send [10:05:40]OFD Sender: No OFD packet to send [10:05:45]OFD Sender: No OFD packet to send [10:05:50]OFD Sender: No OFD packet to send [10:05:55]OFD Sender: No OFD packet to send [10:06:00]OFD Sender: No OFD packet to send [10:06:05]OFD Sender: No OFD packet to send [10:06:10]OFD Sender: No OFD packet to send [10:06:15]OFD Sender: No OFD packet to send [10:06:20]OFD Sender: No OFD packet to send [10:06:25]OFD Sender: No OFD packet to send [10:06:30]OFD Sender: No OFD packet to send [10:06:35]OFD Sender: No OFD packet to send [10:06:40]OFD Sender: No OFD packet to send [10:06:45]OFD Sender: No OFD packet to send [10:06:50]OFD Sender: No OFD packet to send [10:06:55]OFD Sender: No OFD packet to send [10:07:00]OFD Sender: No OFD packet to send [10:07:05]OFD Sender: No OFD packet to send [10:07:10]OFD Sender: No OFD packet to send [10:07:15]OFD Sender: No OFD packet to send [10:07:20]OFD Sender: No OFD packet to send [10:07:25]OFD Sender: No OFD packet to send [10:07:30]OFD Sender: No OFD packet to send [10:07:32]accept exits with 9 [10:07:32]New connection [10:07:32]New thread 3067141476 created [10:07:32]Thread 3066998116 joined [10:07:32]Waiting for new connection... [10:07:32] Sock 9.Parse request [10:07:32]Sock 9.Check first char [10:07:32]Sock 9.First char is OK [10:07:32]request: POST /json_proto HTTP/1.0 [10:07:32]Method: POST [10:07:32]URL: /json_proto [10:07:32]Method is POST - this is cgi request [10:07:32]url: /json_proto [10:07:32]query_string will be loaded in cgi processing [10:07:32]execute_cgi json_proto POST (null) [10:07:32]execute_cgi path=json_proto method=POST [10:07:32]POST find Content-Length [10:07:32]Host: 172.17.41.136:8080 [10:07:32]Content-Length: 908 [10:07:32]Content-Type: application/json [10:07:32] [10:07:32]POST finish read [10:07:32]Found Content-Length = 908 [10:07:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)344369", "tax_sys" : 0, "items" : [ { "code": "2000032800010", "name": "\u0421\u043E\u0447\u043D\u0438\u043A DC \u0442\u0432\u043E\u0440\u043E\u0433 75 \u0433", "price" : 30.00, "quantity" : 2.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000032780025", "name": "\u0421\u043E\u0441\u0438\u0441\u043A\u0430 \u0432 \u0442\u0435\u0441\u0442\u0435 DC 110\u0433", "price" : 60.00, "quantity" : 2.000, "sum" : 120.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 180.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:07:32]execute_script... [10:07:32]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)344369", "tax_sys" : 0, "items" : [ { "code": "2000032800010", "name": "\u0421\u043E\u0447\u043D\u0438\u043A DC \u0442\u0432\u043E\u0440\u043E\u0433 75 \u0433", "price" : 30.00, "quantity" : 2.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000032780025", "name": "\u0421\u043E\u0441\u0438\u0441\u043A\u0430 \u0432 \u0442\u0435\u0441\u0442\u0435 DC 110\u0433", "price" : 60.00, "quantity" : 2.000, "sum" : 120.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 180.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:07:32]POST & json_proto [10:07:32]process_json_proto [10:07:32]json parsed OK: [10:07:32]protocol is kg_v1.0 [10:07:32]action value=close_receipt [10:07:32]process_action close_receipt [10:07:32]cmd_close_receipt [10:07:32]MH_GetDate [10:07:32]Write to MH i2c: F0 00 00 6C 01 5C [10:07:32]Write i2c OK [10:07:32]MH_I2C_Read... [10:07:32]Read from MH i2c: F0 [10:07:32]MH_I2C_Read... [10:07:32]Read from MH i2c: F0 09 00 [10:07:32]MH_I2C_Read... [10:07:32]Read from MH i2c: F0 09 00 6C 01 00 E5 E0 F3 66 1B D0 5A 64 2C [10:07:32]GetLastDocTimeStamp 1727258387 [10:07:32]current date 1727258853 [10:07:32]FM_GetShiftState [10:07:32]SAM_PROTO_GetShiftState [10:07:32]wFMCommunicate request_size=4 [10:07:32]MH_SAM_APDU [10:07:32]CAPDU: 80 13 01 00 [10:07:32]Write to MH i2c: E2 08 00 6D 01 80 13 01 00 00 00 00 00 EB [10:07:32]Write i2c OK [10:07:32]MH_I2C_Read... [10:07:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:07:32]Read from MH i2c: E2 [10:07:32]MH_I2C_Read... [10:07:32]Read from MH i2c: E2 0E 00 [10:07:32]MH_I2C_Read... [10:07:32]Read from MH i2c: E2 0E 00 6D 01 00 09 00 01 63 60 F3 66 00 00 00 00 90 00 13 [10:07:32]RAPDU: 09 00 01 63 60 F3 66 00 00 00 00 90 00 [10:07:32]wFMCommunicate OK [10:07:32]SAM_PROTO_GetShiftState done [10:07:32]FM_GetShiftState done [10:07:32]opened in 1727225955 [10:07:32]opened+sec_in_day 1727312355 [10:07:32]quantity*price = 6000 [10:07:32]sum+1 = 6001 [10:07:32]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 2000032780025 Сосиска в тесте DC 110г 2.000 * 60.00 = 120.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 180.00 НСП 1% : 1.59 НДС 12% : 19.11 Наличными: 180.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 48 25.09.2024 10:07 Смена: 474 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 116192 ФПД: 138695417393512 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240925T100733&type=1&operation_type=1&fn_number=0000000000871830&fd_number=116192&fm=138695417393512&tin=02508201610067®Number=0000000000091831&sum=18000 0 [10:07:33]StoreToDocumentArchive [10:07:33]shift 474 fd 116192 [10:07:33]save to /storage/0474/doc_00116192 [10:07:33]save last doc name /storage/0474/doc_00116192 to /storage/kkm_last_doc_name [10:07:33]save OK [10:07:33]Clear old archive folders... [10:07:33]ProcessDocumentItem done err = 0, tmpTLVsize=385 [10:07:33]tlvbuf is 018DF130 [10:07:33]SAM_PROTO_ClearQueue [10:07:33]wFMCommunicate request_size=4 [10:07:33]MH_SAM_APDU [10:07:33]CAPDU: 80 09 00 00 [10:07:33]Write to MH i2c: E2 08 00 7A 01 80 09 00 00 00 00 00 00 ED [10:07:33]Write i2c OK [10:07:33]MH_I2C_Read... [10:07:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:07:33]Read from MH i2c: E2 [10:07:33]MH_I2C_Read... [10:07:33]Read from MH i2c: E2 03 00 [10:07:33]MH_I2C_Read... [10:07:33]Read from MH i2c: E2 03 00 7A 01 00 90 00 EF [10:07:33]RAPDU: 90 00 [10:07:33]wFMCommunicate OK [10:07:33]SAM_PROTO_ClearQueue done [10:07:33]KKMCreateOFDPacket [10:07:33]OFDProtocolAddRootSTLVToBuf [10:07:33]FM_MakeSignedData [10:07:33]FM_MakeSignedData [10:07:33]SAM_PROTO_SignData [10:07:33]wFMCommunicate request_size=4 [10:07:33]MH_SAM_APDU [10:07:33]CAPDU: 80 0D 01 02 [10:07:33]Write to MH i2c: E2 08 00 7B 01 80 0D 01 02 00 00 00 00 F5 [10:07:33]Write i2c OK [10:07:33]MH_I2C_Read... [10:07:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:07:33]Read from MH i2c: E2 [10:07:33]MH_I2C_Read... [10:07:33]Read from MH i2c: E2 03 00 [10:07:33]MH_I2C_Read... [10:07:33]Read from MH i2c: E2 03 00 7B 01 00 90 00 F0 [10:07:33]RAPDU: 90 00 [10:07:33]wFMCommunicate OK [10:07:33]wFMCommunicate request_size=255 [10:07:33]MH_SAM_APDU [10:07:33]CAPDU: 80 0D 02 02 FA 03 00 81 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 32 30 30 30 30 33 32 38 30 30 30 31 30 06 04 22 00 D0 A1 D0 BE D1 87 D0 BD D0 B8 D0 BA 20 44 43 20 D1 82 D0 B2 D0 BE D1 80 D0 BE D0 B3 20 37 35 20 D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 B8 0B 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 69 00 8A 04 0D 00 32 30 30 30 30 33 32 37 38 30 30 32 35 06 04 25 00 D0 A1 D0 BE D1 81 D0 B8 D1 81 D0 BA D0 B0 20 D0 B2 20 D1 82 D0 B5 D1 81 D1 82 D0 B5 20 44 43 20 31 31 30 D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 46 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 [10:07:33]Write to MH i2c: E2 02 01 7C 01 80 0D 02 02 FA 00 03 00 81 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 32 30 30 30 30 33 32 38 30 30 30 31 30 06 04 22 00 D0 A1 D0 BE D1 87 D0 BD D0 B8 D0 BA 20 44 43 20 D1 82 D0 B2 D0 BE D1 80 D0 BE D0 B3 20 37 35 20 D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 B8 0B 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 69 00 8A 04 0D 00 32 30 30 30 30 33 32 37 38 30 30 32 35 06 04 25 00 D0 A1 D0 BE D1 81 D0 B8 D1 81 D0 BA D0 B0 20 D0 B2 20 D1 82 D0 B5 D1 81 D1 82 D0 B5 20 44 43 20 31 31 30 D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 46 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 4C [10:07:33]Write i2c OK [10:07:33]MH_I2C_Read... [10:07:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:07:33]Read from MH i2c: E2 [10:07:33]MH_I2C_Read... [10:07:33]Read from MH i2c: E2 03 00 [10:07:33]MH_I2C_Read... [10:07:33]Read from MH i2c: E2 03 00 7C 01 00 90 00 F1 [10:07:33]RAPDU: 90 00 [10:07:33]wFMCommunicate OK [10:07:33]wFMCommunicate request_size=144 [10:07:33]MH_SAM_APDU [10:07:33]CAPDU: 80 0D 02 02 8B 00 9F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 07 00 00 00 00 07 04 06 00 50 46 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 00 00 00 F4 03 04 00 E5 E0 F3 66 0E 04 04 00 DA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 E0 C5 01 00 35 04 06 00 7E 24 8B 15 F1 68 [10:07:33]Write to MH i2c: E2 93 00 7D 01 80 0D 02 02 8B 00 00 9F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 07 00 00 00 00 07 04 06 00 50 46 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 00 00 00 F4 03 04 00 E5 E0 F3 66 0E 04 04 00 DA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 E0 C5 01 00 35 04 06 00 7E 24 8B 15 F1 68 00 00 50 [10:07:33]Write i2c OK [10:07:33]MH_I2C_Read... [10:07:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:07:34]Read from MH i2c: E2 [10:07:34]MH_I2C_Read... [10:07:34]Read from MH i2c: E2 03 00 [10:07:34]MH_I2C_Read... [10:07:34]Read from MH i2c: E2 03 00 7D 01 00 90 00 F2 [10:07:34]RAPDU: 90 00 [10:07:34]wFMCommunicate OK [10:07:34]wFMCommunicate request_size=4 [10:07:34]MH_SAM_APDU [10:07:34]CAPDU: 80 0D 03 02 [10:07:34]Write to MH i2c: E2 08 00 7E 01 80 0D 03 02 00 00 00 00 FA [10:07:34]Write i2c OK [10:07:34]MH_I2C_Read... [10:07:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:07:34]Read from MH i2c: E2 [10:07:34]MH_I2C_Read... [10:07:34]Read from MH i2c: E2 0B 00 [10:07:34]MH_I2C_Read... [10:07:34]Read from MH i2c: E2 0B 00 7E 01 00 EB 63 C6 5B 75 9C 1F A4 90 00 3E [10:07:34]RAPDU: EB 63 C6 5B 75 9C 1F A4 90 00 [10:07:34]wFMCommunicate OK [10:07:34]SAM_PROTO_SignData done [10:07:34]FM_MakeSignedData done [10:07:34]CreateOFDProtocolMessage [10:07:34]wFMCommunicate request_size=4 [10:07:34]MH_SAM_APDU [10:07:34]CAPDU: 80 11 00 00 [10:07:34]Write to MH i2c: E2 08 00 7F 01 80 11 00 00 00 00 00 00 FA [10:07:34]Write i2c OK [10:07:34]MH_I2C_Read... [10:07:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:07:34]Read from MH i2c: E2 [10:07:34]MH_I2C_Read... [10:07:34]Read from MH i2c: E2 17 00 [10:07:34]MH_I2C_Read... [10:07:34]Read from MH i2c: E2 17 00 7F 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 48 [10:07:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [10:07:34]wFMCommunicate OK [10:07:34]CreateOFDProtocolMessage done [10:07:34]OFDSenderStorePacket 116192 [10:07:34]StoreOFDPacket docnum=116192 [10:07:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 95 01 00 00 CF 09 8D 01 8F DB 5A 03 01 00 03 00 81 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 32 30 30 30 30 33 32 38 30 30 30 31 30 06 04 22 00 D0 A1 D0 BE D1 87 D0 BD D0 B8 D0 BA 20 44 43 20 D1 82 D0 B2 D0 BE D1 80 D0 BE D0 B3 20 37 35 20 D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 B8 0B 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 69 00 8A 04 0D 00 32 30 30 30 30 33 32 37 38 30 30 32 35 06 04 25 00 D0 A1 D0 BE D1 81 D0 B8 D1 81 D0 BA D0 B0 20 D0 B2 20 D1 82 D0 B5 D1 81 D1 82 D0 B5 20 44 43 20 31 31 30 D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 46 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 07 00 00 00 00 07 04 06 00 50 46 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 00 00 00 F4 03 04 00 E5 E0 F3 66 0E 04 04 00 DA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 E0 C5 01 00 35 04 06 00 7E 24 8B 15 F1 68 EB 63 C6 5B 75 9C 1F A4 [10:07:34]CheckFolder [10:07:34]dirname=/storage/ofd_packets [10:07:34]CheckFolder done [10:07:34]ProducePacketName [10:07:34]name=ofd_packets/00116192 [10:07:34]NVStorageSaveData ofd_packets/00116192 [10:07:34]File name is /storage/ofd_packets/00116192 [10:07:34]Write 435 bytes [10:07:34]NVStorageSaveData done [10:07:34]OFDSenderStorePacket done [10:07:34]KKMCreateOFDPacket done [10:07:34]NVStorageSaveData kkm_last_timestamp [10:07:34]File name is /storage/kkm_last_timestamp [10:07:34]Write 4 bytes [10:07:34]NVStorageSaveData done [10:07:34]ExternCall_PrintAddStr [10:07:34]wPrintStart [10:07:34]Write to MH i2c: 01 00 00 80 01 81 [10:07:34]Write i2c OK [10:07:34]MH_I2C_Read... [10:07:34]Read from MH i2c: 01 [10:07:34]MH_I2C_Read... [10:07:34]Read from MH i2c: 01 07 00 [10:07:34]MH_I2C_Read... [10:07:34]Read from MH i2c: 01 07 00 80 01 00 00 00 00 00 FF 0F 96 [10:07:34]RasterBufferAndPrint [10:07:34]line Счет N : (3)344369 [10:07:34]line ИНН: 02508201610067 [10:07:34]line Контрольно-Кассовый Чек [10:07:34]line ПРОДАЖА [10:07:34]line Товар: 2000032800010 [10:07:34]line Сочник DC творог 75 г [10:07:34]line 2.000 * 30.00 [10:07:34]line = 60.00 [10:07:34]line НДС 12% НСП 1% [10:07:34]line > о реализуемом товаре [10:07:34]line Товар: 2000032780025 [10:07:34]line Сосиска в тесте DC 110г [10:07:34]line 2.000 * 60.00 [10:07:34]line = 120.00 [10:07:34]line НДС 12% НСП 1% [10:07:34]line > о реализуемом товаре [10:07:34]line ИТОГО: 180.00 [10:07:34]line НСП 1% : 1.59 [10:07:34]line НДС 12% : 19.11 [10:07:34]line Наличными: 180.00 [10:07:34]line Безнал.: 0.00 [10:07:34]line Место: АЗС № 90 "Партнер Нефть" [10:07:34]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [10:07:34]line СНО: Общий режим [10:07:34]line Чек 48 25.09.2024 10:07 [10:07:34]line Смена: 474 ФФД: 1.0 [10:07:34]line ЗНМ: 0300000120 [10:07:34]line РНМ: 0000000000091831 [10:07:34]line Версия ККМ: 001 [10:07:34]line ФМ: 0000000000871830 [10:07:34]line ФД: 116192 [10:07:34]line ФПД: 138695417393512 [10:07:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240925T100733&type=1&operation_type=1&fn_number=0000000000871830&fd_number=116192&fm=138695417393512&tin=02508201610067®Number=0000000000091831&sum=18000 [10:07:34]line 0 [10:07:34]OFD Sender: Processing packet 116192 [packets to send 482, broken 481] [10:07:34]ProducePacketName [10:07:34]name=ofd_packets/00116192 [10:07:34]OFD Sender: To server: pG, [10:07:34]CommunicateWithHost lk.salyk.kg:30040 [10:07:34]ConnectInit lk.salyk.kg [10:07:34]written 0, free lines is 4095 [10:07:34]Connected sock=10 [10:07:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 95 01 00 00 CF 09 8D 01 8F DB 5A 03 01 00 03 00 81 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 32 30 30 30 30 33 32 38 30 30 30 31 30 06 04 22 00 D0 A1 D0 BE D1 87 D0 BD D0 B8 D0 BA 20 44 43 20 D1 82 D0 B2 D0 BE D1 80 D0 BE D0 B3 20 37 35 20 D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 B8 0B 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 69 00 8A 04 0D 00 32 30 30 30 30 33 32 37 38 30 30 32 35 06 04 25 00 D0 A1 D0 BE D1 81 D0 B8 D1 81 D0 BA D0 B0 20 D0 B2 20 D1 82 D0 B5 D1 81 D1 82 D0 B5 20 44 43 20 31 31 30 D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 46 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 07 00 00 00 00 07 04 06 00 50 46 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 00 00 00 F4 03 04 00 E5 E0 F3 66 0E 04 04 00 DA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 E0 C5 01 00 35 04 06 00 7E 24 8B 15 F1 68 EB 63 C6 5B 75 9C 1F A4 [10:07:35]Write to MH i2c: 01 00 00 AD 01 AE [10:07:35]Write i2c OK [10:07:35]MH_I2C_Read... [10:07:35]Read from MH i2c: 01 [10:07:35]MH_I2C_Read... [10:07:35]Read from MH i2c: 01 07 00 [10:07:35]MH_I2C_Read... [10:07:35]Read from MH i2c: 01 07 00 AD 01 00 00 00 00 00 15 0C D6 [10:07:35]RasterBufferAndPrint [10:07:35]line [10:07:35]line [10:07:35]line [10:07:35]line [10:07:35]line [10:07:35]written 0, free lines is 3095 [10:07:35]MH_Cut [10:07:35]Write to MH i2c: D1 01 00 B4 01 01 87 [10:07:35]Write i2c OK [10:07:35]MH_I2C_Read... [10:07:35]Read from MH i2c: D1 [10:07:35]MH_I2C_Read... [10:07:35]Read from MH i2c: D1 01 00 [10:07:35]MH_I2C_Read... [10:07:35]Read from MH i2c: D1 01 00 B4 01 00 86 [10:07:35]Write to MH i2c: 01 00 00 B5 01 B6 [10:07:35]Write i2c OK [10:07:35]MH_I2C_Read... [10:07:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 F9 AF 47 00 22 BF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 E0 C5 01 00 F4 03 04 00 21 86 F3 66 B6 04 01 00 00 40 84 FA 1B A6 A9 F8 96 [10:07:35]CommunicateWithHost err = 0 [10:07:35]CheckOFDResponse [10:07:35]1017 (14) - 77093643461234 [10:07:35]1041 (16) - 0000000000871830 [10:07:35]1040 (4) - 116192 [10:07:35]1012 (4) - 25.09.2024 03:40 [10:07:35]1206 (1) - 0 [10:07:35]OFD Sender: Remove packet 116192 [10:07:35]ProducePacketName [10:07:35]name=ofd_packets/00116192 [10:07:35]NVStorageDeleteData [10:07:35]OFD Sender: No OFD packet to send [10:07:36]*** Cut start [10:07:36]*** Partial cut [10:07:36]*** CUTSNS_PIN = 1 [10:07:36]*** CUTSNS_PIN = 0 [10:07:36]*** Brake cut motor [10:07:37]Read from MH i2c: 01 [10:07:37]MH_I2C_Read... [10:07:37]*** Stop cut motor [10:07:37]*** Cut end [10:07:37]Read from MH i2c: 01 07 00 [10:07:37]MH_I2C_Read... [10:07:37]Read from MH i2c: 01 07 00 B5 01 00 00 00 00 00 FF 0F CB [10:07:37]process_action close_receipt done [10:07:37]requested_data is exist [10:07:37]produce_requested_data [10:07:37]requested_item fm.sn is exist - process it [10:07:37]wFMCommunicate request_size=4 [10:07:37]MH_SAM_APDU [10:07:37]CAPDU: 80 11 00 00 [10:07:37]Write to MH i2c: E2 08 00 B6 01 80 11 00 00 00 00 00 00 31 [10:07:37]Write i2c OK [10:07:37]MH_I2C_Read... [10:07:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:07:37]Read from MH i2c: E2 [10:07:37]MH_I2C_Read... [10:07:37]Read from MH i2c: E2 17 00 [10:07:37]MH_I2C_Read... [10:07:37]Read from MH i2c: E2 17 00 B6 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 7F [10:07:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [10:07:37]wFMCommunicate OK [10:07:37]requested_item fd.num is exist - process it [10:07:37]SAM_PROTO_GetFieldsCounters [10:07:37]wFMCommunicate request_size=4 [10:07:37]MH_SAM_APDU [10:07:37]CAPDU: 80 13 00 00 [10:07:37]Write to MH i2c: E2 08 00 B7 01 80 13 00 00 00 00 00 00 34 [10:07:37]Write i2c OK [10:07:37]MH_I2C_Read... [10:07:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:07:37]Read from MH i2c: E2 [10:07:37]MH_I2C_Read... [10:07:37]Read from MH i2c: E2 62 00 [10:07:37]MH_I2C_Read... [10:07:37]Read from MH i2c: E2 62 00 B7 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 E0 C5 01 00 0E 04 04 00 DA 01 00 00 12 04 04 00 30 00 00 00 5E 04 04 00 30 00 00 00 57 04 04 00 31 00 00 00 19 04 04 00 00 00 00 00 90 00 5E [10:07:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 E0 C5 01 00 0E 04 04 00 DA 01 00 00 12 04 04 00 30 00 00 00 5E 04 04 00 30 00 00 00 57 04 04 00 31 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:07:37]wFMCommunicate OK [10:07:37]SAM_PROTO_GetFieldsCounters done [10:07:37]requested_item shift.num is exist - process it [10:07:37]requested_item shift.opened is exist - process it [10:07:37]req_shift_opened [10:07:37]FM_GetShiftState [10:07:37]SAM_PROTO_GetShiftState [10:07:37]wFMCommunicate request_size=4 [10:07:37]MH_SAM_APDU [10:07:37]CAPDU: 80 13 01 00 [10:07:37]Write to MH i2c: E2 08 00 B8 01 80 13 01 00 00 00 00 00 36 [10:07:37]Write i2c OK [10:07:37]MH_I2C_Read... [10:07:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:07:37]Read from MH i2c: E2 [10:07:37]MH_I2C_Read... [10:07:37]Read from MH i2c: E2 0E 00 [10:07:37]MH_I2C_Read... [10:07:37]Read from MH i2c: E2 0E 00 B8 01 00 09 00 01 63 60 F3 66 00 00 00 00 90 00 5E [10:07:37]RAPDU: 09 00 01 63 60 F3 66 00 00 00 00 90 00 [10:07:37]wFMCommunicate OK [10:07:37]SAM_PROTO_GetShiftState done [10:07:37]FM_GetShiftState done [10:07:37]req_shift_opened done [10:07:37]requested_item shift.open_date is exist - process it [10:07:37]req_shift_open_date [10:07:37]req_shift_open_date done [10:07:37]produce_requested_data done [10:07:37]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":116192,"shift.num":474,"shift.opened":1,"shift.open_date":1727225955} [10:07:37]process_action_free close_receipt [10:07:37]json_value_free [10:07:37]json_value_free done [10:07:37]process_json_proto returns [10:07:37]Send response to host [10:07:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":116192,"shift.num":474,"shift.opened":1,"shift.open_date":1727225955}}} [10:07:37]free response buf [10:07:37]execute_script done [10:07:37]execute_script returns [10:07:37]free content buf [10:07:37]Sock 9.Close socket [10:07:37]Sock 9.Thread stoped [10:07:40]OFD Sender: No OFD packet to send [10:07:45]OFD Sender: No OFD packet to send [10:07:50]OFD Sender: No OFD packet to send [10:07:55]OFD Sender: No OFD packet to send [10:08:00]OFD Sender: No OFD packet to send [10:08:05]OFD Sender: No OFD packet to send [10:08:10]OFD Sender: No OFD packet to send [10:08:15]OFD Sender: No OFD packet to send [10:08:20]OFD Sender: No OFD packet to send [10:08:25]OFD Sender: No OFD packet to send [10:08:30]OFD Sender: No OFD packet to send [10:08:35]OFD Sender: No OFD packet to send [10:08:40]OFD Sender: No OFD packet to send [10:08:45]OFD Sender: No OFD packet to send [10:08:50]OFD Sender: No OFD packet to send [10:08:55]OFD Sender: No OFD packet to send [10:09:00]OFD Sender: No OFD packet to send [10:09:05]OFD Sender: No OFD packet to send [10:09:10]OFD Sender: No OFD packet to send [10:09:15]OFD Sender: No OFD packet to send [10:09:20]OFD Sender: No OFD packet to send [10:09:25]OFD Sender: No OFD packet to send [10:09:30]OFD Sender: No OFD packet to send [10:09:35]OFD Sender: No OFD packet to send [10:09:40]OFD Sender: No OFD packet to send [10:09:45]OFD Sender: No OFD packet to send [10:09:50]OFD Sender: No OFD packet to send [10:09:55]OFD Sender: No OFD packet to send [10:10:00]OFD Sender: No OFD packet to send [10:10:05]OFD Sender: No OFD packet to send [10:10:11]OFD Sender: No OFD packet to send [10:10:16]OFD Sender: No OFD packet to send [10:10:21]OFD Sender: No OFD packet to send [10:10:26]OFD Sender: No OFD packet to send [10:10:29]accept exits with 7 [10:10:29]New connection [10:10:29]New thread 3066998116 created [10:10:29]Thread 3067141476 joined [10:10:29]Waiting for new connection... [10:10:29] Sock 7.Parse request [10:10:29]Sock 7.Check first char [10:10:29]Sock 7.First char is OK [10:10:29]request: POST /json_proto HTTP/1.0 [10:10:29]Method: POST [10:10:29]URL: /json_proto [10:10:29]Method is POST - this is cgi request [10:10:29]url: /json_proto [10:10:29]query_string will be loaded in cgi processing [10:10:29]execute_cgi json_proto POST (null) [10:10:29]execute_cgi path=json_proto method=POST [10:10:29]POST find Content-Length [10:10:29]Host: 172.17.41.136:8080 [10:10:29]Content-Length: 1930 [10:10:29]Content-Type: application/json [10:10:29] [10:10:29]POST finish read [10:10:29]Found Content-Length = 1930 [10:10:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)344370", "tax_sys" : 0, "items" : [ { "code": "4700003010087", "name": "\u0427\u0430\u0439 \u0445\u043E\u043B Lets Go \u0437\u0435\u043B \u0447\u0430\u0439 \u044F\u0431\u043B-\u0433\u0440 \u041F\u042D\u0422 1,2\u043B", "price" : 95.00, "quantity" : 2.000, "sum" : 190.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "90448300", "name": "\u042D\u043D\u0435\u0440\u0433 \u043D\u0430\u043F\u0438\u0442\u043E\u043A Red Bull 0,355\u043B", "price" : 265.00, "quantity" : 1.000, "sum" : 265.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "46230614", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Richmond Red Edition", "price" : 154.00, "quantity" : 1.000, "sum" : 154.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "47803152", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Mevius Revo", "price" : 159.00, "quantity" : 1.000, "sum" : 159.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000310326", "name": "\u0412\u043E\u0434\u0430 \u0410\u0434\u044B\u0433\u0435\u043D\u0435 1\u043B \u0431/\u0433", "price" : 35.00, "quantity" : 2.000, "sum" : 70.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48741958", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Parliament Aqua Blue", "price" : 156.00, "quantity" : 1.000, "sum" : 156.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 994.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:10:29]execute_script... [10:10: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 : (3)344370", "tax_sys" : 0, "items" : [ { "code": "4700003010087", "name": "\u0427\u0430\u0439 \u0445\u043E\u043B Lets Go \u0437\u0435\u043B \u0447\u0430\u0439 \u044F\u0431\u043B-\u0433\u0440 \u041F\u042D\u0422 1,2\u043B", "price" : 95.00, "quantity" : 2.000, "sum" : 190.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "90448300", "name": "\u042D\u043D\u0435\u0440\u0433 \u043D\u0430\u043F\u0438\u0442\u043E\u043A Red Bull 0,355\u043B", "price" : 265.00, "quantity" : 1.000, "sum" : 265.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "46230614", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Richmond Red Edition", "price" : 154.00, "quantity" : 1.000, "sum" : 154.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "47803152", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Mevius Revo", "price" : 159.00, "quantity" : 1.000, "sum" : 159.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000310326", "name": "\u0412\u043E\u0434\u0430 \u0410\u0434\u044B\u0433\u0435\u043D\u0435 1\u043B \u0431/\u0433", "price" : 35.00, "quantity" : 2.000, "sum" : 70.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48741958", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Parliament Aqua Blue", "price" : 156.00, "quantity" : 1.000, "sum" : 156.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 994.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:10:29]POST & json_proto [10:10:29]process_json_proto [10:10:29]json parsed OK: [10:10:29]protocol is kg_v1.0 [10:10:29]action value=close_receipt [10:10:29]process_action close_receipt [10:10:29]cmd_close_receipt [10:10:29]MH_GetDate [10:10:29]Write to MH i2c: F0 00 00 B9 01 A9 [10:10:29]Write i2c OK [10:10:29]MH_I2C_Read... [10:10:29]Read from MH i2c: F0 [10:10:29]MH_I2C_Read... [10:10:29]Read from MH i2c: F0 09 00 [10:10:29]MH_I2C_Read... [10:10:29]Read from MH i2c: F0 09 00 B9 01 00 96 E1 F3 66 1B D0 5A 64 2B [10:10:29]GetLastDocTimeStamp 1727258853 [10:10:29]current date 1727259030 [10:10:29]FM_GetShiftState [10:10:29]SAM_PROTO_GetShiftState [10:10:29]wFMCommunicate request_size=4 [10:10:29]MH_SAM_APDU [10:10:29]CAPDU: 80 13 01 00 [10:10:29]Write to MH i2c: E2 08 00 BA 01 80 13 01 00 00 00 00 00 38 [10:10:29]Write i2c OK [10:10:29]MH_I2C_Read... [10:10:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:10:29]Read from MH i2c: E2 [10:10:29]MH_I2C_Read... [10:10:29]Read from MH i2c: E2 0E 00 [10:10:29]MH_I2C_Read... [10:10:29]Read from MH i2c: E2 0E 00 BA 01 00 09 00 01 63 60 F3 66 00 00 00 00 90 00 60 [10:10:29]RAPDU: 09 00 01 63 60 F3 66 00 00 00 00 90 00 [10:10:29]wFMCommunicate OK [10:10:29]SAM_PROTO_GetShiftState done [10:10:29]FM_GetShiftState done [10:10:29]opened in 1727225955 [10:10:29]opened+sec_in_day 1727312355 [10:10:29]quantity*price = 19000 [10:10:29]sum+1 = 19001 [10:10:29]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 90448300 Энерг напиток Red Bull 0,355л 1.000 * 265.00 = 265.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 46230614 Сигареты Richmond Red Edition 1.000 * 154.00 = 154.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 47803152 Сигареты Mevius Revo 1.000 * 159.00 = 159.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4700000310326 Вода Адыгене 1л б/г 2.000 * 35.00 = 70.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 48741958 Сигареты Parliament Aqua Blue 1.000 * 156.00 = 156.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 994.00 НСП 1% : 8.79 НДС 12% : 105.55 Наличными: 994.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 49 25.09.2024 10:10 Смена: 474 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 116193 ФПД: 92858336176337 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240925T101030&type=1&operation_type=1&fn_number=0000000000871830&fd_number=116193&fm=92858336176337&tin=02508201610067®Number=0000000000091831&sum=99400 0 [10:10:30]StoreToDocumentArchive [10:10:30]shift 474 fd 116193 [10:10:30]save to /storage/0474/doc_00116193 [10:10:30]save last doc name /storage/0474/doc_00116193 to /storage/kkm_last_doc_name [10:10:30]save OK [10:10:30]Clear old archive folders... [10:10:30]ProcessDocumentItem done err = 0, tmpTLVsize=819 [10:10:30]tlvbuf is 018DFB90 [10:10:30]SAM_PROTO_ClearQueue [10:10:30]wFMCommunicate request_size=4 [10:10:30]MH_SAM_APDU [10:10:30]CAPDU: 80 09 00 00 [10:10:30]Write to MH i2c: E2 08 00 C7 01 80 09 00 00 00 00 00 00 3A [10:10:30]Write i2c OK [10:10:30]MH_I2C_Read... [10:10:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:10:30]Read from MH i2c: E2 [10:10:30]MH_I2C_Read... [10:10:30]Read from MH i2c: E2 03 00 [10:10:30]MH_I2C_Read... [10:10:30]Read from MH i2c: E2 03 00 C7 01 00 90 00 3C [10:10:30]RAPDU: 90 00 [10:10:30]wFMCommunicate OK [10:10:30]SAM_PROTO_ClearQueue done [10:10:30]KKMCreateOFDPacket [10:10:30]OFDProtocolAddRootSTLVToBuf [10:10:30]FM_MakeSignedData [10:10:30]FM_MakeSignedData [10:10:30]SAM_PROTO_SignData [10:10:30]wFMCommunicate request_size=4 [10:10:30]MH_SAM_APDU [10:10:30]CAPDU: 80 0D 01 02 [10:10:30]Write to MH i2c: E2 08 00 C8 01 80 0D 01 02 00 00 00 00 42 [10:10:30]Write i2c OK [10:10:30]MH_I2C_Read... [10:10:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:10:30]Read from MH i2c: E2 [10:10:30]MH_I2C_Read... [10:10:30]Read from MH i2c: E2 03 00 [10:10:30]MH_I2C_Read... [10:10:30]Read from MH i2c: E2 03 00 C8 01 00 90 00 3D [10:10:30]RAPDU: 90 00 [10:10:30]wFMCommunicate OK [10:10:30]wFMCommunicate request_size=255 [10:10:30]MH_SAM_APDU [10:10:30]CAPDU: 80 0D 02 02 FA 03 00 33 03 1E 04 01 00 01 23 04 80 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 30 38 37 06 04 3C 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB 20 4C 65 74 73 20 47 6F 20 D0 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 20 D1 8F D0 B1 D0 BB 2D D0 B3 D1 80 20 D0 9F D0 AD D0 A2 20 31 2C 32 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 38 4A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 69 00 8A 04 08 00 39 30 34 34 38 33 30 30 06 04 2A 00 D0 AD D0 BD D0 B5 D1 80 D0 B3 20 D0 BD D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 52 65 64 20 42 75 6C 6C 20 30 2C 33 35 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 84 67 00 00 00 00 13 04 06 00 84 67 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 [10:10:31]Write to MH i2c: E2 02 01 C9 01 80 0D 02 02 FA 00 03 00 33 03 1E 04 01 00 01 23 04 80 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 30 38 37 06 04 3C 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB 20 4C 65 74 73 20 47 6F 20 D0 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 20 D1 8F D0 B1 D0 BB 2D D0 B3 D1 80 20 D0 9F D0 AD D0 A2 20 31 2C 32 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 38 4A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 69 00 8A 04 08 00 39 30 34 34 38 33 30 30 06 04 2A 00 D0 AD D0 BD D0 B5 D1 80 D0 B3 20 D0 BD D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 52 65 64 20 42 75 6C 6C 20 30 2C 33 35 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 84 67 00 00 00 00 13 04 06 00 84 67 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 00 00 F5 [10:10:31]OFD Sender: No OFD packet to send [10:10:31]Write i2c OK [10:10:31]MH_I2C_Read... [10:10:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:10:31]Read from MH i2c: E2 [10:10:31]MH_I2C_Read... [10:10:31]Read from MH i2c: E2 03 00 [10:10:31]MH_I2C_Read... [10:10:31]Read from MH i2c: E2 03 00 C9 01 00 90 00 3E [10:10:31]RAPDU: 90 00 [10:10:31]wFMCommunicate OK [10:10:31]wFMCommunicate request_size=255 [10:10:31]MH_SAM_APDU [10:10:31]CAPDU: 80 0D 02 02 FA 23 04 64 00 8A 04 08 00 34 36 32 33 30 36 31 34 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 52 69 63 68 6D 6F 6E 64 20 52 65 64 20 45 64 69 74 69 6F 6E FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 3C 00 00 00 00 13 04 06 00 28 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5B 00 8A 04 08 00 34 37 38 30 33 31 35 32 06 04 1C 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 4D 65 76 69 75 73 20 52 65 76 6F FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 3E 00 00 00 00 13 04 06 00 1C 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 33 32 36 06 04 21 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 90 D0 B4 D1 8B D0 B3 D0 B5 D0 BD D0 B5 20 31 D0 [10:10:31]Write to MH i2c: E2 02 01 CA 01 80 0D 02 02 FA 00 23 04 64 00 8A 04 08 00 34 36 32 33 30 36 31 34 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 52 69 63 68 6D 6F 6E 64 20 52 65 64 20 45 64 69 74 69 6F 6E FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 3C 00 00 00 00 13 04 06 00 28 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5B 00 8A 04 08 00 34 37 38 30 33 31 35 32 06 04 1C 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 4D 65 76 69 75 73 20 52 65 76 6F FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 3E 00 00 00 00 13 04 06 00 1C 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 33 32 36 06 04 21 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 90 D0 B4 D1 8B D0 B3 D0 B5 D0 BD D0 B5 20 31 D0 00 00 CD [10:10:31]Write i2c OK [10:10:31]MH_I2C_Read... [10:10:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:10:31]Read from MH i2c: E2 [10:10:31]MH_I2C_Read... [10:10:31]Read from MH i2c: E2 03 00 [10:10:31]MH_I2C_Read... [10:10:31]Read from MH i2c: E2 03 00 CA 01 00 90 00 3F [10:10:31]RAPDU: 90 00 [10:10:31]wFMCommunicate OK [10:10:31]wFMCommunicate request_size=255 [10:10:31]MH_SAM_APDU [10:10:31]CAPDU: 80 0D 02 02 FA BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 AC 0D 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 64 00 8A 04 08 00 34 38 37 34 31 39 35 38 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 41 71 75 61 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F0 3C 00 00 00 00 13 04 06 00 F0 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 84 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3B 29 00 00 00 00 07 04 06 00 48 84 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 96 E1 [10:10:31]Write to MH i2c: E2 02 01 CB 01 80 0D 02 02 FA 00 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 AC 0D 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 64 00 8A 04 08 00 34 38 37 34 31 39 35 38 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 41 71 75 61 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F0 3C 00 00 00 00 13 04 06 00 F0 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 84 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3B 29 00 00 00 00 07 04 06 00 48 84 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 96 E1 00 00 78 [10:10:31]Write i2c OK [10:10:31]MH_I2C_Read... [10:10:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:10:31]Read from MH i2c: E2 [10:10:31]MH_I2C_Read... [10:10:31]Read from MH i2c: E2 03 00 [10:10:31]MH_I2C_Read... [10:10:31]Read from MH i2c: E2 03 00 CB 01 00 90 00 40 [10:10:31]RAPDU: 90 00 [10:10:31]wFMCommunicate OK [10:10:31]wFMCommunicate request_size=78 [10:10:31]MH_SAM_APDU [10:10:31]CAPDU: 80 0D 02 02 49 F3 66 0E 04 04 00 DA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 E1 C5 01 00 35 04 06 00 54 74 44 24 68 D1 [10:10:31]Write to MH i2c: E2 51 00 CC 01 80 0D 02 02 49 00 F3 66 0E 04 04 00 DA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 E1 C5 01 00 35 04 06 00 54 74 44 24 68 D1 00 00 C0 [10:10:31]Write i2c OK [10:10:31]MH_I2C_Read... [10:10:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:10:32]Read from MH i2c: E2 [10:10:32]MH_I2C_Read... [10:10:32]Read from MH i2c: E2 03 00 [10:10:32]MH_I2C_Read... [10:10:32]Read from MH i2c: E2 03 00 CC 01 00 90 00 41 [10:10:32]RAPDU: 90 00 [10:10:32]wFMCommunicate OK [10:10:32]wFMCommunicate request_size=4 [10:10:32]MH_SAM_APDU [10:10:32]CAPDU: 80 0D 03 02 [10:10:32]Write to MH i2c: E2 08 00 CD 01 80 0D 03 02 00 00 00 00 49 [10:10:32]Write i2c OK [10:10:32]MH_I2C_Read... [10:10:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:10:32]Read from MH i2c: E2 [10:10:32]MH_I2C_Read... [10:10:32]Read from MH i2c: E2 0B 00 [10:10:32]MH_I2C_Read... [10:10:32]Read from MH i2c: E2 0B 00 CD 01 00 F0 7B 21 46 91 06 55 93 90 00 9B [10:10:32]RAPDU: F0 7B 21 46 91 06 55 93 90 00 [10:10:32]wFMCommunicate OK [10:10:32]SAM_PROTO_SignData done [10:10:32]FM_MakeSignedData done [10:10:32]CreateOFDProtocolMessage [10:10:32]wFMCommunicate request_size=4 [10:10:32]MH_SAM_APDU [10:10:32]CAPDU: 80 11 00 00 [10:10:32]Write to MH i2c: E2 08 00 CE 01 80 11 00 00 00 00 00 00 49 [10:10:32]Write i2c OK [10:10:32]MH_I2C_Read... [10:10:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:10:32]Read from MH i2c: E2 [10:10:32]MH_I2C_Read... [10:10:32]Read from MH i2c: E2 17 00 [10:10:32]MH_I2C_Read... [10:10:32]Read from MH i2c: E2 17 00 CE 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 97 [10:10:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [10:10:32]wFMCommunicate OK [10:10:32]CreateOFDProtocolMessage done [10:10:32]OFDSenderStorePacket 116193 [10:10:32]StoreOFDPacket docnum=116193 [10:10:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 47 03 00 00 2A AC 3F 03 6E A0 5A 03 01 00 03 00 33 03 1E 04 01 00 01 23 04 80 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 30 38 37 06 04 3C 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB 20 4C 65 74 73 20 47 6F 20 D0 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 20 D1 8F D0 B1 D0 BB 2D D0 B3 D1 80 20 D0 9F D0 AD D0 A2 20 31 2C 32 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 38 4A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 69 00 8A 04 08 00 39 30 34 34 38 33 30 30 06 04 2A 00 D0 AD D0 BD D0 B5 D1 80 D0 B3 20 D0 BD D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 52 65 64 20 42 75 6C 6C 20 30 2C 33 35 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 84 67 00 00 00 00 13 04 06 00 84 67 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 64 00 8A 04 08 00 34 36 32 33 30 36 31 34 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 52 69 63 68 6D 6F 6E 64 20 52 65 64 20 45 64 69 74 69 6F 6E FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 3C 00 00 00 00 13 04 06 00 28 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5B 00 8A 04 08 00 34 37 38 30 33 31 35 32 06 04 1C 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 4D 65 76 69 75 73 20 52 65 76 6F FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 3E 00 00 00 00 13 04 06 00 1C 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 33 32 36 06 04 21 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 90 D0 B4 D1 8B D0 B3 D0 B5 D0 BD D0 B5 20 31 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 AC 0D 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 64 00 8A 04 08 00 34 38 37 34 31 39 35 38 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 41 71 75 61 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F0 3C 00 00 00 00 13 04 06 00 F0 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 84 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3B 29 00 00 00 00 07 04 06 00 48 84 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 96 E1 F3 66 0E 04 04 00 DA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 E1 C5 01 00 35 04 06 00 54 74 44 24 68 D1 F0 7B 21 46 91 06 55 93 [10:10:32]CheckFolder [10:10:32]dirname=/storage/ofd_packets [10:10:32]CheckFolder done [10:10:32]ProducePacketName [10:10:32]name=ofd_packets/00116193 [10:10:32]NVStorageSaveData ofd_packets/00116193 [10:10:32]File name is /storage/ofd_packets/00116193 [10:10:32]Write 869 bytes [10:10:32]NVStorageSaveData done [10:10:32]OFDSenderStorePacket done [10:10:32]KKMCreateOFDPacket done [10:10:32]NVStorageSaveData kkm_last_timestamp [10:10:32]File name is /storage/kkm_last_timestamp [10:10:32]Write 4 bytes [10:10:32]NVStorageSaveData done [10:10:32]ExternCall_PrintAddStr [10:10:32]wPrintStart [10:10:32]Write to MH i2c: 01 00 00 CF 01 D0 [10:10:32]Write i2c OK [10:10:32]MH_I2C_Read... [10:10:32]Read from MH i2c: 01 [10:10:32]MH_I2C_Read... [10:10:32]Read from MH i2c: 01 07 00 [10:10:32]MH_I2C_Read... [10:10:32]Read from MH i2c: 01 07 00 CF 01 00 00 00 00 00 FF 0F E5 [10:10:32]RasterBufferAndPrint [10:10:32]line Счет N : (3)344370 [10:10:32]line ИНН: 02508201610067 [10:10:32]line Контрольно-Кассовый Чек [10:10:32]line ПРОДАЖА [10:10:32]line Товар: 4700003010087 [10:10:32]line Чай хол Lets Go зел чай ябл-гр ПЭТ 1,2л [10:10:32]line 2.000 * 95.00 [10:10:32]line = 190.00 [10:10:32]line НДС 12% НСП 1% [10:10:32]line > о реализуемом товаре [10:10:32]line Товар: 90448300 [10:10:32]line Энерг напиток Red Bull 0,355л [10:10:32]line 1.000 * 265.00 [10:10:32]line = 265.00 [10:10:32]line НДС 12% НСП 1% [10:10:32]line > о реализуемом товаре [10:10:32]line Товар: 46230614 [10:10:32]line Сигареты Richmond Red Edition [10:10:32]line 1.000 * 154.00 [10:10:32]line = 154.00 [10:10:32]line НДС 12% НСП 1% [10:10:32]line > о реализуемом товаре [10:10:32]line Товар: 47803152 [10:10:32]line Сигареты Mevius Revo [10:10:32]line 1.000 * 159.00 [10:10:32]line = 159.00 [10:10:32]line НДС 12% НСП 1% [10:10:32]line > о реализуемом товаре [10:10:32]line Товар: 4700000310326 [10:10:32]line Вода Адыгене 1л б/г [10:10:32]line 2.000 * 35.00 [10:10:32]line = 70.00 [10:10:32]line НДС 12% НСП 1% [10:10:32]line > о реализуемом товаре [10:10:32]line Товар: 48741958 [10:10:32]line Сигареты Parliament Aqua Blue [10:10:32]line 1.000 * 156.00 [10:10:32]line = 156.00 [10:10:32]line НДС 12% НСП 1% [10:10:32]line > о реализуемом товаре [10:10:32]line ИТОГО: 994.00 [10:10:32]line НСП 1% : 8.79 [10:10:32]line НДС 12% : 105.55 [10:10:32]line Наличными: 994.00 [10:10:32]line Безнал.: 0.00 [10:10:32]line Место: АЗС № 90 "Партнер Нефть" [10:10:32]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [10:10:32]line СНО: Общий режим [10:10:32]line Чек 49 25.09.2024 10:10 [10:10:32]line Смена: 474 ФФД: 1.0 [10:10:32]line ЗНМ: 0300000120 [10:10:32]line РНМ: 0000000000091831 [10:10:32]line Версия ККМ: 001 [10:10:32]line ФМ: 0000000000871830 [10:10:32]line ФД: 116193 [10:10:32]line ФПД: 92858336176337 [10:10:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240925T101030&type=1&operation_type=1&fn_number=0000000000871830&fd_number=116193&fm=92858336176337&tin=02508201610067®Number=0000000000091831&sum=99400 [10:10:32]line 0 [10:10:32]OFD Sender: Processing packet 116193 [packets to send 482, broken 481] [10:10:32]ProducePacketName [10:10:32]name=ofd_packets/00116193 [10:10:32]OFD Sender: To server: pG, [10:10:32]CommunicateWithHost lk.salyk.kg:30040 [10:10:32]ConnectInit lk.salyk.kg [10:10:32]written 0, free lines is 4095 [10:10:32]Connected sock=10 [10:10:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 47 03 00 00 2A AC 3F 03 6E A0 5A 03 01 00 03 00 33 03 1E 04 01 00 01 23 04 80 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 30 38 37 06 04 3C 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB 20 4C 65 74 73 20 47 6F 20 D0 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 20 D1 8F D0 B1 D0 BB 2D D0 B3 D1 80 20 D0 9F D0 AD D0 A2 20 31 2C 32 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 38 4A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 69 00 8A 04 08 00 39 30 34 34 38 33 30 30 06 04 2A 00 D0 AD D0 BD D0 B5 D1 80 D0 B3 20 D0 BD D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 52 65 64 20 42 75 6C 6C 20 30 2C 33 35 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 84 67 00 00 00 00 13 04 06 00 84 67 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 64 00 8A 04 08 00 34 36 32 33 30 36 31 34 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 52 69 63 68 6D 6F 6E 64 20 52 65 64 20 45 64 69 74 69 6F 6E FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 3C 00 00 00 00 13 04 06 00 28 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5B 00 8A 04 08 00 34 37 38 30 33 31 35 32 06 04 1C 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 4D 65 76 69 75 73 20 52 65 76 6F FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 3E 00 00 00 00 13 04 06 00 1C 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 33 32 36 06 04 21 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 90 D0 B4 D1 8B D0 B3 D0 B5 D0 BD D0 B5 20 31 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 AC 0D 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 64 00 8A 04 08 00 34 38 37 34 31 39 35 38 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 41 71 75 61 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F0 3C 00 00 00 00 13 04 06 00 F0 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 84 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3B 29 00 00 00 00 07 04 06 00 48 84 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 96 E1 F3 66 0E 04 04 00 DA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 E1 C5 01 00 35 04 06 00 54 74 44 24 68 D1 F0 7B 21 46 91 06 55 93 [10:10:33]Write to MH i2c: 01 00 00 17 02 19 [10:10:33]Write i2c OK [10:10:33]MH_I2C_Read... [10:10:33]Read from MH i2c: 01 [10:10:33]MH_I2C_Read... [10:10:33]Read from MH i2c: 01 07 00 [10:10:33]MH_I2C_Read... [10:10:33]Read from MH i2c: 01 07 00 17 02 00 00 00 00 00 B5 09 DE [10:10:33]RasterBufferAndPrint [10:10:33]line [10:10:33]line [10:10:33]line [10:10:33]line [10:10:33]line [10:10:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 C7 1F 47 00 20 33 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 E1 C5 01 00 F4 03 04 00 D4 86 F3 66 B6 04 01 00 00 C9 AF 68 F7 4A 5F 7F 7C [10:10:33]CommunicateWithHost err = 0 [10:10:33]CheckOFDResponse [10:10:33]1017 (14) - 77093643461234 [10:10:33]1041 (16) - 0000000000871830 [10:10:33]1040 (4) - 116193 [10:10:33]1012 (4) - 25.09.2024 03:43 [10:10:33]1206 (1) - 0 [10:10:33]OFD Sender: Remove packet 116193 [10:10:33]ProducePacketName [10:10:33]name=ofd_packets/00116193 [10:10:33]NVStorageDeleteData [10:10:33]written 0, free lines is 2490 [10:10:33]MH_Cut [10:10:33]Write to MH i2c: D1 01 00 1E 02 01 F2 [10:10:33]Write i2c OK [10:10:33]MH_I2C_Read... [10:10:33]Read from MH i2c: D1 [10:10:33]MH_I2C_Read... [10:10:33]Read from MH i2c: D1 01 00 [10:10:33]MH_I2C_Read... [10:10:33]Read from MH i2c: D1 01 00 1E 02 00 F1 [10:10:33]Write to MH i2c: 01 00 00 1F 02 21 [10:10:33]Write i2c OK [10:10:33]MH_I2C_Read... [10:10:33]OFD Sender: No OFD packet to send [10:10:35]*** Cut start [10:10:35]*** Partial cut [10:10:35]*** CUTSNS_PIN = 1 [10:10:35]*** CUTSNS_PIN = 0 [10:10:35]*** Brake cut motor [10:10:36]Read from MH i2c: 01 [10:10:36]MH_I2C_Read... [10:10:36]*** Stop cut motor [10:10:36]*** Cut end [10:10:36]Read from MH i2c: 01 07 00 [10:10:36]MH_I2C_Read... [10:10:36]Read from MH i2c: 01 07 00 1F 02 00 00 00 00 00 FF 0F 36 [10:10:36]process_action close_receipt done [10:10:36]requested_data is exist [10:10:36]produce_requested_data [10:10:36]requested_item fm.sn is exist - process it [10:10:36]wFMCommunicate request_size=4 [10:10:36]MH_SAM_APDU [10:10:36]CAPDU: 80 11 00 00 [10:10:36]Write to MH i2c: E2 08 00 20 02 80 11 00 00 00 00 00 00 9C [10:10:36]Write i2c OK [10:10:36]MH_I2C_Read... [10:10:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:10:36]Read from MH i2c: E2 [10:10:36]MH_I2C_Read... [10:10:36]Read from MH i2c: E2 17 00 [10:10:36]MH_I2C_Read... [10:10:36]Read from MH i2c: E2 17 00 20 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 EA [10:10:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [10:10:36]wFMCommunicate OK [10:10:36]requested_item fd.num is exist - process it [10:10:36]SAM_PROTO_GetFieldsCounters [10:10:36]wFMCommunicate request_size=4 [10:10:36]MH_SAM_APDU [10:10:36]CAPDU: 80 13 00 00 [10:10:36]Write to MH i2c: E2 08 00 21 02 80 13 00 00 00 00 00 00 9F [10:10:36]Write i2c OK [10:10:36]MH_I2C_Read... [10:10:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:10:36]Read from MH i2c: E2 [10:10:36]MH_I2C_Read... [10:10:36]Read from MH i2c: E2 62 00 [10:10:36]MH_I2C_Read... [10:10:36]Read from MH i2c: E2 62 00 21 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 E1 C5 01 00 0E 04 04 00 DA 01 00 00 12 04 04 00 31 00 00 00 5E 04 04 00 31 00 00 00 57 04 04 00 32 00 00 00 19 04 04 00 00 00 00 00 90 00 CD [10:10:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 E1 C5 01 00 0E 04 04 00 DA 01 00 00 12 04 04 00 31 00 00 00 5E 04 04 00 31 00 00 00 57 04 04 00 32 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:10:36]wFMCommunicate OK [10:10:36]SAM_PROTO_GetFieldsCounters done [10:10:36]requested_item shift.num is exist - process it [10:10:36]requested_item shift.opened is exist - process it [10:10:36]req_shift_opened [10:10:36]FM_GetShiftState [10:10:36]SAM_PROTO_GetShiftState [10:10:36]wFMCommunicate request_size=4 [10:10:36]MH_SAM_APDU [10:10:36]CAPDU: 80 13 01 00 [10:10:36]Write to MH i2c: E2 08 00 22 02 80 13 01 00 00 00 00 00 A1 [10:10:36]Write i2c OK [10:10:36]MH_I2C_Read... [10:10:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:10:36]Read from MH i2c: E2 [10:10:36]MH_I2C_Read... [10:10:36]Read from MH i2c: E2 0E 00 [10:10:36]MH_I2C_Read... [10:10:36]Read from MH i2c: E2 0E 00 22 02 00 09 00 01 63 60 F3 66 00 00 00 00 90 00 C9 [10:10:36]RAPDU: 09 00 01 63 60 F3 66 00 00 00 00 90 00 [10:10:36]wFMCommunicate OK [10:10:36]SAM_PROTO_GetShiftState done [10:10:36]FM_GetShiftState done [10:10:36]req_shift_opened done [10:10:36]requested_item shift.open_date is exist - process it [10:10:36]req_shift_open_date [10:10:36]req_shift_open_date done [10:10:36]produce_requested_data done [10:10:36]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":116193,"shift.num":474,"shift.opened":1,"shift.open_date":1727225955} [10:10:36]process_action_free close_receipt [10:10:36]json_value_free [10:10:36]json_value_free done [10:10:36]process_json_proto returns [10:10:36]Send response to host [10:10:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":116193,"shift.num":474,"shift.opened":1,"shift.open_date":1727225955}}} [10:10:36]free response buf [10:10:36]execute_script done [10:10:36]execute_script returns [10:10:36]free content buf [10:10:36]Sock 7.Close socket [10:10:36]Sock 7.Thread stoped [10:10:38]OFD Sender: No OFD packet to send [10:10:43]OFD Sender: No OFD packet to send [10:10:48]OFD Sender: No OFD packet to send [10:10:53]OFD Sender: No OFD packet to send [10:10:58]OFD Sender: No OFD packet to send [10:11:03]OFD Sender: No OFD packet to send [10:11:08]OFD Sender: No OFD packet to send [10:11:13]OFD Sender: No OFD packet to send [10:11:18]OFD Sender: No OFD packet to send [10:11:23]OFD Sender: No OFD packet to send [10:11:28]OFD Sender: No OFD packet to send [10:11:33]OFD Sender: No OFD packet to send [10:11:38]OFD Sender: No OFD packet to send [10:11:43]OFD Sender: No OFD packet to send [10:11:48]OFD Sender: No OFD packet to send [10:11:54]OFD Sender: No OFD packet to send [10:11:59]OFD Sender: No OFD packet to send [10:12:04]OFD Sender: No OFD packet to send [10:12:09]OFD Sender: No OFD packet to send [10:12:14]OFD Sender: No OFD packet to send [10:12:19]OFD Sender: No OFD packet to send [10:12:24]OFD Sender: No OFD packet to send [10:12:29]OFD Sender: No OFD packet to send [10:12:33]accept exits with 9 [10:12:33]New connection [10:12:33]New thread 3067141476 created [10:12:33]Thread 3066998116 joined [10:12:33]Waiting for new connection... [10:12:33] Sock 9.Parse request [10:12:33]Sock 9.Check first char [10:12:33]Sock 9.First char is OK [10:12:33]request: POST /json_proto HTTP/1.0 [10:12:33]Method: POST [10:12:33]URL: /json_proto [10:12:33]Method is POST - this is cgi request [10:12:33]url: /json_proto [10:12:33]query_string will be loaded in cgi processing [10:12:33]execute_cgi json_proto POST (null) [10:12:33]execute_cgi path=json_proto method=POST [10:12:33]POST find Content-Length [10:12:33]Host: 172.17.41.136:8080 [10:12:33]Content-Length: 756 [10:12:33]Content-Type: application/json [10:12:33] [10:12:33]POST finish read [10:12:33]Found Content-Length = 756 [10:12:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)24619134", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 30.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30074589", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:12:33]execute_script... [10:12:33]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)24619134", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 30.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30074589", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:12:33]POST & json_proto [10:12:33]process_json_proto [10:12:33]json parsed OK: [10:12:33]protocol is kg_v1.0 [10:12:33]action value=close_receipt [10:12:33]process_action close_receipt [10:12:33]cmd_close_receipt [10:12:33]MH_GetDate [10:12:33]Write to MH i2c: F0 00 00 23 02 14 [10:12:33]Write i2c OK [10:12:33]MH_I2C_Read... [10:12:33]Read from MH i2c: F0 [10:12:33]MH_I2C_Read... [10:12:33]Read from MH i2c: F0 09 00 [10:12:33]MH_I2C_Read... [10:12:33]Read from MH i2c: F0 09 00 23 02 00 11 E2 F3 66 1B D0 5A 64 12 [10:12:33]GetLastDocTimeStamp 1727259030 [10:12:33]current date 1727259153 [10:12:33]FM_GetShiftState [10:12:33]SAM_PROTO_GetShiftState [10:12:33]wFMCommunicate request_size=4 [10:12:33]MH_SAM_APDU [10:12:33]CAPDU: 80 13 01 00 [10:12:33]Write to MH i2c: E2 08 00 24 02 80 13 01 00 00 00 00 00 A3 [10:12:33]Write i2c OK [10:12:33]MH_I2C_Read... [10:12:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:12:33]Read from MH i2c: E2 [10:12:33]MH_I2C_Read... [10:12:33]Read from MH i2c: E2 0E 00 [10:12:33]MH_I2C_Read... [10:12:33]Read from MH i2c: E2 0E 00 24 02 00 09 00 01 63 60 F3 66 00 00 00 00 90 00 CB [10:12:33]RAPDU: 09 00 01 63 60 F3 66 00 00 00 00 90 00 [10:12:33]wFMCommunicate OK [10:12:33]SAM_PROTO_GetShiftState done [10:12:33]FM_GetShiftState done [10:12:33]opened in 1727225955 [10:12:33]opened+sec_in_day 1727312355 [10:12:33]quantity*price = 0 [10:12:33]sum+1 = 1 [10:12:33]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 50 25.09.2024 10:12 Смена: 474 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 Талоны: ТК ГПНА Online 30074589 ФМ: 0000000000871830 ФД: 116194 ФПД: 14019106516081 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240925T101233&type=1&operation_type=1&fn_number=0000000000871830&fd_number=116194&fm=14019106516081&tin=02508201610067®Number=0000000000091831&sum=0 [10:12:34]StoreToDocumentArchive [10:12:34]shift 474 fd 116194 [10:12:34]save to /storage/0474/doc_00116194 [10:12:34]save last doc name /storage/0474/doc_00116194 to /storage/kkm_last_doc_name [10:12:34]save OK [10:12:34]Clear old archive folders... [10:12:34]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:12:34]tlvbuf is 018D64D0 [10:12:34]SAM_PROTO_ClearQueue [10:12:34]wFMCommunicate request_size=4 [10:12:34]MH_SAM_APDU [10:12:34]CAPDU: 80 09 00 00 [10:12:34]Write to MH i2c: E2 08 00 31 02 80 09 00 00 00 00 00 00 A5 [10:12:34]Write i2c OK [10:12:34]MH_I2C_Read... [10:12:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:12:34]Read from MH i2c: E2 [10:12:34]MH_I2C_Read... [10:12:34]Read from MH i2c: E2 03 00 [10:12:34]MH_I2C_Read... [10:12:34]Read from MH i2c: E2 03 00 31 02 00 90 00 A7 [10:12:34]RAPDU: 90 00 [10:12:34]wFMCommunicate OK [10:12:34]SAM_PROTO_ClearQueue done [10:12:34]KKMCreateOFDPacket [10:12:34]OFDProtocolAddRootSTLVToBuf [10:12:34]FM_MakeSignedData [10:12:34]FM_MakeSignedData [10:12:34]SAM_PROTO_SignData [10:12:34]wFMCommunicate request_size=4 [10:12:34]MH_SAM_APDU [10:12:34]CAPDU: 80 0D 01 02 [10:12:34]Write to MH i2c: E2 08 00 32 02 80 0D 01 02 00 00 00 00 AD [10:12:34]Write i2c OK [10:12:34]MH_I2C_Read... [10:12:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:12:34]Read from MH i2c: E2 [10:12:34]MH_I2C_Read... [10:12:34]Read from MH i2c: E2 03 00 [10:12:34]MH_I2C_Read... [10:12:34]Read from MH i2c: E2 03 00 32 02 00 90 00 A8 [10:12:34]RAPDU: 90 00 [10:12:34]wFMCommunicate OK [10:12:34]wFMCommunicate request_size=255 [10:12:34]MH_SAM_APDU [10:12:34]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 00 00 00 F4 03 04 00 11 E2 F3 66 0E 04 04 00 DA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 E2 C5 01 00 35 04 06 00 0C [10:12:34]Write to MH i2c: E2 02 01 33 02 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 00 00 00 F4 03 04 00 11 E2 F3 66 0E 04 04 00 DA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 E2 C5 01 00 35 04 06 00 0C 00 00 61 [10:12:34]Write i2c OK [10:12:34]MH_I2C_Read... [10:12:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:12:34]Read from MH i2c: E2 [10:12:34]MH_I2C_Read... [10:12:34]Read from MH i2c: E2 03 00 [10:12:34]MH_I2C_Read... [10:12:34]Read from MH i2c: E2 03 00 33 02 00 90 00 A9 [10:12:34]RAPDU: 90 00 [10:12:34]wFMCommunicate OK [10:12:34]wFMCommunicate request_size=10 [10:12:34]MH_SAM_APDU [10:12:34]CAPDU: 80 0D 02 02 05 C0 13 DD 2C 71 [10:12:34]Write to MH i2c: E2 0D 00 34 02 80 0D 02 02 05 00 C0 13 DD 2C 71 00 00 07 [10:12:34]Write i2c OK [10:12:34]MH_I2C_Read... [10:12:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:12:34]Read from MH i2c: E2 [10:12:34]MH_I2C_Read... [10:12:34]Read from MH i2c: E2 03 00 [10:12:34]MH_I2C_Read... [10:12:34]Read from MH i2c: E2 03 00 34 02 00 90 00 AA [10:12:34]RAPDU: 90 00 [10:12:34]wFMCommunicate OK [10:12:34]wFMCommunicate request_size=4 [10:12:34]MH_SAM_APDU [10:12:34]CAPDU: 80 0D 03 02 [10:12:34]Write to MH i2c: E2 08 00 35 02 80 0D 03 02 00 00 00 00 B2 [10:12:34]Write i2c OK [10:12:34]MH_I2C_Read... [10:12:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:12:34]Read from MH i2c: E2 [10:12:34]MH_I2C_Read... [10:12:34]Read from MH i2c: E2 0B 00 [10:12:34]MH_I2C_Read... [10:12:34]Read from MH i2c: E2 0B 00 35 02 00 5C 17 B5 49 D9 3E D3 19 90 00 27 [10:12:34]RAPDU: 5C 17 B5 49 D9 3E D3 19 90 00 [10:12:34]wFMCommunicate OK [10:12:34]SAM_PROTO_SignData done [10:12:34]FM_MakeSignedData done [10:12:34]CreateOFDProtocolMessage [10:12:34]wFMCommunicate request_size=4 [10:12:34]MH_SAM_APDU [10:12:34]CAPDU: 80 11 00 00 [10:12:34]Write to MH i2c: E2 08 00 36 02 80 11 00 00 00 00 00 00 B2 [10:12:34]Write i2c OK [10:12:34]MH_I2C_Read... [10:12:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:12:34]Read from MH i2c: E2 [10:12:34]MH_I2C_Read... [10:12:34]Read from MH i2c: E2 17 00 [10:12:34]MH_I2C_Read... [10:12:34]Read from MH i2c: E2 17 00 36 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 00 [10:12:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [10:12:34]wFMCommunicate OK [10:12:34]CreateOFDProtocolMessage done [10:12:34]OFDSenderStorePacket 116194 [10:12:34]StoreOFDPacket docnum=116194 [10:12:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0F 01 00 00 6D 8A 07 01 61 62 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 00 00 00 F4 03 04 00 11 E2 F3 66 0E 04 04 00 DA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 E2 C5 01 00 35 04 06 00 0C C0 13 DD 2C 71 5C 17 B5 49 D9 3E D3 19 [10:12:34]CheckFolder [10:12:34]dirname=/storage/ofd_packets [10:12:34]CheckFolder done [10:12:34]ProducePacketName [10:12:34]name=ofd_packets/00116194 [10:12:34]NVStorageSaveData ofd_packets/00116194 [10:12:34]File name is /storage/ofd_packets/00116194 [10:12:34]Write 301 bytes [10:12:34]NVStorageSaveData done [10:12:34]OFDSenderStorePacket done [10:12:34]KKMCreateOFDPacket done [10:12:34]NVStorageSaveData kkm_last_timestamp [10:12:34]File name is /storage/kkm_last_timestamp [10:12:34]Write 4 bytes [10:12:34]NVStorageSaveData done [10:12:34]ExternCall_PrintAddStr [10:12:34]wPrintStart [10:12:34]Write to MH i2c: 01 00 00 37 02 39 [10:12:34]Write i2c OK [10:12:34]MH_I2C_Read... [10:12:34]Read from MH i2c: 01 [10:12:34]MH_I2C_Read... [10:12:34]Read from MH i2c: 01 07 00 [10:12:34]MH_I2C_Read... [10:12:34]Read from MH i2c: 01 07 00 37 02 00 00 00 00 00 FF 0F 4E [10:12:34]RasterBufferAndPrint [10:12:34]line Счет N : (1)24619134 [10:12:34]line ИНН: 02508201610067 [10:12:34]line Контрольно-Кассовый Чек [10:12:34]line ПРОДАЖА [10:12:34]line ТРК (МРК, ГНК) : 43 [10:12:34]line Товар: 2710124130 [10:12:34]line Аи-92-К-5 [10:12:34]line 30.000 * 0.00 [10:12:34]line = 0.00 [10:12:34]line НДС 12% НСП 1% [10:12:34]line > о реализуемом товаре [10:12:34]line ИТОГО: 0.00 [10:12:34]line НСП 1% : 0.00 [10:12:34]line НДС 12% : 0.00 [10:12:34]line Наличными: 0.00 [10:12:34]line Безнал.: 0.00 [10:12:34]line Место: АЗС № 90 "Партнер Нефть" [10:12:34]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [10:12:34]line СНО: Общий режим [10:12:34]line Чек 50 25.09.2024 10:12 [10:12:34]line Смена: 474 ФФД: 1.0 [10:12:34]line ЗНМ: 0300000120 [10:12:34]line РНМ: 0000000000091831 [10:12:34]line Версия ККМ: 001 [10:12:34]line Талоны: ТК ГПНА Online [10:12:34]line 30074589 [10:12:34]line ФМ: 0000000000871830 [10:12:34]line ФД: 116194 [10:12:34]line ФПД: 14019106516081 [10:12:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240925T101233&type=1&operation_type=1&fn_number=0000000000871830&fd_number=116194&fm=14019106516081&tin=02508201610067®Number=0000000000091831&sum=0 [10:12:35]OFD Sender: Processing packet 116194 [packets to send 482, broken 481] [10:12:35]ProducePacketName [10:12:35]name=ofd_packets/00116194 [10:12:35]OFD Sender: To server: pG, [10:12:35]CommunicateWithHost lk.salyk.kg:30040 [10:12:35]ConnectInit lk.salyk.kg [10:12:35]written 0, free lines is 4095 [10:12:35]Connected sock=10 [10:12:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0F 01 00 00 6D 8A 07 01 61 62 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 00 00 00 F4 03 04 00 11 E2 F3 66 0E 04 04 00 DA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 E2 C5 01 00 35 04 06 00 0C C0 13 DD 2C 71 5C 17 B5 49 D9 3E D3 19 [10:12:35]Write to MH i2c: 01 00 00 60 02 62 [10:12:35]Write i2c OK [10:12:35]MH_I2C_Read... [10:12:35]Read from MH i2c: 01 [10:12:35]MH_I2C_Read... [10:12:35]Read from MH i2c: 01 07 00 [10:12:35]MH_I2C_Read... [10:12:35]Read from MH i2c: 01 07 00 60 02 00 00 00 00 00 6F 0C E4 [10:12:35]RasterBufferAndPrint [10:12:35]line [10:12:35]line [10:12:35]line [10:12:35]line [10:12:35]line [10:12:35]written 0, free lines is 3187 [10:12:35]MH_Cut [10:12:35]Write to MH i2c: D1 01 00 67 02 01 3B [10:12:35]Write i2c OK [10:12:35]MH_I2C_Read... [10:12:35]Read from MH i2c: D1 [10:12:35]MH_I2C_Read... [10:12:35]Read from MH i2c: D1 01 00 [10:12:35]MH_I2C_Read... [10:12:35]Read from MH i2c: D1 01 00 67 02 00 3A [10:12:35]Write to MH i2c: 01 00 00 68 02 6A [10:12:35]Write i2c OK [10:12:35]MH_I2C_Read... [10:12:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 B2 F3 47 00 46 9D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 E2 C5 01 00 F4 03 04 00 4E 87 F3 66 B6 04 01 00 00 3F 05 3D 7B 3E AC A4 28 [10:12:35]CommunicateWithHost err = 0 [10:12:35]CheckOFDResponse [10:12:35]1017 (14) - 77093643461234 [10:12:35]1041 (16) - 0000000000871830 [10:12:35]1040 (4) - 116194 [10:12:35]1012 (4) - 25.09.2024 03:45 [10:12:35]1206 (1) - 0 [10:12:35]OFD Sender: Remove packet 116194 [10:12:35]ProducePacketName [10:12:35]name=ofd_packets/00116194 [10:12:35]NVStorageDeleteData [10:12:36]OFD Sender: No OFD packet to send [10:12:36]*** Cut start [10:12:36]*** Partial cut [10:12:36]*** CUTSNS_PIN = 1 [10:12:36]*** CUTSNS_PIN = 0 [10:12:37]*** Brake cut motor [10:12:37]Read from MH i2c: 01 [10:12:37]MH_I2C_Read... [10:12:37]*** Stop cut motor [10:12:37]*** Cut end [10:12:37]Read from MH i2c: 01 07 00 [10:12:37]MH_I2C_Read... [10:12:37]Read from MH i2c: 01 07 00 68 02 00 00 00 00 00 FF 0F 7F [10:12:37]process_action close_receipt done [10:12:37]requested_data is exist [10:12:37]produce_requested_data [10:12:37]requested_item fm.sn is exist - process it [10:12:37]wFMCommunicate request_size=4 [10:12:37]MH_SAM_APDU [10:12:37]CAPDU: 80 11 00 00 [10:12:37]Write to MH i2c: E2 08 00 69 02 80 11 00 00 00 00 00 00 E5 [10:12:37]Write i2c OK [10:12:37]MH_I2C_Read... [10:12:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:12:37]Read from MH i2c: E2 [10:12:37]MH_I2C_Read... [10:12:37]Read from MH i2c: E2 17 00 [10:12:37]MH_I2C_Read... [10:12:37]Read from MH i2c: E2 17 00 69 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 33 [10:12:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [10:12:37]wFMCommunicate OK [10:12:37]requested_item fd.num is exist - process it [10:12:37]SAM_PROTO_GetFieldsCounters [10:12:37]wFMCommunicate request_size=4 [10:12:37]MH_SAM_APDU [10:12:37]CAPDU: 80 13 00 00 [10:12:37]Write to MH i2c: E2 08 00 6A 02 80 13 00 00 00 00 00 00 E8 [10:12:37]Write i2c OK [10:12:37]MH_I2C_Read... [10:12:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:12:37]Read from MH i2c: E2 [10:12:37]MH_I2C_Read... [10:12:37]Read from MH i2c: E2 62 00 [10:12:37]MH_I2C_Read... [10:12:37]Read from MH i2c: E2 62 00 6A 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 E2 C5 01 00 0E 04 04 00 DA 01 00 00 12 04 04 00 32 00 00 00 5E 04 04 00 32 00 00 00 57 04 04 00 33 00 00 00 19 04 04 00 00 00 00 00 90 00 1A [10:12:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 E2 C5 01 00 0E 04 04 00 DA 01 00 00 12 04 04 00 32 00 00 00 5E 04 04 00 32 00 00 00 57 04 04 00 33 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:12:37]wFMCommunicate OK [10:12:37]SAM_PROTO_GetFieldsCounters done [10:12:37]requested_item shift.num is exist - process it [10:12:37]requested_item shift.opened is exist - process it [10:12:37]req_shift_opened [10:12:37]FM_GetShiftState [10:12:37]SAM_PROTO_GetShiftState [10:12:37]wFMCommunicate request_size=4 [10:12:37]MH_SAM_APDU [10:12:37]CAPDU: 80 13 01 00 [10:12:37]Write to MH i2c: E2 08 00 6B 02 80 13 01 00 00 00 00 00 EA [10:12:37]Write i2c OK [10:12:37]MH_I2C_Read... [10:12:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:12:37]Read from MH i2c: E2 [10:12:37]MH_I2C_Read... [10:12:37]Read from MH i2c: E2 0E 00 [10:12:37]MH_I2C_Read... [10:12:37]Read from MH i2c: E2 0E 00 6B 02 00 09 00 01 63 60 F3 66 00 00 00 00 90 00 12 [10:12:37]RAPDU: 09 00 01 63 60 F3 66 00 00 00 00 90 00 [10:12:37]wFMCommunicate OK [10:12:37]SAM_PROTO_GetShiftState done [10:12:37]FM_GetShiftState done [10:12:37]req_shift_opened done [10:12:37]requested_item shift.open_date is exist - process it [10:12:37]req_shift_open_date [10:12:37]req_shift_open_date done [10:12:37]produce_requested_data done [10:12:37]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":116194,"shift.num":474,"shift.opened":1,"shift.open_date":1727225955} [10:12:37]process_action_free close_receipt [10:12:37]json_value_free [10:12:37]json_value_free done [10:12:37]process_json_proto returns [10:12:37]Send response to host [10:12:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":116194,"shift.num":474,"shift.opened":1,"shift.open_date":1727225955}}} [10:12:37]free response buf [10:12:37]execute_script done [10:12:37]execute_script returns [10:12:37]free content buf [10:12:37]Sock 9.Close socket [10:12:37]Sock 9.Thread stoped [10:12:41]OFD Sender: No OFD packet to send [10:12:46]OFD Sender: No OFD packet to send [10:12:51]OFD Sender: No OFD packet to send [10:12:56]OFD Sender: No OFD packet to send [10:13:01]OFD Sender: No OFD packet to send [10:13:06]OFD Sender: No OFD packet to send [10:13:11]OFD Sender: No OFD packet to send [10:13:16]OFD Sender: No OFD packet to send [10:13:21]OFD Sender: No OFD packet to send [10:13:26]OFD Sender: No OFD packet to send [10:13:31]OFD Sender: No OFD packet to send [10:13:36]OFD Sender: No OFD packet to send [10:13:41]OFD Sender: No OFD packet to send [10:13:46]OFD Sender: No OFD packet to send [10:13:51]OFD Sender: No OFD packet to send [10:13:56]OFD Sender: No OFD packet to send [10:14:01]OFD Sender: No OFD packet to send [10:14:06]OFD Sender: No OFD packet to send [10:14:11]OFD Sender: No OFD packet to send [10:14:16]OFD Sender: No OFD packet to send [10:14:21]OFD Sender: No OFD packet to send [10:14:26]OFD Sender: No OFD packet to send [10:14:31]OFD Sender: No OFD packet to send [10:14:36]OFD Sender: No OFD packet to send [10:14:41]OFD Sender: No OFD packet to send [10:14:46]OFD Sender: No OFD packet to send [10:14:51]OFD Sender: No OFD packet to send [10:14:56]OFD Sender: No OFD packet to send [10:15:01]OFD Sender: No OFD packet to send [10:15:06]OFD Sender: No OFD packet to send [10:15:11]OFD Sender: No OFD packet to send [10:15:16]OFD Sender: No OFD packet to send [10:15:21]OFD Sender: No OFD packet to send [10:15:26]OFD Sender: No OFD packet to send [10:15:31]OFD Sender: No OFD packet to send [10:15:36]OFD Sender: No OFD packet to send [10:15:41]OFD Sender: No OFD packet to send [10:15:46]OFD Sender: No OFD packet to send [10:15:51]OFD Sender: No OFD packet to send [10:15:56]OFD Sender: No OFD packet to send [10:16:01]OFD Sender: No OFD packet to send [10:16:06]OFD Sender: No OFD packet to send [10:16:11]OFD Sender: No OFD packet to send [10:16:16]OFD Sender: No OFD packet to send [10:16:21]OFD Sender: No OFD packet to send [10:16:26]OFD Sender: No OFD packet to send [10:16:31]OFD Sender: No OFD packet to send [10:16:36]OFD Sender: No OFD packet to send [10:16:41]OFD Sender: No OFD packet to send [10:16:46]OFD Sender: No OFD packet to send [10:16:51]OFD Sender: No OFD packet to send [10:16:56]OFD Sender: No OFD packet to send [10:17:01]OFD Sender: No OFD packet to send [10:17:06]OFD Sender: No OFD packet to send [10:17:11]OFD Sender: No OFD packet to send [10:17:16]OFD Sender: No OFD packet to send [10:17:21]OFD Sender: No OFD packet to send [10:17:26]OFD Sender: No OFD packet to send [10:17:31]OFD Sender: No OFD packet to send [10:17:36]OFD Sender: No OFD packet to send [10:17:41]OFD Sender: No OFD packet to send [10:17:46]OFD Sender: No OFD packet to send [10:17:51]OFD Sender: No OFD packet to send [10:17:56]OFD Sender: No OFD packet to send [10:18:01]OFD Sender: No OFD packet to send [10:18:06]OFD Sender: No OFD packet to send [10:18:11]OFD Sender: No OFD packet to send [10:18:16]OFD Sender: No OFD packet to send [10:18:21]OFD Sender: No OFD packet to send [10:18:26]OFD Sender: No OFD packet to send [10:18:31]OFD Sender: No OFD packet to send [10:18:36]OFD Sender: No OFD packet to send [10:18:41]OFD Sender: No OFD packet to send [10:18:47]OFD Sender: No OFD packet to send [10:18:52]OFD Sender: No OFD packet to send [10:18:57]OFD Sender: No OFD packet to send [10:19:02]OFD Sender: No OFD packet to send [10:19:07]OFD Sender: No OFD packet to send [10:19:12]OFD Sender: No OFD packet to send [10:19:17]OFD Sender: No OFD packet to send [10:19:22]OFD Sender: No OFD packet to send [10:19:27]OFD Sender: No OFD packet to send [10:19:32]OFD Sender: No OFD packet to send [10:19:37]OFD Sender: No OFD packet to send [10:19:42]OFD Sender: No OFD packet to send [10:19:47]OFD Sender: No OFD packet to send [10:19:52]OFD Sender: No OFD packet to send [10:19:57]OFD Sender: No OFD packet to send [10:20:02]OFD Sender: No OFD packet to send [10:20:07]OFD Sender: No OFD packet to send [10:20:12]OFD Sender: No OFD packet to send [10:20:17]OFD Sender: No OFD packet to send [10:20:22]OFD Sender: No OFD packet to send [10:20:23]accept exits with 7 [10:20:23]New connection [10:20:23]New thread 3066998116 created [10:20:23]Thread 3067141476 joined [10:20:23]Waiting for new connection... [10:20:23] Sock 7.Parse request [10:20:23]Sock 7.Check first char [10:20:23]Sock 7.First char is OK [10:20:23]request: POST /json_proto HTTP/1.0 [10:20:23]Method: POST [10:20:23]URL: /json_proto [10:20:23]Method is POST - this is cgi request [10:20:23]url: /json_proto [10:20:23]query_string will be loaded in cgi processing [10:20:23]execute_cgi json_proto POST (null) [10:20:23]execute_cgi path=json_proto method=POST [10:20:23]POST find Content-Length [10:20:23]Host: 172.17.41.136:8080 [10:20:23]Content-Length: 679 [10:20:23]Content-Type: application/json [10:20:23] [10:20:23]POST finish read [10:20:23]Found Content-Length = 679 [10:20:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)24619141", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 8.850, "sum" : 600.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:20:23]execute_script... [10:20: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)24619141", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 8.850, "sum" : 600.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:20:23]POST & json_proto [10:20:23]process_json_proto [10:20:23]json parsed OK: [10:20:23]protocol is kg_v1.0 [10:20:23]action value=close_receipt [10:20:23]process_action close_receipt [10:20:23]cmd_close_receipt [10:20:23]MH_GetDate [10:20:23]Write to MH i2c: F0 00 00 6C 02 5D [10:20:23]Write i2c OK [10:20:23]MH_I2C_Read... [10:20:23]Read from MH i2c: F0 [10:20:23]MH_I2C_Read... [10:20:23]Read from MH i2c: F0 09 00 [10:20:23]MH_I2C_Read... [10:20:23]Read from MH i2c: F0 09 00 6C 02 00 E8 E3 F3 66 1B D0 5A 64 33 [10:20:23]GetLastDocTimeStamp 1727259153 [10:20:23]current date 1727259624 [10:20:23]FM_GetShiftState [10:20:23]SAM_PROTO_GetShiftState [10:20:23]wFMCommunicate request_size=4 [10:20:23]MH_SAM_APDU [10:20:23]CAPDU: 80 13 01 00 [10:20:23]Write to MH i2c: E2 08 00 6D 02 80 13 01 00 00 00 00 00 EC [10:20:23]Write i2c OK [10:20:23]MH_I2C_Read... [10:20:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:20:23]Read from MH i2c: E2 [10:20:23]MH_I2C_Read... [10:20:23]Read from MH i2c: E2 0E 00 [10:20:23]MH_I2C_Read... [10:20:23]Read from MH i2c: E2 0E 00 6D 02 00 09 00 01 63 60 F3 66 00 00 00 00 90 00 14 [10:20:23]RAPDU: 09 00 01 63 60 F3 66 00 00 00 00 90 00 [10:20:23]wFMCommunicate OK [10:20:23]SAM_PROTO_GetShiftState done [10:20:23]FM_GetShiftState done [10:20:23]opened in 1727225955 [10:20:23]opened+sec_in_day 1727312355 [10:20:23]quantity*price = 60003 [10:20:23]sum+1 = 60004 [10:20:23]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.72 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 51 25.09.2024 10:20 Смена: 474 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 116195 ФПД: 125181888796294 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240925T102024&type=1&operation_type=1&fn_number=0000000000871830&fd_number=116195&fm=125181888796294&tin=02508201610067®Number=0000000000091831&sum=60000 [10:20:24]StoreToDocumentArchive [10:20:24]shift 474 fd 116195 [10:20:24]save to /storage/0474/doc_00116195 [10:20:24]save last doc name /storage/0474/doc_00116195 to /storage/kkm_last_doc_name [10:20:24]save OK [10:20:24]Clear old archive folders... [10:20:24]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:20:24]tlvbuf is 01919930 [10:20:24]SAM_PROTO_ClearQueue [10:20:24]wFMCommunicate request_size=4 [10:20:24]MH_SAM_APDU [10:20:24]CAPDU: 80 09 00 00 [10:20:24]Write to MH i2c: E2 08 00 7A 02 80 09 00 00 00 00 00 00 EE [10:20:24]Write i2c OK [10:20:24]MH_I2C_Read... [10:20:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:20:24]Read from MH i2c: E2 [10:20:24]MH_I2C_Read... [10:20:24]Read from MH i2c: E2 03 00 [10:20:24]MH_I2C_Read... [10:20:24]Read from MH i2c: E2 03 00 7A 02 00 90 00 F0 [10:20:24]RAPDU: 90 00 [10:20:24]wFMCommunicate OK [10:20:24]SAM_PROTO_ClearQueue done [10:20:24]KKMCreateOFDPacket [10:20:24]OFDProtocolAddRootSTLVToBuf [10:20:24]FM_MakeSignedData [10:20:24]FM_MakeSignedData [10:20:24]SAM_PROTO_SignData [10:20:24]wFMCommunicate request_size=4 [10:20:24]MH_SAM_APDU [10:20:24]CAPDU: 80 0D 01 02 [10:20:24]Write to MH i2c: E2 08 00 7B 02 80 0D 01 02 00 00 00 00 F6 [10:20:24]Write i2c OK [10:20:24]MH_I2C_Read... [10:20:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:20:24]Read from MH i2c: E2 [10:20:24]MH_I2C_Read... [10:20:24]Read from MH i2c: E2 03 00 [10:20:24]MH_I2C_Read... [10:20:24]Read from MH i2c: E2 03 00 7B 02 00 90 00 F1 [10:20:24]RAPDU: 90 00 [10:20:24]wFMCommunicate OK [10:20:24]wFMCommunicate request_size=255 [10:20:24]MH_SAM_APDU [10:20:24]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 00 00 00 F4 03 04 00 E8 E3 F3 66 0E 04 04 00 DA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 E3 C5 01 00 35 04 06 00 71 [10:20:24]Write to MH i2c: E2 02 01 7C 02 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 00 00 00 F4 03 04 00 E8 E3 F3 66 0E 04 04 00 DA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 E3 C5 01 00 35 04 06 00 71 00 00 80 [10:20:24]Write i2c OK [10:20:24]MH_I2C_Read... [10:20:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:20:24]Read from MH i2c: E2 [10:20:24]MH_I2C_Read... [10:20:24]Read from MH i2c: E2 03 00 [10:20:24]MH_I2C_Read... [10:20:24]Read from MH i2c: E2 03 00 7C 02 00 90 00 F2 [10:20:24]RAPDU: 90 00 [10:20:24]wFMCommunicate OK [10:20:24]wFMCommunicate request_size=10 [10:20:24]MH_SAM_APDU [10:20:24]CAPDU: 80 0D 02 02 05 DA 2E 03 96 86 [10:20:24]Write to MH i2c: E2 0D 00 7D 02 80 0D 02 02 05 00 DA 2E 03 96 86 00 00 2A [10:20:24]Write i2c OK [10:20:24]MH_I2C_Read... [10:20:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:20:24]Read from MH i2c: E2 [10:20:24]MH_I2C_Read... [10:20:24]Read from MH i2c: E2 03 00 [10:20:24]MH_I2C_Read... [10:20:24]Read from MH i2c: E2 03 00 7D 02 00 90 00 F3 [10:20:24]RAPDU: 90 00 [10:20:24]wFMCommunicate OK [10:20:24]wFMCommunicate request_size=4 [10:20:24]MH_SAM_APDU [10:20:24]CAPDU: 80 0D 03 02 [10:20:24]Write to MH i2c: E2 08 00 7E 02 80 0D 03 02 00 00 00 00 FB [10:20:24]Write i2c OK [10:20:24]MH_I2C_Read... [10:20:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:20:24]Read from MH i2c: E2 [10:20:24]MH_I2C_Read... [10:20:24]Read from MH i2c: E2 0B 00 [10:20:24]MH_I2C_Read... [10:20:24]Read from MH i2c: E2 0B 00 7E 02 00 1C FE BF D9 F3 4E 8F 8C 90 00 0A [10:20:24]RAPDU: 1C FE BF D9 F3 4E 8F 8C 90 00 [10:20:24]wFMCommunicate OK [10:20:24]SAM_PROTO_SignData done [10:20:24]FM_MakeSignedData done [10:20:24]CreateOFDProtocolMessage [10:20:24]wFMCommunicate request_size=4 [10:20:24]MH_SAM_APDU [10:20:24]CAPDU: 80 11 00 00 [10:20:24]Write to MH i2c: E2 08 00 7F 02 80 11 00 00 00 00 00 00 FB [10:20:24]Write i2c OK [10:20:24]MH_I2C_Read... [10:20:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:20:24]Read from MH i2c: E2 [10:20:24]MH_I2C_Read... [10:20:24]Read from MH i2c: E2 17 00 [10:20:24]MH_I2C_Read... [10:20:24]Read from MH i2c: E2 17 00 7F 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 49 [10:20:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [10:20:24]wFMCommunicate OK [10:20:24]CreateOFDProtocolMessage done [10:20:24]OFDSenderStorePacket 116195 [10:20:24]StoreOFDPacket docnum=116195 [10:20:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0F 01 00 00 FD B3 07 01 5F 6C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 00 00 00 F4 03 04 00 E8 E3 F3 66 0E 04 04 00 DA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 E3 C5 01 00 35 04 06 00 71 DA 2E 03 96 86 1C FE BF D9 F3 4E 8F 8C [10:20:24]CheckFolder [10:20:24]dirname=/storage/ofd_packets [10:20:24]CheckFolder done [10:20:24]ProducePacketName [10:20:24]name=ofd_packets/00116195 [10:20:24]NVStorageSaveData ofd_packets/00116195 [10:20:24]File name is /storage/ofd_packets/00116195 [10:20:24]Write 301 bytes [10:20:24]NVStorageSaveData done [10:20:24]OFDSenderStorePacket done [10:20:24]KKMCreateOFDPacket done [10:20:24]NVStorageSaveData kkm_last_timestamp [10:20:24]File name is /storage/kkm_last_timestamp [10:20:24]Write 4 bytes [10:20:24]NVStorageSaveData done [10:20:24]ExternCall_PrintAddStr [10:20:24]wPrintStart [10:20:24]Write to MH i2c: 01 00 00 80 02 82 [10:20:24]Write i2c OK [10:20:24]MH_I2C_Read... [10:20:24]Read from MH i2c: 01 [10:20:24]MH_I2C_Read... [10:20:24]Read from MH i2c: 01 07 00 [10:20:24]MH_I2C_Read... [10:20:24]Read from MH i2c: 01 07 00 80 02 00 00 00 00 00 FF 0F 97 [10:20:24]RasterBufferAndPrint [10:20:24]line Счет N : (1)24619141 [10:20:24]line ИНН: 02508201610067 [10:20:24]line Контрольно-Кассовый Чек [10:20:24]line ПРОДАЖА [10:20:24]line ТРК (МРК, ГНК) : 63 [10:20:24]line Товар: 2710124130 [10:20:24]line Аи-92-К-5 [10:20:24]line 8.850 * 67.80 [10:20:24]line = 600.03 [10:20:24]line НДС 12% НСП 1% [10:20:24]line > о реализуемом товаре [10:20:24]line ОКРУГЛЕНИЕ: -0.03 [10:20:24]line ИТОГО: 600.00 [10:20:24]line Внесено: 600.00 [10:20:24]line СДАЧА: 0.00 [10:20:24]line НСП 1% : 5.31 [10:20:24]line НДС 12% : 63.72 [10:20:24]line Наличными: 600.00 [10:20:24]line Безнал.: 0.00 [10:20:24]line Место: АЗС № 90 "Партнер Нефть" [10:20:24]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [10:20:24]line СНО: Общий режим [10:20:24]line Чек 51 25.09.2024 10:20 [10:20:24]line Смена: 474 ФФД: 1.0 [10:20:24]line ЗНМ: 0300000120 [10:20:24]line РНМ: 0000000000091831 [10:20:24]line Версия ККМ: 001 [10:20:24]line ФМ: 0000000000871830 [10:20:24]line ФД: 116195 [10:20:24]line ФПД: 125181888796294 [10:20:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240925T102024&type=1&operation_type=1&fn_number=0000000000871830&fd_number=116195&fm=125181888796294&tin=02508201610067®Number=0000000000091831&sum=60000 [10:20:25]OFD Sender: Processing packet 116195 [packets to send 482, broken 481] [10:20:25]ProducePacketName [10:20:25]name=ofd_packets/00116195 [10:20:25]OFD Sender: To server: pG, [10:20:25]CommunicateWithHost lk.salyk.kg:30040 [10:20:25]ConnectInit lk.salyk.kg [10:20:25]written 0, free lines is 4095 [10:20:25]Connected sock=10 [10:20:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0F 01 00 00 FD B3 07 01 5F 6C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 00 00 00 F4 03 04 00 E8 E3 F3 66 0E 04 04 00 DA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 E3 C5 01 00 35 04 06 00 71 DA 2E 03 96 86 1C FE BF D9 F3 4E 8F 8C [10:20:25]Write to MH i2c: 01 00 00 AA 02 AC [10:20:25]Write i2c OK [10:20:25]MH_I2C_Read... [10:20:25]Read from MH i2c: 01 [10:20:25]MH_I2C_Read... [10:20:25]Read from MH i2c: 01 07 00 [10:20:25]MH_I2C_Read... [10:20:25]Read from MH i2c: 01 07 00 AA 02 00 00 00 00 00 4D 0C 0C [10:20:25]RasterBufferAndPrint [10:20:25]line [10:20:25]line [10:20:25]line [10:20:25]line [10:20:25]line [10:20:25]written 0, free lines is 3152 [10:20:25]MH_Cut [10:20:25]Write to MH i2c: D1 01 00 B1 02 01 85 [10:20:25]Write i2c OK [10:20:25]MH_I2C_Read... [10:20:25]Read from MH i2c: D1 [10:20:25]MH_I2C_Read... [10:20:25]Read from MH i2c: D1 01 00 [10:20:25]MH_I2C_Read... [10:20:25]Read from MH i2c: D1 01 00 B1 02 00 84 [10:20:25]Write to MH i2c: 01 00 00 B2 02 B4 [10:20:25]Write i2c OK [10:20:25]MH_I2C_Read... [10:20:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 0B 83 47 00 F6 3E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 E3 C5 01 00 F4 03 04 00 24 89 F3 66 B6 04 01 00 00 94 D2 25 D1 49 30 AD 39 [10:20:25]CommunicateWithHost err = 0 [10:20:25]CheckOFDResponse [10:20:25]1017 (14) - 77093643461234 [10:20:25]1041 (16) - 0000000000871830 [10:20:25]1040 (4) - 116195 [10:20:25]1012 (4) - 25.09.2024 03:53 [10:20:25]1206 (1) - 0 [10:20:25]OFD Sender: Remove packet 116195 [10:20:25]ProducePacketName [10:20:25]name=ofd_packets/00116195 [10:20:25]NVStorageDeleteData [10:20:26]OFD Sender: No OFD packet to send [10:20:27]*** Cut start [10:20:27]*** Partial cut [10:20:27]*** CUTSNS_PIN = 1 [10:20:27]*** CUTSNS_PIN = 0 [10:20:27]*** Brake cut motor [10:20:27]Read from MH i2c: 01 [10:20:27]MH_I2C_Read... [10:20:27]*** Stop cut motor [10:20:27]*** Cut end [10:20:27]Read from MH i2c: 01 07 00 [10:20:27]MH_I2C_Read... [10:20:27]Read from MH i2c: 01 07 00 B2 02 00 00 00 00 00 FF 0F C9 [10:20:27]process_action close_receipt done [10:20:27]requested_data is exist [10:20:27]produce_requested_data [10:20:27]requested_item fm.sn is exist - process it [10:20:27]wFMCommunicate request_size=4 [10:20:27]MH_SAM_APDU [10:20:27]CAPDU: 80 11 00 00 [10:20:27]Write to MH i2c: E2 08 00 B3 02 80 11 00 00 00 00 00 00 2F [10:20:27]Write i2c OK [10:20:27]MH_I2C_Read... [10:20:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:20:27]Read from MH i2c: E2 [10:20:27]MH_I2C_Read... [10:20:27]Read from MH i2c: E2 17 00 [10:20:27]MH_I2C_Read... [10:20:27]Read from MH i2c: E2 17 00 B3 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 7D [10:20:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [10:20:27]wFMCommunicate OK [10:20:27]requested_item fd.num is exist - process it [10:20:27]SAM_PROTO_GetFieldsCounters [10:20:27]wFMCommunicate request_size=4 [10:20:27]MH_SAM_APDU [10:20:27]CAPDU: 80 13 00 00 [10:20:27]Write to MH i2c: E2 08 00 B4 02 80 13 00 00 00 00 00 00 32 [10:20:27]Write i2c OK [10:20:27]MH_I2C_Read... [10:20:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:20:27]Read from MH i2c: E2 [10:20:27]MH_I2C_Read... [10:20:27]Read from MH i2c: E2 62 00 [10:20:27]MH_I2C_Read... [10:20:27]Read from MH i2c: E2 62 00 B4 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 E3 C5 01 00 0E 04 04 00 DA 01 00 00 12 04 04 00 33 00 00 00 5E 04 04 00 33 00 00 00 57 04 04 00 34 00 00 00 19 04 04 00 00 00 00 00 90 00 68 [10:20:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 E3 C5 01 00 0E 04 04 00 DA 01 00 00 12 04 04 00 33 00 00 00 5E 04 04 00 33 00 00 00 57 04 04 00 34 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:20:27]wFMCommunicate OK [10:20:27]SAM_PROTO_GetFieldsCounters done [10:20:27]requested_item shift.num is exist - process it [10:20:27]requested_item shift.opened is exist - process it [10:20:27]req_shift_opened [10:20:27]FM_GetShiftState [10:20:27]SAM_PROTO_GetShiftState [10:20:27]wFMCommunicate request_size=4 [10:20:27]MH_SAM_APDU [10:20:27]CAPDU: 80 13 01 00 [10:20:27]Write to MH i2c: E2 08 00 B5 02 80 13 01 00 00 00 00 00 34 [10:20:27]Write i2c OK [10:20:27]MH_I2C_Read... [10:20:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:20:27]Read from MH i2c: E2 [10:20:27]MH_I2C_Read... [10:20:27]Read from MH i2c: E2 0E 00 [10:20:27]MH_I2C_Read... [10:20:27]Read from MH i2c: E2 0E 00 B5 02 00 09 00 01 63 60 F3 66 00 00 00 00 90 00 5C [10:20:27]RAPDU: 09 00 01 63 60 F3 66 00 00 00 00 90 00 [10:20:27]wFMCommunicate OK [10:20:27]SAM_PROTO_GetShiftState done [10:20:27]FM_GetShiftState done [10:20:27]req_shift_opened done [10:20:27]requested_item shift.open_date is exist - process it [10:20:27]req_shift_open_date [10:20:27]req_shift_open_date done [10:20:27]produce_requested_data done [10:20:27]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":116195,"shift.num":474,"shift.opened":1,"shift.open_date":1727225955} [10:20:27]process_action_free close_receipt [10:20:27]json_value_free [10:20:27]json_value_free done [10:20:27]process_json_proto returns [10:20:27]Send response to host [10:20:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":116195,"shift.num":474,"shift.opened":1,"shift.open_date":1727225955}}} [10:20:27]free response buf [10:20:27]execute_script done [10:20:27]execute_script returns [10:20:27]free content buf [10:20:27]Sock 7.Close socket [10:20:27]Sock 7.Thread stoped [10:20:31]OFD Sender: No OFD packet to send [10:20:36]OFD Sender: No OFD packet to send [10:20:41]OFD Sender: No OFD packet to send [10:20:46]OFD Sender: No OFD packet to send [10:20:51]OFD Sender: No OFD packet to send [10:20:56]OFD Sender: No OFD packet to send [10:21:01]OFD Sender: No OFD packet to send [10:21:06]OFD Sender: No OFD packet to send [10:21:11]OFD Sender: No OFD packet to send [10:21:16]OFD Sender: No OFD packet to send [10:21:21]OFD Sender: No OFD packet to send [10:21:26]OFD Sender: No OFD packet to send [10:21:31]OFD Sender: No OFD packet to send [10:21:36]OFD Sender: No OFD packet to send [10:21:41]OFD Sender: No OFD packet to send [10:21:46]OFD Sender: No OFD packet to send [10:21:51]OFD Sender: No OFD packet to send [10:21:56]OFD Sender: No OFD packet to send [10:22:01]OFD Sender: No OFD packet to send [10:22:06]OFD Sender: No OFD packet to send [10:22:11]OFD Sender: No OFD packet to send [10:22:16]OFD Sender: No OFD packet to send [10:22:21]OFD Sender: No OFD packet to send [10:22:26]OFD Sender: No OFD packet to send [10:22:31]OFD Sender: No OFD packet to send [10:22:36]OFD Sender: No OFD packet to send [10:22:41]OFD Sender: No OFD packet to send [10:22:46]OFD Sender: No OFD packet to send [10:22:51]OFD Sender: No OFD packet to send [10:22:56]OFD Sender: No OFD packet to send [10:23:01]OFD Sender: No OFD packet to send [10:23:06]OFD Sender: No OFD packet to send [10:23:11]OFD Sender: No OFD packet to send [10:23:16]OFD Sender: No OFD packet to send [10:23:21]OFD Sender: No OFD packet to send [10:23:26]OFD Sender: No OFD packet to send [10:23:31]OFD Sender: No OFD packet to send [10:23:36]OFD Sender: No OFD packet to send [10:23:41]OFD Sender: No OFD packet to send [10:23:46]OFD Sender: No OFD packet to send [10:23:51]OFD Sender: No OFD packet to send [10:23:56]OFD Sender: No OFD packet to send [10:24:01]OFD Sender: No OFD packet to send [10:24:06]OFD Sender: No OFD packet to send [10:24:11]OFD Sender: No OFD packet to send [10:24:16]OFD Sender: No OFD packet to send [10:24:21]OFD Sender: No OFD packet to send [10:24:26]OFD Sender: No OFD packet to send [10:24:31]OFD Sender: No OFD packet to send [10:24:36]OFD Sender: No OFD packet to send [10:24:41]OFD Sender: No OFD packet to send [10:24:46]OFD Sender: No OFD packet to send [10:24:51]OFD Sender: No OFD packet to send [10:24:56]OFD Sender: No OFD packet to send [10:25:01]OFD Sender: No OFD packet to send [10:25:06]OFD Sender: No OFD packet to send [10:25:12]OFD Sender: No OFD packet to send [10:25:17]OFD Sender: No OFD packet to send [10:25:22]OFD Sender: No OFD packet to send [10:25:27]OFD Sender: No OFD packet to send [10:25:32]OFD Sender: No OFD packet to send [10:25:37]OFD Sender: No OFD packet to send [10:25:42]OFD Sender: No OFD packet to send [10:25:47]OFD Sender: No OFD packet to send [10:25:52]OFD Sender: No OFD packet to send [10:25:57]OFD Sender: No OFD packet to send [10:26:02]OFD Sender: No OFD packet to send [10:26:07]OFD Sender: No OFD packet to send [10:26:12]OFD Sender: No OFD packet to send [10:26:17]OFD Sender: No OFD packet to send [10:26:20]accept exits with 9 [10:26:20]New connection [10:26:20]New thread 3067141476 created [10:26:20]Thread 3066998116 joined [10:26:20]Waiting for new connection... [10:26:20] Sock 9.Parse request [10:26:20]Sock 9.Check first char [10:26:20]Sock 9.First char is OK [10:26:20]request: POST /json_proto HTTP/1.0 [10:26:20]Method: POST [10:26:20]URL: /json_proto [10:26:20]Method is POST - this is cgi request [10:26:20]url: /json_proto [10:26:20]query_string will be loaded in cgi processing [10:26:20]execute_cgi json_proto POST (null) [10:26:20]execute_cgi path=json_proto method=POST [10:26:20]POST find Content-Length [10:26:20]Host: 172.17.41.136:8080 [10:26:20]Content-Length: 868 [10:26:20]Content-Type: application/json [10:26:20] [10:26:20]POST finish read [10:26:20]Found Content-Length = 868 [10:26:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)344371", "tax_sys" : 0, "items" : [ { "code": "48747059", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Legend Blue", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 194.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:26:20]execute_script... [10:26: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 : (3)344371", "tax_sys" : 0, "items" : [ { "code": "48747059", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Legend Blue", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 194.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:26:20]POST & json_proto [10:26:20]process_json_proto [10:26:20]json parsed OK: [10:26:20]protocol is kg_v1.0 [10:26:20]action value=close_receipt [10:26:20]process_action close_receipt [10:26:20]cmd_close_receipt [10:26:20]MH_GetDate [10:26:20]Write to MH i2c: F0 00 00 B6 02 A7 [10:26:20]Write i2c OK [10:26:20]MH_I2C_Read... [10:26:20]Read from MH i2c: F0 [10:26:20]MH_I2C_Read... [10:26:20]Read from MH i2c: F0 09 00 [10:26:20]MH_I2C_Read... [10:26:20]Read from MH i2c: F0 09 00 B6 02 00 4D E5 F3 66 1B D0 5A 64 E4 [10:26:20]GetLastDocTimeStamp 1727259624 [10:26:20]current date 1727259981 [10:26:20]FM_GetShiftState [10:26:20]SAM_PROTO_GetShiftState [10:26:20]wFMCommunicate request_size=4 [10:26:20]MH_SAM_APDU [10:26:20]CAPDU: 80 13 01 00 [10:26:20]Write to MH i2c: E2 08 00 B7 02 80 13 01 00 00 00 00 00 36 [10:26:20]Write i2c OK [10:26:20]MH_I2C_Read... [10:26:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:26:20]Read from MH i2c: E2 [10:26:20]MH_I2C_Read... [10:26:20]Read from MH i2c: E2 0E 00 [10:26:20]MH_I2C_Read... [10:26:20]Read from MH i2c: E2 0E 00 B7 02 00 09 00 01 63 60 F3 66 00 00 00 00 90 00 5E [10:26:20]RAPDU: 09 00 01 63 60 F3 66 00 00 00 00 90 00 [10:26:20]wFMCommunicate OK [10:26:20]SAM_PROTO_GetShiftState done [10:26:20]FM_GetShiftState done [10:26:20]opened in 1727225955 [10:26:20]opened+sec_in_day 1727312355 [10:26:20]quantity*price = 14400 [10:26:20]sum+1 = 14401 [10:26:20]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700000160358 Вода Легенда 1л 1.000 * 50.00 = 50.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 194.00 НСП 1% : 1.71 НДС 12% : 20.60 Наличными: 194.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 52 25.09.2024 10:26 Смена: 474 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 116196 ФПД: 136091782273283 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240925T102621&type=1&operation_type=1&fn_number=0000000000871830&fd_number=116196&fm=136091782273283&tin=02508201610067®Number=0000000000091831&sum=19400 0 [10:26:21]StoreToDocumentArchive [10:26:21]shift 474 fd 116196 [10:26:21]save to /storage/0474/doc_00116196 [10:26:21]save last doc name /storage/0474/doc_00116196 to /storage/kkm_last_doc_name [10:26:21]save OK [10:26:21]Clear old archive folders... [10:26:21]ProcessDocumentItem done err = 0, tmpTLVsize=372 [10:26:21]tlvbuf is 0191B240 [10:26:21]SAM_PROTO_ClearQueue [10:26:21]wFMCommunicate request_size=4 [10:26:21]MH_SAM_APDU [10:26:21]CAPDU: 80 09 00 00 [10:26:21]Write to MH i2c: E2 08 00 C4 02 80 09 00 00 00 00 00 00 38 [10:26:21]Write i2c OK [10:26:21]MH_I2C_Read... [10:26:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:26:21]Read from MH i2c: E2 [10:26:21]MH_I2C_Read... [10:26:21]Read from MH i2c: E2 03 00 [10:26:21]MH_I2C_Read... [10:26:21]Read from MH i2c: E2 03 00 C4 02 00 90 00 3A [10:26:21]RAPDU: 90 00 [10:26:21]wFMCommunicate OK [10:26:21]SAM_PROTO_ClearQueue done [10:26:21]KKMCreateOFDPacket [10:26:21]OFDProtocolAddRootSTLVToBuf [10:26:21]FM_MakeSignedData [10:26:21]FM_MakeSignedData [10:26:21]SAM_PROTO_SignData [10:26:21]wFMCommunicate request_size=4 [10:26:21]MH_SAM_APDU [10:26:21]CAPDU: 80 0D 01 02 [10:26:21]Write to MH i2c: E2 08 00 C5 02 80 0D 01 02 00 00 00 00 40 [10:26:21]Write i2c OK [10:26:21]MH_I2C_Read... [10:26:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:26:21]Read from MH i2c: E2 [10:26:21]MH_I2C_Read... [10:26:21]Read from MH i2c: E2 03 00 [10:26:21]MH_I2C_Read... [10:26:21]Read from MH i2c: E2 03 00 C5 02 00 90 00 3B [10:26:21]RAPDU: 90 00 [10:26:21]wFMCommunicate OK [10:26:21]wFMCommunicate request_size=255 [10:26:21]MH_SAM_APDU [10:26:21]CAPDU: 80 0D 02 02 FA 03 00 74 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 37 30 35 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 4C 65 67 65 6E 64 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 4B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AB 00 00 00 00 00 EE 03 0F 00 F2 03 [10:26:21]Write to MH i2c: E2 02 01 C6 02 80 0D 02 02 FA 00 03 00 74 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 37 30 35 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 4C 65 67 65 6E 64 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 4B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AB 00 00 00 00 00 EE 03 0F 00 F2 03 00 00 CA [10:26:21]Write i2c OK [10:26:21]MH_I2C_Read... [10:26:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:26:21]Read from MH i2c: E2 [10:26:21]MH_I2C_Read... [10:26:21]Read from MH i2c: E2 03 00 [10:26:21]MH_I2C_Read... [10:26:21]Read from MH i2c: E2 03 00 C6 02 00 90 00 3C [10:26:21]RAPDU: 90 00 [10:26:21]wFMCommunicate OK [10:26:21]wFMCommunicate request_size=131 [10:26:21]MH_SAM_APDU [10:26:21]CAPDU: 80 0D 02 02 7E 01 00 01 F3 03 06 00 0C 08 00 00 00 00 07 04 06 00 C8 4B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 4D E5 F3 66 0E 04 04 00 DA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 E4 C5 01 00 35 04 06 00 7B C6 56 56 D9 03 [10:26:21]Write to MH i2c: E2 86 00 C7 02 80 0D 02 02 7E 00 01 00 01 F3 03 06 00 0C 08 00 00 00 00 07 04 06 00 C8 4B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 4D E5 F3 66 0E 04 04 00 DA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 E4 C5 01 00 35 04 06 00 7B C6 56 56 D9 03 00 00 A3 [10:26:21]Write i2c OK [10:26:21]MH_I2C_Read... [10:26:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:26:21]Read from MH i2c: E2 [10:26:21]MH_I2C_Read... [10:26:21]Read from MH i2c: E2 03 00 [10:26:21]MH_I2C_Read... [10:26:21]Read from MH i2c: E2 03 00 C7 02 00 90 00 3D [10:26:21]RAPDU: 90 00 [10:26:21]wFMCommunicate OK [10:26:21]wFMCommunicate request_size=4 [10:26:21]MH_SAM_APDU [10:26:21]CAPDU: 80 0D 03 02 [10:26:21]Write to MH i2c: E2 08 00 C8 02 80 0D 03 02 00 00 00 00 45 [10:26:21]Write i2c OK [10:26:21]MH_I2C_Read... [10:26:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:26:21]Read from MH i2c: E2 [10:26:21]MH_I2C_Read... [10:26:21]Read from MH i2c: E2 0B 00 [10:26:21]MH_I2C_Read... [10:26:21]Read from MH i2c: E2 0B 00 C8 02 00 2E 2C 73 54 60 2A 80 9D 90 00 0E [10:26:21]RAPDU: 2E 2C 73 54 60 2A 80 9D 90 00 [10:26:21]wFMCommunicate OK [10:26:21]SAM_PROTO_SignData done [10:26:21]FM_MakeSignedData done [10:26:21]CreateOFDProtocolMessage [10:26:21]wFMCommunicate request_size=4 [10:26:21]MH_SAM_APDU [10:26:21]CAPDU: 80 11 00 00 [10:26:21]Write to MH i2c: E2 08 00 C9 02 80 11 00 00 00 00 00 00 45 [10:26:21]Write i2c OK [10:26:21]MH_I2C_Read... [10:26:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:26:21]Read from MH i2c: E2 [10:26:21]MH_I2C_Read... [10:26:21]Read from MH i2c: E2 17 00 [10:26:21]MH_I2C_Read... [10:26:21]Read from MH i2c: E2 17 00 C9 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 93 [10:26:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [10:26:21]wFMCommunicate OK [10:26:21]CreateOFDProtocolMessage done [10:26:21]OFDSenderStorePacket 116196 [10:26:21]StoreOFDPacket docnum=116196 [10:26:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 88 01 00 00 57 46 80 01 56 6C 5A 03 01 00 03 00 74 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 37 30 35 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 4C 65 67 65 6E 64 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 4B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AB 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0C 08 00 00 00 00 07 04 06 00 C8 4B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 4D E5 F3 66 0E 04 04 00 DA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 E4 C5 01 00 35 04 06 00 7B C6 56 56 D9 03 2E 2C 73 54 60 2A 80 9D [10:26:21]CheckFolder [10:26:21]dirname=/storage/ofd_packets [10:26:21]CheckFolder done [10:26:21]ProducePacketName [10:26:21]name=ofd_packets/00116196 [10:26:21]NVStorageSaveData ofd_packets/00116196 [10:26:21]File name is /storage/ofd_packets/00116196 [10:26:21]Write 422 bytes [10:26:21]NVStorageSaveData done [10:26:21]OFDSenderStorePacket done [10:26:21]KKMCreateOFDPacket done [10:26:21]NVStorageSaveData kkm_last_timestamp [10:26:21]File name is /storage/kkm_last_timestamp [10:26:21]Write 4 bytes [10:26:21]NVStorageSaveData done [10:26:21]ExternCall_PrintAddStr [10:26:21]wPrintStart [10:26:21]Write to MH i2c: 01 00 00 CA 02 CC [10:26:21]Write i2c OK [10:26:21]MH_I2C_Read... [10:26:21]Read from MH i2c: 01 [10:26:21]MH_I2C_Read... [10:26:21]Read from MH i2c: 01 07 00 [10:26:21]MH_I2C_Read... [10:26:21]Read from MH i2c: 01 07 00 CA 02 00 00 00 00 00 FF 0F E1 [10:26:21]RasterBufferAndPrint [10:26:21]line Счет N : (3)344371 [10:26:21]line ИНН: 02508201610067 [10:26:21]line Контрольно-Кассовый Чек [10:26:21]line ПРОДАЖА [10:26:21]line Товар: 48747059 [10:26:21]line Сигареты Winston Legend Blue [10:26:21]line 1.000 * 144.00 [10:26:21]line = 144.00 [10:26:21]line НДС 12% НСП 1% [10:26:21]line > о реализуемом товаре [10:26:21]line Товар: 4700000160358 [10:26:21]line Вода Легенда 1л [10:26:21]line 1.000 * 50.00 [10:26:21]line = 50.00 [10:26:21]line НДС 12% НСП 1% [10:26:21]line > о реализуемом товаре [10:26:21]line ИТОГО: 194.00 [10:26:21]line НСП 1% : 1.71 [10:26:21]line НДС 12% : 20.60 [10:26:21]line Наличными: 194.00 [10:26:21]line Безнал.: 0.00 [10:26:21]line Место: АЗС № 90 "Партнер Нефть" [10:26:21]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [10:26:21]line СНО: Общий режим [10:26:21]line Чек 52 25.09.2024 10:26 [10:26:21]line Смена: 474 ФФД: 1.0 [10:26:21]line ЗНМ: 0300000120 [10:26:21]line РНМ: 0000000000091831 [10:26:21]line Версия ККМ: 001 [10:26:21]line ФМ: 0000000000871830 [10:26:21]line ФД: 116196 [10:26:21]line ФПД: 136091782273283 [10:26:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240925T102621&type=1&operation_type=1&fn_number=0000000000871830&fd_number=116196&fm=136091782273283&tin=02508201610067®Number=0000000000091831&sum=19400 [10:26:22]line 0 [10:26:22]OFD Sender: Processing packet 116196 [packets to send 482, broken 481] [10:26:22]ProducePacketName [10:26:22]name=ofd_packets/00116196 [10:26:22]OFD Sender: To server: pG, [10:26:22]CommunicateWithHost lk.salyk.kg:30040 [10:26:22]ConnectInit lk.salyk.kg [10:26:22]written 0, free lines is 4095 [10:26:22]Connected sock=10 [10:26:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 88 01 00 00 57 46 80 01 56 6C 5A 03 01 00 03 00 74 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 37 30 35 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 4C 65 67 65 6E 64 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 4B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AB 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0C 08 00 00 00 00 07 04 06 00 C8 4B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 4D E5 F3 66 0E 04 04 00 DA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 E4 C5 01 00 35 04 06 00 7B C6 56 56 D9 03 2E 2C 73 54 60 2A 80 9D [10:26:22]Write to MH i2c: 01 00 00 F8 02 FA [10:26:22]Write i2c OK [10:26:22]MH_I2C_Read... [10:26:22]Read from MH i2c: 01 [10:26:22]MH_I2C_Read... [10:26:22]Read from MH i2c: 01 07 00 [10:26:22]MH_I2C_Read... [10:26:22]Read from MH i2c: 01 07 00 F8 02 00 00 00 00 00 EC 0B F8 [10:26:22]RasterBufferAndPrint [10:26:22]line [10:26:22]line [10:26:22]line [10:26:22]line [10:26:22]line [10:26:22]written 0, free lines is 3056 [10:26:22]MH_Cut [10:26:22]Write to MH i2c: D1 01 00 FF 02 01 D3 [10:26:22]Write i2c OK [10:26:22]MH_I2C_Read... [10:26:22]Read from MH i2c: D1 [10:26:22]MH_I2C_Read... [10:26:22]Read from MH i2c: D1 01 00 [10:26:22]MH_I2C_Read... [10:26:22]Read from MH i2c: D1 01 00 FF 02 00 D2 [10:26:22]Write to MH i2c: 01 00 00 00 03 03 [10:26:22]Write i2c OK [10:26:22]MH_I2C_Read... [10:26:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 84 DB 47 00 0A 97 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 E4 C5 01 00 F4 03 04 00 89 8A F3 66 B6 04 01 00 00 A0 5A 4D 2B 1A 1F 03 BB [10:26:22]CommunicateWithHost err = 0 [10:26:22]CheckOFDResponse [10:26:22]1017 (14) - 77093643461234 [10:26:22]1041 (16) - 0000000000871830 [10:26:22]1040 (4) - 116196 [10:26:22]1012 (4) - 25.09.2024 03:59 [10:26:22]1206 (1) - 0 [10:26:22]OFD Sender: Remove packet 116196 [10:26:22]ProducePacketName [10:26:22]name=ofd_packets/00116196 [10:26:22]NVStorageDeleteData [10:26:23]OFD Sender: No OFD packet to send [10:26:24]*** Cut start [10:26:24]*** Partial cut [10:26:24]*** CUTSNS_PIN = 1 [10:26:24]*** CUTSNS_PIN = 0 [10:26:24]*** Brake cut motor [10:26:24]Read from MH i2c: 01 [10:26:24]MH_I2C_Read... [10:26:24]*** Stop cut motor [10:26:24]*** Cut end [10:26:24]Read from MH i2c: 01 07 00 [10:26:24]MH_I2C_Read... [10:26:24]Read from MH i2c: 01 07 00 00 03 00 00 00 00 00 FF 0F 18 [10:26:24]process_action close_receipt done [10:26:24]requested_data is exist [10:26:24]produce_requested_data [10:26:24]requested_item fm.sn is exist - process it [10:26:24]wFMCommunicate request_size=4 [10:26:24]MH_SAM_APDU [10:26:24]CAPDU: 80 11 00 00 [10:26:24]Write to MH i2c: E2 08 00 01 03 80 11 00 00 00 00 00 00 7E [10:26:24]Write i2c OK [10:26:24]MH_I2C_Read... [10:26:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:26:24]Read from MH i2c: E2 [10:26:24]MH_I2C_Read... [10:26:24]Read from MH i2c: E2 17 00 [10:26:24]MH_I2C_Read... [10:26:24]Read from MH i2c: E2 17 00 01 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 CC [10:26:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [10:26:24]wFMCommunicate OK [10:26:24]requested_item fd.num is exist - process it [10:26:24]SAM_PROTO_GetFieldsCounters [10:26:24]wFMCommunicate request_size=4 [10:26:24]MH_SAM_APDU [10:26:24]CAPDU: 80 13 00 00 [10:26:24]Write to MH i2c: E2 08 00 02 03 80 13 00 00 00 00 00 00 81 [10:26:24]Write i2c OK [10:26:24]MH_I2C_Read... [10:26:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:26:25]Read from MH i2c: E2 [10:26:25]MH_I2C_Read... [10:26:25]Read from MH i2c: E2 62 00 [10:26:25]MH_I2C_Read... [10:26:25]Read from MH i2c: E2 62 00 02 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 E4 C5 01 00 0E 04 04 00 DA 01 00 00 12 04 04 00 34 00 00 00 5E 04 04 00 34 00 00 00 57 04 04 00 35 00 00 00 19 04 04 00 00 00 00 00 90 00 BB [10:26:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 E4 C5 01 00 0E 04 04 00 DA 01 00 00 12 04 04 00 34 00 00 00 5E 04 04 00 34 00 00 00 57 04 04 00 35 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:26:25]wFMCommunicate OK [10:26:25]SAM_PROTO_GetFieldsCounters done [10:26:25]requested_item shift.num is exist - process it [10:26:25]requested_item shift.opened is exist - process it [10:26:25]req_shift_opened [10:26:25]FM_GetShiftState [10:26:25]SAM_PROTO_GetShiftState [10:26:25]wFMCommunicate request_size=4 [10:26:25]MH_SAM_APDU [10:26:25]CAPDU: 80 13 01 00 [10:26:25]Write to MH i2c: E2 08 00 03 03 80 13 01 00 00 00 00 00 83 [10:26:25]Write i2c OK [10:26:25]MH_I2C_Read... [10:26:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:26:25]Read from MH i2c: E2 [10:26:25]MH_I2C_Read... [10:26:25]Read from MH i2c: E2 0E 00 [10:26:25]MH_I2C_Read... [10:26:25]Read from MH i2c: E2 0E 00 03 03 00 09 00 01 63 60 F3 66 00 00 00 00 90 00 AB [10:26:25]RAPDU: 09 00 01 63 60 F3 66 00 00 00 00 90 00 [10:26:25]wFMCommunicate OK [10:26:25]SAM_PROTO_GetShiftState done [10:26:25]FM_GetShiftState done [10:26:25]req_shift_opened done [10:26:25]requested_item shift.open_date is exist - process it [10:26:25]req_shift_open_date [10:26:25]req_shift_open_date done [10:26:25]produce_requested_data done [10:26:25]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":116196,"shift.num":474,"shift.opened":1,"shift.open_date":1727225955} [10:26:25]process_action_free close_receipt [10:26:25]json_value_free [10:26:25]json_value_free done [10:26:25]process_json_proto returns [10:26:25]Send response to host [10:26:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":116196,"shift.num":474,"shift.opened":1,"shift.open_date":1727225955}}} [10:26:25]free response buf [10:26:25]execute_script done [10:26:25]execute_script returns [10:26:25]free content buf [10:26:25]Sock 9.Close socket [10:26:25]Sock 9.Thread stoped [10:26:28]OFD Sender: No OFD packet to send [10:26:33]OFD Sender: No OFD packet to send [10:26:38]OFD Sender: No OFD packet to send [10:26:43]OFD Sender: No OFD packet to send [10:26:48]OFD Sender: No OFD packet to send [10:26:53]OFD Sender: No OFD packet to send [10:26:58]OFD Sender: No OFD packet to send [10:27:03]OFD Sender: No OFD packet to send [10:27:08]OFD Sender: No OFD packet to send [10:27:13]OFD Sender: No OFD packet to send [10:27:18]OFD Sender: No OFD packet to send [10:27:23]OFD Sender: No OFD packet to send [10:27:28]OFD Sender: No OFD packet to send [10:27:33]OFD Sender: No OFD packet to send [10:27:38]OFD Sender: No OFD packet to send [10:27:43]OFD Sender: No OFD packet to send [10:27:48]OFD Sender: No OFD packet to send [10:27:53]OFD Sender: No OFD packet to send [10:27:58]OFD Sender: No OFD packet to send [10:28:03]OFD Sender: No OFD packet to send [10:28:08]OFD Sender: No OFD packet to send [10:28:13]OFD Sender: No OFD packet to send [10:28:18]OFD Sender: No OFD packet to send [10:28:23]OFD Sender: No OFD packet to send [10:28:28]OFD Sender: No OFD packet to send [10:28:33]OFD Sender: No OFD packet to send [10:28:38]OFD Sender: No OFD packet to send [10:28:43]OFD Sender: No OFD packet to send [10:28:48]OFD Sender: No OFD packet to send [10:28:53]OFD Sender: No OFD packet to send [10:28:58]OFD Sender: No OFD packet to send [10:29:03]OFD Sender: No OFD packet to send [10:29:08]OFD Sender: No OFD packet to send [10:29:13]OFD Sender: No OFD packet to send [10:29:18]OFD Sender: No OFD packet to send [10:29:23]OFD Sender: No OFD packet to send [10:29:28]OFD Sender: No OFD packet to send [10:29:33]OFD Sender: No OFD packet to send [10:29:38]OFD Sender: No OFD packet to send [10:29:43]OFD Sender: No OFD packet to send [10:29:48]OFD Sender: No OFD packet to send [10:29:53]OFD Sender: No OFD packet to send [10:29:58]OFD Sender: No OFD packet to send [10:30:03]OFD Sender: No OFD packet to send [10:30:08]OFD Sender: No OFD packet to send [10:30:13]OFD Sender: No OFD packet to send [10:30:18]OFD Sender: No OFD packet to send [10:30:23]OFD Sender: No OFD packet to send [10:30:28]OFD Sender: No OFD packet to send [10:30:33]OFD Sender: No OFD packet to send [10:30:38]OFD Sender: No OFD packet to send [10:30:43]OFD Sender: No OFD packet to send [10:30:49]OFD Sender: No OFD packet to send [10:30:54]OFD Sender: No OFD packet to send [10:30:59]OFD Sender: No OFD packet to send [10:31:04]OFD Sender: No OFD packet to send [10:31:09]OFD Sender: No OFD packet to send [10:31:14]OFD Sender: No OFD packet to send [10:31:19]OFD Sender: No OFD packet to send [10:31:24]OFD Sender: No OFD packet to send [10:31:29]OFD Sender: No OFD packet to send [10:31:34]OFD Sender: No OFD packet to send [10:31:39]OFD Sender: No OFD packet to send [10:31:44]OFD Sender: No OFD packet to send [10:31:49]OFD Sender: No OFD packet to send [10:31:54]OFD Sender: No OFD packet to send [10:31:59]OFD Sender: No OFD packet to send [10:32:04]OFD Sender: No OFD packet to send [10:32:09]OFD Sender: No OFD packet to send [10:32:14]OFD Sender: No OFD packet to send [10:32:19]OFD Sender: No OFD packet to send [10:32:24]OFD Sender: No OFD packet to send [10:32:29]OFD Sender: No OFD packet to send [10:32:34]OFD Sender: No OFD packet to send [10:32:39]OFD Sender: No OFD packet to send [10:32:44]OFD Sender: No OFD packet to send [10:32:49]OFD Sender: No OFD packet to send [10:32:54]OFD Sender: No OFD packet to send [10:32:59]OFD Sender: No OFD packet to send [10:33:04]OFD Sender: No OFD packet to send [10:33:09]OFD Sender: No OFD packet to send [10:33:14]OFD Sender: No OFD packet to send [10:33:19]OFD Sender: No OFD packet to send [10:33:24]OFD Sender: No OFD packet to send [10:33:29]OFD Sender: No OFD packet to send [10:33:34]OFD Sender: No OFD packet to send [10:33:39]OFD Sender: No OFD packet to send [10:33:44]OFD Sender: No OFD packet to send [10:33:49]OFD Sender: No OFD packet to send [10:33:54]OFD Sender: No OFD packet to send [10:33:59]OFD Sender: No OFD packet to send [10:34:04]OFD Sender: No OFD packet to send [10:34:09]OFD Sender: No OFD packet to send [10:34:14]OFD Sender: No OFD packet to send [10:34:19]OFD Sender: No OFD packet to send [10:34:24]OFD Sender: No OFD packet to send [10:34:29]OFD Sender: No OFD packet to send [10:34:34]OFD Sender: No OFD packet to send [10:34:39]OFD Sender: No OFD packet to send [10:34:44]OFD Sender: No OFD packet to send [10:34:49]OFD Sender: No OFD packet to send [10:34:54]OFD Sender: No OFD packet to send [10:34:59]OFD Sender: No OFD packet to send [10:35:04]OFD Sender: No OFD packet to send [10:35:09]OFD Sender: No OFD packet to send [10:35:14]OFD Sender: No OFD packet to send [10:35:19]OFD Sender: No OFD packet to send [10:35:24]OFD Sender: No OFD packet to send [10:35:29]OFD Sender: No OFD packet to send [10:35:34]OFD Sender: No OFD packet to send [10:35:39]OFD Sender: No OFD packet to send [10:35:44]OFD Sender: No OFD packet to send [10:35:49]OFD Sender: No OFD packet to send [10:35:54]OFD Sender: No OFD packet to send [10:35:59]OFD Sender: No OFD packet to send [10:36:04]OFD Sender: No OFD packet to send [10:36:09]OFD Sender: No OFD packet to send [10:36:14]OFD Sender: No OFD packet to send [10:36:19]OFD Sender: No OFD packet to send [10:36:24]OFD Sender: No OFD packet to send [10:36:29]OFD Sender: No OFD packet to send [10:36:34]OFD Sender: No OFD packet to send [10:36:39]OFD Sender: No OFD packet to send [10:36:44]OFD Sender: No OFD packet to send [10:36:49]OFD Sender: No OFD packet to send [10:36:54]OFD Sender: No OFD packet to send [10:36:59]OFD Sender: No OFD packet to send [10:37:04]OFD Sender: No OFD packet to send [10:37:09]OFD Sender: No OFD packet to send [10:37:14]OFD Sender: No OFD packet to send [10:37:19]OFD Sender: No OFD packet to send [10:37:24]OFD Sender: No OFD packet to send [10:37:29]OFD Sender: No OFD packet to send [10:37:34]OFD Sender: No OFD packet to send [10:37:39]OFD Sender: No OFD packet to send [10:37:44]OFD Sender: No OFD packet to send [10:37:50]OFD Sender: No OFD packet to send [10:37:55]OFD Sender: No OFD packet to send [10:38:00]OFD Sender: No OFD packet to send [10:38:05]OFD Sender: No OFD packet to send [10:38:10]OFD Sender: No OFD packet to send [10:38:15]OFD Sender: No OFD packet to send [10:38:20]OFD Sender: No OFD packet to send [10:38:25]OFD Sender: No OFD packet to send [10:38:30]OFD Sender: No OFD packet to send [10:38:35]OFD Sender: No OFD packet to send [10:38:40]OFD Sender: No OFD packet to send [10:38:45]OFD Sender: No OFD packet to send [10:38:50]OFD Sender: No OFD packet to send [10:38:55]OFD Sender: No OFD packet to send [10:39:00]OFD Sender: No OFD packet to send [10:39:05]OFD Sender: No OFD packet to send [10:39:10]OFD Sender: No OFD packet to send [10:39:15]OFD Sender: No OFD packet to send [10:39:20]OFD Sender: No OFD packet to send [10:39:25]OFD Sender: No OFD packet to send [10:39:30]OFD Sender: No OFD packet to send [10:39:35]OFD Sender: No OFD packet to send [10:39:40]OFD Sender: No OFD packet to send [10:39:45]OFD Sender: No OFD packet to send [10:39:50]OFD Sender: No OFD packet to send [10:39:55]OFD Sender: No OFD packet to send [10:40:00]OFD Sender: No OFD packet to send [10:40:05]OFD Sender: No OFD packet to send [10:40:10]OFD Sender: No OFD packet to send [10:40:15]OFD Sender: No OFD packet to send [10:40:20]OFD Sender: No OFD packet to send [10:40:25]OFD Sender: No OFD packet to send [10:40:30]OFD Sender: No OFD packet to send [10:40:35]OFD Sender: No OFD packet to send [10:40:40]OFD Sender: No OFD packet to send [10:40:45]OFD Sender: No OFD packet to send [10:40:50]OFD Sender: No OFD packet to send [10:40:55]OFD Sender: No OFD packet to send [10:41:00]OFD Sender: No OFD packet to send [10:41:05]OFD Sender: No OFD packet to send [10:41:10]OFD Sender: No OFD packet to send [10:41:15]OFD Sender: No OFD packet to send [10:41:20]OFD Sender: No OFD packet to send [10:41:25]OFD Sender: No OFD packet to send [10:41:30]OFD Sender: No OFD packet to send [10:41:35]OFD Sender: No OFD packet to send [10:41:40]OFD Sender: No OFD packet to send [10:41:45]OFD Sender: No OFD packet to send [10:41:50]OFD Sender: No OFD packet to send [10:41:55]OFD Sender: No OFD packet to send [10:42:00]OFD Sender: No OFD packet to send [10:42:05]OFD Sender: No OFD packet to send [10:42:10]OFD Sender: No OFD packet to send [10:42:15]OFD Sender: No OFD packet to send [10:42:20]OFD Sender: No OFD packet to send [10:42:25]OFD Sender: No OFD packet to send [10:42:30]OFD Sender: No OFD packet to send [10:42:35]OFD Sender: No OFD packet to send [10:42:40]OFD Sender: No OFD packet to send [10:42:45]OFD Sender: No OFD packet to send [10:42:50]OFD Sender: No OFD packet to send [10:42:55]OFD Sender: No OFD packet to send [10:42:56]accept exits with 7 [10:42:56]New connection [10:42:56]New thread 3066998116 created [10:42:56]Thread 3067141476 joined [10:42:56]Waiting for new connection... [10:42:56] Sock 7.Parse request [10:42:56]Sock 7.Check first char [10:42:56]Sock 7.First char is OK [10:42:56]request: POST /json_proto HTTP/1.0 [10:42:56]Method: POST [10:42:56]URL: /json_proto [10:42:56]Method is POST - this is cgi request [10:42:56]url: /json_proto [10:42:56]query_string will be loaded in cgi processing [10:42:56]execute_cgi json_proto POST (null) [10:42:56]execute_cgi path=json_proto method=POST [10:42:56]POST find Content-Length [10:42:56]Host: 172.17.41.136:8080 [10:42:56]Content-Length: 754 [10:42:56]Content-Type: application/json [10:42:56] [10:42:56]POST finish read [10:42:56]Found Content-Length = 754 [10:42:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)24619153", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 125.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30073862", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:42:56]execute_script... [10:42: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)24619153", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 125.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30073862", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:42:56]POST & json_proto [10:42:56]process_json_proto [10:42:56]json parsed OK: [10:42:56]protocol is kg_v1.0 [10:42:56]action value=close_receipt [10:42:56]process_action close_receipt [10:42:56]cmd_close_receipt [10:42:56]MH_GetDate [10:42:56]Write to MH i2c: F0 00 00 04 03 F6 [10:42:56]Write i2c OK [10:42:56]MH_I2C_Read... [10:42:56]Read from MH i2c: F0 [10:42:56]MH_I2C_Read... [10:42:56]Read from MH i2c: F0 09 00 [10:42:56]MH_I2C_Read... [10:42:56]Read from MH i2c: F0 09 00 04 03 00 31 E9 F3 66 1B D0 5A 64 1B [10:42:56]GetLastDocTimeStamp 1727259981 [10:42:56]current date 1727260977 [10:42:56]FM_GetShiftState [10:42:56]SAM_PROTO_GetShiftState [10:42:56]wFMCommunicate request_size=4 [10:42:56]MH_SAM_APDU [10:42:56]CAPDU: 80 13 01 00 [10:42:56]Write to MH i2c: E2 08 00 05 03 80 13 01 00 00 00 00 00 85 [10:42:56]Write i2c OK [10:42:56]MH_I2C_Read... [10:42:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:42:56]Read from MH i2c: E2 [10:42:56]MH_I2C_Read... [10:42:56]Read from MH i2c: E2 0E 00 [10:42:56]MH_I2C_Read... [10:42:56]Read from MH i2c: E2 0E 00 05 03 00 09 00 01 63 60 F3 66 00 00 00 00 90 00 AD [10:42:56]RAPDU: 09 00 01 63 60 F3 66 00 00 00 00 90 00 [10:42:56]wFMCommunicate OK [10:42:56]SAM_PROTO_GetShiftState done [10:42:56]FM_GetShiftState done [10:42:56]opened in 1727225955 [10:42:56]opened+sec_in_day 1727312355 [10:42:56]quantity*price = 0 [10:42:56]sum+1 = 1 [10:42:56]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 53 25.09.2024 10:42 Смена: 474 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 Талоны: ТК ГПНА Online 30073862 ФМ: 0000000000871830 ФД: 116197 ФПД: 233660178796944 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240925T104257&type=1&operation_type=1&fn_number=0000000000871830&fd_number=116197&fm=233660178796944&tin=02508201610067®Number=0000000000091831&sum=0 [10:42:57]StoreToDocumentArchive [10:42:57]shift 474 fd 116197 [10:42:57]save to /storage/0474/doc_00116197 [10:42:57]save last doc name /storage/0474/doc_00116197 to /storage/kkm_last_doc_name [10:42:57]save OK [10:42:57]Clear old archive folders... [10:42:57]ProcessDocumentItem done err = 0, tmpTLVsize=248 [10:42:57]tlvbuf is 018BF380 [10:42:57]SAM_PROTO_ClearQueue [10:42:57]wFMCommunicate request_size=4 [10:42:57]MH_SAM_APDU [10:42:57]CAPDU: 80 09 00 00 [10:42:57]Write to MH i2c: E2 08 00 12 03 80 09 00 00 00 00 00 00 87 [10:42:57]Write i2c OK [10:42:57]MH_I2C_Read... [10:42:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:42:57]Read from MH i2c: E2 [10:42:57]MH_I2C_Read... [10:42:57]Read from MH i2c: E2 03 00 [10:42:57]MH_I2C_Read... [10:42:57]Read from MH i2c: E2 03 00 12 03 00 90 00 89 [10:42:57]RAPDU: 90 00 [10:42:57]wFMCommunicate OK [10:42:57]SAM_PROTO_ClearQueue done [10:42:57]KKMCreateOFDPacket [10:42:57]OFDProtocolAddRootSTLVToBuf [10:42:57]FM_MakeSignedData [10:42:57]FM_MakeSignedData [10:42:57]SAM_PROTO_SignData [10:42:57]wFMCommunicate request_size=4 [10:42:57]MH_SAM_APDU [10:42:57]CAPDU: 80 0D 01 02 [10:42:57]Write to MH i2c: E2 08 00 13 03 80 0D 01 02 00 00 00 00 8F [10:42:57]Write i2c OK [10:42:57]MH_I2C_Read... [10:42:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:42:57]Read from MH i2c: E2 [10:42:57]MH_I2C_Read... [10:42:57]Read from MH i2c: E2 03 00 [10:42:57]MH_I2C_Read... [10:42:57]Read from MH i2c: E2 03 00 13 03 00 90 00 8A [10:42:57]RAPDU: 90 00 [10:42:57]wFMCommunicate OK [10:42:57]wFMCommunicate request_size=255 [10:42:57]MH_SAM_APDU [10:42:57]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 48 E8 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 00 00 00 F4 03 04 00 31 E9 F3 66 0E 04 04 00 DA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 E5 C5 01 00 35 04 06 00 D4 83 3F F4 [10:42:57]Write to MH i2c: E2 02 01 14 03 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 48 E8 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 00 00 00 F4 03 04 00 31 E9 F3 66 0E 04 04 00 DA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 E5 C5 01 00 35 04 06 00 D4 83 3F F4 00 00 CD [10:42:57]Write i2c OK [10:42:57]MH_I2C_Read... [10:42:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:42:58]Read from MH i2c: E2 [10:42:58]MH_I2C_Read... [10:42:58]Read from MH i2c: E2 03 00 [10:42:58]MH_I2C_Read... [10:42:58]Read from MH i2c: E2 03 00 14 03 00 90 00 8B [10:42:58]RAPDU: 90 00 [10:42:58]wFMCommunicate OK [10:42:58]wFMCommunicate request_size=7 [10:42:58]MH_SAM_APDU [10:42:58]CAPDU: 80 0D 02 02 02 91 90 [10:42:58]Write to MH i2c: E2 0A 00 15 03 80 0D 02 02 02 00 91 90 00 00 B7 [10:42:58]Write i2c OK [10:42:58]MH_I2C_Read... [10:42:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:42:58]Read from MH i2c: E2 [10:42:58]MH_I2C_Read... [10:42:58]Read from MH i2c: E2 03 00 [10:42:58]MH_I2C_Read... [10:42:58]Read from MH i2c: E2 03 00 15 03 00 90 00 8C [10:42:58]RAPDU: 90 00 [10:42:58]wFMCommunicate OK [10:42:58]wFMCommunicate request_size=4 [10:42:58]MH_SAM_APDU [10:42:58]CAPDU: 80 0D 03 02 [10:42:58]Write to MH i2c: E2 08 00 16 03 80 0D 03 02 00 00 00 00 94 [10:42:58]Write i2c OK [10:42:58]MH_I2C_Read... [10:42:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:42:58]Read from MH i2c: E2 [10:42:58]MH_I2C_Read... [10:42:58]Read from MH i2c: E2 0B 00 [10:42:58]MH_I2C_Read... [10:42:58]Read from MH i2c: E2 0B 00 16 03 00 E2 18 13 19 BE 02 2E 6F 90 00 18 [10:42:58]RAPDU: E2 18 13 19 BE 02 2E 6F 90 00 [10:42:58]wFMCommunicate OK [10:42:58]SAM_PROTO_SignData done [10:42:58]FM_MakeSignedData done [10:42:58]CreateOFDProtocolMessage [10:42:58]wFMCommunicate request_size=4 [10:42:58]MH_SAM_APDU [10:42:58]CAPDU: 80 11 00 00 [10:42:58]Write to MH i2c: E2 08 00 17 03 80 11 00 00 00 00 00 00 94 [10:42:58]Write i2c OK [10:42:58]MH_I2C_Read... [10:42:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:42:58]Read from MH i2c: E2 [10:42:58]MH_I2C_Read... [10:42:58]Read from MH i2c: E2 17 00 [10:42:58]MH_I2C_Read... [10:42:58]Read from MH i2c: E2 17 00 17 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 E2 [10:42:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [10:42:58]wFMCommunicate OK [10:42:58]CreateOFDProtocolMessage done [10:42:58]OFDSenderStorePacket 116197 [10:42:58]StoreOFDPacket docnum=116197 [10:42:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0C 01 00 00 93 AA 04 01 B0 51 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 48 E8 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 00 00 00 F4 03 04 00 31 E9 F3 66 0E 04 04 00 DA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 E5 C5 01 00 35 04 06 00 D4 83 3F F4 91 90 E2 18 13 19 BE 02 2E 6F [10:42:58]CheckFolder [10:42:58]dirname=/storage/ofd_packets [10:42:58]CheckFolder done [10:42:58]ProducePacketName [10:42:58]name=ofd_packets/00116197 [10:42:58]NVStorageSaveData ofd_packets/00116197 [10:42:58]File name is /storage/ofd_packets/00116197 [10:42:58]Write 298 bytes [10:42:58]NVStorageSaveData done [10:42:58]OFDSenderStorePacket done [10:42:58]KKMCreateOFDPacket done [10:42:58]NVStorageSaveData kkm_last_timestamp [10:42:58]File name is /storage/kkm_last_timestamp [10:42:58]Write 4 bytes [10:42:58]NVStorageSaveData done [10:42:58]ExternCall_PrintAddStr [10:42:58]wPrintStart [10:42:58]Write to MH i2c: 01 00 00 18 03 1B [10:42:58]Write i2c OK [10:42:58]MH_I2C_Read... [10:42:58]Read from MH i2c: 01 [10:42:58]MH_I2C_Read... [10:42:58]Read from MH i2c: 01 07 00 [10:42:58]MH_I2C_Read... [10:42:58]Read from MH i2c: 01 07 00 18 03 00 00 00 00 00 FF 0F 30 [10:42:58]RasterBufferAndPrint [10:42:58]line Счет N : (1)24619153 [10:42:58]line ИНН: 02508201610067 [10:42:58]line Контрольно-Кассовый Чек [10:42:58]line ПРОДАЖА [10:42:58]line ТРК (МРК, ГНК) : 11 [10:42:58]line Товар: 2710194210 [10:42:58]line ДТ-К-5 [10:42:58]line 125.000 * 0.00 [10:42:58]line = 0.00 [10:42:58]line НДС 12% НСП 1% [10:42:58]line > о реализуемом товаре [10:42:58]line ИТОГО: 0.00 [10:42:58]line НСП 1% : 0.00 [10:42:58]line НДС 12% : 0.00 [10:42:58]line Наличными: 0.00 [10:42:58]line Безнал.: 0.00 [10:42:58]line Место: АЗС № 90 "Партнер Нефть" [10:42:58]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [10:42:58]line СНО: Общий режим [10:42:58]line Чек 53 25.09.2024 10:42 [10:42:58]line Смена: 474 ФФД: 1.0 [10:42:58]line ЗНМ: 0300000120 [10:42:58]line РНМ: 0000000000091831 [10:42:58]line Версия ККМ: 001 [10:42:58]line Талоны: ТК ГПНА Online [10:42:58]line 30073862 [10:42:58]line ФМ: 0000000000871830 [10:42:58]line ФД: 116197 [10:42:58]line ФПД: 233660178796944 [10:42:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240925T104257&type=1&operation_type=1&fn_number=0000000000871830&fd_number=116197&fm=233660178796944&tin=02508201610067®Number=0000000000091831&sum=0 [10:42:58]written 0, free lines is 4095 [10:42:58]OFD Sender: Processing packet 116197 [packets to send 482, broken 481] [10:42:58]ProducePacketName [10:42:58]name=ofd_packets/00116197 [10:42:58]OFD Sender: To server: pG, [10:42:58]CommunicateWithHost lk.salyk.kg:30040 [10:42:58]ConnectInit lk.salyk.kg [10:42:58]Connected sock=10 [10:42:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0C 01 00 00 93 AA 04 01 B0 51 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 48 E8 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 00 00 00 F4 03 04 00 31 E9 F3 66 0E 04 04 00 DA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 E5 C5 01 00 35 04 06 00 D4 83 3F F4 91 90 E2 18 13 19 BE 02 2E 6F [10:42:58]Write to MH i2c: 01 00 00 41 03 44 [10:42:58]Write i2c OK [10:42:58]MH_I2C_Read... [10:42:58]Read from MH i2c: 01 [10:42:58]MH_I2C_Read... [10:42:58]Read from MH i2c: 01 07 00 [10:42:58]MH_I2C_Read... [10:42:58]Read from MH i2c: 01 07 00 41 03 00 00 00 00 00 66 0C BD [10:42:58]RasterBufferAndPrint [10:42:58]line [10:42:58]line [10:42:58]line [10:42:58]line [10:42:58]line [10:42:58]written 0, free lines is 3178 [10:42:58]MH_Cut [10:42:58]Write to MH i2c: D1 01 00 48 03 01 1D [10:42:58]Write i2c OK [10:42:58]MH_I2C_Read... [10:42:58]Read from MH i2c: D1 [10:42:58]MH_I2C_Read... [10:42:58]Read from MH i2c: D1 01 00 [10:42:58]MH_I2C_Read... [10:42:58]Read from MH i2c: D1 01 00 48 03 00 1C [10:42:58]Write to MH i2c: 01 00 00 49 03 4C [10:42:58]Write i2c OK [10:42:58]MH_I2C_Read... [10:42:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 E6 02 47 00 A5 A3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 E5 C5 01 00 F4 03 04 00 6D 8E F3 66 B6 04 01 00 00 45 AE 5E 4A CD BA B3 88 [10:42:58]CommunicateWithHost err = 0 [10:42:58]CheckOFDResponse [10:42:58]1017 (14) - 77093643461234 [10:42:58]1041 (16) - 0000000000871830 [10:42:58]1040 (4) - 116197 [10:42:58]1012 (4) - 25.09.2024 04:15 [10:42:58]1206 (1) - 0 [10:42:58]OFD Sender: Remove packet 116197 [10:42:58]ProducePacketName [10:42:58]name=ofd_packets/00116197 [10:42:58]NVStorageDeleteData [10:42:59]OFD Sender: No OFD packet to send [10:43:00]*** Cut start [10:43:00]*** Partial cut [10:43:00]*** CUTSNS_PIN = 1 [10:43:00]*** CUTSNS_PIN = 0 [10:43:00]*** Brake cut motor [10:43:00]Read from MH i2c: 01 [10:43:00]MH_I2C_Read... [10:43:00]*** Stop cut motor [10:43:00]*** Cut end [10:43:00]Read from MH i2c: 01 07 00 [10:43:00]MH_I2C_Read... [10:43:00]Read from MH i2c: 01 07 00 49 03 00 00 00 00 00 FF 0F 61 [10:43:00]process_action close_receipt done [10:43:00]requested_data is exist [10:43:00]produce_requested_data [10:43:00]requested_item fm.sn is exist - process it [10:43:00]wFMCommunicate request_size=4 [10:43:00]MH_SAM_APDU [10:43:00]CAPDU: 80 11 00 00 [10:43:00]Write to MH i2c: E2 08 00 4A 03 80 11 00 00 00 00 00 00 C7 [10:43:00]Write i2c OK [10:43:00]MH_I2C_Read... [10:43:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:43:00]Read from MH i2c: E2 [10:43:00]MH_I2C_Read... [10:43:00]Read from MH i2c: E2 17 00 [10:43:00]MH_I2C_Read... [10:43:00]Read from MH i2c: E2 17 00 4A 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 15 [10:43:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [10:43:00]wFMCommunicate OK [10:43:00]requested_item fd.num is exist - process it [10:43:00]SAM_PROTO_GetFieldsCounters [10:43:00]wFMCommunicate request_size=4 [10:43:00]MH_SAM_APDU [10:43:00]CAPDU: 80 13 00 00 [10:43:00]Write to MH i2c: E2 08 00 4B 03 80 13 00 00 00 00 00 00 CA [10:43:00]Write i2c OK [10:43:00]MH_I2C_Read... [10:43:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:43:00]Read from MH i2c: E2 [10:43:00]MH_I2C_Read... [10:43:00]Read from MH i2c: E2 62 00 [10:43:00]MH_I2C_Read... [10:43:00]Read from MH i2c: E2 62 00 4B 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 E5 C5 01 00 0E 04 04 00 DA 01 00 00 12 04 04 00 35 00 00 00 5E 04 04 00 35 00 00 00 57 04 04 00 36 00 00 00 19 04 04 00 00 00 00 00 90 00 08 [10:43:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 E5 C5 01 00 0E 04 04 00 DA 01 00 00 12 04 04 00 35 00 00 00 5E 04 04 00 35 00 00 00 57 04 04 00 36 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:43:00]wFMCommunicate OK [10:43:00]SAM_PROTO_GetFieldsCounters done [10:43:00]requested_item shift.num is exist - process it [10:43:00]requested_item shift.opened is exist - process it [10:43:00]req_shift_opened [10:43:00]FM_GetShiftState [10:43:00]SAM_PROTO_GetShiftState [10:43:00]wFMCommunicate request_size=4 [10:43:00]MH_SAM_APDU [10:43:00]CAPDU: 80 13 01 00 [10:43:00]Write to MH i2c: E2 08 00 4C 03 80 13 01 00 00 00 00 00 CC [10:43:00]Write i2c OK [10:43:00]MH_I2C_Read... [10:43:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:43:00]Read from MH i2c: E2 [10:43:00]MH_I2C_Read... [10:43:00]Read from MH i2c: E2 0E 00 [10:43:00]MH_I2C_Read... [10:43:00]Read from MH i2c: E2 0E 00 4C 03 00 09 00 01 63 60 F3 66 00 00 00 00 90 00 F4 [10:43:00]RAPDU: 09 00 01 63 60 F3 66 00 00 00 00 90 00 [10:43:00]wFMCommunicate OK [10:43:00]SAM_PROTO_GetShiftState done [10:43:00]FM_GetShiftState done [10:43:00]req_shift_opened done [10:43:00]requested_item shift.open_date is exist - process it [10:43:00]req_shift_open_date [10:43:00]req_shift_open_date done [10:43:00]produce_requested_data done [10:43:00]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":116197,"shift.num":474,"shift.opened":1,"shift.open_date":1727225955} [10:43:00]process_action_free close_receipt [10:43:00]json_value_free [10:43:00]json_value_free done [10:43:00]process_json_proto returns [10:43:00]Send response to host [10:43:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":116197,"shift.num":474,"shift.opened":1,"shift.open_date":1727225955}}} [10:43:00]free response buf [10:43:00]execute_script done [10:43:00]execute_script returns [10:43:00]free content buf [10:43:00]Sock 7.Close socket [10:43:00]Sock 7.Thread stoped [10:43:04]OFD Sender: No OFD packet to send [10:43:09]OFD Sender: No OFD packet to send [10:43:14]OFD Sender: No OFD packet to send [10:43:19]OFD Sender: No OFD packet to send [10:43:24]OFD Sender: No OFD packet to send [10:43:29]OFD Sender: No OFD packet to send [10:43:34]OFD Sender: No OFD packet to send [10:43:39]OFD Sender: No OFD packet to send [10:43:44]OFD Sender: No OFD packet to send [10:43:49]OFD Sender: No OFD packet to send [10:43:54]OFD Sender: No OFD packet to send [10:43:59]OFD Sender: No OFD packet to send [10:44:04]OFD Sender: No OFD packet to send [10:44:09]OFD Sender: No OFD packet to send [10:44:14]OFD Sender: No OFD packet to send [10:44:19]OFD Sender: No OFD packet to send [10:44:24]OFD Sender: No OFD packet to send [10:44:29]OFD Sender: No OFD packet to send [10:44:34]OFD Sender: No OFD packet to send [10:44:39]OFD Sender: No OFD packet to send [10:44:44]OFD Sender: No OFD packet to send [10:44:49]OFD Sender: No OFD packet to send [10:44:54]OFD Sender: No OFD packet to send [10:44:59]OFD Sender: No OFD packet to send [10:45:04]OFD Sender: No OFD packet to send [10:45:09]OFD Sender: No OFD packet to send [10:45:14]OFD Sender: No OFD packet to send [10:45:19]OFD Sender: No OFD packet to send [10:45:24]OFD Sender: No OFD packet to send [10:45:29]OFD Sender: No OFD packet to send [10:45:34]OFD Sender: No OFD packet to send [10:45:39]OFD Sender: No OFD packet to send [10:45:44]OFD Sender: No OFD packet to send [10:45:49]OFD Sender: No OFD packet to send [10:45:54]OFD Sender: No OFD packet to send [10:45:59]OFD Sender: No OFD packet to send [10:46:04]OFD Sender: No OFD packet to send [10:46:09]OFD Sender: No OFD packet to send [10:46:14]OFD Sender: No OFD packet to send [10:46:19]OFD Sender: No OFD packet to send [10:46:24]OFD Sender: No OFD packet to send [10:46:30]OFD Sender: No OFD packet to send [10:46:35]OFD Sender: No OFD packet to send [10:46:40]OFD Sender: No OFD packet to send [10:46:45]OFD Sender: No OFD packet to send [10:46:50]OFD Sender: No OFD packet to send [10:46:55]OFD Sender: No OFD packet to send [10:47:00]OFD Sender: No OFD packet to send [10:47:05]OFD Sender: No OFD packet to send [10:47:10]OFD Sender: No OFD packet to send [10:47:15]OFD Sender: No OFD packet to send [10:47:20]OFD Sender: No OFD packet to send [10:47:25]OFD Sender: No OFD packet to send [10:47:30]OFD Sender: No OFD packet to send [10:47:35]OFD Sender: No OFD packet to send [10:47:40]OFD Sender: No OFD packet to send [10:47:45]OFD Sender: No OFD packet to send [10:47:50]OFD Sender: No OFD packet to send [10:47:55]OFD Sender: No OFD packet to send [10:48:00]OFD Sender: No OFD packet to send [10:48:05]OFD Sender: No OFD packet to send [10:48:10]OFD Sender: No OFD packet to send [10:48:15]OFD Sender: No OFD packet to send [10:48:20]OFD Sender: No OFD packet to send [10:48:25]OFD Sender: No OFD packet to send [10:48:30]OFD Sender: No OFD packet to send [10:48:35]OFD Sender: No OFD packet to send [10:48:40]OFD Sender: No OFD packet to send [10:48:45]OFD Sender: No OFD packet to send [10:48:50]OFD Sender: No OFD packet to send [10:48:55]OFD Sender: No OFD packet to send [10:49:00]OFD Sender: No OFD packet to send [10:49:05]OFD Sender: No OFD packet to send [10:49:10]OFD Sender: No OFD packet to send [10:49:12]accept exits with 9 [10:49:12]New connection [10:49:12]New thread 3067141476 created [10:49:12]Thread 3066998116 joined [10:49:12]Waiting for new connection... [10:49:12] Sock 9.Parse request [10:49:12]Sock 9.Check first char [10:49:12]Sock 9.First char is OK [10:49:12]request: POST /json_proto HTTP/1.0 [10:49:12]Method: POST [10:49:12]URL: /json_proto [10:49:12]Method is POST - this is cgi request [10:49:12]url: /json_proto [10:49:12]query_string will be loaded in cgi processing [10:49:12]execute_cgi json_proto POST (null) [10:49:12]execute_cgi path=json_proto method=POST [10:49:12]POST find Content-Length [10:49:12]Host: 172.17.41.136:8080 [10:49:12]Content-Length: 2013 [10:49:12]Content-Type: application/json [10:49:12] [10:49:12]POST finish read [10:49:12]Found Content-Length = 2013 [10:49:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)344372", "tax_sys" : 0, "items" : [ { "code": "4600682557456", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A FLash up energy \u044D\u043D \u0436/\u0431 0,5/0,45\u043B", "price" : 85.00, "quantity" : 1.000, "sum" : 85.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870001571528", "name": "\u0412\u043E\u0434\u0430 ASU \u043F\u0438\u0442 \u043D.\u0433\u0430\u0437 \u043F\u0435\u0440\u0441\u0438\u043A \u041F\u042D\u0422 1,0 \u043B", "price" : 100.00, "quantity" : 1.000, "sum" : 100.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "46227720", "name": "\u0420/\u0436 mentos pure fresh \u0432\u0438\u043D\u043E\u0433\u0440\u0430\u0434 \u0440\u043E\u043B\u043B 15,5", "price" : 49.00, "quantity" : 1.000, "sum" : 49.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870001157913", "name": "\u0412\u043E\u0434\u0430 ASU 0,5\u043B c \u0431\u0435\u0437 \u0433\u0430\u0437\u0430", "price" : 40.00, "quantity" : 1.000, "sum" : 40.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000034730018", "name": "\u041A\u043E\u0444\u0435 \u0410\u043C\u0435\u0440\u0438\u043A\u0430\u043D\u043E (GABB TRADE)", "price" : 105.00, "quantity" : 1.000, "sum" : 105.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000036230011", "name": "\u041A\u043E\u0444\u0435 \u041B\u0430\u0442\u0442\u0435 XL(GABB TRADE)", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 509.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:49:12]execute_script... [10:49:12]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)344372", "tax_sys" : 0, "items" : [ { "code": "4600682557456", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A FLash up energy \u044D\u043D \u0436/\u0431 0,5/0,45\u043B", "price" : 85.00, "quantity" : 1.000, "sum" : 85.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870001571528", "name": "\u0412\u043E\u0434\u0430 ASU \u043F\u0438\u0442 \u043D.\u0433\u0430\u0437 \u043F\u0435\u0440\u0441\u0438\u043A \u041F\u042D\u0422 1,0 \u043B", "price" : 100.00, "quantity" : 1.000, "sum" : 100.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "46227720", "name": "\u0420/\u0436 mentos pure fresh \u0432\u0438\u043D\u043E\u0433\u0440\u0430\u0434 \u0440\u043E\u043B\u043B 15,5", "price" : 49.00, "quantity" : 1.000, "sum" : 49.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870001157913", "name": "\u0412\u043E\u0434\u0430 ASU 0,5\u043B c \u0431\u0435\u0437 \u0433\u0430\u0437\u0430", "price" : 40.00, "quantity" : 1.000, "sum" : 40.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000034730018", "name": "\u041A\u043E\u0444\u0435 \u0410\u043C\u0435\u0440\u0438\u043A\u0430\u043D\u043E (GABB TRADE)", "price" : 105.00, "quantity" : 1.000, "sum" : 105.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000036230011", "name": "\u041A\u043E\u0444\u0435 \u041B\u0430\u0442\u0442\u0435 XL(GABB TRADE)", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 509.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:49:12]POST & json_proto [10:49:12]process_json_proto [10:49:12]json parsed OK: [10:49:12]protocol is kg_v1.0 [10:49:12]action value=close_receipt [10:49:12]process_action close_receipt [10:49:12]cmd_close_receipt [10:49:12]MH_GetDate [10:49:12]Write to MH i2c: F0 00 00 4D 03 3F [10:49:12]Write i2c OK [10:49:12]MH_I2C_Read... [10:49:12]Read from MH i2c: F0 [10:49:12]MH_I2C_Read... [10:49:12]Read from MH i2c: F0 09 00 [10:49:12]MH_I2C_Read... [10:49:12]Read from MH i2c: F0 09 00 4D 03 00 A9 EA F3 66 1B D0 5A 64 DD [10:49:12]GetLastDocTimeStamp 1727260977 [10:49:12]current date 1727261353 [10:49:12]FM_GetShiftState [10:49:12]SAM_PROTO_GetShiftState [10:49:12]wFMCommunicate request_size=4 [10:49:12]MH_SAM_APDU [10:49:12]CAPDU: 80 13 01 00 [10:49:12]Write to MH i2c: E2 08 00 4E 03 80 13 01 00 00 00 00 00 CE [10:49:12]Write i2c OK [10:49:12]MH_I2C_Read... [10:49:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:49:12]Read from MH i2c: E2 [10:49:12]MH_I2C_Read... [10:49:12]Read from MH i2c: E2 0E 00 [10:49:12]MH_I2C_Read... [10:49:12]Read from MH i2c: E2 0E 00 4E 03 00 09 00 01 63 60 F3 66 00 00 00 00 90 00 F6 [10:49:12]RAPDU: 09 00 01 63 60 F3 66 00 00 00 00 90 00 [10:49:12]wFMCommunicate OK [10:49:12]SAM_PROTO_GetShiftState done [10:49:12]FM_GetShiftState done [10:49:12]opened in 1727225955 [10:49:12]opened+sec_in_day 1727312355 [10:49:12]quantity*price = 8500 [10:49:12]sum+1 = 8501 [10:49:12]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4870001571528 Вода ASU пит н.газ персик ПЭТ 1,0 л 1.000 * 100.00 = 100.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 46227720 Р/ж mentos pure fresh виноград ролл 15,5 1.000 * 49.00 = 49.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4870001157913 Вода ASU 0,5л c без газа 1.000 * 40.00 = 40.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 2000034730018 Кофе Американо (GABB TRADE) 1.000 * 105.00 = 105.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 2000036230011 Кофе Латте XL(GABB TRADE) 1.000 * 130.00 = 130.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 509.00 НСП 1% : 4.49 НДС 12% : 54.05 Наличными: 509.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 54 25.09.2024 10:49 Смена: 474 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 116198 ФПД: 42601294052198 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240925T104913&type=1&operation_type=1&fn_number=0000000000871830&fd_number=116198&fm=42601294052198&tin=02508201610067®Number=0000000000091831&sum=50900 0 [10:49:13]StoreToDocumentArchive [10:49:13]shift 474 fd 116198 [10:49:13]save to /storage/0474/doc_00116198 [10:49:13]save last doc name /storage/0474/doc_00116198 to /storage/kkm_last_doc_name [10:49:13]save OK [10:49:13]Clear old archive folders... [10:49:13]ProcessDocumentItem done err = 0, tmpTLVsize=869 [10:49:13]tlvbuf is 0190E620 [10:49:13]SAM_PROTO_ClearQueue [10:49:13]wFMCommunicate request_size=4 [10:49:13]MH_SAM_APDU [10:49:13]CAPDU: 80 09 00 00 [10:49:13]Write to MH i2c: E2 08 00 5B 03 80 09 00 00 00 00 00 00 D0 [10:49:13]Write i2c OK [10:49:13]MH_I2C_Read... [10:49:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:49:13]Read from MH i2c: E2 [10:49:13]MH_I2C_Read... [10:49:13]Read from MH i2c: E2 03 00 [10:49:13]MH_I2C_Read... [10:49:13]Read from MH i2c: E2 03 00 5B 03 00 90 00 D2 [10:49:13]RAPDU: 90 00 [10:49:13]wFMCommunicate OK [10:49:13]SAM_PROTO_ClearQueue done [10:49:13]KKMCreateOFDPacket [10:49:13]OFDProtocolAddRootSTLVToBuf [10:49:13]FM_MakeSignedData [10:49:13]FM_MakeSignedData [10:49:13]SAM_PROTO_SignData [10:49:13]wFMCommunicate request_size=4 [10:49:13]MH_SAM_APDU [10:49:13]CAPDU: 80 0D 01 02 [10:49:13]Write to MH i2c: E2 08 00 5C 03 80 0D 01 02 00 00 00 00 D8 [10:49:13]Write i2c OK [10:49:13]MH_I2C_Read... [10:49:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:49:13]Read from MH i2c: E2 [10:49:13]MH_I2C_Read... [10:49:13]Read from MH i2c: E2 03 00 [10:49:13]MH_I2C_Read... [10:49:13]Read from MH i2c: E2 03 00 5C 03 00 90 00 D3 [10:49:13]RAPDU: 90 00 [10:49:13]wFMCommunicate OK [10:49:13]wFMCommunicate request_size=255 [10:49:13]MH_SAM_APDU [10:49:13]CAPDU: 80 0D 02 02 FA 03 00 65 03 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 30 30 36 38 32 35 35 37 34 35 36 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 4C 61 73 68 20 75 70 20 65 6E 65 72 67 79 20 D1 8D D0 BD 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 31 35 32 38 06 04 38 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 D0 9F D0 AD D0 A2 20 31 2C 30 20 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 [10:49:14]Write to MH i2c: E2 02 01 5D 03 80 0D 02 02 FA 00 03 00 65 03 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 30 30 36 38 32 35 35 37 34 35 36 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 4C 61 73 68 20 75 70 20 65 6E 65 72 67 79 20 D1 8D D0 BD 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 31 35 32 38 06 04 38 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 D0 9F D0 AD D0 A2 20 31 2C 30 20 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 00 00 56 [10:49:14]Write i2c OK [10:49:14]MH_I2C_Read... [10:49:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:49:14]Read from MH i2c: E2 [10:49:14]MH_I2C_Read... [10:49:14]Read from MH i2c: E2 03 00 [10:49:14]MH_I2C_Read... [10:49:14]Read from MH i2c: E2 03 00 5D 03 00 90 00 D4 [10:49:14]RAPDU: 90 00 [10:49:14]wFMCommunicate OK [10:49:14]wFMCommunicate request_size=255 [10:49:14]MH_SAM_APDU [10:49:14]CAPDU: 80 0D 02 02 FA 01 F6 03 01 00 01 BC 04 01 00 01 23 04 75 00 8A 04 08 00 34 36 32 32 37 37 32 30 06 04 36 00 D0 A0 2F D0 B6 20 6D 65 6E 74 6F 73 20 70 75 72 65 20 66 72 65 73 68 20 D0 B2 D0 B8 D0 BD D0 BE D0 B3 D1 80 D0 B0 D0 B4 20 D1 80 D0 BE D0 BB D0 BB 20 31 35 2C 35 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 13 00 00 00 00 13 04 06 00 24 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 34 38 37 30 30 30 31 31 35 37 39 31 33 06 04 24 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 30 2C 35 D0 BB 20 63 20 D0 B1 D0 B5 D0 B7 20 D0 B3 D0 B0 D0 B7 D0 B0 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 [10:49:14]Write to MH i2c: E2 02 01 5E 03 80 0D 02 02 FA 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 75 00 8A 04 08 00 34 36 32 32 37 37 32 30 06 04 36 00 D0 A0 2F D0 B6 20 6D 65 6E 74 6F 73 20 70 75 72 65 20 66 72 65 73 68 20 D0 B2 D0 B8 D0 BD D0 BE D0 B3 D1 80 D0 B0 D0 B4 20 D1 80 D0 BE D0 BB D0 BB 20 31 35 2C 35 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 13 00 00 00 00 13 04 06 00 24 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 34 38 37 30 30 30 31 31 35 37 39 31 33 06 04 24 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 30 2C 35 D0 BB 20 63 20 D0 B1 D0 B5 D0 B7 20 D0 B3 D0 B0 D0 B7 D0 B0 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 00 00 9F [10:49:14]Write i2c OK [10:49:14]MH_I2C_Read... [10:49:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:49:14]Read from MH i2c: E2 [10:49:14]MH_I2C_Read... [10:49:14]Read from MH i2c: E2 03 00 [10:49:14]MH_I2C_Read... [10:49:14]Read from MH i2c: E2 03 00 5E 03 00 90 00 D5 [10:49:14]RAPDU: 90 00 [10:49:14]wFMCommunicate OK [10:49:14]wFMCommunicate request_size=255 [10:49:14]MH_SAM_APDU [10:49:14]CAPDU: 80 0D 02 02 FA 30 30 30 33 34 37 33 30 30 31 38 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 66 00 8A 04 0D 00 32 30 30 30 30 33 36 32 33 30 30 31 31 06 04 22 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 C6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C1 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 [10:49:14]Write to MH i2c: E2 02 01 5F 03 80 0D 02 02 FA 00 30 30 30 33 34 37 33 30 30 31 38 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 66 00 8A 04 0D 00 32 30 30 30 30 33 36 32 33 30 30 31 31 06 04 22 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 C6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C1 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 00 00 F4 [10:49:14]Write i2c OK [10:49:14]MH_I2C_Read... [10:49:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:49:14]Read from MH i2c: E2 [10:49:14]MH_I2C_Read... [10:49:14]Read from MH i2c: E2 03 00 [10:49:14]MH_I2C_Read... [10:49:14]Read from MH i2c: E2 03 00 5F 03 00 90 00 D6 [10:49:14]RAPDU: 90 00 [10:49:14]wFMCommunicate OK [10:49:14]wFMCommunicate request_size=128 [10:49:14]MH_SAM_APDU [10:49:14]CAPDU: 80 0D 02 02 7B F3 03 06 00 1D 15 00 00 00 00 07 04 06 00 D4 C6 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 A9 EA F3 66 0E 04 04 00 DA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 E6 C5 01 00 35 04 06 00 26 BE E2 FF BB 66 [10:49:14]Write to MH i2c: E2 83 00 60 03 80 0D 02 02 7B 00 F3 03 06 00 1D 15 00 00 00 00 07 04 06 00 D4 C6 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 A9 EA F3 66 0E 04 04 00 DA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 E6 C5 01 00 35 04 06 00 26 BE E2 FF BB 66 00 00 5C [10:49:14]Write i2c OK [10:49:14]MH_I2C_Read... [10:49:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:49:14]Read from MH i2c: E2 [10:49:14]MH_I2C_Read... [10:49:14]Read from MH i2c: E2 03 00 [10:49:14]MH_I2C_Read... [10:49:14]Read from MH i2c: E2 03 00 60 03 00 90 00 D7 [10:49:14]RAPDU: 90 00 [10:49:14]wFMCommunicate OK [10:49:14]wFMCommunicate request_size=4 [10:49:14]MH_SAM_APDU [10:49:14]CAPDU: 80 0D 03 02 [10:49:14]Write to MH i2c: E2 08 00 61 03 80 0D 03 02 00 00 00 00 DF [10:49:14]Write i2c OK [10:49:14]MH_I2C_Read... [10:49:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:49:15]Read from MH i2c: E2 [10:49:15]MH_I2C_Read... [10:49:15]Read from MH i2c: E2 0B 00 [10:49:15]MH_I2C_Read... [10:49:15]Read from MH i2c: E2 0B 00 61 03 00 6D DC 8A AE 61 FE 47 21 90 00 28 [10:49:15]RAPDU: 6D DC 8A AE 61 FE 47 21 90 00 [10:49:15]wFMCommunicate OK [10:49:15]SAM_PROTO_SignData done [10:49:15]FM_MakeSignedData done [10:49:15]CreateOFDProtocolMessage [10:49:15]wFMCommunicate request_size=4 [10:49:15]MH_SAM_APDU [10:49:15]CAPDU: 80 11 00 00 [10:49:15]Write to MH i2c: E2 08 00 62 03 80 11 00 00 00 00 00 00 DF [10:49:15]Write i2c OK [10:49:15]MH_I2C_Read... [10:49:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:49:15]Read from MH i2c: E2 [10:49:15]MH_I2C_Read... [10:49:15]Read from MH i2c: E2 17 00 [10:49:15]MH_I2C_Read... [10:49:15]Read from MH i2c: E2 17 00 62 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 2D [10:49:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [10:49:15]wFMCommunicate OK [10:49:15]CreateOFDProtocolMessage done [10:49:15]OFDSenderStorePacket 116198 [10:49:15]StoreOFDPacket docnum=116198 [10:49:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 79 03 00 00 B2 C3 71 03 6D 00 5A 03 01 00 03 00 65 03 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 30 30 36 38 32 35 35 37 34 35 36 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 4C 61 73 68 20 75 70 20 65 6E 65 72 67 79 20 D1 8D D0 BD 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 31 35 32 38 06 04 38 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 D0 9F D0 AD D0 A2 20 31 2C 30 20 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 75 00 8A 04 08 00 34 36 32 32 37 37 32 30 06 04 36 00 D0 A0 2F D0 B6 20 6D 65 6E 74 6F 73 20 70 75 72 65 20 66 72 65 73 68 20 D0 B2 D0 B8 D0 BD D0 BE D0 B3 D1 80 D0 B0 D0 B4 20 D1 80 D0 BE D0 BB D0 BB 20 31 35 2C 35 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 13 00 00 00 00 13 04 06 00 24 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 34 38 37 30 30 30 31 31 35 37 39 31 33 06 04 24 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 30 2C 35 D0 BB 20 63 20 D0 B1 D0 B5 D0 B7 20 D0 B3 D0 B0 D0 B7 D0 B0 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 34 37 33 30 30 31 38 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 66 00 8A 04 0D 00 32 30 30 30 30 33 36 32 33 30 30 31 31 06 04 22 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 C6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C1 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1D 15 00 00 00 00 07 04 06 00 D4 C6 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 A9 EA F3 66 0E 04 04 00 DA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 E6 C5 01 00 35 04 06 00 26 BE E2 FF BB 66 6D DC 8A AE 61 FE 47 21 [10:49:15]CheckFolder [10:49:15]dirname=/storage/ofd_packets [10:49:15]CheckFolder done [10:49:15]ProducePacketName [10:49:15]name=ofd_packets/00116198 [10:49:15]NVStorageSaveData ofd_packets/00116198 [10:49:15]File name is /storage/ofd_packets/00116198 [10:49:15]Write 919 bytes [10:49:15]NVStorageSaveData done [10:49:15]OFDSenderStorePacket done [10:49:15]KKMCreateOFDPacket done [10:49:15]NVStorageSaveData kkm_last_timestamp [10:49:15]File name is /storage/kkm_last_timestamp [10:49:15]Write 4 bytes [10:49:15]NVStorageSaveData done [10:49:15]ExternCall_PrintAddStr [10:49:15]wPrintStart [10:49:15]Write to MH i2c: 01 00 00 63 03 66 [10:49:15]Write i2c OK [10:49:15]MH_I2C_Read... [10:49:15]Read from MH i2c: 01 [10:49:15]MH_I2C_Read... [10:49:15]Read from MH i2c: 01 07 00 [10:49:15]MH_I2C_Read... [10:49:15]Read from MH i2c: 01 07 00 63 03 00 00 00 00 00 FF 0F 7B [10:49:15]RasterBufferAndPrint [10:49:15]line Счет N : (3)344372 [10:49:15]line ИНН: 02508201610067 [10:49:15]line Контрольно-Кассовый Чек [10:49:15]line ПРОДАЖА [10:49:15]line Товар: 4600682557456 [10:49:15]line Напиток FLash up energy эн ж/б 0,5/0,45л [10:49:15]line 1.000 * 85.00 [10:49:15]line = 85.00 [10:49:15]line НДС 12% НСП 1% [10:49:15]line > о реализуемом товаре [10:49:15]line Товар: 4870001571528 [10:49:15]line Вода ASU пит н.газ персик ПЭТ 1,0 л [10:49:15]line 1.000 * 100.00 [10:49:15]line = 100.00 [10:49:15]line НДС 12% НСП 1% [10:49:15]line > о реализуемом товаре [10:49:15]line Товар: 46227720 [10:49:15]line Р/ж mentos pure fresh виноград ролл 15,5 [10:49:15]line 1.000 * 49.00 [10:49:15]line = 49.00 [10:49:15]line НДС 12% НСП 1% [10:49:15]line > о реализуемом товаре [10:49:15]line Товар: 4870001157913 [10:49:15]line Вода ASU 0,5л c без газа [10:49:15]line 1.000 * 40.00 [10:49:15]line = 40.00 [10:49:15]line НДС 12% НСП 1% [10:49:15]line > о реализуемом товаре [10:49:15]line Товар: 2000034730018 [10:49:15]line Кофе Американо (GABB TRADE) [10:49:15]line 1.000 * 105.00 [10:49:15]line = 105.00 [10:49:15]line НДС 12% НСП 1% [10:49:15]line > о реализуемом товаре [10:49:15]line Товар: 2000036230011 [10:49:15]line Кофе Латте XL(GABB TRADE) [10:49:15]line 1.000 * 130.00 [10:49:15]line = 130.00 [10:49:15]line НДС 12% НСП 1% [10:49:15]line > о реализуемом товаре [10:49:15]line ИТОГО: 509.00 [10:49:15]line НСП 1% : 4.49 [10:49:15]line НДС 12% : 54.05 [10:49:15]line Наличными: 509.00 [10:49:15]line Безнал.: 0.00 [10:49:15]line Место: АЗС № 90 "Партнер Нефть" [10:49:15]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [10:49:15]line СНО: Общий режим [10:49:15]line Чек 54 25.09.2024 10:49 [10:49:15]line Смена: 474 ФФД: 1.0 [10:49:15]line ЗНМ: 0300000120 [10:49:15]line РНМ: 0000000000091831 [10:49:15]line Версия ККМ: 001 [10:49:15]line ФМ: 0000000000871830 [10:49:15]line ФД: 116198 [10:49:15]line ФПД: 42601294052198 [10:49:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240925T104913&type=1&operation_type=1&fn_number=0000000000871830&fd_number=116198&fm=42601294052198&tin=02508201610067®Number=0000000000091831&sum=50900 [10:49:15]OFD Sender: Processing packet 116198 [packets to send 482, broken 481] [10:49:15]ProducePacketName [10:49:15]name=ofd_packets/00116198 [10:49:15]OFD Sender: To server: pG, [10:49:15]CommunicateWithHost lk.salyk.kg:30040 [10:49:15]ConnectInit lk.salyk.kg [10:49:15]line 0 [10:49:15]written 0, free lines is 4095 [10:49:15]Connected sock=10 [10:49:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 79 03 00 00 B2 C3 71 03 6D 00 5A 03 01 00 03 00 65 03 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 30 30 36 38 32 35 35 37 34 35 36 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 4C 61 73 68 20 75 70 20 65 6E 65 72 67 79 20 D1 8D D0 BD 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 31 35 32 38 06 04 38 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 D0 9F D0 AD D0 A2 20 31 2C 30 20 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 75 00 8A 04 08 00 34 36 32 32 37 37 32 30 06 04 36 00 D0 A0 2F D0 B6 20 6D 65 6E 74 6F 73 20 70 75 72 65 20 66 72 65 73 68 20 D0 B2 D0 B8 D0 BD D0 BE D0 B3 D1 80 D0 B0 D0 B4 20 D1 80 D0 BE D0 BB D0 BB 20 31 35 2C 35 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 13 00 00 00 00 13 04 06 00 24 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 34 38 37 30 30 30 31 31 35 37 39 31 33 06 04 24 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 30 2C 35 D0 BB 20 63 20 D0 B1 D0 B5 D0 B7 20 D0 B3 D0 B0 D0 B7 D0 B0 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 34 37 33 30 30 31 38 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 66 00 8A 04 0D 00 32 30 30 30 30 33 36 32 33 30 30 31 31 06 04 22 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 C6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C1 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1D 15 00 00 00 00 07 04 06 00 D4 C6 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 A9 EA F3 66 0E 04 04 00 DA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 E6 C5 01 00 35 04 06 00 26 BE E2 FF BB 66 6D DC 8A AE 61 FE 47 21 [10:49:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 34 02 47 00 8B 86 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 E6 C5 01 00 F4 03 04 00 E7 8F F3 66 B6 04 01 00 00 97 03 8F C1 B3 1C 43 8D [10:49:16]CommunicateWithHost err = 0 [10:49:16]CheckOFDResponse [10:49:16]1017 (14) - 77093643461234 [10:49:16]1041 (16) - 0000000000871830 [10:49:16]1040 (4) - 116198 [10:49:16]1012 (4) - 25.09.2024 04:21 [10:49:16]1206 (1) - 0 [10:49:16]OFD Sender: Remove packet 116198 [10:49:16]ProducePacketName [10:49:16]name=ofd_packets/00116198 [10:49:16]NVStorageDeleteData [10:49:16]Write to MH i2c: 01 00 00 AC 03 AF [10:49:16]Write i2c OK [10:49:16]MH_I2C_Read... [10:49:16]Read from MH i2c: 01 [10:49:16]MH_I2C_Read... [10:49:16]Read from MH i2c: 01 07 00 [10:49:16]MH_I2C_Read... [10:49:16]Read from MH i2c: 01 07 00 AC 03 00 00 00 00 00 AF 09 6E [10:49:16]RasterBufferAndPrint [10:49:16]line [10:49:16]line [10:49:16]line [10:49:16]line [10:49:16]line [10:49:16]written 0, free lines is 2485 [10:49:16]MH_Cut [10:49:16]Write to MH i2c: D1 01 00 B3 03 01 88 [10:49:16]Write i2c OK [10:49:16]MH_I2C_Read... [10:49:16]Read from MH i2c: D1 [10:49:16]MH_I2C_Read... [10:49:16]Read from MH i2c: D1 01 00 [10:49:16]MH_I2C_Read... [10:49:16]Read from MH i2c: D1 01 00 B3 03 00 87 [10:49:16]Write to MH i2c: 01 00 00 B4 03 B7 [10:49:16]Write i2c OK [10:49:16]MH_I2C_Read... [10:49:16]OFD Sender: No OFD packet to send [10:49:18]*** Cut start [10:49:18]*** Partial cut [10:49:18]*** CUTSNS_PIN = 1 [10:49:18]*** CUTSNS_PIN = 0 [10:49:18]*** Brake cut motor [10:49:19]Read from MH i2c: 01 [10:49:19]MH_I2C_Read... [10:49:19]*** Stop cut motor [10:49:19]*** Cut end [10:49:19]Read from MH i2c: 01 07 00 [10:49:19]MH_I2C_Read... [10:49:19]Read from MH i2c: 01 07 00 B4 03 00 00 00 00 00 FF 0F CC [10:49:19]process_action close_receipt done [10:49:19]requested_data is exist [10:49:19]produce_requested_data [10:49:19]requested_item fm.sn is exist - process it [10:49:19]wFMCommunicate request_size=4 [10:49:19]MH_SAM_APDU [10:49:19]CAPDU: 80 11 00 00 [10:49:19]Write to MH i2c: E2 08 00 B5 03 80 11 00 00 00 00 00 00 32 [10:49:19]Write i2c OK [10:49:19]MH_I2C_Read... [10:49:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:49:19]Read from MH i2c: E2 [10:49:19]MH_I2C_Read... [10:49:19]Read from MH i2c: E2 17 00 [10:49:19]MH_I2C_Read... [10:49:19]Read from MH i2c: E2 17 00 B5 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 80 [10:49:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [10:49:19]wFMCommunicate OK [10:49:19]requested_item fd.num is exist - process it [10:49:19]SAM_PROTO_GetFieldsCounters [10:49:19]wFMCommunicate request_size=4 [10:49:19]MH_SAM_APDU [10:49:19]CAPDU: 80 13 00 00 [10:49:19]Write to MH i2c: E2 08 00 B6 03 80 13 00 00 00 00 00 00 35 [10:49:19]Write i2c OK [10:49:19]MH_I2C_Read... [10:49:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:49:19]Read from MH i2c: E2 [10:49:19]MH_I2C_Read... [10:49:19]Read from MH i2c: E2 62 00 [10:49:19]MH_I2C_Read... [10:49:19]Read from MH i2c: E2 62 00 B6 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 E6 C5 01 00 0E 04 04 00 DA 01 00 00 12 04 04 00 36 00 00 00 5E 04 04 00 36 00 00 00 57 04 04 00 37 00 00 00 19 04 04 00 00 00 00 00 90 00 77 [10:49:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 E6 C5 01 00 0E 04 04 00 DA 01 00 00 12 04 04 00 36 00 00 00 5E 04 04 00 36 00 00 00 57 04 04 00 37 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:49:19]wFMCommunicate OK [10:49:19]SAM_PROTO_GetFieldsCounters done [10:49:19]requested_item shift.num is exist - process it [10:49:19]requested_item shift.opened is exist - process it [10:49:19]req_shift_opened [10:49:19]FM_GetShiftState [10:49:19]SAM_PROTO_GetShiftState [10:49:19]wFMCommunicate request_size=4 [10:49:19]MH_SAM_APDU [10:49:19]CAPDU: 80 13 01 00 [10:49:19]Write to MH i2c: E2 08 00 B7 03 80 13 01 00 00 00 00 00 37 [10:49:19]Write i2c OK [10:49:19]MH_I2C_Read... [10:49:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:49:19]Read from MH i2c: E2 [10:49:19]MH_I2C_Read... [10:49:19]Read from MH i2c: E2 0E 00 [10:49:19]MH_I2C_Read... [10:49:19]Read from MH i2c: E2 0E 00 B7 03 00 09 00 01 63 60 F3 66 00 00 00 00 90 00 5F [10:49:19]RAPDU: 09 00 01 63 60 F3 66 00 00 00 00 90 00 [10:49:19]wFMCommunicate OK [10:49:19]SAM_PROTO_GetShiftState done [10:49:19]FM_GetShiftState done [10:49:19]req_shift_opened done [10:49:19]requested_item shift.open_date is exist - process it [10:49:19]req_shift_open_date [10:49:19]req_shift_open_date done [10:49:19]produce_requested_data done [10:49:19]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":116198,"shift.num":474,"shift.opened":1,"shift.open_date":1727225955} [10:49:19]process_action_free close_receipt [10:49:19]json_value_free [10:49:19]json_value_free done [10:49:19]process_json_proto returns [10:49:19]Send response to host [10:49:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":116198,"shift.num":474,"shift.opened":1,"shift.open_date":1727225955}}} [10:49:19]free response buf [10:49:19]execute_script done [10:49:19]execute_script returns [10:49:19]free content buf [10:49:19]Sock 9.Close socket [10:49:19]Sock 9.Thread stoped [10:49:21]OFD Sender: No OFD packet to send [10:49:26]OFD Sender: No OFD packet to send [10:49:31]OFD Sender: No OFD packet to send [10:49:36]OFD Sender: No OFD packet to send [10:49:41]OFD Sender: No OFD packet to send [10:49:46]OFD Sender: No OFD packet to send [10:49:51]OFD Sender: No OFD packet to send [10:49:56]OFD Sender: No OFD packet to send [10:50:01]OFD Sender: No OFD packet to send [10:50:06]OFD Sender: No OFD packet to send [10:50:11]OFD Sender: No OFD packet to send [10:50:16]OFD Sender: No OFD packet to send [10:50:21]OFD Sender: No OFD packet to send [10:50:26]OFD Sender: No OFD packet to send [10:50:31]OFD Sender: No OFD packet to send [10:50:36]OFD Sender: No OFD packet to send [10:50:41]OFD Sender: No OFD packet to send [10:50:45]accept exits with 7 [10:50:45]New connection [10:50:45]New thread 3066998116 created [10:50:45]Thread 3067141476 joined [10:50:45]Waiting for new connection... [10:50:45] Sock 7.Parse request [10:50:45]Sock 7.Check first char [10:50:45]Sock 7.First char is OK [10:50:45]request: POST /json_proto HTTP/1.0 [10:50:45]Method: POST [10:50:45]URL: /json_proto [10:50:45]Method is POST - this is cgi request [10:50:45]url: /json_proto [10:50:45]query_string will be loaded in cgi processing [10:50:45]execute_cgi json_proto POST (null) [10:50:45]execute_cgi path=json_proto method=POST [10:50:45]POST find Content-Length [10:50:45]Host: 172.17.41.136:8080 [10:50:45]Content-Length: 753 [10:50:45]Content-Type: application/json [10:50:45] [10:50:45]POST finish read [10:50:45]Found Content-Length = 753 [10:50:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)24619169", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 30.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30073862", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:50:45]execute_script... [10:50: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)24619169", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 30.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30073862", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:50:45]POST & json_proto [10:50:45]process_json_proto [10:50:45]json parsed OK: [10:50:45]protocol is kg_v1.0 [10:50:45]action value=close_receipt [10:50:45]process_action close_receipt [10:50:45]cmd_close_receipt [10:50:45]MH_GetDate [10:50:45]Write to MH i2c: F0 00 00 B8 03 AA [10:50:45]Write i2c OK [10:50:45]MH_I2C_Read... [10:50:45]Read from MH i2c: F0 [10:50:45]MH_I2C_Read... [10:50:45]Read from MH i2c: F0 09 00 [10:50:45]MH_I2C_Read... [10:50:45]Read from MH i2c: F0 09 00 B8 03 00 06 EB F3 66 1B D0 5A 64 A6 [10:50:45]GetLastDocTimeStamp 1727261353 [10:50:45]current date 1727261446 [10:50:45]FM_GetShiftState [10:50:45]SAM_PROTO_GetShiftState [10:50:45]wFMCommunicate request_size=4 [10:50:45]MH_SAM_APDU [10:50:45]CAPDU: 80 13 01 00 [10:50:45]Write to MH i2c: E2 08 00 B9 03 80 13 01 00 00 00 00 00 39 [10:50:45]Write i2c OK [10:50:45]MH_I2C_Read... [10:50:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:50:45]Read from MH i2c: E2 [10:50:45]MH_I2C_Read... [10:50:45]Read from MH i2c: E2 0E 00 [10:50:45]MH_I2C_Read... [10:50:45]Read from MH i2c: E2 0E 00 B9 03 00 09 00 01 63 60 F3 66 00 00 00 00 90 00 61 [10:50:45]RAPDU: 09 00 01 63 60 F3 66 00 00 00 00 90 00 [10:50:45]wFMCommunicate OK [10:50:45]SAM_PROTO_GetShiftState done [10:50:45]FM_GetShiftState done [10:50:45]opened in 1727225955 [10:50:45]opened+sec_in_day 1727312355 [10:50:45]quantity*price = 0 [10:50:45]sum+1 = 1 [10:50:45]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 55 25.09.2024 10:50 Смена: 474 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 Талоны: ТК ГПНА Online 30073862 ФМ: 0000000000871830 ФД: 116199 ФПД: 38001671628108 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240925T105046&type=1&operation_type=1&fn_number=0000000000871830&fd_number=116199&fm=38001671628108&tin=02508201610067®Number=0000000000091831&sum=0 [10:50:46]StoreToDocumentArchive [10:50:46]shift 474 fd 116199 [10:50:46]save to /storage/0474/doc_00116199 [10:50:46]save last doc name /storage/0474/doc_00116199 to /storage/kkm_last_doc_name [10:50:46]save OK [10:50:46]Clear old archive folders... [10:50:46]ProcessDocumentItem done err = 0, tmpTLVsize=248 [10:50:46]tlvbuf is 018C0A60 [10:50:46]SAM_PROTO_ClearQueue [10:50:46]wFMCommunicate request_size=4 [10:50:46]MH_SAM_APDU [10:50:46]CAPDU: 80 09 00 00 [10:50:46]Write to MH i2c: E2 08 00 C6 03 80 09 00 00 00 00 00 00 3B [10:50:46]Write i2c OK [10:50:46]MH_I2C_Read... [10:50:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:50:46]Read from MH i2c: E2 [10:50:46]MH_I2C_Read... [10:50:46]Read from MH i2c: E2 03 00 [10:50:46]MH_I2C_Read... [10:50:46]Read from MH i2c: E2 03 00 C6 03 00 90 00 3D [10:50:46]RAPDU: 90 00 [10:50:46]wFMCommunicate OK [10:50:46]SAM_PROTO_ClearQueue done [10:50:46]KKMCreateOFDPacket [10:50:46]OFDProtocolAddRootSTLVToBuf [10:50:46]FM_MakeSignedData [10:50:46]FM_MakeSignedData [10:50:46]SAM_PROTO_SignData [10:50:46]wFMCommunicate request_size=4 [10:50:46]MH_SAM_APDU [10:50:46]CAPDU: 80 0D 01 02 [10:50:46]Write to MH i2c: E2 08 00 C7 03 80 0D 01 02 00 00 00 00 43 [10:50:46]Write i2c OK [10:50:46]MH_I2C_Read... [10:50:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:50:46]Read from MH i2c: E2 [10:50:46]MH_I2C_Read... [10:50:46]Read from MH i2c: E2 03 00 [10:50:46]MH_I2C_Read... [10:50:46]Read from MH i2c: E2 03 00 C7 03 00 90 00 3E [10:50:46]RAPDU: 90 00 [10:50:46]wFMCommunicate OK [10:50:46]wFMCommunicate request_size=255 [10:50:46]MH_SAM_APDU [10:50:46]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 00 00 00 F4 03 04 00 06 EB F3 66 0E 04 04 00 DA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 E7 C5 01 00 35 04 06 00 22 8F F4 23 [10:50:46]Write to MH i2c: E2 02 01 C8 03 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 00 00 00 F4 03 04 00 06 EB F3 66 0E 04 04 00 DA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 E7 C5 01 00 35 04 06 00 22 8F F4 23 00 00 0E [10:50:46]Write i2c OK [10:50:46]MH_I2C_Read... [10:50:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:50:46]Read from MH i2c: E2 [10:50:46]MH_I2C_Read... [10:50:46]Read from MH i2c: E2 03 00 [10:50:46]MH_I2C_Read... [10:50:46]Read from MH i2c: E2 03 00 C8 03 00 90 00 3F [10:50:46]RAPDU: 90 00 [10:50:46]wFMCommunicate OK [10:50:46]wFMCommunicate request_size=7 [10:50:46]MH_SAM_APDU [10:50:46]CAPDU: 80 0D 02 02 02 65 4C [10:50:46]Write to MH i2c: E2 0A 00 C9 03 80 0D 02 02 02 00 65 4C 00 00 FB [10:50:46]Write i2c OK [10:50:46]MH_I2C_Read... [10:50:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:50:46]Read from MH i2c: E2 [10:50:46]MH_I2C_Read... [10:50:46]Read from MH i2c: E2 03 00 [10:50:46]MH_I2C_Read... [10:50:46]Read from MH i2c: E2 03 00 C9 03 00 90 00 40 [10:50:46]RAPDU: 90 00 [10:50:46]wFMCommunicate OK [10:50:46]wFMCommunicate request_size=4 [10:50:46]MH_SAM_APDU [10:50:46]CAPDU: 80 0D 03 02 [10:50:46]Write to MH i2c: E2 08 00 CA 03 80 0D 03 02 00 00 00 00 48 [10:50:46]Write i2c OK [10:50:46]MH_I2C_Read... [10:50:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:50:46]Read from MH i2c: E2 [10:50:46]MH_I2C_Read... [10:50:46]OFD Sender: No OFD packet to send [10:50:46]Read from MH i2c: E2 0B 00 [10:50:46]MH_I2C_Read... [10:50:46]Read from MH i2c: E2 0B 00 CA 03 00 CC 42 41 80 FB AF 68 D7 90 00 01 [10:50:46]RAPDU: CC 42 41 80 FB AF 68 D7 90 00 [10:50:46]wFMCommunicate OK [10:50:46]SAM_PROTO_SignData done [10:50:46]FM_MakeSignedData done [10:50:46]CreateOFDProtocolMessage [10:50:46]wFMCommunicate request_size=4 [10:50:46]MH_SAM_APDU [10:50:46]CAPDU: 80 11 00 00 [10:50:46]Write to MH i2c: E2 08 00 CB 03 80 11 00 00 00 00 00 00 48 [10:50:46]Write i2c OK [10:50:46]MH_I2C_Read... [10:50:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:50:46]Read from MH i2c: E2 [10:50:46]MH_I2C_Read... [10:50:46]Read from MH i2c: E2 17 00 [10:50:46]MH_I2C_Read... [10:50:46]Read from MH i2c: E2 17 00 CB 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 96 [10:50:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [10:50:46]wFMCommunicate OK [10:50:46]CreateOFDProtocolMessage done [10:50:46]OFDSenderStorePacket 116199 [10:50:46]StoreOFDPacket docnum=116199 [10:50:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0C 01 00 00 AF A3 04 01 75 99 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 00 00 00 F4 03 04 00 06 EB F3 66 0E 04 04 00 DA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 E7 C5 01 00 35 04 06 00 22 8F F4 23 65 4C CC 42 41 80 FB AF 68 D7 [10:50:46]CheckFolder [10:50:46]dirname=/storage/ofd_packets [10:50:46]CheckFolder done [10:50:46]ProducePacketName [10:50:46]name=ofd_packets/00116199 [10:50:46]NVStorageSaveData ofd_packets/00116199 [10:50:46]File name is /storage/ofd_packets/00116199 [10:50:46]Write 298 bytes [10:50:46]NVStorageSaveData done [10:50:46]OFDSenderStorePacket done [10:50:46]KKMCreateOFDPacket done [10:50:46]NVStorageSaveData kkm_last_timestamp [10:50:46]File name is /storage/kkm_last_timestamp [10:50:46]Write 4 bytes [10:50:46]NVStorageSaveData done [10:50:47]ExternCall_PrintAddStr [10:50:47]wPrintStart [10:50:47]Write to MH i2c: 01 00 00 CC 03 CF [10:50:47]Write i2c OK [10:50:47]MH_I2C_Read... [10:50:47]Read from MH i2c: 01 [10:50:47]MH_I2C_Read... [10:50:47]Read from MH i2c: 01 07 00 [10:50:47]MH_I2C_Read... [10:50:47]Read from MH i2c: 01 07 00 CC 03 00 00 00 00 00 FF 0F E4 [10:50:47]RasterBufferAndPrint [10:50:47]line Счет N : (1)24619169 [10:50:47]line ИНН: 02508201610067 [10:50:47]line Контрольно-Кассовый Чек [10:50:47]line ПРОДАЖА [10:50:47]line ТРК (МРК, ГНК) : 11 [10:50:47]line Товар: 2710194210 [10:50:47]line ДТ-К-5 [10:50:47]line 30.000 * 0.00 [10:50:47]line = 0.00 [10:50:47]line НДС 12% НСП 1% [10:50:47]line > о реализуемом товаре [10:50:47]line ИТОГО: 0.00 [10:50:47]line НСП 1% : 0.00 [10:50:47]line НДС 12% : 0.00 [10:50:47]line Наличными: 0.00 [10:50:47]line Безнал.: 0.00 [10:50:47]line Место: АЗС № 90 "Партнер Нефть" [10:50:47]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [10:50:47]line СНО: Общий режим [10:50:47]line Чек 55 25.09.2024 10:50 [10:50:47]line Смена: 474 ФФД: 1.0 [10:50:47]line ЗНМ: 0300000120 [10:50:47]line РНМ: 0000000000091831 [10:50:47]line Версия ККМ: 001 [10:50:47]line Талоны: ТК ГПНА Online [10:50:47]line 30073862 [10:50:47]line ФМ: 0000000000871830 [10:50:47]line ФД: 116199 [10:50:47]line ФПД: 38001671628108 [10:50:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240925T105046&type=1&operation_type=1&fn_number=0000000000871830&fd_number=116199&fm=38001671628108&tin=02508201610067®Number=0000000000091831&sum=0 [10:50:47]written 0, free lines is 4095 [10:50:47]OFD Sender: Processing packet 116199 [packets to send 482, broken 481] [10:50:47]ProducePacketName [10:50:47]name=ofd_packets/00116199 [10:50:47]OFD Sender: To server: pG, [10:50:47]CommunicateWithHost lk.salyk.kg:30040 [10:50:47]ConnectInit lk.salyk.kg [10:50:47]Connected sock=10 [10:50:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0C 01 00 00 AF A3 04 01 75 99 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 00 00 00 F4 03 04 00 06 EB F3 66 0E 04 04 00 DA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 E7 C5 01 00 35 04 06 00 22 8F F4 23 65 4C CC 42 41 80 FB AF 68 D7 [10:50:47]Write to MH i2c: 01 00 00 F5 03 F8 [10:50:47]Write i2c OK [10:50:47]MH_I2C_Read... [10:50:47]Read from MH i2c: 01 [10:50:47]MH_I2C_Read... [10:50:47]Read from MH i2c: 01 07 00 [10:50:47]MH_I2C_Read... [10:50:47]Read from MH i2c: 01 07 00 F5 03 00 00 00 00 00 61 0C 6C [10:50:47]RasterBufferAndPrint [10:50:47]line [10:50:47]line [10:50:47]line [10:50:47]line [10:50:47]line [10:50:47]written 0, free lines is 3172 [10:50:47]MH_Cut [10:50:47]Write to MH i2c: D1 01 00 FC 03 01 D1 [10:50:47]Write i2c OK [10:50:47]MH_I2C_Read... [10:50:47]Read from MH i2c: D1 [10:50:47]MH_I2C_Read... [10:50:47]Read from MH i2c: D1 01 00 [10:50:47]MH_I2C_Read... [10:50:47]Read from MH i2c: D1 01 00 FC 03 00 D0 [10:50:47]Write to MH i2c: 01 00 00 FD 03 00 [10:50:47]Write i2c OK [10:50:47]MH_I2C_Read... [10:50:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 94 13 47 00 5F 5F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 E7 C5 01 00 F4 03 04 00 42 90 F3 66 B6 04 01 00 00 CA 25 43 6C DB 11 D0 B8 [10:50:47]CommunicateWithHost err = 0 [10:50:47]CheckOFDResponse [10:50:47]1017 (14) - 77093643461234 [10:50:47]1041 (16) - 0000000000871830 [10:50:47]1040 (4) - 116199 [10:50:47]1012 (4) - 25.09.2024 04:23 [10:50:47]1206 (1) - 0 [10:50:47]OFD Sender: Remove packet 116199 [10:50:47]ProducePacketName [10:50:47]name=ofd_packets/00116199 [10:50:47]NVStorageDeleteData [10:50:48]OFD Sender: No OFD packet to send [10:50:48]*** Cut start [10:50:48]*** Partial cut [10:50:48]*** CUTSNS_PIN = 1 [10:50:48]*** CUTSNS_PIN = 0 [10:50:48]*** Brake cut motor [10:50:49]Read from MH i2c: 01 [10:50:49]MH_I2C_Read... [10:50:49]*** Stop cut motor [10:50:49]*** Cut end [10:50:49]Read from MH i2c: 01 07 00 [10:50:49]MH_I2C_Read... [10:50:49]Read from MH i2c: 01 07 00 FD 03 00 00 00 00 00 FF 0F 15 [10:50:49]process_action close_receipt done [10:50:49]requested_data is exist [10:50:49]produce_requested_data [10:50:49]requested_item fm.sn is exist - process it [10:50:49]wFMCommunicate request_size=4 [10:50:49]MH_SAM_APDU [10:50:49]CAPDU: 80 11 00 00 [10:50:49]Write to MH i2c: E2 08 00 FE 03 80 11 00 00 00 00 00 00 7B [10:50:49]Write i2c OK [10:50:49]MH_I2C_Read... [10:50:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:50:49]Read from MH i2c: E2 [10:50:49]MH_I2C_Read... [10:50:49]Read from MH i2c: E2 17 00 [10:50:49]MH_I2C_Read... [10:50:49]Read from MH i2c: E2 17 00 FE 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 C9 [10:50:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [10:50:49]wFMCommunicate OK [10:50:49]requested_item fd.num is exist - process it [10:50:49]SAM_PROTO_GetFieldsCounters [10:50:49]wFMCommunicate request_size=4 [10:50:49]MH_SAM_APDU [10:50:49]CAPDU: 80 13 00 00 [10:50:49]Write to MH i2c: E2 08 00 FF 03 80 13 00 00 00 00 00 00 7E [10:50:49]Write i2c OK [10:50:49]MH_I2C_Read... [10:50:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:50:49]Read from MH i2c: E2 [10:50:49]MH_I2C_Read... [10:50:49]Read from MH i2c: E2 62 00 [10:50:49]MH_I2C_Read... [10:50:49]Read from MH i2c: E2 62 00 FF 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 E7 C5 01 00 0E 04 04 00 DA 01 00 00 12 04 04 00 37 00 00 00 5E 04 04 00 37 00 00 00 57 04 04 00 38 00 00 00 19 04 04 00 00 00 00 00 90 00 C4 [10:50:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 E7 C5 01 00 0E 04 04 00 DA 01 00 00 12 04 04 00 37 00 00 00 5E 04 04 00 37 00 00 00 57 04 04 00 38 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:50:49]wFMCommunicate OK [10:50:49]SAM_PROTO_GetFieldsCounters done [10:50:49]requested_item shift.num is exist - process it [10:50:49]requested_item shift.opened is exist - process it [10:50:49]req_shift_opened [10:50:49]FM_GetShiftState [10:50:49]SAM_PROTO_GetShiftState [10:50:49]wFMCommunicate request_size=4 [10:50:49]MH_SAM_APDU [10:50:49]CAPDU: 80 13 01 00 [10:50:49]Write to MH i2c: E2 08 00 00 04 80 13 01 00 00 00 00 00 81 [10:50:49]Write i2c OK [10:50:49]MH_I2C_Read... [10:50:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:50:49]Read from MH i2c: E2 [10:50:49]MH_I2C_Read... [10:50:49]Read from MH i2c: E2 0E 00 [10:50:49]MH_I2C_Read... [10:50:49]Read from MH i2c: E2 0E 00 00 04 00 09 00 01 63 60 F3 66 00 00 00 00 90 00 A9 [10:50:49]RAPDU: 09 00 01 63 60 F3 66 00 00 00 00 90 00 [10:50:49]wFMCommunicate OK [10:50:49]SAM_PROTO_GetShiftState done [10:50:49]FM_GetShiftState done [10:50:49]req_shift_opened done [10:50:49]requested_item shift.open_date is exist - process it [10:50:49]req_shift_open_date [10:50:49]req_shift_open_date done [10:50:49]produce_requested_data done [10:50:49]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":116199,"shift.num":474,"shift.opened":1,"shift.open_date":1727225955} [10:50:49]process_action_free close_receipt [10:50:49]json_value_free [10:50:49]json_value_free done [10:50:49]process_json_proto returns [10:50:49]Send response to host [10:50:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":116199,"shift.num":474,"shift.opened":1,"shift.open_date":1727225955}}} [10:50:49]free response buf [10:50:49]execute_script done [10:50:49]execute_script returns [10:50:49]free content buf [10:50:49]Sock 7.Close socket [10:50:49]Sock 7.Thread stoped [10:50:53]OFD Sender: No OFD packet to send [10:50:58]OFD Sender: No OFD packet to send [10:51:03]OFD Sender: No OFD packet to send [10:51:08]OFD Sender: No OFD packet to send [10:51:13]OFD Sender: No OFD packet to send [10:51:18]OFD Sender: No OFD packet to send [10:51:23]OFD Sender: No OFD packet to send [10:51:28]OFD Sender: No OFD packet to send [10:51:33]OFD Sender: No OFD packet to send [10:51:38]OFD Sender: No OFD packet to send [10:51:43]OFD Sender: No OFD packet to send [10:51:48]OFD Sender: No OFD packet to send [10:51:53]OFD Sender: No OFD packet to send [10:51:58]OFD Sender: No OFD packet to send [10:52:03]OFD Sender: No OFD packet to send [10:52:08]OFD Sender: No OFD packet to send [10:52:13]OFD Sender: No OFD packet to send [10:52:18]OFD Sender: No OFD packet to send [10:52:23]OFD Sender: No OFD packet to send [10:52:28]OFD Sender: No OFD packet to send [10:52:33]OFD Sender: No OFD packet to send [10:52:38]OFD Sender: No OFD packet to send [10:52:43]OFD Sender: No OFD packet to send [10:52:48]OFD Sender: No OFD packet to send [10:52:53]OFD Sender: No OFD packet to send [10:52:58]OFD Sender: No OFD packet to send [10:53:03]OFD Sender: No OFD packet to send [10:53:08]OFD Sender: No OFD packet to send [10:53:13]OFD Sender: No OFD packet to send [10:53:18]OFD Sender: No OFD packet to send [10:53:23]OFD Sender: No OFD packet to send [10:53:28]OFD Sender: No OFD packet to send [10:53:33]OFD Sender: No OFD packet to send [10:53:38]OFD Sender: No OFD packet to send [10:53:43]OFD Sender: No OFD packet to send [10:53:48]OFD Sender: No OFD packet to send [10:53:53]OFD Sender: No OFD packet to send [10:53:58]OFD Sender: No OFD packet to send [10:54:03]OFD Sender: No OFD packet to send [10:54:08]OFD Sender: No OFD packet to send [10:54:13]OFD Sender: No OFD packet to send [10:54:18]OFD Sender: No OFD packet to send [10:54:23]OFD Sender: No OFD packet to send [10:54:28]OFD Sender: No OFD packet to send [10:54:33]OFD Sender: No OFD packet to send [10:54:38]OFD Sender: No OFD packet to send [10:54:43]OFD Sender: No OFD packet to send [10:54:48]OFD Sender: No OFD packet to send [10:54:53]OFD Sender: No OFD packet to send [10:54:58]OFD Sender: No OFD packet to send [10:55:03]OFD Sender: No OFD packet to send [10:55:08]OFD Sender: No OFD packet to send [10:55:13]OFD Sender: No OFD packet to send [10:55:18]OFD Sender: No OFD packet to send [10:55:23]OFD Sender: No OFD packet to send [10:55:28]OFD Sender: No OFD packet to send [10:55:33]OFD Sender: No OFD packet to send [10:55:38]OFD Sender: No OFD packet to send [10:55:43]OFD Sender: No OFD packet to send [10:55:48]OFD Sender: No OFD packet to send [10:55:53]OFD Sender: No OFD packet to send [10:55:55]accept exits with 9 [10:55:55]New connection [10:55:55]New thread 3067141476 created [10:55:55]Thread 3066998116 joined [10:55:55]Waiting for new connection... [10:55:55] Sock 9.Parse request [10:55:55]Sock 9.Check first char [10:55:55]Sock 9.First char is OK [10:55:55]request: POST /json_proto HTTP/1.0 [10:55:55]Method: POST [10:55:55]URL: /json_proto [10:55:55]Method is POST - this is cgi request [10:55:55]url: /json_proto [10:55:55]query_string will be loaded in cgi processing [10:55:55]execute_cgi json_proto POST (null) [10:55:55]execute_cgi path=json_proto method=POST [10:55:55]POST find Content-Length [10:55:55]Host: 172.17.41.136:8080 [10:55:55]Content-Length: 625 [10:55:55]Content-Type: application/json [10:55:55] [10:55:55]POST finish read [10:55:55]Found Content-Length = 625 [10:55:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)344373", "tax_sys" : 0, "items" : [ { "code": "46230607", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Richmond Bronze Edition", "price" : 154.00, "quantity" : 1.000, "sum" : 154.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 154.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:55:55]execute_script... [10:55:55]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)344373", "tax_sys" : 0, "items" : [ { "code": "46230607", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Richmond Bronze Edition", "price" : 154.00, "quantity" : 1.000, "sum" : 154.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 154.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:55:55]POST & json_proto [10:55:55]process_json_proto [10:55:55]json parsed OK: [10:55:55]protocol is kg_v1.0 [10:55:55]action value=close_receipt [10:55:55]process_action close_receipt [10:55:55]cmd_close_receipt [10:55:55]MH_GetDate [10:55:55]Write to MH i2c: F0 00 00 01 04 F4 [10:55:55]Write i2c OK [10:55:55]MH_I2C_Read... [10:55:55]Read from MH i2c: F0 [10:55:55]MH_I2C_Read... [10:55:55]Read from MH i2c: F0 09 00 [10:55:55]MH_I2C_Read... [10:55:55]Read from MH i2c: F0 09 00 01 04 00 3C EC F3 66 1B D0 5A 64 27 [10:55:55]GetLastDocTimeStamp 1727261446 [10:55:55]current date 1727261756 [10:55:55]FM_GetShiftState [10:55:55]SAM_PROTO_GetShiftState [10:55:55]wFMCommunicate request_size=4 [10:55:55]MH_SAM_APDU [10:55:55]CAPDU: 80 13 01 00 [10:55:55]Write to MH i2c: E2 08 00 02 04 80 13 01 00 00 00 00 00 83 [10:55:55]Write i2c OK [10:55:55]MH_I2C_Read... [10:55:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:55:55]Read from MH i2c: E2 [10:55:55]MH_I2C_Read... [10:55:55]Read from MH i2c: E2 0E 00 [10:55:55]MH_I2C_Read... [10:55:55]Read from MH i2c: E2 0E 00 02 04 00 09 00 01 63 60 F3 66 00 00 00 00 90 00 AB [10:55:55]RAPDU: 09 00 01 63 60 F3 66 00 00 00 00 90 00 [10:55:55]wFMCommunicate OK [10:55:55]SAM_PROTO_GetShiftState done [10:55:55]FM_GetShiftState done [10:55:55]opened in 1727225955 [10:55:55]opened+sec_in_day 1727312355 [10:55:55]quantity*price = 15400 [10:55:55]sum+1 = 15401 [10:55:55]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700007690018 Негаз вода Pamir 0,5 л 1.000 * 30.00 = 30.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4700000160211 Вода Легенда 0,5л 1.000 * 40.00 = 40.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 2000036230011 Кофе Латте XL(GABB TRADE) 1.000 * 130.00 = 130.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 310.00 НСП 1% : 2.73 НДС 12% : 32.92 Наличными: 310.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 57 25.09.2024 11:01 Смена: 474 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 116201 ФПД: 138985356301342 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240925T110133&type=1&operation_type=1&fn_number=0000000000871830&fd_number=116201&fm=138985356301342&tin=02508201610067®Number=0000000000091831&sum=31000 0 [11:01:33]StoreToDocumentArchive [11:01:33]shift 474 fd 116201 [11:01:33]save to /storage/0474/doc_00116201 [11:01:33]save last doc name /storage/0474/doc_00116201 to /storage/kkm_last_doc_name [11:01:33]save OK [11:01:33]Clear old archive folders... [11:01:33]ProcessDocumentItem done err = 0, tmpTLVsize=607 [11:01:33]tlvbuf is 009DD280 [11:01:33]SAM_PROTO_ClearQueue [11:01:33]wFMCommunicate request_size=4 [11:01:33]MH_SAM_APDU [11:01:33]CAPDU: 80 09 00 00 [11:01:33]Write to MH i2c: E2 08 00 2B 00 80 09 00 00 00 00 00 00 9D [11:01:33]Write i2c OK [11:01:33]MH_I2C_Read... [11:01:33]Read from MH i2c: E2 [11:01:33]MH_I2C_Read... [11:01:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:01:33]Read from MH i2c: E2 03 00 [11:01:33]MH_I2C_Read... [11:01:33]Read from MH i2c: E2 03 00 2B 00 00 90 00 9F [11:01:33]RAPDU: 90 00 [11:01:33]wFMCommunicate OK [11:01:33]SAM_PROTO_ClearQueue done [11:01:33]KKMCreateOFDPacket [11:01:33]OFDProtocolAddRootSTLVToBuf [11:01:33]FM_MakeSignedData [11:01:33]FM_MakeSignedData [11:01:33]SAM_PROTO_SignData [11:01:33]wFMCommunicate request_size=4 [11:01:33]MH_SAM_APDU [11:01:33]CAPDU: 80 0D 01 02 [11:01:33]Write to MH i2c: E2 08 00 2C 00 80 0D 01 02 00 00 00 00 A5 [11:01:33]Write i2c OK [11:01:33]MH_I2C_Read... [11:01:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:01:33]Read from MH i2c: E2 [11:01:33]MH_I2C_Read... [11:01:33]Read from MH i2c: E2 03 00 [11:01:33]MH_I2C_Read... [11:01:33]Read from MH i2c: E2 03 00 2C 00 00 90 00 A0 [11:01:33]RAPDU: 90 00 [11:01:33]wFMCommunicate OK [11:01:33]wFMCommunicate request_size=255 [11:01:33]MH_SAM_APDU [11:01:33]CAPDU: 80 0D 02 02 FA 03 00 5F 02 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 38 37 30 31 31 32 30 30 32 37 38 32 06 04 36 00 D0 9F D0 B5 D1 87 D0 B5 D0 BD D1 8C D0 B5 20 55 6C 6B 65 72 20 42 69 73 6B 72 65 6D 20 D0 BA D0 B0 D0 BA D0 B0 D0 BE 2D D0 BA D1 80 D0 B5 D0 BC 20 31 38 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 64 00 8A 04 0D 00 34 37 30 30 30 30 37 36 39 30 30 31 38 06 04 20 00 D0 9D D0 B5 D0 B3 D0 B0 D0 B7 20 D0 B2 D0 BE D0 B4 D0 B0 20 50 61 6D 69 72 20 30 2C 35 20 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B8 0B 00 00 00 00 13 04 06 00 B8 0B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 [11:01:33]Write to MH i2c: E2 02 01 2D 00 80 0D 02 02 FA 00 03 00 5F 02 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 38 37 30 31 31 32 30 30 32 37 38 32 06 04 36 00 D0 9F D0 B5 D1 87 D0 B5 D0 BD D1 8C D0 B5 20 55 6C 6B 65 72 20 42 69 73 6B 72 65 6D 20 D0 BA D0 B0 D0 BA D0 B0 D0 BE 2D D0 BA D1 80 D0 B5 D0 BC 20 31 38 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 64 00 8A 04 0D 00 34 37 30 30 30 30 37 36 39 30 30 31 38 06 04 20 00 D0 9D D0 B5 D0 B3 D0 B0 D0 B7 20 D0 B2 D0 BE D0 B4 D0 B0 20 50 61 6D 69 72 20 30 2C 35 20 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B8 0B 00 00 00 00 13 04 06 00 B8 0B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 00 00 4C [11:01:33]Write i2c OK [11:01:33]MH_I2C_Read... [11:01:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:01:34]Read from MH i2c: E2 [11:01:34]MH_I2C_Read... [11:01:34]Read from MH i2c: E2 03 00 [11:01:34]MH_I2C_Read... [11:01:34]Read from MH i2c: E2 03 00 2D 00 00 90 00 A1 [11:01:34]RAPDU: 90 00 [11:01:34]wFMCommunicate OK [11:01:34]wFMCommunicate request_size=255 [11:01:34]MH_SAM_APDU [11:01:34]CAPDU: 80 0D 02 02 FA 30 30 30 30 31 36 30 32 31 31 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 66 00 8A 04 0D 00 32 30 30 30 30 33 36 32 33 30 30 31 31 06 04 22 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 79 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 11 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DC 0C 00 00 00 00 07 04 [11:01:34]Write to MH i2c: E2 02 01 2E 00 80 0D 02 02 FA 00 30 30 30 30 31 36 30 32 31 31 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 66 00 8A 04 0D 00 32 30 30 30 30 33 36 32 33 30 30 31 31 06 04 22 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 79 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 11 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DC 0C 00 00 00 00 07 04 00 00 1B [11:01:34]OFD Sender: No OFD packet to send [11:01:34]Write i2c OK [11:01:34]MH_I2C_Read... [11:01:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:01:34]Read from MH i2c: E2 [11:01:34]MH_I2C_Read... [11:01:34]Read from MH i2c: E2 03 00 [11:01:34]MH_I2C_Read... [11:01:34]Read from MH i2c: E2 03 00 2E 00 00 90 00 A2 [11:01:34]RAPDU: 90 00 [11:01:34]wFMCommunicate OK [11:01:34]wFMCommunicate request_size=116 [11:01:34]MH_SAM_APDU [11:01:34]CAPDU: 80 0D 02 02 6F 06 00 18 79 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 8D ED F3 66 0E 04 04 00 DA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 E9 C5 01 00 35 04 06 00 7E 68 0C CA 94 1E [11:01:34]Write to MH i2c: E2 77 00 2F 00 80 0D 02 02 6F 00 06 00 18 79 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 8D ED F3 66 0E 04 04 00 DA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 E9 C5 01 00 35 04 06 00 7E 68 0C CA 94 1E 00 00 43 [11:01:34]Write i2c OK [11:01:34]MH_I2C_Read... [11:01:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:01:34]Read from MH i2c: E2 [11:01:34]MH_I2C_Read... [11:01:34]Read from MH i2c: E2 03 00 [11:01:34]MH_I2C_Read... [11:01:34]Read from MH i2c: E2 03 00 2F 00 00 90 00 A3 [11:01:34]RAPDU: 90 00 [11:01:34]wFMCommunicate OK [11:01:34]wFMCommunicate request_size=4 [11:01:34]MH_SAM_APDU [11:01:34]CAPDU: 80 0D 03 02 [11:01:34]Write to MH i2c: E2 08 00 30 00 80 0D 03 02 00 00 00 00 AB [11:01:34]Write i2c OK [11:01:34]MH_I2C_Read... [11:01:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:01:34]Read from MH i2c: E2 [11:01:34]MH_I2C_Read... [11:01:34]Read from MH i2c: E2 0B 00 [11:01:34]MH_I2C_Read... [11:01:34]Read from MH i2c: E2 0B 00 30 00 00 C0 FF B0 AA A5 60 7C 55 90 00 9B [11:01:34]RAPDU: C0 FF B0 AA A5 60 7C 55 90 00 [11:01:34]wFMCommunicate OK [11:01:34]SAM_PROTO_SignData done [11:01:34]FM_MakeSignedData done [11:01:34]CreateOFDProtocolMessage [11:01:34]wFMCommunicate request_size=4 [11:01:34]MH_SAM_APDU [11:01:34]CAPDU: 80 11 00 00 [11:01:34]Write to MH i2c: E2 08 00 31 00 80 11 00 00 00 00 00 00 AB [11:01:34]Write i2c OK [11:01:34]MH_I2C_Read... [11:01:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:01:34]Read from MH i2c: E2 [11:01:34]MH_I2C_Read... [11:01:34]Read from MH i2c: E2 17 00 [11:01:34]MH_I2C_Read... [11:01:34]Read from MH i2c: E2 17 00 31 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 F9 [11:01:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [11:01:34]wFMCommunicate OK [11:01:34]CreateOFDProtocolMessage done [11:01:34]OFDSenderStorePacket 116201 [11:01:34]StoreOFDPacket docnum=116201 [11:01:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 73 02 00 00 38 96 6B 02 00 C6 5A 03 01 00 03 00 5F 02 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 38 37 30 31 31 32 30 30 32 37 38 32 06 04 36 00 D0 9F D0 B5 D1 87 D0 B5 D0 BD D1 8C D0 B5 20 55 6C 6B 65 72 20 42 69 73 6B 72 65 6D 20 D0 BA D0 B0 D0 BA D0 B0 D0 BE 2D D0 BA D1 80 D0 B5 D0 BC 20 31 38 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 64 00 8A 04 0D 00 34 37 30 30 30 30 37 36 39 30 30 31 38 06 04 20 00 D0 9D D0 B5 D0 B3 D0 B0 D0 B7 20 D0 B2 D0 BE D0 B4 D0 B0 20 50 61 6D 69 72 20 30 2C 35 20 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B8 0B 00 00 00 00 13 04 06 00 B8 0B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 66 00 8A 04 0D 00 32 30 30 30 30 33 36 32 33 30 30 31 31 06 04 22 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 79 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 11 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DC 0C 00 00 00 00 07 04 06 00 18 79 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 8D ED F3 66 0E 04 04 00 DA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 E9 C5 01 00 35 04 06 00 7E 68 0C CA 94 1E C0 FF B0 AA A5 60 7C 55 [11:01:34]CheckFolder [11:01:34]dirname=/storage/ofd_packets [11:01:34]CheckFolder done [11:01:34]ProducePacketName [11:01:34]name=ofd_packets/00116201 [11:01:34]NVStorageSaveData ofd_packets/00116201 [11:01:34]File name is /storage/ofd_packets/00116201 [11:01:34]Write 657 bytes [11:01:34]NVStorageSaveData done [11:01:34]OFDSenderStorePacket done [11:01:34]KKMCreateOFDPacket done [11:01:34]NVStorageSaveData kkm_last_timestamp [11:01:34]File name is /storage/kkm_last_timestamp [11:01:34]Write 4 bytes [11:01:34]NVStorageSaveData done [11:01:34]ExternCall_PrintAddStr [11:01:34]wPrintStart [11:01:34]Write to MH i2c: 01 00 00 32 00 32 [11:01:34]Write i2c OK [11:01:34]MH_I2C_Read... [11:01:34]Read from MH i2c: 01 [11:01:34]MH_I2C_Read... [11:01:34]Read from MH i2c: 01 07 00 [11:01:34]MH_I2C_Read... [11:01:34]Read from MH i2c: 01 07 00 32 00 00 00 00 00 00 FF 0F 47 [11:01:34]RasterBufferAndPrint [11:01:34]line Счет N : (3)344374 [11:01:34]line ИНН: 02508201610067 [11:01:34]line Контрольно-Кассовый Чек [11:01:34]line ПРОДАЖА [11:01:34]line Товар: 4870112002782 [11:01:34]line Печенье Ulker Biskrem какао-крем 180г [11:01:34]line 1.000 * 110.00 [11:01:34]line = 110.00 [11:01:34]line НДС 12% НСП 1% [11:01:34]line > о реализуемом товаре [11:01:34]line Товар: 4700007690018 [11:01:34]line Негаз вода Pamir 0,5 л [11:01:34]line 1.000 * 30.00 [11:01:34]line = 30.00 [11:01:34]line НДС 12% НСП 1% [11:01:34]line > о реализуемом товаре [11:01:34]line Товар: 4700000160211 [11:01:34]line Вода Легенда 0,5л [11:01:34]line 1.000 * 40.00 [11:01:34]line = 40.00 [11:01:34]line НДС 12% НСП 1% [11:01:34]line > о реализуемом товаре [11:01:34]line Товар: 2000036230011 [11:01:34]line Кофе Латте XL(GABB TRADE) [11:01:34]line 1.000 * 130.00 [11:01:34]line = 130.00 [11:01:34]line НДС 12% НСП 1% [11:01:34]line > о реализуемом товаре [11:01:34]line ИТОГО: 310.00 [11:01:34]line НСП 1% : 2.73 [11:01:34]line НДС 12% : 32.92 [11:01:34]line Наличными: 310.00 [11:01:34]line Безнал.: 0.00 [11:01:34]line Место: АЗС № 90 "Партнер Нефть" [11:01:34]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [11:01:34]line СНО: Общий режим [11:01:34]line Чек 57 25.09.2024 11:01 [11:01:34]line Смена: 474 ФФД: 1.0 [11:01:34]line ЗНМ: 0300000120 [11:01:34]line РНМ: 0000000000091831 [11:01:34]line Версия ККМ: 001 [11:01:34]line ФМ: 0000000000871830 [11:01:34]line ФД: 116201 [11:01:34]line ФПД: 138985356301342 [11:01:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240925T110133&type=1&operation_type=1&fn_number=0000000000871830&fd_number=116201&fm=138985356301342&tin=02508201610067®Number=0000000000091831&sum=31000 [11:01:34]line 0 [11:01:34]OFD Sender: Processing packet 116201 [packets to send 482, broken 481] [11:01:34]ProducePacketName [11:01:34]name=ofd_packets/00116201 [11:01:34]OFD Sender: To server: pG, [11:01:34]CommunicateWithHost lk.salyk.kg:30040 [11:01:34]ConnectInit lk.salyk.kg [11:01:34]written 0, free lines is 4095 [11:01:35]Connected sock=10 [11:01:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 73 02 00 00 38 96 6B 02 00 C6 5A 03 01 00 03 00 5F 02 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 38 37 30 31 31 32 30 30 32 37 38 32 06 04 36 00 D0 9F D0 B5 D1 87 D0 B5 D0 BD D1 8C D0 B5 20 55 6C 6B 65 72 20 42 69 73 6B 72 65 6D 20 D0 BA D0 B0 D0 BA D0 B0 D0 BE 2D D0 BA D1 80 D0 B5 D0 BC 20 31 38 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 64 00 8A 04 0D 00 34 37 30 30 30 30 37 36 39 30 30 31 38 06 04 20 00 D0 9D D0 B5 D0 B3 D0 B0 D0 B7 20 D0 B2 D0 BE D0 B4 D0 B0 20 50 61 6D 69 72 20 30 2C 35 20 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B8 0B 00 00 00 00 13 04 06 00 B8 0B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 66 00 8A 04 0D 00 32 30 30 30 30 33 36 32 33 30 30 31 31 06 04 22 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 79 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 11 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DC 0C 00 00 00 00 07 04 06 00 18 79 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 8D ED F3 66 0E 04 04 00 DA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 E9 C5 01 00 35 04 06 00 7E 68 0C CA 94 1E C0 FF B0 AA A5 60 7C 55 [11:01:35]Write to MH i2c: 01 00 00 6C 00 6C [11:01:35]Write i2c OK [11:01:35]MH_I2C_Read... [11:01:35]Read from MH i2c: 01 [11:01:35]MH_I2C_Read... [11:01:35]Read from MH i2c: 01 07 00 [11:01:35]MH_I2C_Read... [11:01:35]Read from MH i2c: 01 07 00 6C 00 00 00 00 00 00 F5 0A 72 [11:01:35]RasterBufferAndPrint [11:01:35]line [11:01:35]line [11:01:35]line [11:01:35]line [11:01:35]line [11:01:35]written 0, free lines is 2817 [11:01:35]MH_Cut [11:01:35]Write to MH i2c: D1 01 00 73 00 01 45 [11:01:35]Write i2c OK [11:01:35]MH_I2C_Read... [11:01:35]Read from MH i2c: D1 [11:01:35]MH_I2C_Read... [11:01:35]Read from MH i2c: D1 01 00 [11:01:35]MH_I2C_Read... [11:01:35]Read from MH i2c: D1 01 00 73 00 00 44 [11:01:35]Write to MH i2c: 01 00 00 74 00 74 [11:01:35]Write i2c OK [11:01:35]MH_I2C_Read... [11:01:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 9E 2C 47 00 05 AB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 E9 C5 01 00 F4 03 04 00 CA 92 F3 66 B6 04 01 00 00 3D 6B E2 19 2F 6E C7 0A [11:01:35]CommunicateWithHost err = 0 [11:01:35]CheckOFDResponse [11:01:35]1017 (14) - 77093643461234 [11:01:35]1041 (16) - 0000000000871830 [11:01:35]1040 (4) - 116201 [11:01:35]1012 (4) - 25.09.2024 04:34 [11:01:35]1206 (1) - 0 [11:01:35]OFD Sender: Remove packet 116201 [11:01:35]ProducePacketName [11:01:35]name=ofd_packets/00116201 [11:01:35]NVStorageDeleteData [11:01:36]OFD Sender: No OFD packet to send [11:01:37]*** Cut start [11:01:37]*** Partial cut [11:01:37]*** CUTSNS_PIN = 1 [11:01:37]*** CUTSNS_PIN = 0 [11:01:37]*** Brake cut motor [11:01:37]Read from MH i2c: 01 [11:01:37]MH_I2C_Read... [11:01:37]*** Stop cut motor [11:01:37]*** Cut end [11:01:37]Read from MH i2c: 01 07 00 [11:01:37]MH_I2C_Read... [11:01:38]Read from MH i2c: 01 07 00 74 00 00 00 00 00 00 FF 0F 89 [11:01:38]process_action close_receipt done [11:01:38]requested_data is exist [11:01:38]produce_requested_data [11:01:38]requested_item fm.sn is exist - process it [11:01:38]wFMCommunicate request_size=4 [11:01:38]MH_SAM_APDU [11:01:38]CAPDU: 80 11 00 00 [11:01:38]Write to MH i2c: E2 08 00 75 00 80 11 00 00 00 00 00 00 EF [11:01:38]Write i2c OK [11:01:38]MH_I2C_Read... [11:01:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:01:38]Read from MH i2c: E2 [11:01:38]MH_I2C_Read... [11:01:38]Read from MH i2c: E2 17 00 [11:01:38]MH_I2C_Read... [11:01:38]Read from MH i2c: E2 17 00 75 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 3D [11:01:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [11:01:38]wFMCommunicate OK [11:01:38]requested_item fd.num is exist - process it [11:01:38]SAM_PROTO_GetFieldsCounters [11:01:38]wFMCommunicate request_size=4 [11:01:38]MH_SAM_APDU [11:01:38]CAPDU: 80 13 00 00 [11:01:38]Write to MH i2c: E2 08 00 76 00 80 13 00 00 00 00 00 00 F2 [11:01:38]Write i2c OK [11:01:38]MH_I2C_Read... [11:01:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:01:38]Read from MH i2c: E2 [11:01:38]MH_I2C_Read... [11:01:38]Read from MH i2c: E2 62 00 [11:01:38]MH_I2C_Read... [11:01:38]Read from MH i2c: E2 62 00 76 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 E9 C5 01 00 0E 04 04 00 DA 01 00 00 12 04 04 00 39 00 00 00 5E 04 04 00 39 00 00 00 57 04 04 00 3A 00 00 00 19 04 04 00 00 00 00 00 90 00 40 [11:01:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 E9 C5 01 00 0E 04 04 00 DA 01 00 00 12 04 04 00 39 00 00 00 5E 04 04 00 39 00 00 00 57 04 04 00 3A 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:01:38]wFMCommunicate OK [11:01:38]SAM_PROTO_GetFieldsCounters done [11:01:38]requested_item shift.num is exist - process it [11:01:38]requested_item shift.opened is exist - process it [11:01:38]req_shift_opened [11:01:38]FM_GetShiftState [11:01:38]SAM_PROTO_GetShiftState [11:01:38]wFMCommunicate request_size=4 [11:01:38]MH_SAM_APDU [11:01:38]CAPDU: 80 13 01 00 [11:01:38]Write to MH i2c: E2 08 00 77 00 80 13 01 00 00 00 00 00 F4 [11:01:38]Write i2c OK [11:01:38]MH_I2C_Read... [11:01:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:01:38]Read from MH i2c: E2 [11:01:38]MH_I2C_Read... [11:01:38]Read from MH i2c: E2 0E 00 [11:01:38]MH_I2C_Read... [11:01:38]Read from MH i2c: E2 0E 00 77 00 00 09 00 01 63 60 F3 66 00 00 00 00 90 00 1C [11:01:38]RAPDU: 09 00 01 63 60 F3 66 00 00 00 00 90 00 [11:01:38]wFMCommunicate OK [11:01:38]SAM_PROTO_GetShiftState done [11:01:38]FM_GetShiftState done [11:01:38]req_shift_opened done [11:01:38]requested_item shift.open_date is exist - process it [11:01:38]req_shift_open_date [11:01:38]req_shift_open_date done [11:01:38]produce_requested_data done [11:01:38]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":116201,"shift.num":474,"shift.opened":1,"shift.open_date":1727225955} [11:01:38]process_action_free close_receipt [11:01:38]json_value_free [11:01:38]json_value_free done [11:01:38]process_json_proto returns [11:01:38]Send response to host [11:01:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":116201,"shift.num":474,"shift.opened":1,"shift.open_date":1727225955}}} [11:01:38]free response buf [11:01:38]execute_script done [11:01:38]execute_script returns [11:01:38]free content buf [11:01:38]Sock 5.Close socket [11:01:38]Sock 5.Thread stoped [11:01:41]OFD Sender: No OFD packet to send [11:01:46]OFD Sender: No OFD packet to send [11:01:51]OFD Sender: No OFD packet to send [11:01:56]OFD Sender: No OFD packet to send [11:02:01]OFD Sender: No OFD packet to send [11:02:06]OFD Sender: No OFD packet to send [11:02:08]accept exits with 9 [11:02:08]New connection [11:02:08]New thread 3067444580 created [11:02:08]Thread 3067587940 joined [11:02:08]Waiting for new connection... [11:02:08] Sock 9.Parse request [11:02:08]Sock 9.Check first char [11:02:08]Sock 9.First char is OK [11:02:08]request: POST /json_proto HTTP/1.0 [11:02:08]Method: POST [11:02:08]URL: /json_proto [11:02:08]Method is POST - this is cgi request [11:02:08]url: /json_proto [11:02:08]query_string will be loaded in cgi processing [11:02:08]execute_cgi json_proto POST (null) [11:02:08]execute_cgi path=json_proto method=POST [11:02:08]POST find Content-Length [11:02:08]Host: 172.17.41.136:8080 [11:02:08]Content-Length: 756 [11:02:08]Content-Type: application/json [11:02:08] [11:02:08]POST finish read [11:02:08]Found Content-Length = 756 [11:02:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)24619178", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30026456", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:02:08]execute_script... [11:02:08]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)24619178", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30026456", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:02:08]POST & json_proto [11:02:08]process_json_proto [11:02:08]json parsed OK: [11:02:08]protocol is kg_v1.0 [11:02:08]action value=close_receipt [11:02:08]process_action close_receipt [11:02:08]cmd_close_receipt [11:02:08]MH_GetDate [11:02:08]Write to MH i2c: F0 00 00 78 00 67 [11:02:08]Write i2c OK [11:02:08]MH_I2C_Read... [11:02:08]Read from MH i2c: F0 [11:02:08]MH_I2C_Read... [11:02:08]Read from MH i2c: F0 09 00 [11:02:08]MH_I2C_Read... [11:02:08]Read from MH i2c: F0 09 00 78 00 00 B0 ED F3 66 1B D0 5A 64 0F [11:02:08]GetLastDocTimeStamp 1727262093 [11:02:08]current date 1727262128 [11:02:08]FM_GetShiftState [11:02:08]SAM_PROTO_GetShiftState [11:02:08]wFMCommunicate request_size=4 [11:02:08]MH_SAM_APDU [11:02:08]CAPDU: 80 13 01 00 [11:02:08]Write to MH i2c: E2 08 00 79 00 80 13 01 00 00 00 00 00 F6 [11:02:08]Write i2c OK [11:02:08]MH_I2C_Read... [11:02:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:02:08]Read from MH i2c: E2 [11:02:08]MH_I2C_Read... [11:02:08]Read from MH i2c: E2 0E 00 [11:02:08]MH_I2C_Read... [11:02:08]Read from MH i2c: E2 0E 00 79 00 00 09 00 01 63 60 F3 66 00 00 00 00 90 00 1E [11:02:08]RAPDU: 09 00 01 63 60 F3 66 00 00 00 00 90 00 [11:02:08]wFMCommunicate OK [11:02:08]SAM_PROTO_GetShiftState done [11:02:08]FM_GetShiftState done [11:02:08]opened in 1727225955 [11:02:08]opened+sec_in_day 1727312355 [11:02:08]quantity*price = 0 [11:02:08]sum+1 = 1 [11:02:08]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 58 25.09.2024 11:02 Смена: 474 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 Талоны: ТК ГПНА Online 30026456 ФМ: 0000000000871830 ФД: 116202 ФПД: 152139300283205 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240925T110208&type=1&operation_type=1&fn_number=0000000000871830&fd_number=116202&fm=152139300283205&tin=02508201610067®Number=0000000000091831&sum=0 [11:02:09]StoreToDocumentArchive [11:02:09]shift 474 fd 116202 [11:02:09]save to /storage/0474/doc_00116202 [11:02:09]save last doc name /storage/0474/doc_00116202 to /storage/kkm_last_doc_name [11:02:09]save OK [11:02:09]Clear old archive folders... [11:02:09]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:02:09]tlvbuf is 0098C910 [11:02:09]SAM_PROTO_ClearQueue [11:02:09]wFMCommunicate request_size=4 [11:02:09]MH_SAM_APDU [11:02:09]CAPDU: 80 09 00 00 [11:02:09]Write to MH i2c: E2 08 00 86 00 80 09 00 00 00 00 00 00 F8 [11:02:09]Write i2c OK [11:02:09]MH_I2C_Read... [11:02:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:02:09]Read from MH i2c: E2 [11:02:09]MH_I2C_Read... [11:02:09]Read from MH i2c: E2 03 00 [11:02:09]MH_I2C_Read... [11:02:09]Read from MH i2c: E2 03 00 86 00 00 90 00 FA [11:02:09]RAPDU: 90 00 [11:02:09]wFMCommunicate OK [11:02:09]SAM_PROTO_ClearQueue done [11:02:09]KKMCreateOFDPacket [11:02:09]OFDProtocolAddRootSTLVToBuf [11:02:09]FM_MakeSignedData [11:02:09]FM_MakeSignedData [11:02:09]SAM_PROTO_SignData [11:02:09]wFMCommunicate request_size=4 [11:02:09]MH_SAM_APDU [11:02:09]CAPDU: 80 0D 01 02 [11:02:09]Write to MH i2c: E2 08 00 87 00 80 0D 01 02 00 00 00 00 00 [11:02:09]Write i2c OK [11:02:09]MH_I2C_Read... [11:02:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:02:09]Read from MH i2c: E2 [11:02:09]MH_I2C_Read... [11:02:09]Read from MH i2c: E2 03 00 [11:02:09]MH_I2C_Read... [11:02:09]Read from MH i2c: E2 03 00 87 00 00 90 00 FB [11:02:09]RAPDU: 90 00 [11:02:09]wFMCommunicate OK [11:02:09]wFMCommunicate request_size=255 [11:02:09]MH_SAM_APDU [11:02:09]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 B0 ED F3 66 0E 04 04 00 DA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 EA C5 01 00 35 04 06 00 8A [11:02:09]Write to MH i2c: E2 02 01 88 00 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 B0 ED F3 66 0E 04 04 00 DA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 EA C5 01 00 35 04 06 00 8A 00 00 7E [11:02:09]Write i2c OK [11:02:09]MH_I2C_Read... [11:02:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:02:09]Read from MH i2c: E2 [11:02:09]MH_I2C_Read... [11:02:09]Read from MH i2c: E2 03 00 [11:02:09]MH_I2C_Read... [11:02:09]Read from MH i2c: E2 03 00 88 00 00 90 00 FC [11:02:09]RAPDU: 90 00 [11:02:09]wFMCommunicate OK [11:02:09]wFMCommunicate request_size=10 [11:02:09]MH_SAM_APDU [11:02:09]CAPDU: 80 0D 02 02 05 5E B0 F3 23 45 [11:02:09]Write to MH i2c: E2 0D 00 89 00 80 0D 02 02 05 00 5E B0 F3 23 45 00 00 76 [11:02:09]Write i2c OK [11:02:09]MH_I2C_Read... [11:02:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:02:09]Read from MH i2c: E2 [11:02:09]MH_I2C_Read... [11:02:09]Read from MH i2c: E2 03 00 [11:02:09]MH_I2C_Read... [11:02:09]Read from MH i2c: E2 03 00 89 00 00 90 00 FD [11:02:09]RAPDU: 90 00 [11:02:09]wFMCommunicate OK [11:02:09]wFMCommunicate request_size=4 [11:02:09]MH_SAM_APDU [11:02:09]CAPDU: 80 0D 03 02 [11:02:09]Write to MH i2c: E2 08 00 8A 00 80 0D 03 02 00 00 00 00 05 [11:02:09]Write i2c OK [11:02:09]MH_I2C_Read... [11:02:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:02:09]Read from MH i2c: E2 [11:02:09]MH_I2C_Read... [11:02:09]Read from MH i2c: E2 0B 00 [11:02:09]MH_I2C_Read... [11:02:09]Read from MH i2c: E2 0B 00 8A 00 00 2F 06 D8 C7 EA 3F 46 4E 90 00 97 [11:02:09]RAPDU: 2F 06 D8 C7 EA 3F 46 4E 90 00 [11:02:09]wFMCommunicate OK [11:02:09]SAM_PROTO_SignData done [11:02:09]FM_MakeSignedData done [11:02:09]CreateOFDProtocolMessage [11:02:09]wFMCommunicate request_size=4 [11:02:09]MH_SAM_APDU [11:02:09]CAPDU: 80 11 00 00 [11:02:09]Write to MH i2c: E2 08 00 8B 00 80 11 00 00 00 00 00 00 05 [11:02:09]Write i2c OK [11:02:09]MH_I2C_Read... [11:02:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:02:09]Read from MH i2c: E2 [11:02:09]MH_I2C_Read... [11:02:09]Read from MH i2c: E2 17 00 [11:02:09]MH_I2C_Read... [11:02:09]Read from MH i2c: E2 17 00 8B 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 53 [11:02:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [11:02:09]wFMCommunicate OK [11:02:09]CreateOFDProtocolMessage done [11:02:09]OFDSenderStorePacket 116202 [11:02:09]StoreOFDPacket docnum=116202 [11:02:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0F 01 00 00 ED 7D 07 01 15 A1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 B0 ED F3 66 0E 04 04 00 DA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 EA C5 01 00 35 04 06 00 8A 5E B0 F3 23 45 2F 06 D8 C7 EA 3F 46 4E [11:02:09]CheckFolder [11:02:09]dirname=/storage/ofd_packets [11:02:09]CheckFolder done [11:02:09]ProducePacketName [11:02:09]name=ofd_packets/00116202 [11:02:09]NVStorageSaveData ofd_packets/00116202 [11:02:09]File name is /storage/ofd_packets/00116202 [11:02:09]Write 301 bytes [11:02:09]NVStorageSaveData done [11:02:09]OFDSenderStorePacket done [11:02:09]KKMCreateOFDPacket done [11:02:09]NVStorageSaveData kkm_last_timestamp [11:02:09]File name is /storage/kkm_last_timestamp [11:02:09]Write 4 bytes [11:02:09]NVStorageSaveData done [11:02:09]ExternCall_PrintAddStr [11:02:09]wPrintStart [11:02:09]Write to MH i2c: 01 00 00 8C 00 8C [11:02:09]Write i2c OK [11:02:09]MH_I2C_Read... [11:02:09]Read from MH i2c: 01 [11:02:09]MH_I2C_Read... [11:02:09]Read from MH i2c: 01 07 00 [11:02:09]MH_I2C_Read... [11:02:09]Read from MH i2c: 01 07 00 8C 00 00 00 00 00 00 FF 0F A1 [11:02:09]RasterBufferAndPrint [11:02:09]line Счет N : (1)24619178 [11:02:09]line ИНН: 02508201610067 [11:02:09]line Контрольно-Кассовый Чек [11:02:09]line ПРОДАЖА [11:02:09]line ТРК (МРК, ГНК) : 43 [11:02:09]line Товар: 2710124130 [11:02:09]line Аи-92-К-5 [11:02:09]line 10.000 * 0.00 [11:02:09]line = 0.00 [11:02:09]line НДС 12% НСП 1% [11:02:09]line > о реализуемом товаре [11:02:09]line ИТОГО: 0.00 [11:02:09]line НСП 1% : 0.00 [11:02:09]line НДС 12% : 0.00 [11:02:09]line Наличными: 0.00 [11:02:09]line Безнал.: 0.00 [11:02:09]line Место: АЗС № 90 "Партнер Нефть" [11:02:09]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [11:02:09]line СНО: Общий режим [11:02:09]line Чек 58 25.09.2024 11:02 [11:02:09]line Смена: 474 ФФД: 1.0 [11:02:09]line ЗНМ: 0300000120 [11:02:09]line РНМ: 0000000000091831 [11:02:09]line Версия ККМ: 001 [11:02:09]line Талоны: ТК ГПНА Online [11:02:09]line 30026456 [11:02:09]line ФМ: 0000000000871830 [11:02:09]line ФД: 116202 [11:02:09]line ФПД: 152139300283205 [11:02:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240925T110208&type=1&operation_type=1&fn_number=0000000000871830&fd_number=116202&fm=152139300283205&tin=02508201610067®Number=0000000000091831&sum=0 [11:02:09]written 0, free lines is 4095 [11:02:09]OFD Sender: Processing packet 116202 [packets to send 482, broken 481] [11:02:09]ProducePacketName [11:02:09]name=ofd_packets/00116202 [11:02:09]OFD Sender: To server: pG, [11:02:09]CommunicateWithHost lk.salyk.kg:30040 [11:02:09]ConnectInit lk.salyk.kg [11:02:10]Connected sock=10 [11:02:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0F 01 00 00 ED 7D 07 01 15 A1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 B0 ED F3 66 0E 04 04 00 DA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 EA C5 01 00 35 04 06 00 8A 5E B0 F3 23 45 2F 06 D8 C7 EA 3F 46 4E [11:02:10]Write to MH i2c: 01 00 00 B5 00 B5 [11:02:10]Write i2c OK [11:02:10]MH_I2C_Read... [11:02:10]Read from MH i2c: 01 [11:02:10]MH_I2C_Read... [11:02:10]Read from MH i2c: 01 07 00 [11:02:10]MH_I2C_Read... [11:02:10]Read from MH i2c: 01 07 00 B5 00 00 00 00 00 00 75 0C 3D [11:02:10]RasterBufferAndPrint [11:02:10]line [11:02:10]line [11:02:10]line [11:02:10]line [11:02:10]line [11:02:10]written 0, free lines is 3193 [11:02:10]MH_Cut [11:02:10]Write to MH i2c: D1 01 00 BC 00 01 8E [11:02:10]Write i2c OK [11:02:10]MH_I2C_Read... [11:02:10]Read from MH i2c: D1 [11:02:10]MH_I2C_Read... [11:02:10]Read from MH i2c: D1 01 00 [11:02:10]MH_I2C_Read... [11:02:10]Read from MH i2c: D1 01 00 BC 00 00 8D [11:02:10]Write to MH i2c: 01 00 00 BD 00 BD [11:02:10]Write i2c OK [11:02:10]MH_I2C_Read... [11:02:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 39 7D 47 00 6A E7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 EA C5 01 00 F4 03 04 00 EC 92 F3 66 B6 04 01 00 00 2D BA AD 1A 61 98 EB 31 [11:02:10]CommunicateWithHost err = 0 [11:02:10]CheckOFDResponse [11:02:10]1017 (14) - 77093643461234 [11:02:10]1041 (16) - 0000000000871830 [11:02:10]1040 (4) - 116202 [11:02:10]1012 (4) - 25.09.2024 04:34 [11:02:10]1206 (1) - 0 [11:02:10]OFD Sender: Remove packet 116202 [11:02:10]ProducePacketName [11:02:10]name=ofd_packets/00116202 [11:02:10]NVStorageDeleteData [11:02:10]OFD Sender: No OFD packet to send [11:02:11]*** Cut start [11:02:11]*** Partial cut [11:02:11]*** CUTSNS_PIN = 1 [11:02:11]*** CUTSNS_PIN = 0 [11:02:11]*** Brake cut motor [11:02:12]Read from MH i2c: 01 [11:02:12]MH_I2C_Read... [11:02:12]*** Stop cut motor [11:02:12]*** Cut end [11:02:12]Read from MH i2c: 01 07 00 [11:02:12]MH_I2C_Read... [11:02:12]Read from MH i2c: 01 07 00 BD 00 00 00 00 00 00 FF 0F D2 [11:02:12]process_action close_receipt done [11:02:12]requested_data is exist [11:02:12]produce_requested_data [11:02:12]requested_item fm.sn is exist - process it [11:02:12]wFMCommunicate request_size=4 [11:02:12]MH_SAM_APDU [11:02:12]CAPDU: 80 11 00 00 [11:02:12]Write to MH i2c: E2 08 00 BE 00 80 11 00 00 00 00 00 00 38 [11:02:12]Write i2c OK [11:02:12]MH_I2C_Read... [11:02:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:02:12]Read from MH i2c: E2 [11:02:12]MH_I2C_Read... [11:02:12]Read from MH i2c: E2 17 00 [11:02:12]MH_I2C_Read... [11:02:12]Read from MH i2c: E2 17 00 BE 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 86 [11:02:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [11:02:12]wFMCommunicate OK [11:02:12]requested_item fd.num is exist - process it [11:02:12]SAM_PROTO_GetFieldsCounters [11:02:12]wFMCommunicate request_size=4 [11:02:12]MH_SAM_APDU [11:02:12]CAPDU: 80 13 00 00 [11:02:12]Write to MH i2c: E2 08 00 BF 00 80 13 00 00 00 00 00 00 3B [11:02:12]Write i2c OK [11:02:12]MH_I2C_Read... [11:02:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:02:12]Read from MH i2c: E2 [11:02:12]MH_I2C_Read... [11:02:12]Read from MH i2c: E2 62 00 [11:02:12]MH_I2C_Read... [11:02:12]Read from MH i2c: E2 62 00 BF 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 EA C5 01 00 0E 04 04 00 DA 01 00 00 12 04 04 00 3A 00 00 00 5E 04 04 00 3A 00 00 00 57 04 04 00 3B 00 00 00 19 04 04 00 00 00 00 00 90 00 8D [11:02:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 EA C5 01 00 0E 04 04 00 DA 01 00 00 12 04 04 00 3A 00 00 00 5E 04 04 00 3A 00 00 00 57 04 04 00 3B 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:02:12]wFMCommunicate OK [11:02:12]SAM_PROTO_GetFieldsCounters done [11:02:12]requested_item shift.num is exist - process it [11:02:12]requested_item shift.opened is exist - process it [11:02:12]req_shift_opened [11:02:12]FM_GetShiftState [11:02:12]SAM_PROTO_GetShiftState [11:02:12]wFMCommunicate request_size=4 [11:02:12]MH_SAM_APDU [11:02:12]CAPDU: 80 13 01 00 [11:02:12]Write to MH i2c: E2 08 00 C0 00 80 13 01 00 00 00 00 00 3D [11:02:12]Write i2c OK [11:02:12]MH_I2C_Read... [11:02:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:02:12]Read from MH i2c: E2 [11:02:12]MH_I2C_Read... [11:02:12]Read from MH i2c: E2 0E 00 [11:02:12]MH_I2C_Read... [11:02:12]Read from MH i2c: E2 0E 00 C0 00 00 09 00 01 63 60 F3 66 00 00 00 00 90 00 65 [11:02:12]RAPDU: 09 00 01 63 60 F3 66 00 00 00 00 90 00 [11:02:12]wFMCommunicate OK [11:02:12]SAM_PROTO_GetShiftState done [11:02:12]FM_GetShiftState done [11:02:12]req_shift_opened done [11:02:12]requested_item shift.open_date is exist - process it [11:02:12]req_shift_open_date [11:02:12]req_shift_open_date done [11:02:12]produce_requested_data done [11:02:12]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":116202,"shift.num":474,"shift.opened":1,"shift.open_date":1727225955} [11:02:12]process_action_free close_receipt [11:02:12]json_value_free [11:02:12]json_value_free done [11:02:12]process_json_proto returns [11:02:12]Send response to host [11:02:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":116202,"shift.num":474,"shift.opened":1,"shift.open_date":1727225955}}} [11:02:12]free response buf [11:02:12]execute_script done [11:02:12]execute_script returns [11:02:12]free content buf [11:02:12]Sock 9.Close socket [11:02:12]Sock 9.Thread stoped [11:02:15]OFD Sender: No OFD packet to send [11:02:20]OFD Sender: No OFD packet to send [11:02:25]OFD Sender: No OFD packet to send [11:02:30]OFD Sender: No OFD packet to send [11:02:35]OFD Sender: No OFD packet to send [11:02:40]OFD Sender: No OFD packet to send [11:02:45]OFD Sender: No OFD packet to send [11:02:50]OFD Sender: No OFD packet to send [11:02:55]OFD Sender: No OFD packet to send [11:03:00]OFD Sender: No OFD packet to send [11:03:05]OFD Sender: No OFD packet to send [11:03:10]OFD Sender: No OFD packet to send [11:03:16]OFD Sender: No OFD packet to send [11:03:21]OFD Sender: No OFD packet to send [11:03:26]OFD Sender: No OFD packet to send [11:03:31]OFD Sender: No OFD packet to send [11:03:36]OFD Sender: No OFD packet to send [11:03:41]OFD Sender: No OFD packet to send [11:03:46]OFD Sender: No OFD packet to send [11:03:51]OFD Sender: No OFD packet to send [11:03:56]OFD Sender: No OFD packet to send [11:04:01]OFD Sender: No OFD packet to send [11:04:06]OFD Sender: No OFD packet to send [11:04:11]OFD Sender: No OFD packet to send [11:04:16]OFD Sender: No OFD packet to send [11:04:21]OFD Sender: No OFD packet to send [11:04:26]OFD Sender: No OFD packet to send [11:04:31]OFD Sender: No OFD packet to send [11:04:36]OFD Sender: No OFD packet to send [11:04:41]OFD Sender: No OFD packet to send [11:04:46]OFD Sender: No OFD packet to send [11:04:51]OFD Sender: No OFD packet to send [11:04:56]OFD Sender: No OFD packet to send [11:05:01]OFD Sender: No OFD packet to send [11:05:06]OFD Sender: No OFD packet to send [11:05:11]OFD Sender: No OFD packet to send [11:05:16]OFD Sender: No OFD packet to send [11:05:21]OFD Sender: No OFD packet to send [11:05:26]OFD Sender: No OFD packet to send [11:05:28]accept exits with 7 [11:05:28]New connection [11:05:28]New thread 3067587940 created [11:05:28]Thread 3067444580 joined [11:05:28]Waiting for new connection... [11:05:28] Sock 7.Parse request [11:05:28]Sock 7.Check first char [11:05:28]Sock 7.First char is OK [11:05:28]request: POST /json_proto HTTP/1.0 [11:05:28]Method: POST [11:05:28]URL: /json_proto [11:05:28]Method is POST - this is cgi request [11:05:28]url: /json_proto [11:05:28]query_string will be loaded in cgi processing [11:05:28]execute_cgi json_proto POST (null) [11:05:28]execute_cgi path=json_proto method=POST [11:05:28]POST find Content-Length [11:05:28]Host: 172.17.41.136:8080 [11:05:28]Content-Length: 756 [11:05:28]Content-Type: application/json [11:05:28] [11:05:28]POST finish read [11:05:28]Found Content-Length = 756 [11:05:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)24619180", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 15.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30150454", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:05:28]execute_script... [11:05:28]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)24619180", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 15.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30150454", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:05:28]POST & json_proto [11:05:28]process_json_proto [11:05:28]json parsed OK: [11:05:28]protocol is kg_v1.0 [11:05:28]action value=close_receipt [11:05:28]process_action close_receipt [11:05:28]cmd_close_receipt [11:05:28]MH_GetDate [11:05:28]Write to MH i2c: F0 00 00 C1 00 B0 [11:05:28]Write i2c OK [11:05:28]MH_I2C_Read... [11:05:28]Read from MH i2c: F0 [11:05:28]MH_I2C_Read... [11:05:28]Read from MH i2c: F0 09 00 [11:05:28]MH_I2C_Read... [11:05:28]Read from MH i2c: F0 09 00 C1 00 00 78 EE F3 66 1B D0 5A 64 21 [11:05:28]GetLastDocTimeStamp 1727262128 [11:05:28]current date 1727262328 [11:05:28]FM_GetShiftState [11:05:28]SAM_PROTO_GetShiftState [11:05:28]wFMCommunicate request_size=4 [11:05:28]MH_SAM_APDU [11:05:28]CAPDU: 80 13 01 00 [11:05:28]Write to MH i2c: E2 08 00 C2 00 80 13 01 00 00 00 00 00 3F [11:05:28]Write i2c OK [11:05:28]MH_I2C_Read... [11:05:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:05:28]Read from MH i2c: E2 [11:05:28]MH_I2C_Read... [11:05:28]Read from MH i2c: E2 0E 00 [11:05:28]MH_I2C_Read... [11:05:28]Read from MH i2c: E2 0E 00 C2 00 00 09 00 01 63 60 F3 66 00 00 00 00 90 00 67 [11:05:28]RAPDU: 09 00 01 63 60 F3 66 00 00 00 00 90 00 [11:05:28]wFMCommunicate OK [11:05:28]SAM_PROTO_GetShiftState done [11:05:28]FM_GetShiftState done [11:05:28]opened in 1727225955 [11:05:28]opened+sec_in_day 1727312355 [11:05:28]quantity*price = 0 [11:05:28]sum+1 = 1 [11:05:28]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 59 25.09.2024 11:05 Смена: 474 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 Талоны: ТК ГПНА Online 30150454 ФМ: 0000000000871830 ФД: 116203 ФПД: 144010157128613 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240925T110528&type=1&operation_type=1&fn_number=0000000000871830&fd_number=116203&fm=144010157128613&tin=02508201610067®Number=0000000000091831&sum=0 [11:05:29]StoreToDocumentArchive [11:05:29]shift 474 fd 116203 [11:05:29]save to /storage/0474/doc_00116203 [11:05:29]save last doc name /storage/0474/doc_00116203 to /storage/kkm_last_doc_name [11:05:29]save OK [11:05:29]Clear old archive folders... [11:05:29]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:05:29]tlvbuf is 0098C800 [11:05:29]SAM_PROTO_ClearQueue [11:05:29]wFMCommunicate request_size=4 [11:05:29]MH_SAM_APDU [11:05:29]CAPDU: 80 09 00 00 [11:05:29]Write to MH i2c: E2 08 00 CF 00 80 09 00 00 00 00 00 00 41 [11:05:29]Write i2c OK [11:05:29]MH_I2C_Read... [11:05:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:05:29]Read from MH i2c: E2 [11:05:29]MH_I2C_Read... [11:05:29]Read from MH i2c: E2 03 00 [11:05:29]MH_I2C_Read... [11:05:29]Read from MH i2c: E2 03 00 CF 00 00 90 00 43 [11:05:29]RAPDU: 90 00 [11:05:29]wFMCommunicate OK [11:05:29]SAM_PROTO_ClearQueue done [11:05:29]KKMCreateOFDPacket [11:05:29]OFDProtocolAddRootSTLVToBuf [11:05:29]FM_MakeSignedData [11:05:29]FM_MakeSignedData [11:05:29]SAM_PROTO_SignData [11:05:29]wFMCommunicate request_size=4 [11:05:29]MH_SAM_APDU [11:05:29]CAPDU: 80 0D 01 02 [11:05:29]Write to MH i2c: E2 08 00 D0 00 80 0D 01 02 00 00 00 00 49 [11:05:29]Write i2c OK [11:05:29]MH_I2C_Read... [11:05:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:05:29]Read from MH i2c: E2 [11:05:29]MH_I2C_Read... [11:05:29]Read from MH i2c: E2 03 00 [11:05:29]MH_I2C_Read... [11:05:29]Read from MH i2c: E2 03 00 D0 00 00 90 00 44 [11:05:29]RAPDU: 90 00 [11:05:29]wFMCommunicate OK [11:05:29]wFMCommunicate request_size=255 [11:05:29]MH_SAM_APDU [11:05:29]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 98 3A 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 78 EE F3 66 0E 04 04 00 DA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 EB C5 01 00 35 04 06 00 82 [11:05:29]Write to MH i2c: E2 02 01 D1 00 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 98 3A 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 78 EE F3 66 0E 04 04 00 DA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 EB C5 01 00 35 04 06 00 82 00 00 25 [11:05:29]Write i2c OK [11:05:29]MH_I2C_Read... [11:05:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:05:29]Read from MH i2c: E2 [11:05:29]MH_I2C_Read... [11:05:29]Read from MH i2c: E2 03 00 [11:05:29]MH_I2C_Read... [11:05:29]Read from MH i2c: E2 03 00 D1 00 00 90 00 45 [11:05:29]RAPDU: 90 00 [11:05:29]wFMCommunicate OK [11:05:29]wFMCommunicate request_size=10 [11:05:29]MH_SAM_APDU [11:05:29]CAPDU: 80 0D 02 02 05 F9 FA 42 7B A5 [11:05:29]Write to MH i2c: E2 0D 00 D2 00 80 0D 02 02 05 00 F9 FA 42 7B A5 00 00 AB [11:05:29]Write i2c OK [11:05:29]MH_I2C_Read... [11:05:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:05:29]Read from MH i2c: E2 [11:05:29]MH_I2C_Read... [11:05:29]Read from MH i2c: E2 03 00 [11:05:29]MH_I2C_Read... [11:05:29]Read from MH i2c: E2 03 00 D2 00 00 90 00 46 [11:05:29]RAPDU: 90 00 [11:05:29]wFMCommunicate OK [11:05:29]wFMCommunicate request_size=4 [11:05:29]MH_SAM_APDU [11:05:29]CAPDU: 80 0D 03 02 [11:05:29]Write to MH i2c: E2 08 00 D3 00 80 0D 03 02 00 00 00 00 4E [11:05:29]Write i2c OK [11:05:29]MH_I2C_Read... [11:05:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:05:30]Read from MH i2c: E2 [11:05:30]MH_I2C_Read... [11:05:30]Read from MH i2c: E2 0B 00 [11:05:30]MH_I2C_Read... [11:05:30]Read from MH i2c: E2 0B 00 D3 00 00 DC 2A 21 6C 45 A3 AC 2B 90 00 A1 [11:05:30]RAPDU: DC 2A 21 6C 45 A3 AC 2B 90 00 [11:05:30]wFMCommunicate OK [11:05:30]SAM_PROTO_SignData done [11:05:30]FM_MakeSignedData done [11:05:30]CreateOFDProtocolMessage [11:05:30]wFMCommunicate request_size=4 [11:05:30]MH_SAM_APDU [11:05:30]CAPDU: 80 11 00 00 [11:05:30]Write to MH i2c: E2 08 00 D4 00 80 11 00 00 00 00 00 00 4E [11:05:30]Write i2c OK [11:05:30]MH_I2C_Read... [11:05:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:05:30]Read from MH i2c: E2 [11:05:30]MH_I2C_Read... [11:05:30]Read from MH i2c: E2 17 00 [11:05:30]MH_I2C_Read... [11:05:30]Read from MH i2c: E2 17 00 D4 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 9C [11:05:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [11:05:30]wFMCommunicate OK [11:05:30]CreateOFDProtocolMessage done [11:05:30]OFDSenderStorePacket 116203 [11:05:30]StoreOFDPacket docnum=116203 [11:05:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0F 01 00 00 F0 50 07 01 1C B7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 98 3A 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 78 EE F3 66 0E 04 04 00 DA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 EB C5 01 00 35 04 06 00 82 F9 FA 42 7B A5 DC 2A 21 6C 45 A3 AC 2B [11:05:30]CheckFolder [11:05:30]dirname=/storage/ofd_packets [11:05:30]CheckFolder done [11:05:30]ProducePacketName [11:05:30]name=ofd_packets/00116203 [11:05:30]NVStorageSaveData ofd_packets/00116203 [11:05:30]File name is /storage/ofd_packets/00116203 [11:05:30]Write 301 bytes [11:05:30]NVStorageSaveData done [11:05:30]OFDSenderStorePacket done [11:05:30]KKMCreateOFDPacket done [11:05:30]NVStorageSaveData kkm_last_timestamp [11:05:30]File name is /storage/kkm_last_timestamp [11:05:30]Write 4 bytes [11:05:30]NVStorageSaveData done [11:05:30]ExternCall_PrintAddStr [11:05:30]wPrintStart [11:05:30]Write to MH i2c: 01 00 00 D5 00 D5 [11:05:30]Write i2c OK [11:05:30]MH_I2C_Read... [11:05:30]Read from MH i2c: 01 [11:05:30]MH_I2C_Read... [11:05:30]Read from MH i2c: 01 07 00 [11:05:30]MH_I2C_Read... [11:05:30]Read from MH i2c: 01 07 00 D5 00 00 00 00 00 00 FF 0F EA [11:05:30]RasterBufferAndPrint [11:05:30]line Счет N : (1)24619180 [11:05:30]line ИНН: 02508201610067 [11:05:30]line Контрольно-Кассовый Чек [11:05:30]line ПРОДАЖА [11:05:30]line ТРК (МРК, ГНК) : 63 [11:05:30]line Товар: 2710124130 [11:05:30]line Аи-92-К-5 [11:05:30]line 15.000 * 0.00 [11:05:30]line = 0.00 [11:05:30]line НДС 12% НСП 1% [11:05:30]line > о реализуемом товаре [11:05:30]line ИТОГО: 0.00 [11:05:30]line НСП 1% : 0.00 [11:05:30]line НДС 12% : 0.00 [11:05:30]line Наличными: 0.00 [11:05:30]line Безнал.: 0.00 [11:05:30]line Место: АЗС № 90 "Партнер Нефть" [11:05:30]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [11:05:30]line СНО: Общий режим [11:05:30]line Чек 59 25.09.2024 11:05 [11:05:30]line Смена: 474 ФФД: 1.0 [11:05:30]line ЗНМ: 0300000120 [11:05:30]line РНМ: 0000000000091831 [11:05:30]line Версия ККМ: 001 [11:05:30]line Талоны: ТК ГПНА Online [11:05:30]line 30150454 [11:05:30]line ФМ: 0000000000871830 [11:05:30]line ФД: 116203 [11:05:30]line ФПД: 144010157128613 [11:05:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240925T110528&type=1&operation_type=1&fn_number=0000000000871830&fd_number=116203&fm=144010157128613&tin=02508201610067®Number=0000000000091831&sum=0 [11:05:30]written 0, free lines is 4095 [11:05:30]OFD Sender: Processing packet 116203 [packets to send 482, broken 481] [11:05:30]ProducePacketName [11:05:30]name=ofd_packets/00116203 [11:05:30]OFD Sender: To server: pG, [11:05:30]CommunicateWithHost lk.salyk.kg:30040 [11:05:30]ConnectInit lk.salyk.kg [11:05:30]Connected sock=10 [11:05:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0F 01 00 00 F0 50 07 01 1C B7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 98 3A 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 78 EE F3 66 0E 04 04 00 DA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 EB C5 01 00 35 04 06 00 82 F9 FA 42 7B A5 DC 2A 21 6C 45 A3 AC 2B [11:05:30]Write to MH i2c: 01 00 00 FE 00 FE [11:05:30]Write i2c OK [11:05:30]MH_I2C_Read... [11:05:30]Read from MH i2c: 01 [11:05:30]MH_I2C_Read... [11:05:30]Read from MH i2c: 01 07 00 [11:05:30]MH_I2C_Read... [11:05:30]Read from MH i2c: 01 07 00 FE 00 00 00 00 00 00 6B 0C 7C [11:05:30]RasterBufferAndPrint [11:05:30]line [11:05:30]line [11:05:30]line [11:05:30]line [11:05:30]line [11:05:30]written 0, free lines is 3183 [11:05:30]MH_Cut [11:05:30]Write to MH i2c: D1 01 00 05 01 01 D8 [11:05:30]Write i2c OK [11:05:30]MH_I2C_Read... [11:05:30]Read from MH i2c: D1 [11:05:30]MH_I2C_Read... [11:05:30]Read from MH i2c: D1 01 00 [11:05:30]MH_I2C_Read... [11:05:30]Read from MH i2c: D1 01 00 05 01 00 D7 [11:05:30]Write to MH i2c: 01 00 00 06 01 07 [11:05:30]Write i2c OK [11:05:30]MH_I2C_Read... [11:05:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 7B E8 47 00 A1 0D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 EB C5 01 00 F4 03 04 00 B5 93 F3 66 B6 04 01 00 00 8C 14 86 6F 5F 71 AC 55 [11:05:30]CommunicateWithHost err = 0 [11:05:30]CheckOFDResponse [11:05:30]1017 (14) - 77093643461234 [11:05:30]1041 (16) - 0000000000871830 [11:05:30]1040 (4) - 116203 [11:05:30]1012 (4) - 25.09.2024 04:38 [11:05:30]1206 (1) - 0 [11:05:30]OFD Sender: Remove packet 116203 [11:05:30]ProducePacketName [11:05:30]name=ofd_packets/00116203 [11:05:30]NVStorageDeleteData [11:05:31]OFD Sender: No OFD packet to send [11:05:31]*** Cut start [11:05:31]*** Partial cut [11:05:31]*** CUTSNS_PIN = 1 [11:05:31]*** CUTSNS_PIN = 0 [11:05:32]*** Brake cut motor [11:05:32]Read from MH i2c: 01 [11:05:32]MH_I2C_Read... [11:05:32]*** Stop cut motor [11:05:32]*** Cut end [11:05:32]Read from MH i2c: 01 07 00 [11:05:32]MH_I2C_Read... [11:05:32]Read from MH i2c: 01 07 00 06 01 00 00 00 00 00 FF 0F 1C [11:05:32]process_action close_receipt done [11:05:32]requested_data is exist [11:05:32]produce_requested_data [11:05:32]requested_item fm.sn is exist - process it [11:05:32]wFMCommunicate request_size=4 [11:05:32]MH_SAM_APDU [11:05:32]CAPDU: 80 11 00 00 [11:05:32]Write to MH i2c: E2 08 00 07 01 80 11 00 00 00 00 00 00 82 [11:05:32]Write i2c OK [11:05:32]MH_I2C_Read... [11:05:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:05:32]Read from MH i2c: E2 [11:05:32]MH_I2C_Read... [11:05:32]Read from MH i2c: E2 17 00 [11:05:32]MH_I2C_Read... [11:05:32]Read from MH i2c: E2 17 00 07 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 D0 [11:05:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [11:05:32]wFMCommunicate OK [11:05:32]requested_item fd.num is exist - process it [11:05:32]SAM_PROTO_GetFieldsCounters [11:05:32]wFMCommunicate request_size=4 [11:05:32]MH_SAM_APDU [11:05:32]CAPDU: 80 13 00 00 [11:05:32]Write to MH i2c: E2 08 00 08 01 80 13 00 00 00 00 00 00 85 [11:05:32]Write i2c OK [11:05:32]MH_I2C_Read... [11:05:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:05:32]Read from MH i2c: E2 [11:05:32]MH_I2C_Read... [11:05:32]Read from MH i2c: E2 62 00 [11:05:32]MH_I2C_Read... [11:05:32]Read from MH i2c: E2 62 00 08 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 EB C5 01 00 0E 04 04 00 DA 01 00 00 12 04 04 00 3B 00 00 00 5E 04 04 00 3B 00 00 00 57 04 04 00 3C 00 00 00 19 04 04 00 00 00 00 00 90 00 DB [11:05:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 EB C5 01 00 0E 04 04 00 DA 01 00 00 12 04 04 00 3B 00 00 00 5E 04 04 00 3B 00 00 00 57 04 04 00 3C 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:05:32]wFMCommunicate OK [11:05:32]SAM_PROTO_GetFieldsCounters done [11:05:32]requested_item shift.num is exist - process it [11:05:32]requested_item shift.opened is exist - process it [11:05:32]req_shift_opened [11:05:32]FM_GetShiftState [11:05:32]SAM_PROTO_GetShiftState [11:05:32]wFMCommunicate request_size=4 [11:05:32]MH_SAM_APDU [11:05:32]CAPDU: 80 13 01 00 [11:05:32]Write to MH i2c: E2 08 00 09 01 80 13 01 00 00 00 00 00 87 [11:05:32]Write i2c OK [11:05:32]MH_I2C_Read... [11:05:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:05:32]Read from MH i2c: E2 [11:05:32]MH_I2C_Read... [11:05:32]Read from MH i2c: E2 0E 00 [11:05:32]MH_I2C_Read... [11:05:32]Read from MH i2c: E2 0E 00 09 01 00 09 00 01 63 60 F3 66 00 00 00 00 90 00 AF [11:05:32]RAPDU: 09 00 01 63 60 F3 66 00 00 00 00 90 00 [11:05:32]wFMCommunicate OK [11:05:32]SAM_PROTO_GetShiftState done [11:05:32]FM_GetShiftState done [11:05:32]req_shift_opened done [11:05:32]requested_item shift.open_date is exist - process it [11:05:32]req_shift_open_date [11:05:32]req_shift_open_date done [11:05:32]produce_requested_data done [11:05:32]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":116203,"shift.num":474,"shift.opened":1,"shift.open_date":1727225955} [11:05:32]process_action_free close_receipt [11:05:32]json_value_free [11:05:32]json_value_free done [11:05:32]process_json_proto returns [11:05:32]Send response to host [11:05:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":116203,"shift.num":474,"shift.opened":1,"shift.open_date":1727225955}}} [11:05:32]free response buf [11:05:32]execute_script done [11:05:32]execute_script returns [11:05:32]free content buf [11:05:32]Sock 7.Close socket [11:05:32]Sock 7.Thread stoped [11:05:36]OFD Sender: No OFD packet to send [11:05:41]OFD Sender: No OFD packet to send [11:05:46]OFD Sender: No OFD packet to send [11:05:51]OFD Sender: No OFD packet to send [11:05:56]OFD Sender: No OFD packet to send [11:06:01]OFD Sender: No OFD packet to send [11:06:06]OFD Sender: No OFD packet to send [11:06:11]OFD Sender: No OFD packet to send [11:06:16]OFD Sender: No OFD packet to send [11:06:21]OFD Sender: No OFD packet to send [11:06:26]OFD Sender: No OFD packet to send [11:06:31]OFD Sender: No OFD packet to send [11:06:36]OFD Sender: No OFD packet to send [11:06:41]OFD Sender: No OFD packet to send [11:06:46]OFD Sender: No OFD packet to send [11:06:51]OFD Sender: No OFD packet to send [11:06:56]OFD Sender: No OFD packet to send [11:07:01]OFD Sender: No OFD packet to send [11:07:06]OFD Sender: No OFD packet to send [11:07:11]OFD Sender: No OFD packet to send [11:07:16]OFD Sender: No OFD packet to send [11:07:21]OFD Sender: No OFD packet to send [11:07:26]OFD Sender: No OFD packet to send [11:07:31]OFD Sender: No OFD packet to send [11:07:36]OFD Sender: No OFD packet to send [11:07:41]OFD Sender: No OFD packet to send [11:07:46]OFD Sender: No OFD packet to send [11:07:51]OFD Sender: No OFD packet to send [11:07:56]OFD Sender: No OFD packet to send [11:08:01]OFD Sender: No OFD packet to send [11:08:06]OFD Sender: No OFD packet to send [11:08:11]OFD Sender: No OFD packet to send [11:08:16]OFD Sender: No OFD packet to send [11:08:21]OFD Sender: No OFD packet to send [11:08:26]OFD Sender: No OFD packet to send [11:08:31]OFD Sender: No OFD packet to send [11:08:36]OFD Sender: No OFD packet to send [11:08:41]OFD Sender: No OFD packet to send [11:08:42]accept exits with 9 [11:08:42]New connection [11:08:42]New thread 3067444580 created [11:08:42]Thread 3067587940 joined [11:08:42]Waiting for new connection... [11:08:42] Sock 9.Parse request [11:08:42]Sock 9.Check first char [11:08:42]Sock 9.First char is OK [11:08:42]request: POST /json_proto HTTP/1.0 [11:08:42]Method: POST [11:08:42]URL: /json_proto [11:08:42]Method is POST - this is cgi request [11:08:42]url: /json_proto [11:08:42]query_string will be loaded in cgi processing [11:08:42]execute_cgi json_proto POST (null) [11:08:42]execute_cgi path=json_proto method=POST [11:08:42]POST find Content-Length [11:08:42]Host: 172.17.41.136:8080 [11:08:42]Content-Length: 756 [11:08:42]Content-Type: application/json [11:08:42] [11:08:42]POST finish read [11:08:42]Found Content-Length = 756 [11:08:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)24619183", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 14.750, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30154365", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:08:42]execute_script... [11:08: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)24619183", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 14.750, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30154365", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:08:42]POST & json_proto [11:08:42]process_json_proto [11:08:42]json parsed OK: [11:08:42]protocol is kg_v1.0 [11:08:42]action value=close_receipt [11:08:42]process_action close_receipt [11:08:42]cmd_close_receipt [11:08:42]MH_GetDate [11:08:42]Write to MH i2c: F0 00 00 0A 01 FA [11:08:42]Write i2c OK [11:08:42]MH_I2C_Read... [11:08:42]Read from MH i2c: F0 [11:08:42]MH_I2C_Read... [11:08:42]Read from MH i2c: F0 09 00 [11:08:42]MH_I2C_Read... [11:08:42]Read from MH i2c: F0 09 00 0A 01 00 3A EF F3 66 1B D0 5A 64 2E [11:08:42]GetLastDocTimeStamp 1727262328 [11:08:42]current date 1727262522 [11:08:42]FM_GetShiftState [11:08:42]SAM_PROTO_GetShiftState [11:08:42]wFMCommunicate request_size=4 [11:08:42]MH_SAM_APDU [11:08:42]CAPDU: 80 13 01 00 [11:08:42]Write to MH i2c: E2 08 00 0B 01 80 13 01 00 00 00 00 00 89 [11:08:42]Write i2c OK [11:08:42]MH_I2C_Read... [11:08:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:08:42]Read from MH i2c: E2 [11:08:42]MH_I2C_Read... [11:08:42]Read from MH i2c: E2 0E 00 [11:08:42]MH_I2C_Read... [11:08:42]Read from MH i2c: E2 0E 00 0B 01 00 09 00 01 63 60 F3 66 00 00 00 00 90 00 B1 [11:08:42]RAPDU: 09 00 01 63 60 F3 66 00 00 00 00 90 00 [11:08:42]wFMCommunicate OK [11:08:42]SAM_PROTO_GetShiftState done [11:08:42]FM_GetShiftState done [11:08:42]opened in 1727225955 [11:08:42]opened+sec_in_day 1727312355 [11:08:42]quantity*price = 0 [11:08:42]sum+1 = 1 [11:08:42]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 60 25.09.2024 11:08 Смена: 474 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 Талоны: ТК ГПНА Online 30154365 ФМ: 0000000000871830 ФД: 116204 ФПД: 132400610923309 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240925T110842&type=1&operation_type=1&fn_number=0000000000871830&fd_number=116204&fm=132400610923309&tin=02508201610067®Number=0000000000091831&sum=0 [11:08:43]StoreToDocumentArchive [11:08:43]shift 474 fd 116204 [11:08:43]save to /storage/0474/doc_00116204 [11:08:43]save last doc name /storage/0474/doc_00116204 to /storage/kkm_last_doc_name [11:08:43]save OK [11:08:43]Clear old archive folders... [11:08:43]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:08:43]tlvbuf is 00994460 [11:08:43]SAM_PROTO_ClearQueue [11:08:43]wFMCommunicate request_size=4 [11:08:43]MH_SAM_APDU [11:08:43]CAPDU: 80 09 00 00 [11:08:43]Write to MH i2c: E2 08 00 18 01 80 09 00 00 00 00 00 00 8B [11:08:43]Write i2c OK [11:08:43]MH_I2C_Read... [11:08:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:08:43]Read from MH i2c: E2 [11:08:43]MH_I2C_Read... [11:08:43]Read from MH i2c: E2 03 00 [11:08:43]MH_I2C_Read... [11:08:43]Read from MH i2c: E2 03 00 18 01 00 90 00 8D [11:08:43]RAPDU: 90 00 [11:08:43]wFMCommunicate OK [11:08:43]SAM_PROTO_ClearQueue done [11:08:43]KKMCreateOFDPacket [11:08:43]OFDProtocolAddRootSTLVToBuf [11:08:43]FM_MakeSignedData [11:08:43]FM_MakeSignedData [11:08:43]SAM_PROTO_SignData [11:08:43]wFMCommunicate request_size=4 [11:08:43]MH_SAM_APDU [11:08:43]CAPDU: 80 0D 01 02 [11:08:43]Write to MH i2c: E2 08 00 19 01 80 0D 01 02 00 00 00 00 93 [11:08:43]Write i2c OK [11:08:43]MH_I2C_Read... [11:08:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:08:43]Read from MH i2c: E2 [11:08:43]MH_I2C_Read... [11:08:43]Read from MH i2c: E2 03 00 [11:08:43]MH_I2C_Read... [11:08:43]Read from MH i2c: E2 03 00 19 01 00 90 00 8E [11:08:43]RAPDU: 90 00 [11:08:43]wFMCommunicate OK [11:08:43]wFMCommunicate request_size=255 [11:08:43]MH_SAM_APDU [11:08:43]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 3A EF F3 66 0E 04 04 00 DA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 EC C5 01 00 35 04 06 00 78 [11:08:43]Write to MH i2c: E2 02 01 1A 01 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 3A EF F3 66 0E 04 04 00 DA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 EC C5 01 00 35 04 06 00 78 00 00 2F [11:08:43]Write i2c OK [11:08:43]MH_I2C_Read... [11:08:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:08:43]Read from MH i2c: E2 [11:08:43]MH_I2C_Read... [11:08:43]Read from MH i2c: E2 03 00 [11:08:43]MH_I2C_Read... [11:08:43]Read from MH i2c: E2 03 00 1A 01 00 90 00 8F [11:08:43]RAPDU: 90 00 [11:08:43]wFMCommunicate OK [11:08:43]wFMCommunicate request_size=10 [11:08:43]MH_SAM_APDU [11:08:43]CAPDU: 80 0D 02 02 05 6A EB 61 D3 2D [11:08:43]Write to MH i2c: E2 0D 00 1B 01 80 0D 02 02 05 00 6A EB 61 D3 2D 00 00 56 [11:08:43]Write i2c OK [11:08:43]MH_I2C_Read... [11:08:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:08:44]Read from MH i2c: E2 [11:08:44]MH_I2C_Read... [11:08:44]Read from MH i2c: E2 03 00 [11:08:44]MH_I2C_Read... [11:08:44]Read from MH i2c: E2 03 00 1B 01 00 90 00 90 [11:08:44]RAPDU: 90 00 [11:08:44]wFMCommunicate OK [11:08:44]wFMCommunicate request_size=4 [11:08:44]MH_SAM_APDU [11:08:44]CAPDU: 80 0D 03 02 [11:08:44]Write to MH i2c: E2 08 00 1C 01 80 0D 03 02 00 00 00 00 98 [11:08:44]Write i2c OK [11:08:44]MH_I2C_Read... [11:08:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:08:44]Read from MH i2c: E2 [11:08:44]MH_I2C_Read... [11:08:44]Read from MH i2c: E2 0B 00 [11:08:44]MH_I2C_Read... [11:08:44]Read from MH i2c: E2 0B 00 1C 01 00 D9 14 91 6C B1 CC 84 E9 90 00 6D [11:08:44]RAPDU: D9 14 91 6C B1 CC 84 E9 90 00 [11:08:44]wFMCommunicate OK [11:08:44]SAM_PROTO_SignData done [11:08:44]FM_MakeSignedData done [11:08:44]CreateOFDProtocolMessage [11:08:44]wFMCommunicate request_size=4 [11:08:44]MH_SAM_APDU [11:08:44]CAPDU: 80 11 00 00 [11:08:44]Write to MH i2c: E2 08 00 1D 01 80 11 00 00 00 00 00 00 98 [11:08:44]Write i2c OK [11:08:44]MH_I2C_Read... [11:08:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:08:44]Read from MH i2c: E2 [11:08:44]MH_I2C_Read... [11:08:44]Read from MH i2c: E2 17 00 [11:08:44]MH_I2C_Read... [11:08:44]Read from MH i2c: E2 17 00 1D 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 E6 [11:08:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [11:08:44]wFMCommunicate OK [11:08:44]CreateOFDProtocolMessage done [11:08:44]OFDSenderStorePacket 116204 [11:08:44]StoreOFDPacket docnum=116204 [11:08:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0F 01 00 00 44 22 07 01 E4 12 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 3A EF F3 66 0E 04 04 00 DA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 EC C5 01 00 35 04 06 00 78 6A EB 61 D3 2D D9 14 91 6C B1 CC 84 E9 [11:08:44]CheckFolder [11:08:44]dirname=/storage/ofd_packets [11:08:44]CheckFolder done [11:08:44]ProducePacketName [11:08:44]name=ofd_packets/00116204 [11:08:44]NVStorageSaveData ofd_packets/00116204 [11:08:44]File name is /storage/ofd_packets/00116204 [11:08:44]Write 301 bytes [11:08:44]NVStorageSaveData done [11:08:44]OFDSenderStorePacket done [11:08:44]KKMCreateOFDPacket done [11:08:44]NVStorageSaveData kkm_last_timestamp [11:08:44]File name is /storage/kkm_last_timestamp [11:08:44]Write 4 bytes [11:08:44]NVStorageSaveData done [11:08:44]ExternCall_PrintAddStr [11:08:44]wPrintStart [11:08:44]Write to MH i2c: 01 00 00 1E 01 1F [11:08:44]Write i2c OK [11:08:44]MH_I2C_Read... [11:08:44]Read from MH i2c: 01 [11:08:44]MH_I2C_Read... [11:08:44]Read from MH i2c: 01 07 00 [11:08:44]MH_I2C_Read... [11:08:44]Read from MH i2c: 01 07 00 1E 01 00 00 00 00 00 FF 0F 34 [11:08:44]RasterBufferAndPrint [11:08:44]line Счет N : (1)24619183 [11:08:44]line ИНН: 02508201610067 [11:08:44]line Контрольно-Кассовый Чек [11:08:44]line ПРОДАЖА [11:08:44]line ТРК (МРК, ГНК) : 63 [11:08:44]line Товар: 2710124130 [11:08:44]line Аи-92-К-5 [11:08:44]line 14.750 * 0.00 [11:08:44]line = 0.00 [11:08:44]line НДС 12% НСП 1% [11:08:44]line > о реализуемом товаре [11:08:44]line ИТОГО: 0.00 [11:08:44]line НСП 1% : 0.00 [11:08:44]line НДС 12% : 0.00 [11:08:44]line Наличными: 0.00 [11:08:44]line Безнал.: 0.00 [11:08:44]line Место: АЗС № 90 "Партнер Нефть" [11:08:44]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [11:08:44]line СНО: Общий режим [11:08:44]line Чек 60 25.09.2024 11:08 [11:08:44]line Смена: 474 ФФД: 1.0 [11:08:44]line ЗНМ: 0300000120 [11:08:44]line РНМ: 0000000000091831 [11:08:44]line Версия ККМ: 001 [11:08:44]line Талоны: ТК ГПНА Online [11:08:44]line 30154365 [11:08:44]line ФМ: 0000000000871830 [11:08:44]line ФД: 116204 [11:08:44]line ФПД: 132400610923309 [11:08:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240925T110842&type=1&operation_type=1&fn_number=0000000000871830&fd_number=116204&fm=132400610923309&tin=02508201610067®Number=0000000000091831&sum=0 [11:08:44]written 0, free lines is 4095 [11:08:44]OFD Sender: Processing packet 116204 [packets to send 482, broken 481] [11:08:44]ProducePacketName [11:08:44]name=ofd_packets/00116204 [11:08:44]OFD Sender: To server: pG, [11:08:44]CommunicateWithHost lk.salyk.kg:30040 [11:08:44]ConnectInit lk.salyk.kg [11:08:44]Connected sock=10 [11:08:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0F 01 00 00 44 22 07 01 E4 12 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 3A EF F3 66 0E 04 04 00 DA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 EC C5 01 00 35 04 06 00 78 6A EB 61 D3 2D D9 14 91 6C B1 CC 84 E9 [11:08:44]Write to MH i2c: 01 00 00 47 01 48 [11:08:44]Write i2c OK [11:08:44]MH_I2C_Read... [11:08:44]Read from MH i2c: 01 [11:08:44]MH_I2C_Read... [11:08:44]Read from MH i2c: 01 07 00 [11:08:44]MH_I2C_Read... [11:08:44]Read from MH i2c: 01 07 00 47 01 00 00 00 00 00 6A 0C C5 [11:08:44]RasterBufferAndPrint [11:08:44]line [11:08:44]line [11:08:44]line [11:08:44]line [11:08:44]line [11:08:44]written 0, free lines is 3183 [11:08:44]MH_Cut [11:08:44]Write to MH i2c: D1 01 00 4E 01 01 21 [11:08:44]Write i2c OK [11:08:44]MH_I2C_Read... [11:08:44]Read from MH i2c: D1 [11:08:44]MH_I2C_Read... [11:08:44]Read from MH i2c: D1 01 00 [11:08:44]MH_I2C_Read... [11:08:44]Read from MH i2c: D1 01 00 4E 01 00 20 [11:08:44]Write to MH i2c: 01 00 00 4F 01 50 [11:08:44]Write i2c OK [11:08:44]MH_I2C_Read... [11:08:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 EF 4A 47 00 1C 06 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 EC C5 01 00 F4 03 04 00 77 94 F3 66 B6 04 01 00 00 38 D7 FA CE 4D 76 A3 7C [11:08:44]CommunicateWithHost err = 0 [11:08:44]CheckOFDResponse [11:08:44]1017 (14) - 77093643461234 [11:08:44]1041 (16) - 0000000000871830 [11:08:44]1040 (4) - 116204 [11:08:44]1012 (4) - 25.09.2024 04:41 [11:08:44]1206 (1) - 0 [11:08:44]OFD Sender: Remove packet 116204 [11:08:44]ProducePacketName [11:08:44]name=ofd_packets/00116204 [11:08:44]NVStorageDeleteData [11:08:45]OFD Sender: No OFD packet to send [11:08:45]*** Cut start [11:08:45]*** Partial cut [11:08:45]*** CUTSNS_PIN = 1 [11:08:45]*** CUTSNS_PIN = 0 [11:08:46]*** Brake cut motor [11:08:46]Read from MH i2c: 01 [11:08:46]MH_I2C_Read... [11:08:46]*** Stop cut motor [11:08:46]*** Cut end [11:08:46]Read from MH i2c: 01 07 00 [11:08:46]MH_I2C_Read... [11:08:46]Read from MH i2c: 01 07 00 4F 01 00 00 00 00 00 FF 0F 65 [11:08:46]process_action close_receipt done [11:08:46]requested_data is exist [11:08:46]produce_requested_data [11:08:46]requested_item fm.sn is exist - process it [11:08:46]wFMCommunicate request_size=4 [11:08:46]MH_SAM_APDU [11:08:46]CAPDU: 80 11 00 00 [11:08:46]Write to MH i2c: E2 08 00 50 01 80 11 00 00 00 00 00 00 CB [11:08:46]Write i2c OK [11:08:46]MH_I2C_Read... [11:08:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:08:46]Read from MH i2c: E2 [11:08:46]MH_I2C_Read... [11:08:46]Read from MH i2c: E2 17 00 [11:08:46]MH_I2C_Read... [11:08:46]Read from MH i2c: E2 17 00 50 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 19 [11:08:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [11:08:46]wFMCommunicate OK [11:08:46]requested_item fd.num is exist - process it [11:08:46]SAM_PROTO_GetFieldsCounters [11:08:46]wFMCommunicate request_size=4 [11:08:46]MH_SAM_APDU [11:08:46]CAPDU: 80 13 00 00 [11:08:46]Write to MH i2c: E2 08 00 51 01 80 13 00 00 00 00 00 00 CE [11:08:46]Write i2c OK [11:08:46]MH_I2C_Read... [11:08:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:08:46]Read from MH i2c: E2 [11:08:46]MH_I2C_Read... [11:08:46]Read from MH i2c: E2 62 00 [11:08:46]MH_I2C_Read... [11:08:46]Read from MH i2c: E2 62 00 51 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 EC C5 01 00 0E 04 04 00 DA 01 00 00 12 04 04 00 3C 00 00 00 5E 04 04 00 3C 00 00 00 57 04 04 00 3D 00 00 00 19 04 04 00 00 00 00 00 90 00 28 [11:08:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 EC C5 01 00 0E 04 04 00 DA 01 00 00 12 04 04 00 3C 00 00 00 5E 04 04 00 3C 00 00 00 57 04 04 00 3D 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:08:46]wFMCommunicate OK [11:08:46]SAM_PROTO_GetFieldsCounters done [11:08:46]requested_item shift.num is exist - process it [11:08:46]requested_item shift.opened is exist - process it [11:08:46]req_shift_opened [11:08:46]FM_GetShiftState [11:08:46]SAM_PROTO_GetShiftState [11:08:46]wFMCommunicate request_size=4 [11:08:46]MH_SAM_APDU [11:08:46]CAPDU: 80 13 01 00 [11:08:46]Write to MH i2c: E2 08 00 52 01 80 13 01 00 00 00 00 00 D0 [11:08:46]Write i2c OK [11:08:46]MH_I2C_Read... [11:08:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:08:46]Read from MH i2c: E2 [11:08:46]MH_I2C_Read... [11:08:46]Read from MH i2c: E2 0E 00 [11:08:46]MH_I2C_Read... [11:08:46]Read from MH i2c: E2 0E 00 52 01 00 09 00 01 63 60 F3 66 00 00 00 00 90 00 F8 [11:08:46]RAPDU: 09 00 01 63 60 F3 66 00 00 00 00 90 00 [11:08:46]wFMCommunicate OK [11:08:46]SAM_PROTO_GetShiftState done [11:08:46]FM_GetShiftState done [11:08:46]req_shift_opened done [11:08:46]requested_item shift.open_date is exist - process it [11:08:46]req_shift_open_date [11:08:46]req_shift_open_date done [11:08:46]produce_requested_data done [11:08:46]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":116204,"shift.num":474,"shift.opened":1,"shift.open_date":1727225955} [11:08:46]process_action_free close_receipt [11:08:46]json_value_free [11:08:46]json_value_free done [11:08:46]process_json_proto returns [11:08:46]Send response to host [11:08:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":116204,"shift.num":474,"shift.opened":1,"shift.open_date":1727225955}}} [11:08:46]free response buf [11:08:46]execute_script done [11:08:46]execute_script returns [11:08:46]free content buf [11:08:46]Sock 9.Close socket [11:08:46]Sock 9.Thread stoped [11:08:50]OFD Sender: No OFD packet to send [11:08:55]OFD Sender: No OFD packet to send [11:09:00]OFD Sender: No OFD packet to send [11:09:05]OFD Sender: No OFD packet to send [11:09:10]OFD Sender: No OFD packet to send [11:09:15]OFD Sender: No OFD packet to send [11:09:20]OFD Sender: No OFD packet to send [11:09:25]OFD Sender: No OFD packet to send [11:09:30]OFD Sender: No OFD packet to send [11:09:35]OFD Sender: No OFD packet to send [11:09:40]OFD Sender: No OFD packet to send [11:09:45]OFD Sender: No OFD packet to send [11:09:46]accept exits with 7 [11:09:46]New connection [11:09:46]New thread 3067587940 created [11:09:46]Thread 3067444580 joined [11:09:46]Waiting for new connection... [11:09:46] Sock 7.Parse request [11:09:46]Sock 7.Check first char [11:09:46]Sock 7.First char is OK [11:09:46]request: POST /json_proto HTTP/1.0 [11:09:46]Method: POST [11:09:46]URL: /json_proto [11:09:46]Method is POST - this is cgi request [11:09:46]url: /json_proto [11:09:46]query_string will be loaded in cgi processing [11:09:46]execute_cgi json_proto POST (null) [11:09:46]execute_cgi path=json_proto method=POST [11:09:46]POST find Content-Length [11:09:46]Host: 172.17.41.136:8080 [11:09:46]Content-Length: 1855 [11:09:46]Content-Type: application/json [11:09:46] [11:09:46]POST finish read [11:09:46]Found Content-Length = 1855 [11:09:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)344375", "tax_sys" : 0, "items" : [ { "code": "4700003241276", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041C\u043E\u043B\u043E\u0447\u043D\u044B\u0439 \u0422\u0410\u041D 1\u043B", "price" : 110.00, "quantity" : 1.000, "sum" : 110.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5000159343961", "name": "\u041C\u043E\u0440\u043E\u0436\u0435\u043D\u043E\u0435 \u0421\u043D\u0438\u043A\u0435\u0440\u0441 \u0431\u0430\u0442\u043E\u043D\u0447\u0438\u043A", "price" : 113.00, "quantity" : 1.000, "sum" : 113.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870233466272", "name": "\u041C\u043E\u0440\u043E\u0436\u0435\u043D\u043E\u0435 \u041F\u043B\u043E\u043C\u0431\u0438\u0440 \u041C\u0438\u0448\u0430", "price" : 77.00, "quantity" : 1.000, "sum" : 77.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000160204", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1,5\u043B", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700003010087", "name": "\u0427\u0430\u0439 \u0445\u043E\u043B Lets Go \u0437\u0435\u043B \u0447\u0430\u0439 \u044F\u0431\u043B-\u0433\u0440 \u041F\u042D\u0422 1,2\u043B", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 455.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:09:46]execute_script... [11:09:46]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)344375", "tax_sys" : 0, "items" : [ { "code": "4700003241276", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041C\u043E\u043B\u043E\u0447\u043D\u044B\u0439 \u0422\u0410\u041D 1\u043B", "price" : 110.00, "quantity" : 1.000, "sum" : 110.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5000159343961", "name": "\u041C\u043E\u0440\u043E\u0436\u0435\u043D\u043E\u0435 \u0421\u043D\u0438\u043A\u0435\u0440\u0441 \u0431\u0430\u0442\u043E\u043D\u0447\u0438\u043A", "price" : 113.00, "quantity" : 1.000, "sum" : 113.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870233466272", "name": "\u041C\u043E\u0440\u043E\u0436\u0435\u043D\u043E\u0435 \u041F\u043B\u043E\u043C\u0431\u0438\u0440 \u041C\u0438\u0448\u0430", "price" : 77.00, "quantity" : 1.000, "sum" : 77.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000160204", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1,5\u043B", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700003010087", "name": "\u0427\u0430\u0439 \u0445\u043E\u043B Lets Go \u0437\u0435\u043B \u0447\u0430\u0439 \u044F\u0431\u043B-\u0433\u0440 \u041F\u042D\u0422 1,2\u043B", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 455.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:09:46]POST & json_proto [11:09:46]process_json_proto [11:09:46]json parsed OK: [11:09:46]protocol is kg_v1.0 [11:09:46]action value=close_receipt [11:09:46]process_action close_receipt [11:09:46]cmd_close_receipt [11:09:46]MH_GetDate [11:09:46]Write to MH i2c: F0 00 00 53 01 43 [11:09:46]Write i2c OK [11:09:46]MH_I2C_Read... [11:09:46]Read from MH i2c: F0 [11:09:46]MH_I2C_Read... [11:09:46]Read from MH i2c: F0 09 00 [11:09:46]MH_I2C_Read... [11:09:46]Read from MH i2c: F0 09 00 53 01 00 7B EF F3 66 1B D0 5A 64 B8 [11:09:46]GetLastDocTimeStamp 1727262522 [11:09:46]current date 1727262587 [11:09:46]FM_GetShiftState [11:09:46]SAM_PROTO_GetShiftState [11:09:46]wFMCommunicate request_size=4 [11:09:46]MH_SAM_APDU [11:09:46]CAPDU: 80 13 01 00 [11:09:46]Write to MH i2c: E2 08 00 54 01 80 13 01 00 00 00 00 00 D2 [11:09:46]Write i2c OK [11:09:46]MH_I2C_Read... [11:09:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:09:46]Read from MH i2c: E2 [11:09:46]MH_I2C_Read... [11:09:46]Read from MH i2c: E2 0E 00 [11:09:46]MH_I2C_Read... [11:09:46]Read from MH i2c: E2 0E 00 54 01 00 09 00 01 63 60 F3 66 00 00 00 00 90 00 FA [11:09:46]RAPDU: 09 00 01 63 60 F3 66 00 00 00 00 90 00 [11:09:46]wFMCommunicate OK [11:09:46]SAM_PROTO_GetShiftState done [11:09:46]FM_GetShiftState done [11:09:46]opened in 1727225955 [11:09:46]opened+sec_in_day 1727312355 [11:09:46]quantity*price = 11000 [11:09:46]sum+1 = 11001 [11:09:46]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 5000159343961 Мороженое Сникерс батончик 1.000 * 113.00 = 113.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4870233466272 Мороженое Пломбир Миша 1.000 * 77.00 = 77.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4700000160204 Вода Легенда 1,5л 1.000 * 60.00 = 60.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4700003010087 Чай хол Lets Go зел чай ябл-гр ПЭТ 1,2л 1.000 * 95.00 = 95.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 455.00 НСП 1% : 4.02 НДС 12% : 48.32 Наличными: 455.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 61 25.09.2024 11:09 Смена: 474 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 116205 ФПД: 205850339015990 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240925T110947&type=1&operation_type=1&fn_number=0000000000871830&fd_number=116205&fm=205850339015990&tin=02508201610067®Number=0000000000091831&sum=45500 0 [11:09:47]StoreToDocumentArchive [11:09:47]shift 474 fd 116205 [11:09:47]save to /storage/0474/doc_00116205 [11:09:47]save last doc name /storage/0474/doc_00116205 to /storage/kkm_last_doc_name [11:09:47]save OK [11:09:47]Clear old archive folders... [11:09:47]ProcessDocumentItem done err = 0, tmpTLVsize=753 [11:09:47]tlvbuf is 00993D50 [11:09:47]SAM_PROTO_ClearQueue [11:09:47]wFMCommunicate request_size=4 [11:09:47]MH_SAM_APDU [11:09:47]CAPDU: 80 09 00 00 [11:09:47]Write to MH i2c: E2 08 00 61 01 80 09 00 00 00 00 00 00 D4 [11:09:47]Write i2c OK [11:09:47]MH_I2C_Read... [11:09:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:09:47]Read from MH i2c: E2 [11:09:47]MH_I2C_Read... [11:09:47]Read from MH i2c: E2 03 00 [11:09:47]MH_I2C_Read... [11:09:47]Read from MH i2c: E2 03 00 61 01 00 90 00 D6 [11:09:47]RAPDU: 90 00 [11:09:47]wFMCommunicate OK [11:09:47]SAM_PROTO_ClearQueue done [11:09:47]KKMCreateOFDPacket [11:09:47]OFDProtocolAddRootSTLVToBuf [11:09:47]FM_MakeSignedData [11:09:47]FM_MakeSignedData [11:09:47]SAM_PROTO_SignData [11:09:47]wFMCommunicate request_size=4 [11:09:47]MH_SAM_APDU [11:09:47]CAPDU: 80 0D 01 02 [11:09:47]Write to MH i2c: E2 08 00 62 01 80 0D 01 02 00 00 00 00 DC [11:09:47]Write i2c OK [11:09:47]MH_I2C_Read... [11:09:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:09:47]Read from MH i2c: E2 [11:09:47]MH_I2C_Read... [11:09:47]Read from MH i2c: E2 03 00 [11:09:47]MH_I2C_Read... [11:09:47]Read from MH i2c: E2 03 00 62 01 00 90 00 D7 [11:09:47]RAPDU: 90 00 [11:09:47]wFMCommunicate OK [11:09:47]wFMCommunicate request_size=255 [11:09:47]MH_SAM_APDU [11:09:47]CAPDU: 80 0D 02 02 FA 03 00 F1 02 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 34 37 30 30 30 30 33 32 34 31 32 37 36 06 04 2A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9C D0 BE D0 BB D0 BE D1 87 D0 BD D1 8B D0 B9 20 D0 A2 D0 90 D0 9D 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 76 00 8A 04 0D 00 35 30 30 30 31 35 39 33 34 33 39 36 31 06 04 32 00 D0 9C D0 BE D1 80 D0 BE D0 B6 D0 B5 D0 BD D0 BE D0 B5 20 D0 A1 D0 BD D0 B8 D0 BA D0 B5 D1 80 D1 81 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 2C 00 00 00 00 13 04 06 00 24 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6E 00 8A [11:09:47]Write to MH i2c: E2 02 01 63 01 80 0D 02 02 FA 00 03 00 F1 02 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 34 37 30 30 30 30 33 32 34 31 32 37 36 06 04 2A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9C D0 BE D0 BB D0 BE D1 87 D0 BD D1 8B D0 B9 20 D0 A2 D0 90 D0 9D 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 76 00 8A 04 0D 00 35 30 30 30 31 35 39 33 34 33 39 36 31 06 04 32 00 D0 9C D0 BE D1 80 D0 BE D0 B6 D0 B5 D0 BD D0 BE D0 B5 20 D0 A1 D0 BD D0 B8 D0 BA D0 B5 D1 80 D1 81 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 2C 00 00 00 00 13 04 06 00 24 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6E 00 8A 00 00 8A [11:09:47]Write i2c OK [11:09:47]MH_I2C_Read... [11:09:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:09:48]Read from MH i2c: E2 [11:09:48]MH_I2C_Read... [11:09:48]Read from MH i2c: E2 03 00 [11:09:48]MH_I2C_Read... [11:09:48]Read from MH i2c: E2 03 00 63 01 00 90 00 D8 [11:09:48]RAPDU: 90 00 [11:09:48]wFMCommunicate OK [11:09:48]wFMCommunicate request_size=255 [11:09:48]MH_SAM_APDU [11:09:48]CAPDU: 80 0D 02 02 FA 04 0D 00 34 38 37 30 32 33 33 34 36 36 32 37 32 06 04 2A 00 D0 9C D0 BE D1 80 D0 BE D0 B6 D0 B5 D0 BD D0 BE D0 B5 20 D0 9F D0 BB D0 BE D0 BC D0 B1 D0 B8 D1 80 20 D0 9C D0 B8 D1 88 D0 B0 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 1E 00 00 00 00 13 04 06 00 14 1E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 30 34 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 80 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 30 38 37 06 04 3C 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB 20 4C [11:09:48]Write to MH i2c: E2 02 01 64 01 80 0D 02 02 FA 00 04 0D 00 34 38 37 30 32 33 33 34 36 36 32 37 32 06 04 2A 00 D0 9C D0 BE D1 80 D0 BE D0 B6 D0 B5 D0 BD D0 BE D0 B5 20 D0 9F D0 BB D0 BE D0 BC D0 B1 D0 B8 D1 80 20 D0 9C D0 B8 D1 88 D0 B0 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 1E 00 00 00 00 13 04 06 00 14 1E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 30 34 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 80 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 30 38 37 06 04 3C 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB 20 4C 00 00 81 [11:09:48]Write i2c OK [11:09:48]MH_I2C_Read... [11:09:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:09:48]Read from MH i2c: E2 [11:09:48]MH_I2C_Read... [11:09:48]Read from MH i2c: E2 03 00 [11:09:48]MH_I2C_Read... [11:09:48]Read from MH i2c: E2 03 00 64 01 00 90 00 D9 [11:09:48]RAPDU: 90 00 [11:09:48]wFMCommunicate OK [11:09:48]wFMCommunicate request_size=255 [11:09:48]MH_SAM_APDU [11:09:48]CAPDU: 80 0D 02 02 FA 65 74 73 20 47 6F 20 D0 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 20 D1 8F D0 B1 D0 BB 2D D0 B3 D1 80 20 D0 9F D0 AD D0 A2 20 31 2C 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC B1 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 92 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E0 12 00 00 00 00 07 04 06 00 BC B1 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 7B EF F3 66 0E 04 04 00 DA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 ED C5 01 00 35 04 06 [11:09:48]Write to MH i2c: E2 02 01 65 01 80 0D 02 02 FA 00 65 74 73 20 47 6F 20 D0 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 20 D1 8F D0 B1 D0 BB 2D D0 B3 D1 80 20 D0 9F D0 AD D0 A2 20 31 2C 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC B1 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 92 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E0 12 00 00 00 00 07 04 06 00 BC B1 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 7B EF F3 66 0E 04 04 00 DA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 ED C5 01 00 35 04 06 00 00 27 [11:09:48]Write i2c OK [11:09:48]MH_I2C_Read... [11:09:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:09:48]Read from MH i2c: E2 [11:09:48]MH_I2C_Read... [11:09:48]Read from MH i2c: E2 03 00 [11:09:48]MH_I2C_Read... [11:09:48]Read from MH i2c: E2 03 00 65 01 00 90 00 DA [11:09:48]RAPDU: 90 00 [11:09:48]wFMCommunicate OK [11:09:48]wFMCommunicate request_size=12 [11:09:48]MH_SAM_APDU [11:09:48]CAPDU: 80 0D 02 02 07 00 BB 38 44 55 7D 36 [11:09:48]Write to MH i2c: E2 0F 00 66 01 80 0D 02 02 07 00 00 BB 38 44 55 7D 36 00 00 2E [11:09:48]Write i2c OK [11:09:48]MH_I2C_Read... [11:09:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:09:48]Read from MH i2c: E2 [11:09:48]MH_I2C_Read... [11:09:48]Read from MH i2c: E2 03 00 [11:09:48]MH_I2C_Read... [11:09:48]Read from MH i2c: E2 03 00 66 01 00 90 00 DB [11:09:48]RAPDU: 90 00 [11:09:48]wFMCommunicate OK [11:09:48]wFMCommunicate request_size=4 [11:09:48]MH_SAM_APDU [11:09:48]CAPDU: 80 0D 03 02 [11:09:48]Write to MH i2c: E2 08 00 67 01 80 0D 03 02 00 00 00 00 E3 [11:09:48]Write i2c OK [11:09:48]MH_I2C_Read... [11:09:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:09:48]Read from MH i2c: E2 [11:09:48]MH_I2C_Read... [11:09:48]Read from MH i2c: E2 0B 00 [11:09:48]MH_I2C_Read... [11:09:48]Read from MH i2c: E2 0B 00 67 01 00 01 2D FC 49 AC 82 AC E3 90 00 14 [11:09:48]RAPDU: 01 2D FC 49 AC 82 AC E3 90 00 [11:09:48]wFMCommunicate OK [11:09:48]SAM_PROTO_SignData done [11:09:48]FM_MakeSignedData done [11:09:48]CreateOFDProtocolMessage [11:09:48]wFMCommunicate request_size=4 [11:09:48]MH_SAM_APDU [11:09:48]CAPDU: 80 11 00 00 [11:09:48]Write to MH i2c: E2 08 00 68 01 80 11 00 00 00 00 00 00 E3 [11:09:48]Write i2c OK [11:09:48]MH_I2C_Read... [11:09:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:09:48]Read from MH i2c: E2 [11:09:48]MH_I2C_Read... [11:09:48]Read from MH i2c: E2 17 00 [11:09:48]MH_I2C_Read... [11:09:48]Read from MH i2c: E2 17 00 68 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 31 [11:09:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [11:09:48]wFMCommunicate OK [11:09:48]CreateOFDProtocolMessage done [11:09:48]OFDSenderStorePacket 116205 [11:09:48]StoreOFDPacket docnum=116205 [11:09:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 05 03 00 00 DA 3C FD 02 80 88 5A 03 01 00 03 00 F1 02 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 34 37 30 30 30 30 33 32 34 31 32 37 36 06 04 2A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9C D0 BE D0 BB D0 BE D1 87 D0 BD D1 8B D0 B9 20 D0 A2 D0 90 D0 9D 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 76 00 8A 04 0D 00 35 30 30 30 31 35 39 33 34 33 39 36 31 06 04 32 00 D0 9C D0 BE D1 80 D0 BE D0 B6 D0 B5 D0 BD D0 BE D0 B5 20 D0 A1 D0 BD D0 B8 D0 BA D0 B5 D1 80 D1 81 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 2C 00 00 00 00 13 04 06 00 24 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6E 00 8A 04 0D 00 34 38 37 30 32 33 33 34 36 36 32 37 32 06 04 2A 00 D0 9C D0 BE D1 80 D0 BE D0 B6 D0 B5 D0 BD D0 BE D0 B5 20 D0 9F D0 BB D0 BE D0 BC D0 B1 D0 B8 D1 80 20 D0 9C D0 B8 D1 88 D0 B0 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 1E 00 00 00 00 13 04 06 00 14 1E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 30 34 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 80 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 30 38 37 06 04 3C 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB 20 4C 65 74 73 20 47 6F 20 D0 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 20 D1 8F D0 B1 D0 BB 2D D0 B3 D1 80 20 D0 9F D0 AD D0 A2 20 31 2C 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC B1 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 92 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E0 12 00 00 00 00 07 04 06 00 BC B1 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 7B EF F3 66 0E 04 04 00 DA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 ED C5 01 00 35 04 06 00 BB 38 44 55 7D 36 01 2D FC 49 AC 82 AC E3 [11:09:49]CheckFolder [11:09:49]dirname=/storage/ofd_packets [11:09:49]CheckFolder done [11:09:49]ProducePacketName [11:09:49]name=ofd_packets/00116205 [11:09:49]NVStorageSaveData ofd_packets/00116205 [11:09:49]File name is /storage/ofd_packets/00116205 [11:09:49]Write 803 bytes [11:09:49]NVStorageSaveData done [11:09:49]OFDSenderStorePacket done [11:09:49]KKMCreateOFDPacket done [11:09:49]NVStorageSaveData kkm_last_timestamp [11:09:49]File name is /storage/kkm_last_timestamp [11:09:49]Write 4 bytes [11:09:49]NVStorageSaveData done [11:09:49]ExternCall_PrintAddStr [11:09:49]wPrintStart [11:09:49]Write to MH i2c: 01 00 00 69 01 6A [11:09:49]Write i2c OK [11:09:49]MH_I2C_Read... [11:09:49]Read from MH i2c: 01 [11:09:49]MH_I2C_Read... [11:09:49]Read from MH i2c: 01 07 00 [11:09:49]MH_I2C_Read... [11:09:49]Read from MH i2c: 01 07 00 69 01 00 00 00 00 00 FF 0F 7F [11:09:49]RasterBufferAndPrint [11:09:49]line Счет N : (3)344375 [11:09:49]line ИНН: 02508201610067 [11:09:49]line Контрольно-Кассовый Чек [11:09:49]line ПРОДАЖА [11:09:49]line Товар: 4700003241276 [11:09:49]line Напиток Молочный ТАН 1л [11:09:49]line 1.000 * 110.00 [11:09:49]line = 110.00 [11:09:49]line НДС 12% НСП 1% [11:09:49]line > о реализуемом товаре [11:09:49]line Товар: 5000159343961 [11:09:49]line Мороженое Сникерс батончик [11:09:49]line 1.000 * 113.00 [11:09:49]line = 113.00 [11:09:49]line НДС 12% НСП 1% [11:09:49]line > о реализуемом товаре [11:09:49]line Товар: 4870233466272 [11:09:49]line Мороженое Пломбир Миша [11:09:49]line 1.000 * 77.00 [11:09:49]line = 77.00 [11:09:49]line НДС 12% НСП 1% [11:09:49]line > о реализуемом товаре [11:09:49]line Товар: 4700000160204 [11:09:49]line Вода Легенда 1,5л [11:09:49]line 1.000 * 60.00 [11:09:49]line = 60.00 [11:09:49]line НДС 12% НСП 1% [11:09:49]line > о реализуемом товаре [11:09:49]line Товар: 4700003010087 [11:09:49]line Чай хол Lets Go зел чай ябл-гр ПЭТ 1,2л [11:09:49]line 1.000 * 95.00 [11:09:49]line = 95.00 [11:09:49]line НДС 12% НСП 1% [11:09:49]line > о реализуемом товаре [11:09:49]line ИТОГО: 455.00 [11:09:49]line НСП 1% : 4.02 [11:09:49]line НДС 12% : 48.32 [11:09:49]line Наличными: 455.00 [11:09:49]line Безнал.: 0.00 [11:09:49]line Место: АЗС № 90 "Партнер Нефть" [11:09:49]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [11:09:49]line СНО: Общий режим [11:09:49]line Чек 61 25.09.2024 11:09 [11:09:49]line Смена: 474 ФФД: 1.0 [11:09:49]line ЗНМ: 0300000120 [11:09:49]line РНМ: 0000000000091831 [11:09:49]line Версия ККМ: 001 [11:09:49]line ФМ: 0000000000871830 [11:09:49]line ФД: 116205 [11:09:49]line ФПД: 205850339015990 [11:09:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240925T110947&type=1&operation_type=1&fn_number=0000000000871830&fd_number=116205&fm=205850339015990&tin=02508201610067®Number=0000000000091831&sum=45500 [11:09:49]line 0 [11:09:49]written 0, free lines is 4095 [11:09:49]OFD Sender: Processing packet 116205 [packets to send 482, broken 481] [11:09:49]ProducePacketName [11:09:49]name=ofd_packets/00116205 [11:09:49]OFD Sender: To server: pG, [11:09:49]CommunicateWithHost lk.salyk.kg:30040 [11:09:49]ConnectInit lk.salyk.kg [11:09:49]Connected sock=10 [11:09:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 05 03 00 00 DA 3C FD 02 80 88 5A 03 01 00 03 00 F1 02 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 34 37 30 30 30 30 33 32 34 31 32 37 36 06 04 2A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9C D0 BE D0 BB D0 BE D1 87 D0 BD D1 8B D0 B9 20 D0 A2 D0 90 D0 9D 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 76 00 8A 04 0D 00 35 30 30 30 31 35 39 33 34 33 39 36 31 06 04 32 00 D0 9C D0 BE D1 80 D0 BE D0 B6 D0 B5 D0 BD D0 BE D0 B5 20 D0 A1 D0 BD D0 B8 D0 BA D0 B5 D1 80 D1 81 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 2C 00 00 00 00 13 04 06 00 24 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6E 00 8A 04 0D 00 34 38 37 30 32 33 33 34 36 36 32 37 32 06 04 2A 00 D0 9C D0 BE D1 80 D0 BE D0 B6 D0 B5 D0 BD D0 BE D0 B5 20 D0 9F D0 BB D0 BE D0 BC D0 B1 D0 B8 D1 80 20 D0 9C D0 B8 D1 88 D0 B0 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 1E 00 00 00 00 13 04 06 00 14 1E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 30 34 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 80 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 30 38 37 06 04 3C 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB 20 4C 65 74 73 20 47 6F 20 D0 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 20 D1 8F D0 B1 D0 BB 2D D0 B3 D1 80 20 D0 9F D0 AD D0 A2 20 31 2C 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC B1 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 92 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E0 12 00 00 00 00 07 04 06 00 BC B1 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 7B EF F3 66 0E 04 04 00 DA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 ED C5 01 00 35 04 06 00 BB 38 44 55 7D 36 01 2D FC 49 AC 82 AC E3 [11:09:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 0E FD 47 00 1C 13 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 ED C5 01 00 F4 03 04 00 B8 94 F3 66 B6 04 01 00 00 6D D1 91 07 41 33 05 4F [11:09:49]CommunicateWithHost err = 0 [11:09:49]CheckOFDResponse [11:09:49]1017 (14) - 77093643461234 [11:09:49]1041 (16) - 0000000000871830 [11:09:49]1040 (4) - 116205 [11:09:49]1012 (4) - 25.09.2024 04:42 [11:09:49]1206 (1) - 0 [11:09:49]OFD Sender: Remove packet 116205 [11:09:49]ProducePacketName [11:09:49]name=ofd_packets/00116205 [11:09:49]NVStorageDeleteData [11:09:49]Write to MH i2c: 01 00 00 A9 01 AA [11:09:49]Write i2c OK [11:09:49]MH_I2C_Read... [11:09:49]Read from MH i2c: 01 [11:09:49]MH_I2C_Read... [11:09:49]Read from MH i2c: 01 07 00 [11:09:49]MH_I2C_Read... [11:09:49]Read from MH i2c: 01 07 00 A9 01 00 00 00 00 00 78 0A 33 [11:09:49]RasterBufferAndPrint [11:09:49]line [11:09:49]line [11:09:49]line [11:09:49]line [11:09:49]line [11:09:49]written 0, free lines is 2686 [11:09:49]MH_Cut [11:09:49]Write to MH i2c: D1 01 00 B0 01 01 83 [11:09:49]Write i2c OK [11:09:49]MH_I2C_Read... [11:09:49]Read from MH i2c: D1 [11:09:49]MH_I2C_Read... [11:09:49]Read from MH i2c: D1 01 00 [11:09:49]MH_I2C_Read... [11:09:49]Read from MH i2c: D1 01 00 B0 01 00 82 [11:09:49]Write to MH i2c: 01 00 00 B1 01 B2 [11:09:49]Write i2c OK [11:09:49]MH_I2C_Read... [11:09:50]OFD Sender: No OFD packet to send [11:09:51]*** Cut start [11:09:51]*** Partial cut [11:09:51]*** CUTSNS_PIN = 1 [11:09:51]*** CUTSNS_PIN = 0 [11:09:52]*** Brake cut motor [11:09:52]Read from MH i2c: 01 [11:09:52]MH_I2C_Read... [11:09:52]*** Stop cut motor [11:09:52]*** Cut end [11:09:52]Read from MH i2c: 01 07 00 [11:09:52]MH_I2C_Read... [11:09:52]Read from MH i2c: 01 07 00 B1 01 00 00 00 00 00 FF 0F C7 [11:09:52]process_action close_receipt done [11:09:52]requested_data is exist [11:09:52]produce_requested_data [11:09:52]requested_item fm.sn is exist - process it [11:09:52]wFMCommunicate request_size=4 [11:09:52]MH_SAM_APDU [11:09:52]CAPDU: 80 11 00 00 [11:09:52]Write to MH i2c: E2 08 00 B2 01 80 11 00 00 00 00 00 00 2D [11:09:52]Write i2c OK [11:09:52]MH_I2C_Read... [11:09:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:09:52]Read from MH i2c: E2 [11:09:52]MH_I2C_Read... [11:09:52]Read from MH i2c: E2 17 00 [11:09:52]MH_I2C_Read... [11:09:52]Read from MH i2c: E2 17 00 B2 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 7B [11:09:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [11:09:52]wFMCommunicate OK [11:09:52]requested_item fd.num is exist - process it [11:09:52]SAM_PROTO_GetFieldsCounters [11:09:52]wFMCommunicate request_size=4 [11:09:52]MH_SAM_APDU [11:09:52]CAPDU: 80 13 00 00 [11:09:52]Write to MH i2c: E2 08 00 B3 01 80 13 00 00 00 00 00 00 30 [11:09:52]Write i2c OK [11:09:52]MH_I2C_Read... [11:09:52]Read from MH i2c: E2 [11:09:52]MH_I2C_Read... [11:09:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:09:52]Read from MH i2c: E2 62 00 [11:09:52]MH_I2C_Read... [11:09:52]Read from MH i2c: E2 62 00 B3 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 ED C5 01 00 0E 04 04 00 DA 01 00 00 12 04 04 00 3D 00 00 00 5E 04 04 00 3D 00 00 00 57 04 04 00 3E 00 00 00 19 04 04 00 00 00 00 00 90 00 8E [11:09:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 ED C5 01 00 0E 04 04 00 DA 01 00 00 12 04 04 00 3D 00 00 00 5E 04 04 00 3D 00 00 00 57 04 04 00 3E 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:09:52]wFMCommunicate OK [11:09:52]SAM_PROTO_GetFieldsCounters done [11:09:52]requested_item shift.num is exist - process it [11:09:52]requested_item shift.opened is exist - process it [11:09:52]req_shift_opened [11:09:52]FM_GetShiftState [11:09:52]SAM_PROTO_GetShiftState [11:09:52]wFMCommunicate request_size=4 [11:09:52]MH_SAM_APDU [11:09:52]CAPDU: 80 13 01 00 [11:09:52]Write to MH i2c: E2 08 00 B4 01 80 13 01 00 00 00 00 00 32 [11:09:52]Write i2c OK [11:09:52]MH_I2C_Read... [11:09:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:09:52]Read from MH i2c: E2 [11:09:52]MH_I2C_Read... [11:09:52]Read from MH i2c: E2 0E 00 [11:09:52]MH_I2C_Read... [11:09:52]Read from MH i2c: E2 0E 00 B4 01 00 09 00 01 63 60 F3 66 00 00 00 00 90 00 5A [11:09:52]RAPDU: 09 00 01 63 60 F3 66 00 00 00 00 90 00 [11:09:52]wFMCommunicate OK [11:09:52]SAM_PROTO_GetShiftState done [11:09:52]FM_GetShiftState done [11:09:52]req_shift_opened done [11:09:52]requested_item shift.open_date is exist - process it [11:09:52]req_shift_open_date [11:09:52]req_shift_open_date done [11:09:52]produce_requested_data done [11:09:52]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":116205,"shift.num":474,"shift.opened":1,"shift.open_date":1727225955} [11:09:52]process_action_free close_receipt [11:09:52]json_value_free [11:09:52]json_value_free done [11:09:52]process_json_proto returns [11:09:52]Send response to host [11:09:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":116205,"shift.num":474,"shift.opened":1,"shift.open_date":1727225955}}} [11:09:52]free response buf [11:09:52]execute_script done [11:09:52]execute_script returns [11:09:52]free content buf [11:09:52]Sock 7.Close socket [11:09:52]Sock 7.Thread stoped [11:09:55]OFD Sender: No OFD packet to send [11:10:00]OFD Sender: No OFD packet to send [11:10:05]OFD Sender: No OFD packet to send [11:10:10]OFD Sender: No OFD packet to send [11:10:15]OFD Sender: No OFD packet to send [11:10:20]OFD Sender: No OFD packet to send [11:10:25]OFD Sender: No OFD packet to send [11:10:30]OFD Sender: No OFD packet to send [11:10:35]OFD Sender: No OFD packet to send [11:10:40]OFD Sender: No OFD packet to send [11:10:45]OFD Sender: No OFD packet to send [11:10:50]OFD Sender: No OFD packet to send [11:10:55]OFD Sender: No OFD packet to send [11:11:00]OFD Sender: No OFD packet to send [11:11:05]OFD Sender: No OFD packet to send [11:11:10]OFD Sender: No OFD packet to send [11:11:15]OFD Sender: No OFD packet to send [11:11:20]OFD Sender: No OFD packet to send [11:11:25]OFD Sender: No OFD packet to send [11:11:30]OFD Sender: No OFD packet to send [11:11:35]OFD Sender: No OFD packet to send [11:11:40]OFD Sender: No OFD packet to send [11:11:45]OFD Sender: No OFD packet to send [11:11:50]OFD Sender: No OFD packet to send [11:11:55]OFD Sender: No OFD packet to send [11:12:00]OFD Sender: No OFD packet to send [11:12:05]OFD Sender: No OFD packet to send [11:12:10]OFD Sender: No OFD packet to send [11:12:15]OFD Sender: No OFD packet to send [11:12:20]OFD Sender: No OFD packet to send [11:12:25]OFD Sender: No OFD packet to send [11:12:30]OFD Sender: No OFD packet to send [11:12:35]OFD Sender: No OFD packet to send [11:12:40]OFD Sender: No OFD packet to send [11:12:45]OFD Sender: No OFD packet to send [11:12:50]OFD Sender: No OFD packet to send [11:12:55]OFD Sender: No OFD packet to send [11:13:00]OFD Sender: No OFD packet to send [11:13:05]OFD Sender: No OFD packet to send [11:13:10]OFD Sender: No OFD packet to send [11:13:15]OFD Sender: No OFD packet to send [11:13:20]OFD Sender: No OFD packet to send [11:13:25]OFD Sender: No OFD packet to send [11:13:30]OFD Sender: No OFD packet to send [11:13:35]OFD Sender: No OFD packet to send [11:13:40]OFD Sender: No OFD packet to send [11:13:45]OFD Sender: No OFD packet to send [11:13:50]OFD Sender: No OFD packet to send [11:13:55]OFD Sender: No OFD packet to send [11:14:00]OFD Sender: No OFD packet to send [11:14:05]OFD Sender: No OFD packet to send [11:14:10]OFD Sender: No OFD packet to send [11:14:15]OFD Sender: No OFD packet to send [11:14:20]OFD Sender: No OFD packet to send [11:14:25]OFD Sender: No OFD packet to send [11:14:30]OFD Sender: No OFD packet to send [11:14:35]OFD Sender: No OFD packet to send [11:14:40]OFD Sender: No OFD packet to send [11:14:46]OFD Sender: No OFD packet to send [11:14:51]OFD Sender: No OFD packet to send [11:14:56]OFD Sender: No OFD packet to send [11:15:01]OFD Sender: No OFD packet to send [11:15:06]OFD Sender: No OFD packet to send [11:15:11]OFD Sender: No OFD packet to send [11:15:16]OFD Sender: No OFD packet to send [11:15:21]OFD Sender: No OFD packet to send [11:15:26]OFD Sender: No OFD packet to send [11:15:31]OFD Sender: No OFD packet to send [11:15:36]OFD Sender: No OFD packet to send [11:15:41]OFD Sender: No OFD packet to send [11:15:46]OFD Sender: No OFD packet to send [11:15:51]OFD Sender: No OFD packet to send [11:15:56]OFD Sender: No OFD packet to send [11:16:01]OFD Sender: No OFD packet to send [11:16:06]OFD Sender: No OFD packet to send [11:16:11]OFD Sender: No OFD packet to send [11:16:16]OFD Sender: No OFD packet to send [11:16:21]OFD Sender: No OFD packet to send [11:16:26]OFD Sender: No OFD packet to send [11:16:31]OFD Sender: No OFD packet to send [11:16:36]OFD Sender: No OFD packet to send [11:16:41]OFD Sender: No OFD packet to send [11:16:46]OFD Sender: No OFD packet to send [11:16:51]OFD Sender: No OFD packet to send [11:16:56]OFD Sender: No OFD packet to send [11:17:01]OFD Sender: No OFD packet to send [11:17:06]OFD Sender: No OFD packet to send [11:17:11]OFD Sender: No OFD packet to send [11:17:16]OFD Sender: No OFD packet to send [11:17:21]OFD Sender: No OFD packet to send [11:17:26]OFD Sender: No OFD packet to send [11:17:31]OFD Sender: No OFD packet to send [11:17:36]OFD Sender: No OFD packet to send [11:17:41]OFD Sender: No OFD packet to send [11:17:46]OFD Sender: No OFD packet to send [11:17:51]OFD Sender: No OFD packet to send [11:17:56]OFD Sender: No OFD packet to send [11:18:01]OFD Sender: No OFD packet to send [11:18:06]OFD Sender: No OFD packet to send [11:18:11]OFD Sender: No OFD packet to send [11:18:16]OFD Sender: No OFD packet to send [11:18:21]OFD Sender: No OFD packet to send [11:18:26]OFD Sender: No OFD packet to send [11:18:31]OFD Sender: No OFD packet to send [11:18:36]OFD Sender: No OFD packet to send [11:18:41]OFD Sender: No OFD packet to send [11:18:46]OFD Sender: No OFD packet to send [11:18:51]OFD Sender: No OFD packet to send [11:18:56]OFD Sender: No OFD packet to send [11:19:01]OFD Sender: No OFD packet to send [11:19:06]OFD Sender: No OFD packet to send [11:19:11]OFD Sender: No OFD packet to send [11:19:16]accept exits with 9 [11:19:16]New connection [11:19:16]New thread 3067444580 created [11:19:16]Thread 3067587940 joined [11:19:16]Waiting for new connection... [11:19:16] Sock 9.Parse request [11:19:16]Sock 9.Check first char [11:19:16]Sock 9.First char is OK [11:19:16]request: POST /json_proto HTTP/1.0 [11:19:16]Method: POST [11:19:16]URL: /json_proto [11:19:16]Method is POST - this is cgi request [11:19:16]url: /json_proto [11:19:16]query_string will be loaded in cgi processing [11:19:16]execute_cgi json_proto POST (null) [11:19:16]execute_cgi path=json_proto method=POST [11:19:16]POST find Content-Length [11:19:16]Host: 172.17.41.136:8080 [11:19:16]Content-Length: 632 [11:19:16]Content-Type: application/json [11:19:16] [11:19:16]POST finish read [11:19:16]Found Content-Length = 632 [11:19:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)344376", "tax_sys" : 0, "items" : [ { "code": "4700000160204", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1,5\u043B", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 60.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:19:16]execute_script... [11:19: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 : (3)344376", "tax_sys" : 0, "items" : [ { "code": "4700000160204", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1,5\u043B", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 60.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:19:16]POST & json_proto [11:19:16]process_json_proto [11:19:16]json parsed OK: [11:19:16]protocol is kg_v1.0 [11:19:16]action value=close_receipt [11:19:16]process_action close_receipt [11:19:16]cmd_close_receipt [11:19:16]MH_GetDate [11:19:16]Write to MH i2c: F0 00 00 B5 01 A5 [11:19:16]Write i2c OK [11:19:16]MH_I2C_Read... [11:19:16]Read from MH i2c: F0 [11:19:16]MH_I2C_Read... [11:19:16]Read from MH i2c: F0 09 00 [11:19:16]MH_I2C_Read... [11:19:16]Read from MH i2c: F0 09 00 B5 01 00 B4 F1 F3 66 1B D0 5A 64 55 [11:19:16]GetLastDocTimeStamp 1727262587 [11:19:16]current date 1727263156 [11:19:16]FM_GetShiftState [11:19:16]SAM_PROTO_GetShiftState [11:19:16]wFMCommunicate request_size=4 [11:19:16]MH_SAM_APDU [11:19:16]CAPDU: 80 13 01 00 [11:19:16]Write to MH i2c: E2 08 00 B6 01 80 13 01 00 00 00 00 00 34 [11:19:16]Write i2c OK [11:19:16]MH_I2C_Read... [11:19:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:19:16]Read from MH i2c: E2 [11:19:16]MH_I2C_Read... [11:19:16]Read from MH i2c: E2 0E 00 [11:19:16]MH_I2C_Read... [11:19:16]Read from MH i2c: E2 0E 00 B6 01 00 09 00 01 63 60 F3 66 00 00 00 00 90 00 5C [11:19:16]RAPDU: 09 00 01 63 60 F3 66 00 00 00 00 90 00 [11:19:16]wFMCommunicate OK [11:19:16]SAM_PROTO_GetShiftState done [11:19:16]FM_GetShiftState done [11:19:16]opened in 1727225955 [11:19:16]opened+sec_in_day 1727312355 [11:19:16]quantity*price = 6000 [11:19:16]sum+1 = 6001 [11:19:16]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 60.00 НСП 1% : 0.53 НДС 12% : 6.37 Наличными: 60.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 62 25.09.2024 11:19 Смена: 474 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 116206 ФПД: 16079452527104 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240925T111916&type=1&operation_type=1&fn_number=0000000000871830&fd_number=116206&fm=16079452527104&tin=02508201610067®Number=0000000000091831&sum=6000 0 [11:19:17]StoreToDocumentArchive [11:19:17]shift 474 fd 116206 [11:19:17]save to /storage/0474/doc_00116206 [11:19:17]save last doc name /storage/0474/doc_00116206 to /storage/kkm_last_doc_name [11:19:17]save OK [11:19:17]Clear old archive folders... [11:19:17]ProcessDocumentItem done err = 0, tmpTLVsize=271 [11:19:17]tlvbuf is 0098C6A0 [11:19:17]SAM_PROTO_ClearQueue [11:19:17]wFMCommunicate request_size=4 [11:19:17]MH_SAM_APDU [11:19:17]CAPDU: 80 09 00 00 [11:19:17]Write to MH i2c: E2 08 00 C3 01 80 09 00 00 00 00 00 00 36 [11:19:17]Write i2c OK [11:19:17]MH_I2C_Read... [11:19:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:19:17]Read from MH i2c: E2 [11:19:17]MH_I2C_Read... [11:19:17]Read from MH i2c: E2 03 00 [11:19:17]MH_I2C_Read... [11:19:17]Read from MH i2c: E2 03 00 C3 01 00 90 00 38 [11:19:17]RAPDU: 90 00 [11:19:17]wFMCommunicate OK [11:19:17]SAM_PROTO_ClearQueue done [11:19:17]KKMCreateOFDPacket [11:19:17]OFDProtocolAddRootSTLVToBuf [11:19:17]FM_MakeSignedData [11:19:17]FM_MakeSignedData [11:19:17]SAM_PROTO_SignData [11:19:17]wFMCommunicate request_size=4 [11:19:17]MH_SAM_APDU [11:19:17]CAPDU: 80 0D 01 02 [11:19:17]Write to MH i2c: E2 08 00 C4 01 80 0D 01 02 00 00 00 00 3E [11:19:17]Write i2c OK [11:19:17]MH_I2C_Read... [11:19:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:19:17]Read from MH i2c: E2 [11:19:17]MH_I2C_Read... [11:19:17]Read from MH i2c: E2 03 00 [11:19:17]MH_I2C_Read... [11:19:17]Read from MH i2c: E2 03 00 C4 01 00 90 00 39 [11:19:17]RAPDU: 90 00 [11:19:17]wFMCommunicate OK [11:19:17]wFMCommunicate request_size=255 [11:19:17]MH_SAM_APDU [11:19:17]CAPDU: 80 0D 02 02 FA 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 30 34 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 17 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 35 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 02 00 00 00 00 07 04 06 00 70 17 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 00 00 00 F4 03 04 00 B4 F1 F3 66 0E 04 04 00 DA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 [11:19:17]Write to MH i2c: E2 02 01 C5 01 80 0D 02 02 FA 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 30 34 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 17 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 35 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 02 00 00 00 00 07 04 06 00 70 17 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 00 00 00 F4 03 04 00 B4 F1 F3 66 0E 04 04 00 DA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 00 00 81 [11:19:17]Write i2c OK [11:19:17]MH_I2C_Read... [11:19:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:19:17]Read from MH i2c: E2 [11:19:17]MH_I2C_Read... [11:19:17]Read from MH i2c: E2 03 00 [11:19:17]MH_I2C_Read... [11:19:17]Read from MH i2c: E2 03 00 C5 01 00 90 00 3A [11:19:17]RAPDU: 90 00 [11:19:17]wFMCommunicate OK [11:19:17]wFMCommunicate request_size=30 [11:19:17]MH_SAM_APDU [11:19:17]CAPDU: 80 0D 02 02 19 30 38 37 31 38 33 30 10 04 04 00 EE C5 01 00 35 04 06 00 0E 9F CA 0E 5A 00 [11:19:17]Write to MH i2c: E2 21 00 C6 01 80 0D 02 02 19 00 30 38 37 31 38 33 30 10 04 04 00 EE C5 01 00 35 04 06 00 0E 9F CA 0E 5A 00 00 00 C8 [11:19:17]Write i2c OK [11:19:17]MH_I2C_Read... [11:19:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:19:17]Read from MH i2c: E2 [11:19:17]MH_I2C_Read... [11:19:17]Read from MH i2c: E2 03 00 [11:19:17]MH_I2C_Read... [11:19:17]Read from MH i2c: E2 03 00 C6 01 00 90 00 3B [11:19:17]RAPDU: 90 00 [11:19:17]wFMCommunicate OK [11:19:17]wFMCommunicate request_size=4 [11:19:17]MH_SAM_APDU [11:19:17]CAPDU: 80 0D 03 02 [11:19:17]Write to MH i2c: E2 08 00 C7 01 80 0D 03 02 00 00 00 00 43 [11:19:17]Write i2c OK [11:19:17]MH_I2C_Read... [11:19:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:19:18]Read from MH i2c: E2 [11:19:18]MH_I2C_Read... [11:19:18]Read from MH i2c: E2 0B 00 [11:19:18]MH_I2C_Read... [11:19:18]Read from MH i2c: E2 0B 00 C7 01 00 56 46 76 3E 07 0C 55 02 90 00 FE [11:19:18]RAPDU: 56 46 76 3E 07 0C 55 02 90 00 [11:19:18]wFMCommunicate OK [11:19:18]SAM_PROTO_SignData done [11:19:18]FM_MakeSignedData done [11:19:18]CreateOFDProtocolMessage [11:19:18]wFMCommunicate request_size=4 [11:19:18]MH_SAM_APDU [11:19:18]CAPDU: 80 11 00 00 [11:19:18]Write to MH i2c: E2 08 00 C8 01 80 11 00 00 00 00 00 00 43 [11:19:18]Write i2c OK [11:19:18]MH_I2C_Read... [11:19:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:19:18]Read from MH i2c: E2 [11:19:18]MH_I2C_Read... [11:19:18]Read from MH i2c: E2 17 00 [11:19:18]MH_I2C_Read... [11:19:18]Read from MH i2c: E2 17 00 C8 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 91 [11:19:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [11:19:18]wFMCommunicate OK [11:19:18]CreateOFDProtocolMessage done [11:19:18]OFDSenderStorePacket 116206 [11:19:18]StoreOFDPacket docnum=116206 [11:19:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 23 01 00 00 AA 3D 1B 01 AA 77 5A 03 01 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 30 34 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 17 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 35 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 02 00 00 00 00 07 04 06 00 70 17 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 00 00 00 F4 03 04 00 B4 F1 F3 66 0E 04 04 00 DA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 EE C5 01 00 35 04 06 00 0E 9F CA 0E 5A 00 56 46 76 3E 07 0C 55 02 [11:19:18]CheckFolder [11:19:18]dirname=/storage/ofd_packets [11:19:18]CheckFolder done [11:19:18]ProducePacketName [11:19:18]name=ofd_packets/00116206 [11:19:18]NVStorageSaveData ofd_packets/00116206 [11:19:18]File name is /storage/ofd_packets/00116206 [11:19:18]Write 321 bytes [11:19:18]NVStorageSaveData done [11:19:18]OFDSenderStorePacket done [11:19:18]KKMCreateOFDPacket done [11:19:18]NVStorageSaveData kkm_last_timestamp [11:19:18]File name is /storage/kkm_last_timestamp [11:19:18]Write 4 bytes [11:19:18]NVStorageSaveData done [11:19:18]ExternCall_PrintAddStr [11:19:18]wPrintStart [11:19:18]Write to MH i2c: 01 00 00 C9 01 CA [11:19:18]Write i2c OK [11:19:18]MH_I2C_Read... [11:19:18]Read from MH i2c: 01 [11:19:18]MH_I2C_Read... [11:19:18]Read from MH i2c: 01 07 00 [11:19:18]MH_I2C_Read... [11:19:18]Read from MH i2c: 01 07 00 C9 01 00 00 00 00 00 FF 0F DF [11:19:18]RasterBufferAndPrint [11:19:18]line Счет N : (3)344376 [11:19:18]line ИНН: 02508201610067 [11:19:18]line Контрольно-Кассовый Чек [11:19:18]line ПРОДАЖА [11:19:18]line Товар: 4700000160204 [11:19:18]line Вода Легенда 1,5л [11:19:18]line 1.000 * 60.00 [11:19:18]line = 60.00 [11:19:18]line НДС 12% НСП 1% [11:19:18]line > о реализуемом товаре [11:19:18]line ИТОГО: 60.00 [11:19:18]line НСП 1% : 0.53 [11:19:18]line НДС 12% : 6.37 [11:19:18]line Наличными: 60.00 [11:19:18]line Безнал.: 0.00 [11:19:18]line Место: АЗС № 90 "Партнер Нефть" [11:19:18]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [11:19:18]line СНО: Общий режим [11:19:18]line Чек 62 25.09.2024 11:19 [11:19:18]line Смена: 474 ФФД: 1.0 [11:19:18]line ЗНМ: 0300000120 [11:19:18]line РНМ: 0000000000091831 [11:19:18]line Версия ККМ: 001 [11:19:18]line ФМ: 0000000000871830 [11:19:18]line ФД: 116206 [11:19:18]line ФПД: 16079452527104 [11:19:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240925T111916&type=1&operation_type=1&fn_number=0000000000871830&fd_number=116206&fm=16079452527104&tin=02508201610067®Number=0000000000091831&sum=6000 [11:19:18]line 0 [11:19:18]OFD Sender: Processing packet 116206 [packets to send 482, broken 481] [11:19:18]ProducePacketName [11:19:18]name=ofd_packets/00116206 [11:19:18]OFD Sender: To server: pG, [11:19:18]CommunicateWithHost lk.salyk.kg:30040 [11:19:18]ConnectInit lk.salyk.kg [11:19:18]written 0, free lines is 4095 [11:19:18]Connected sock=10 [11:19:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 23 01 00 00 AA 3D 1B 01 AA 77 5A 03 01 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 30 34 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 17 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 35 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 02 00 00 00 00 07 04 06 00 70 17 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 00 00 00 F4 03 04 00 B4 F1 F3 66 0E 04 04 00 DA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 EE C5 01 00 35 04 06 00 0E 9F CA 0E 5A 00 56 46 76 3E 07 0C 55 02 [11:19:18]Write to MH i2c: 01 00 00 F0 01 F1 [11:19:18]Write i2c OK [11:19:18]MH_I2C_Read... [11:19:18]Read from MH i2c: 01 [11:19:18]MH_I2C_Read... [11:19:18]Read from MH i2c: 01 07 00 [11:19:18]MH_I2C_Read... [11:19:18]Read from MH i2c: 01 07 00 F0 01 00 00 00 00 00 89 0C 8D [11:19:18]RasterBufferAndPrint [11:19:18]line [11:19:18]line [11:19:18]line [11:19:18]line [11:19:18]line [11:19:18]written 0, free lines is 3215 [11:19:18]MH_Cut [11:19:18]Write to MH i2c: D1 01 00 F7 01 01 CA [11:19:18]Write i2c OK [11:19:18]MH_I2C_Read... [11:19:18]Read from MH i2c: D1 [11:19:18]MH_I2C_Read... [11:19:18]Read from MH i2c: D1 01 00 [11:19:18]MH_I2C_Read... [11:19:18]Read from MH i2c: D1 01 00 F7 01 00 C9 [11:19:18]Write to MH i2c: 01 00 00 F8 01 F9 [11:19:18]Write i2c OK [11:19:18]MH_I2C_Read... [11:19:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 73 CE 47 00 59 6B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 EE C5 01 00 F4 03 04 00 F1 96 F3 66 B6 04 01 00 00 DC 9A B3 9A 5E F2 39 68 [11:19:18]CommunicateWithHost err = 0 [11:19:18]CheckOFDResponse [11:19:18]1017 (14) - 77093643461234 [11:19:18]1041 (16) - 0000000000871830 [11:19:18]1040 (4) - 116206 [11:19:18]1012 (4) - 25.09.2024 04:52 [11:19:18]1206 (1) - 0 [11:19:18]OFD Sender: Remove packet 116206 [11:19:18]ProducePacketName [11:19:18]name=ofd_packets/00116206 [11:19:18]NVStorageDeleteData [11:19:19]OFD Sender: No OFD packet to send [11:19:19]*** Cut start [11:19:19]*** Partial cut [11:19:19]*** CUTSNS_PIN = 1 [11:19:19]*** CUTSNS_PIN = 0 [11:19:20]*** Brake cut motor [11:19:20]Read from MH i2c: 01 [11:19:20]MH_I2C_Read... [11:19:20]*** Stop cut motor [11:19:20]*** Cut end [11:19:20]Read from MH i2c: 01 07 00 [11:19:20]MH_I2C_Read... [11:19:20]Read from MH i2c: 01 07 00 F8 01 00 00 00 00 00 FF 0F 0E [11:19:20]process_action close_receipt done [11:19:20]requested_data is exist [11:19:20]produce_requested_data [11:19:20]requested_item fm.sn is exist - process it [11:19:20]wFMCommunicate request_size=4 [11:19:20]MH_SAM_APDU [11:19:20]CAPDU: 80 11 00 00 [11:19:20]Write to MH i2c: E2 08 00 F9 01 80 11 00 00 00 00 00 00 74 [11:19:20]Write i2c OK [11:19:20]MH_I2C_Read... [11:19:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:19:20]Read from MH i2c: E2 [11:19:20]MH_I2C_Read... [11:19:20]Read from MH i2c: E2 17 00 [11:19:20]MH_I2C_Read... [11:19:20]Read from MH i2c: E2 17 00 F9 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 C2 [11:19:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [11:19:20]wFMCommunicate OK [11:19:20]requested_item fd.num is exist - process it [11:19:20]SAM_PROTO_GetFieldsCounters [11:19:20]wFMCommunicate request_size=4 [11:19:20]MH_SAM_APDU [11:19:20]CAPDU: 80 13 00 00 [11:19:20]Write to MH i2c: E2 08 00 FA 01 80 13 00 00 00 00 00 00 77 [11:19:20]Write i2c OK [11:19:20]MH_I2C_Read... [11:19:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:19:20]Read from MH i2c: E2 [11:19:20]MH_I2C_Read... [11:19:20]Read from MH i2c: E2 62 00 [11:19:20]MH_I2C_Read... [11:19:20]Read from MH i2c: E2 62 00 FA 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 EE C5 01 00 0E 04 04 00 DA 01 00 00 12 04 04 00 3E 00 00 00 5E 04 04 00 3E 00 00 00 57 04 04 00 3F 00 00 00 19 04 04 00 00 00 00 00 90 00 D9 [11:19:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 EE C5 01 00 0E 04 04 00 DA 01 00 00 12 04 04 00 3E 00 00 00 5E 04 04 00 3E 00 00 00 57 04 04 00 3F 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:19:20]wFMCommunicate OK [11:19:20]SAM_PROTO_GetFieldsCounters done [11:19:20]requested_item shift.num is exist - process it [11:19:20]requested_item shift.opened is exist - process it [11:19:20]req_shift_opened [11:19:20]FM_GetShiftState [11:19:20]SAM_PROTO_GetShiftState [11:19:20]wFMCommunicate request_size=4 [11:19:20]MH_SAM_APDU [11:19:20]CAPDU: 80 13 01 00 [11:19:20]Write to MH i2c: E2 08 00 FB 01 80 13 01 00 00 00 00 00 79 [11:19:20]Write i2c OK [11:19:20]MH_I2C_Read... [11:19:20]Read from MH i2c: E2 [11:19:20]MH_I2C_Read... [11:19:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:19:20]Read from MH i2c: E2 0E 00 [11:19:20]MH_I2C_Read... [11:19:20]Read from MH i2c: E2 0E 00 FB 01 00 09 00 01 63 60 F3 66 00 00 00 00 90 00 A1 [11:19:20]RAPDU: 09 00 01 63 60 F3 66 00 00 00 00 90 00 [11:19:20]wFMCommunicate OK [11:19:20]SAM_PROTO_GetShiftState done [11:19:20]FM_GetShiftState done [11:19:20]req_shift_opened done [11:19:20]requested_item shift.open_date is exist - process it [11:19:20]req_shift_open_date [11:19:20]req_shift_open_date done [11:19:20]produce_requested_data done [11:19:20]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":116206,"shift.num":474,"shift.opened":1,"shift.open_date":1727225955} [11:19:20]process_action_free close_receipt [11:19:20]json_value_free [11:19:20]json_value_free done [11:19:20]process_json_proto returns [11:19:20]Send response to host [11:19:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":116206,"shift.num":474,"shift.opened":1,"shift.open_date":1727225955}}} [11:19:20]free response buf [11:19:20]execute_script done [11:19:20]execute_script returns [11:19:20]free content buf [11:19:20]Sock 9.Close socket [11:19:20]Sock 9.Thread stoped [11:19:24]OFD Sender: No OFD packet to send [11:19:29]OFD Sender: No OFD packet to send [11:19:34]OFD Sender: No OFD packet to send [11:19:39]OFD Sender: No OFD packet to send [11:19:44]OFD Sender: No OFD packet to send [11:19:49]OFD Sender: No OFD packet to send [11:19:54]OFD Sender: No OFD packet to send [11:19:59]OFD Sender: No OFD packet to send [11:20:04]OFD Sender: No OFD packet to send [11:20:09]OFD Sender: No OFD packet to send [11:20:14]OFD Sender: No OFD packet to send [11:20:19]OFD Sender: No OFD packet to send [11:20:24]OFD Sender: No OFD packet to send [11:20:29]OFD Sender: No OFD packet to send [11:20:34]OFD Sender: No OFD packet to send [11:20:39]OFD Sender: No OFD packet to send [11:20:44]OFD Sender: No OFD packet to send [11:20:49]OFD Sender: No OFD packet to send [11:20:54]OFD Sender: No OFD packet to send [11:20:59]OFD Sender: No OFD packet to send [11:21:04]OFD Sender: No OFD packet to send [11:21:09]OFD Sender: No OFD packet to send [11:21:14]OFD Sender: No OFD packet to send [11:21:19]OFD Sender: No OFD packet to send [11:21:24]OFD Sender: No OFD packet to send [11:21:29]OFD Sender: No OFD packet to send [11:21:34]OFD Sender: No OFD packet to send [11:21:39]OFD Sender: No OFD packet to send [11:21:44]OFD Sender: No OFD packet to send [11:21:49]OFD Sender: No OFD packet to send [11:21:54]OFD Sender: No OFD packet to send [11:21:59]OFD Sender: No OFD packet to send [11:22:04]OFD Sender: No OFD packet to send [11:22:09]OFD Sender: No OFD packet to send [11:22:10]accept exits with 7 [11:22:10]New connection [11:22:10]New thread 3067587940 created [11:22:10]Thread 3067444580 joined [11:22:10]Waiting for new connection... [11:22:10] Sock 7.Parse request [11:22:10]Sock 7.Check first char [11:22:10]Sock 7.First char is OK [11:22:10]request: POST /json_proto HTTP/1.0 [11:22:10]Method: POST [11:22:10]URL: /json_proto [11:22:10]Method is POST - this is cgi request [11:22:10]url: /json_proto [11:22:10]query_string will be loaded in cgi processing [11:22:10]execute_cgi json_proto POST (null) [11:22:10]execute_cgi path=json_proto method=POST [11:22:10]POST find Content-Length [11:22:10]Host: 172.17.41.136:8080 [11:22:10]Content-Length: 753 [11:22:10]Content-Type: application/json [11:22:10] [11:22:10]POST finish read [11:22:10]Found Content-Length = 753 [11:22:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)24619196", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30146692", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:22:10]execute_script... [11:22:10]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)24619196", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30146692", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:22:10]POST & json_proto [11:22:10]process_json_proto [11:22:10]json parsed OK: [11:22:10]protocol is kg_v1.0 [11:22:10]action value=close_receipt [11:22:10]process_action close_receipt [11:22:10]cmd_close_receipt [11:22:10]MH_GetDate [11:22:10]Write to MH i2c: F0 00 00 FC 01 EC [11:22:10]Write i2c OK [11:22:10]MH_I2C_Read... [11:22:10]Read from MH i2c: F0 [11:22:10]MH_I2C_Read... [11:22:10]Read from MH i2c: F0 09 00 [11:22:10]MH_I2C_Read... [11:22:10]Read from MH i2c: F0 09 00 FC 01 00 63 F2 F3 66 1B D0 5A 64 4C [11:22:10]GetLastDocTimeStamp 1727263156 [11:22:10]current date 1727263331 [11:22:10]FM_GetShiftState [11:22:10]SAM_PROTO_GetShiftState [11:22:10]wFMCommunicate request_size=4 [11:22:10]MH_SAM_APDU [11:22:10]CAPDU: 80 13 01 00 [11:22:10]Write to MH i2c: E2 08 00 FD 01 80 13 01 00 00 00 00 00 7B [11:22:10]Write i2c OK [11:22:10]MH_I2C_Read... [11:22:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:22:10]Read from MH i2c: E2 [11:22:10]MH_I2C_Read... [11:22:10]Read from MH i2c: E2 0E 00 [11:22:10]MH_I2C_Read... [11:22:10]Read from MH i2c: E2 0E 00 FD 01 00 09 00 01 63 60 F3 66 00 00 00 00 90 00 A3 [11:22:10]RAPDU: 09 00 01 63 60 F3 66 00 00 00 00 90 00 [11:22:10]wFMCommunicate OK [11:22:10]SAM_PROTO_GetShiftState done [11:22:10]FM_GetShiftState done [11:22:10]opened in 1727225955 [11:22:10]opened+sec_in_day 1727312355 [11:22:10]quantity*price = 0 [11:22:10]sum+1 = 1 [11:22:10]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 63 25.09.2024 11:22 Смена: 474 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 Талоны: ТК ГПНА Online 30146692 ФМ: 0000000000871830 ФД: 116207 ФПД: 273920165302412 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240925T112211&type=1&operation_type=1&fn_number=0000000000871830&fd_number=116207&fm=273920165302412&tin=02508201610067®Number=0000000000091831&sum=0 [11:22:11]StoreToDocumentArchive [11:22:11]shift 474 fd 116207 [11:22:11]save to /storage/0474/doc_00116207 [11:22:11]save last doc name /storage/0474/doc_00116207 to /storage/kkm_last_doc_name [11:22:11]save OK [11:22:11]Clear old archive folders... [11:22:11]ProcessDocumentItem done err = 0, tmpTLVsize=248 [11:22:11]tlvbuf is 00994510 [11:22:11]SAM_PROTO_ClearQueue [11:22:11]wFMCommunicate request_size=4 [11:22:11]MH_SAM_APDU [11:22:11]CAPDU: 80 09 00 00 [11:22:11]Write to MH i2c: E2 08 00 0A 02 80 09 00 00 00 00 00 00 7E [11:22:11]Write i2c OK [11:22:11]MH_I2C_Read... [11:22:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:22:11]Read from MH i2c: E2 [11:22:11]MH_I2C_Read... [11:22:11]Read from MH i2c: E2 03 00 [11:22:11]MH_I2C_Read... [11:22:11]Read from MH i2c: E2 03 00 0A 02 00 90 00 80 [11:22:11]RAPDU: 90 00 [11:22:11]wFMCommunicate OK [11:22:11]SAM_PROTO_ClearQueue done [11:22:11]KKMCreateOFDPacket [11:22:11]OFDProtocolAddRootSTLVToBuf [11:22:11]FM_MakeSignedData [11:22:11]FM_MakeSignedData [11:22:11]SAM_PROTO_SignData [11:22:11]wFMCommunicate request_size=4 [11:22:11]MH_SAM_APDU [11:22:11]CAPDU: 80 0D 01 02 [11:22:11]Write to MH i2c: E2 08 00 0B 02 80 0D 01 02 00 00 00 00 86 [11:22:11]Write i2c OK [11:22:11]MH_I2C_Read... [11:22:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:22:11]Read from MH i2c: E2 [11:22:11]MH_I2C_Read... [11:22:11]Read from MH i2c: E2 03 00 [11:22:11]MH_I2C_Read... [11:22:11]Read from MH i2c: E2 03 00 0B 02 00 90 00 81 [11:22:11]RAPDU: 90 00 [11:22:11]wFMCommunicate OK [11:22:11]wFMCommunicate request_size=255 [11:22:11]MH_SAM_APDU [11:22:11]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 63 F2 F3 66 0E 04 04 00 DA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 EF C5 01 00 35 04 06 00 F9 21 02 26 [11:22:11]Write to MH i2c: E2 02 01 0C 02 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 63 F2 F3 66 0E 04 04 00 DA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 EF C5 01 00 35 04 06 00 F9 21 02 26 00 00 08 [11:22:11]Write i2c OK [11:22:11]MH_I2C_Read... [11:22:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:22:12]Read from MH i2c: E2 [11:22:12]MH_I2C_Read... [11:22:12]Read from MH i2c: E2 03 00 [11:22:12]MH_I2C_Read... [11:22:12]Read from MH i2c: E2 03 00 0C 02 00 90 00 82 [11:22:12]RAPDU: 90 00 [11:22:12]wFMCommunicate OK [11:22:12]wFMCommunicate request_size=7 [11:22:12]MH_SAM_APDU [11:22:12]CAPDU: 80 0D 02 02 02 50 8C [11:22:12]Write to MH i2c: E2 0A 00 0D 02 80 0D 02 02 02 00 50 8C 00 00 69 [11:22:12]Write i2c OK [11:22:12]MH_I2C_Read... [11:22:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:22:12]Read from MH i2c: E2 [11:22:12]MH_I2C_Read... [11:22:12]Read from MH i2c: E2 03 00 [11:22:12]MH_I2C_Read... [11:22:12]Read from MH i2c: E2 03 00 0D 02 00 90 00 83 [11:22:12]RAPDU: 90 00 [11:22:12]wFMCommunicate OK [11:22:12]wFMCommunicate request_size=4 [11:22:12]MH_SAM_APDU [11:22:12]CAPDU: 80 0D 03 02 [11:22:12]Write to MH i2c: E2 08 00 0E 02 80 0D 03 02 00 00 00 00 8B [11:22:12]Write i2c OK [11:22:12]MH_I2C_Read... [11:22:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:22:12]Read from MH i2c: E2 [11:22:12]MH_I2C_Read... [11:22:12]Read from MH i2c: E2 0B 00 [11:22:12]MH_I2C_Read... [11:22:12]Read from MH i2c: E2 0B 00 0E 02 00 4A 4E 2C 85 72 A2 58 3C 90 00 7D [11:22:12]RAPDU: 4A 4E 2C 85 72 A2 58 3C 90 00 [11:22:12]wFMCommunicate OK [11:22:12]SAM_PROTO_SignData done [11:22:12]FM_MakeSignedData done [11:22:12]CreateOFDProtocolMessage [11:22:12]wFMCommunicate request_size=4 [11:22:12]MH_SAM_APDU [11:22:12]CAPDU: 80 11 00 00 [11:22:12]Write to MH i2c: E2 08 00 0F 02 80 11 00 00 00 00 00 00 8B [11:22:12]Write i2c OK [11:22:12]MH_I2C_Read... [11:22:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:22:12]Read from MH i2c: E2 [11:22:12]MH_I2C_Read... [11:22:12]Read from MH i2c: E2 17 00 [11:22:12]MH_I2C_Read... [11:22:12]Read from MH i2c: E2 17 00 0F 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 D9 [11:22:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [11:22:12]wFMCommunicate OK [11:22:12]CreateOFDProtocolMessage done [11:22:12]OFDSenderStorePacket 116207 [11:22:12]StoreOFDPacket docnum=116207 [11:22:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0C 01 00 00 93 F9 04 01 87 B0 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 63 F2 F3 66 0E 04 04 00 DA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 EF C5 01 00 35 04 06 00 F9 21 02 26 50 8C 4A 4E 2C 85 72 A2 58 3C [11:22:12]CheckFolder [11:22:12]dirname=/storage/ofd_packets [11:22:12]CheckFolder done [11:22:12]ProducePacketName [11:22:12]name=ofd_packets/00116207 [11:22:12]NVStorageSaveData ofd_packets/00116207 [11:22:12]File name is /storage/ofd_packets/00116207 [11:22:12]Write 298 bytes [11:22:12]NVStorageSaveData done [11:22:12]OFDSenderStorePacket done [11:22:12]KKMCreateOFDPacket done [11:22:12]NVStorageSaveData kkm_last_timestamp [11:22:12]File name is /storage/kkm_last_timestamp [11:22:12]Write 4 bytes [11:22:12]NVStorageSaveData done [11:22:12]ExternCall_PrintAddStr [11:22:12]wPrintStart [11:22:12]Write to MH i2c: 01 00 00 10 02 12 [11:22:12]Write i2c OK [11:22:12]MH_I2C_Read... [11:22:12]Read from MH i2c: 01 [11:22:12]MH_I2C_Read... [11:22:12]Read from MH i2c: 01 07 00 [11:22:12]MH_I2C_Read... [11:22:12]Read from MH i2c: 01 07 00 10 02 00 00 00 00 00 FF 0F 27 [11:22:12]RasterBufferAndPrint [11:22:12]line Счет N : (1)24619196 [11:22:12]line ИНН: 02508201610067 [11:22:12]line Контрольно-Кассовый Чек [11:22:12]line ПРОДАЖА [11:22:12]line ТРК (МРК, ГНК) : 22 [11:22:12]line Товар: 2710194210 [11:22:12]line ДТ-К-5 [11:22:12]line 20.000 * 0.00 [11:22:12]line = 0.00 [11:22:12]line НДС 12% НСП 1% [11:22:12]line > о реализуемом товаре [11:22:12]line ИТОГО: 0.00 [11:22:12]line НСП 1% : 0.00 [11:22:12]line НДС 12% : 0.00 [11:22:12]line Наличными: 0.00 [11:22:12]line Безнал.: 0.00 [11:22:12]line Место: АЗС № 90 "Партнер Нефть" [11:22:12]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [11:22:12]line СНО: Общий режим [11:22:12]line Чек 63 25.09.2024 11:22 [11:22:12]line Смена: 474 ФФД: 1.0 [11:22:12]line ЗНМ: 0300000120 [11:22:12]line РНМ: 0000000000091831 [11:22:12]line Версия ККМ: 001 [11:22:12]line Талоны: ТК ГПНА Online [11:22:12]line 30146692 [11:22:12]line ФМ: 0000000000871830 [11:22:12]line ФД: 116207 [11:22:12]line ФПД: 273920165302412 [11:22:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240925T112211&type=1&operation_type=1&fn_number=0000000000871830&fd_number=116207&fm=273920165302412&tin=02508201610067®Number=0000000000091831&sum=0 [11:22:12]written 0, free lines is 4095 [11:22:12]OFD Sender: Processing packet 116207 [packets to send 482, broken 481] [11:22:12]ProducePacketName [11:22:12]name=ofd_packets/00116207 [11:22:12]OFD Sender: To server: pG, [11:22:12]CommunicateWithHost lk.salyk.kg:30040 [11:22:12]ConnectInit lk.salyk.kg [11:22:12]Connected sock=10 [11:22:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0C 01 00 00 93 F9 04 01 87 B0 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 63 F2 F3 66 0E 04 04 00 DA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 EF C5 01 00 35 04 06 00 F9 21 02 26 50 8C 4A 4E 2C 85 72 A2 58 3C [11:22:12]Write to MH i2c: 01 00 00 39 02 3B [11:22:12]Write i2c OK [11:22:12]MH_I2C_Read... [11:22:12]Read from MH i2c: 01 [11:22:12]MH_I2C_Read... [11:22:12]Read from MH i2c: 01 07 00 [11:22:12]MH_I2C_Read... [11:22:12]Read from MH i2c: 01 07 00 39 02 00 00 00 00 00 71 0C BF [11:22:12]RasterBufferAndPrint [11:22:12]line [11:22:12]line [11:22:12]line [11:22:12]line [11:22:12]line [11:22:12]written 0, free lines is 3190 [11:22:12]MH_Cut [11:22:12]Write to MH i2c: D1 01 00 40 02 01 14 [11:22:12]Write i2c OK [11:22:12]MH_I2C_Read... [11:22:12]Read from MH i2c: D1 [11:22:12]MH_I2C_Read... [11:22:12]Read from MH i2c: D1 01 00 [11:22:12]MH_I2C_Read... [11:22:12]Read from MH i2c: D1 01 00 40 02 00 13 [11:22:12]Write to MH i2c: 01 00 00 41 02 43 [11:22:12]Write i2c OK [11:22:12]MH_I2C_Read... [11:22:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 8E 88 47 00 D5 09 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 EF C5 01 00 F4 03 04 00 9F 97 F3 66 B6 04 01 00 00 32 AC B3 AF 2D 43 A0 40 [11:22:12]CommunicateWithHost err = 0 [11:22:12]CheckOFDResponse [11:22:12]1017 (14) - 77093643461234 [11:22:12]1041 (16) - 0000000000871830 [11:22:12]1040 (4) - 116207 [11:22:12]1012 (4) - 25.09.2024 04:54 [11:22:12]1206 (1) - 0 [11:22:12]OFD Sender: Remove packet 116207 [11:22:12]ProducePacketName [11:22:12]name=ofd_packets/00116207 [11:22:12]NVStorageDeleteData [11:22:13]OFD Sender: No OFD packet to send [11:22:14]*** Cut start [11:22:14]*** Partial cut [11:22:14]*** CUTSNS_PIN = 1 [11:22:14]*** CUTSNS_PIN = 0 [11:22:14]*** Brake cut motor [11:22:14]Read from MH i2c: 01 [11:22:14]MH_I2C_Read... [11:22:14]*** Stop cut motor [11:22:14]*** Cut end [11:22:14]Read from MH i2c: 01 07 00 [11:22:14]MH_I2C_Read... [11:22:14]Read from MH i2c: 01 07 00 41 02 00 00 00 00 00 FF 0F 58 [11:22:14]process_action close_receipt done [11:22:14]requested_data is exist [11:22:14]produce_requested_data [11:22:14]requested_item fm.sn is exist - process it [11:22:14]wFMCommunicate request_size=4 [11:22:14]MH_SAM_APDU [11:22:14]CAPDU: 80 11 00 00 [11:22:14]Write to MH i2c: E2 08 00 42 02 80 11 00 00 00 00 00 00 BE [11:22:14]Write i2c OK [11:22:14]MH_I2C_Read... [11:22:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:22:14]Read from MH i2c: E2 [11:22:14]MH_I2C_Read... [11:22:14]Read from MH i2c: E2 17 00 [11:22:14]MH_I2C_Read... [11:22:14]Read from MH i2c: E2 17 00 42 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 0C [11:22:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [11:22:14]wFMCommunicate OK [11:22:14]requested_item fd.num is exist - process it [11:22:14]SAM_PROTO_GetFieldsCounters [11:22:14]wFMCommunicate request_size=4 [11:22:14]MH_SAM_APDU [11:22:14]CAPDU: 80 13 00 00 [11:22:14]Write to MH i2c: E2 08 00 43 02 80 13 00 00 00 00 00 00 C1 [11:22:14]Write i2c OK [11:22:14]MH_I2C_Read... [11:22:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:22:14]Read from MH i2c: E2 [11:22:14]MH_I2C_Read... [11:22:14]Read from MH i2c: E2 62 00 [11:22:14]MH_I2C_Read... [11:22:14]Read from MH i2c: E2 62 00 43 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 EF C5 01 00 0E 04 04 00 DA 01 00 00 12 04 04 00 3F 00 00 00 5E 04 04 00 3F 00 00 00 57 04 04 00 40 00 00 00 19 04 04 00 00 00 00 00 90 00 27 [11:22:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 EF C5 01 00 0E 04 04 00 DA 01 00 00 12 04 04 00 3F 00 00 00 5E 04 04 00 3F 00 00 00 57 04 04 00 40 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:22:14]wFMCommunicate OK [11:22:14]SAM_PROTO_GetFieldsCounters done [11:22:14]requested_item shift.num is exist - process it [11:22:14]requested_item shift.opened is exist - process it [11:22:14]req_shift_opened [11:22:14]FM_GetShiftState [11:22:14]SAM_PROTO_GetShiftState [11:22:14]wFMCommunicate request_size=4 [11:22:14]MH_SAM_APDU [11:22:14]CAPDU: 80 13 01 00 [11:22:14]Write to MH i2c: E2 08 00 44 02 80 13 01 00 00 00 00 00 C3 [11:22:14]Write i2c OK [11:22:14]MH_I2C_Read... [11:22:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:22:14]Read from MH i2c: E2 [11:22:14]MH_I2C_Read... [11:22:14]Read from MH i2c: E2 0E 00 [11:22:14]MH_I2C_Read... [11:22:14]Read from MH i2c: E2 0E 00 44 02 00 09 00 01 63 60 F3 66 00 00 00 00 90 00 EB [11:22:14]RAPDU: 09 00 01 63 60 F3 66 00 00 00 00 90 00 [11:22:14]wFMCommunicate OK [11:22:14]SAM_PROTO_GetShiftState done [11:22:14]FM_GetShiftState done [11:22:14]req_shift_opened done [11:22:14]requested_item shift.open_date is exist - process it [11:22:14]req_shift_open_date [11:22:14]req_shift_open_date done [11:22:14]produce_requested_data done [11:22:14]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":116207,"shift.num":474,"shift.opened":1,"shift.open_date":1727225955} [11:22:14]process_action_free close_receipt [11:22:14]json_value_free [11:22:14]json_value_free done [11:22:14]process_json_proto returns [11:22:14]Send response to host [11:22:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":116207,"shift.num":474,"shift.opened":1,"shift.open_date":1727225955}}} [11:22:14]free response buf [11:22:14]execute_script done [11:22:14]execute_script returns [11:22:14]free content buf [11:22:14]Sock 7.Close socket [11:22:14]Sock 7.Thread stoped [11:22:18]OFD Sender: No OFD packet to send [11:22:23]OFD Sender: No OFD packet to send [11:22:28]OFD Sender: No OFD packet to send [11:22:33]OFD Sender: No OFD packet to send [11:22:38]OFD Sender: No OFD packet to send [11:22:43]OFD Sender: No OFD packet to send [11:22:48]OFD Sender: No OFD packet to send [11:22:53]OFD Sender: No OFD packet to send [11:22:58]OFD Sender: No OFD packet to send [11:23:03]OFD Sender: No OFD packet to send [11:23:08]OFD Sender: No OFD packet to send [11:23:13]OFD Sender: No OFD packet to send [11:23:18]OFD Sender: No OFD packet to send [11:23:23]OFD Sender: No OFD packet to send [11:23:28]OFD Sender: No OFD packet to send [11:23:33]OFD Sender: No OFD packet to send [11:23:38]OFD Sender: No OFD packet to send [11:23:43]OFD Sender: No OFD packet to send [11:23:48]OFD Sender: No OFD packet to send [11:23:53]OFD Sender: No OFD packet to send [11:23:58]OFD Sender: No OFD packet to send [11:24:03]OFD Sender: No OFD packet to send [11:24:08]OFD Sender: No OFD packet to send [11:24:13]OFD Sender: No OFD packet to send [11:24:18]OFD Sender: No OFD packet to send [11:24:23]OFD Sender: No OFD packet to send [11:24:28]OFD Sender: No OFD packet to send [11:24:33]OFD Sender: No OFD packet to send [11:24:38]OFD Sender: No OFD packet to send [11:24:43]OFD Sender: No OFD packet to send [11:24:48]OFD Sender: No OFD packet to send [11:24:53]OFD Sender: No OFD packet to send [11:24:58]OFD Sender: No OFD packet to send [11:25:03]OFD Sender: No OFD packet to send [11:25:08]OFD Sender: No OFD packet to send [11:25:13]OFD Sender: No OFD packet to send [11:25:18]OFD Sender: No OFD packet to send [11:25:23]OFD Sender: No OFD packet to send [11:25:28]OFD Sender: No OFD packet to send [11:25:33]OFD Sender: No OFD packet to send [11:25:38]OFD Sender: No OFD packet to send [11:25:43]OFD Sender: No OFD packet to send [11:25:49]OFD Sender: No OFD packet to send [11:25:54]OFD Sender: No OFD packet to send [11:25:59]OFD Sender: No OFD packet to send [11:26:04]OFD Sender: No OFD packet to send [11:26:09]OFD Sender: No OFD packet to send [11:26:14]OFD Sender: No OFD packet to send [11:26:19]OFD Sender: No OFD packet to send [11:26:24]OFD Sender: No OFD packet to send [11:26:29]OFD Sender: No OFD packet to send [11:26:34]OFD Sender: No OFD packet to send [11:26:39]OFD Sender: No OFD packet to send [11:26:44]OFD Sender: No OFD packet to send [11:26:49]OFD Sender: No OFD packet to send [11:26:54]OFD Sender: No OFD packet to send [11:26:59]OFD Sender: No OFD packet to send [11:27:04]OFD Sender: No OFD packet to send [11:27:09]OFD Sender: No OFD packet to send [11:27:14]OFD Sender: No OFD packet to send [11:27:19]OFD Sender: No OFD packet to send [11:27:24]OFD Sender: No OFD packet to send [11:27:29]OFD Sender: No OFD packet to send [11:27:34]OFD Sender: No OFD packet to send [11:27:39]OFD Sender: No OFD packet to send [11:27:44]OFD Sender: No OFD packet to send [11:27:49]OFD Sender: No OFD packet to send [11:27:54]OFD Sender: No OFD packet to send [11:27:59]OFD Sender: No OFD packet to send [11:28:04]OFD Sender: No OFD packet to send [11:28:09]OFD Sender: No OFD packet to send [11:28:14]OFD Sender: No OFD packet to send [11:28:19]OFD Sender: No OFD packet to send [11:28:24]OFD Sender: No OFD packet to send [11:28:29]OFD Sender: No OFD packet to send [11:28:34]OFD Sender: No OFD packet to send [11:28:39]OFD Sender: No OFD packet to send [11:28:44]OFD Sender: No OFD packet to send [11:28:49]OFD Sender: No OFD packet to send [11:28:54]OFD Sender: No OFD packet to send [11:28:59]OFD Sender: No OFD packet to send [11:29:04]OFD Sender: No OFD packet to send [11:29:09]OFD Sender: No OFD packet to send [11:29:14]OFD Sender: No OFD packet to send [11:29:19]OFD Sender: No OFD packet to send [11:29:24]OFD Sender: No OFD packet to send [11:29:29]OFD Sender: No OFD packet to send [11:29:34]OFD Sender: No OFD packet to send [11:29:39]OFD Sender: No OFD packet to send [11:29:44]OFD Sender: No OFD packet to send [11:29:49]OFD Sender: No OFD packet to send [11:29:54]OFD Sender: No OFD packet to send [11:29:59]OFD Sender: No OFD packet to send [11:30:04]OFD Sender: No OFD packet to send [11:30:09]OFD Sender: No OFD packet to send [11:30:14]OFD Sender: No OFD packet to send [11:30:19]OFD Sender: No OFD packet to send [11:30:24]OFD Sender: No OFD packet to send [11:30:29]OFD Sender: No OFD packet to send [11:30:34]OFD Sender: No OFD packet to send [11:30:39]OFD Sender: No OFD packet to send [11:30:44]OFD Sender: No OFD packet to send [11:30:49]OFD Sender: No OFD packet to send [11:30:54]OFD Sender: No OFD packet to send [11:30:59]OFD Sender: No OFD packet to send [11:31:04]OFD Sender: No OFD packet to send [11:31:09]OFD Sender: No OFD packet to send [11:31:14]OFD Sender: No OFD packet to send [11:31:19]OFD Sender: No OFD packet to send [11:31:24]OFD Sender: No OFD packet to send [11:31:29]OFD Sender: No OFD packet to send [11:31:34]OFD Sender: No OFD packet to send [11:31:39]OFD Sender: No OFD packet to send [11:31:44]OFD Sender: No OFD packet to send [11:31:49]OFD Sender: No OFD packet to send [11:31:54]OFD Sender: No OFD packet to send [11:31:59]OFD Sender: No OFD packet to send [11:32:04]OFD Sender: No OFD packet to send [11:32:09]OFD Sender: No OFD packet to send [11:32:14]OFD Sender: No OFD packet to send [11:32:19]OFD Sender: No OFD packet to send [11:32:24]OFD Sender: No OFD packet to send [11:32:29]OFD Sender: No OFD packet to send [11:32:34]OFD Sender: No OFD packet to send [11:32:39]OFD Sender: No OFD packet to send [11:32:45]OFD Sender: No OFD packet to send [11:32:50]OFD Sender: No OFD packet to send [11:32:55]OFD Sender: No OFD packet to send [11:33:00]OFD Sender: No OFD packet to send [11:33:05]OFD Sender: No OFD packet to send [11:33:10]OFD Sender: No OFD packet to send [11:33:15]OFD Sender: No OFD packet to send [11:33:20]OFD Sender: No OFD packet to send [11:33:25]OFD Sender: No OFD packet to send [11:33:30]OFD Sender: No OFD packet to send [11:33:35]OFD Sender: No OFD packet to send [11:33:40]OFD Sender: No OFD packet to send [11:33:45]OFD Sender: No OFD packet to send [11:33:50]OFD Sender: No OFD packet to send [11:33:55]OFD Sender: No OFD packet to send [11:34:00]OFD Sender: No OFD packet to send [11:34:05]OFD Sender: No OFD packet to send [11:34:10]OFD Sender: No OFD packet to send [11:34:15]OFD Sender: No OFD packet to send [11:34:20]OFD Sender: No OFD packet to send [11:34:25]OFD Sender: No OFD packet to send [11:34:30]OFD Sender: No OFD packet to send [11:34:35]OFD Sender: No OFD packet to send [11:34:40]OFD Sender: No OFD packet to send [11:34:45]OFD Sender: No OFD packet to send [11:34:50]OFD Sender: No OFD packet to send [11:34:55]OFD Sender: No OFD packet to send [11:35:00]OFD Sender: No OFD packet to send [11:35:05]OFD Sender: No OFD packet to send [11:35:10]OFD Sender: No OFD packet to send [11:35:15]OFD Sender: No OFD packet to send [11:35:20]OFD Sender: No OFD packet to send [11:35:25]OFD Sender: No OFD packet to send [11:35:30]OFD Sender: No OFD packet to send [11:35:35]OFD Sender: No OFD packet to send [11:35:40]OFD Sender: No OFD packet to send [11:35:45]OFD Sender: No OFD packet to send [11:35:50]OFD Sender: No OFD packet to send [11:35:55]OFD Sender: No OFD packet to send [11:36:00]OFD Sender: No OFD packet to send [11:36:05]OFD Sender: No OFD packet to send [11:36:10]OFD Sender: No OFD packet to send [11:36:15]OFD Sender: No OFD packet to send [11:36:20]OFD Sender: No OFD packet to send [11:36:25]OFD Sender: No OFD packet to send [11:36:30]OFD Sender: No OFD packet to send [11:36:33]accept exits with 9 [11:36:33]New connection [11:36:33]New thread 3067444580 created [11:36:33]Thread 3067587940 joined [11:36:33]Waiting for new connection... [11:36:33] Sock 9.Parse request [11:36:33]Sock 9.Check first char [11:36:33]Sock 9.First char is OK [11:36:33]request: POST /json_proto HTTP/1.0 [11:36:33]Method: POST [11:36:33]URL: /json_proto [11:36:33]Method is POST - this is cgi request [11:36:33]url: /json_proto [11:36:33]query_string will be loaded in cgi processing [11:36:33]execute_cgi json_proto POST (null) [11:36:33]execute_cgi path=json_proto method=POST [11:36:33]POST find Content-Length [11:36:33]Host: 172.17.41.136:8080 [11:36:33]Content-Length: 1887 [11:36:33]Content-Type: application/json [11:36:33] [11:36:33]POST finish read [11:36:33]Found Content-Length = 1887 [11:36:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)344377", "tax_sys" : 0, "items" : [ { "code": "47803152", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Mevius Revo", "price" : 159.00, "quantity" : 4.000, "sum" : 636.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000189394", "name": "\u0425\u043E\u043B\u043E\u0434\u043D\u044B\u0439 \u0447\u0430\u0439 Fuse \u044F\u0433\u043E\u0434\u0430 0,5\u043B", "price" : 75.00, "quantity" : 1.000, "sum" : 75.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000160211", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 0,5\u043B", "price" : 40.00, "quantity" : 1.000, "sum" : 40.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700007690018", "name": "\u041D\u0435\u0433\u0430\u0437 \u0432\u043E\u0434\u0430 Pamir 0,5 \u043B", "price" : 30.00, "quantity" : 1.000, "sum" : 30.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "46214645", "name": "\u0420/\u0436 mentos pure white \u043A\u043B\u0443\u0431 16/15,5\u0433", "price" : 49.00, "quantity" : 1.000, "sum" : 49.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4607065001445", "name": "\u0428\u043E\u043A \u0431\u0430\u0442\u043E\u043D\u0447\u0438\u043A Snickers 50,5\u0433", "price" : 59.00, "quantity" : 1.000, "sum" : 59.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 889.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:36:33]execute_script... [11:36: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 : (3)344377", "tax_sys" : 0, "items" : [ { "code": "47803152", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Mevius Revo", "price" : 159.00, "quantity" : 4.000, "sum" : 636.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000189394", "name": "\u0425\u043E\u043B\u043E\u0434\u043D\u044B\u0439 \u0447\u0430\u0439 Fuse \u044F\u0433\u043E\u0434\u0430 0,5\u043B", "price" : 75.00, "quantity" : 1.000, "sum" : 75.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000160211", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 0,5\u043B", "price" : 40.00, "quantity" : 1.000, "sum" : 40.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700007690018", "name": "\u041D\u0435\u0433\u0430\u0437 \u0432\u043E\u0434\u0430 Pamir 0,5 \u043B", "price" : 30.00, "quantity" : 1.000, "sum" : 30.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "46214645", "name": "\u0420/\u0436 mentos pure white \u043A\u043B\u0443\u0431 16/15,5\u0433", "price" : 49.00, "quantity" : 1.000, "sum" : 49.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4607065001445", "name": "\u0428\u043E\u043A \u0431\u0430\u0442\u043E\u043D\u0447\u0438\u043A Snickers 50,5\u0433", "price" : 59.00, "quantity" : 1.000, "sum" : 59.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 889.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:36:33]POST & json_proto [11:36:33]process_json_proto [11:36:33]json parsed OK: [11:36:33]protocol is kg_v1.0 [11:36:33]action value=close_receipt [11:36:33]process_action close_receipt [11:36:33]cmd_close_receipt [11:36:33]MH_GetDate [11:36:33]Write to MH i2c: F0 00 00 45 02 36 [11:36:33]Write i2c OK [11:36:33]MH_I2C_Read... [11:36:33]Read from MH i2c: F0 [11:36:33]MH_I2C_Read... [11:36:33]Read from MH i2c: F0 09 00 [11:36:33]MH_I2C_Read... [11:36:33]Read from MH i2c: F0 09 00 45 02 00 C2 F5 F3 66 1B D0 5A 64 F8 [11:36:33]GetLastDocTimeStamp 1727263331 [11:36:33]current date 1727264194 [11:36:33]FM_GetShiftState [11:36:33]SAM_PROTO_GetShiftState [11:36:33]wFMCommunicate request_size=4 [11:36:33]MH_SAM_APDU [11:36:33]CAPDU: 80 13 01 00 [11:36:33]Write to MH i2c: E2 08 00 46 02 80 13 01 00 00 00 00 00 C5 [11:36:33]Write i2c OK [11:36:33]MH_I2C_Read... [11:36:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:36:33]Read from MH i2c: E2 [11:36:33]MH_I2C_Read... [11:36:33]Read from MH i2c: E2 0E 00 [11:36:33]MH_I2C_Read... [11:36:33]Read from MH i2c: E2 0E 00 46 02 00 09 00 01 63 60 F3 66 00 00 00 00 90 00 ED [11:36:33]RAPDU: 09 00 01 63 60 F3 66 00 00 00 00 90 00 [11:36:33]wFMCommunicate OK [11:36:33]SAM_PROTO_GetShiftState done [11:36:33]FM_GetShiftState done [11:36:33]opened in 1727225955 [11:36:33]opened+sec_in_day 1727312355 [11:36:33]quantity*price = 63600 [11:36:33]sum+1 = 63601 [11:36:33]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 5449000189394 Холодный чай Fuse ягода 0,5л 1.000 * 75.00 = 75.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4700000160211 Вода Легенда 0,5л 1.000 * 40.00 = 40.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4700007690018 Негаз вода Pamir 0,5 л 1.000 * 30.00 = 30.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 46214645 Р/ж mentos pure white клуб 16/15,5г 1.000 * 49.00 = 49.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4607065001445 Шок батончик Snickers 50,5г 1.000 * 59.00 = 59.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 889.00 НСП 1% : 7.85 НДС 12% : 94.40 Наличными: 889.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 64 25.09.2024 11:36 Смена: 474 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 116208 ФПД: 161729429394815 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240925T113634&type=1&operation_type=1&fn_number=0000000000871830&fd_number=116208&fm=161729429394815&tin=02508201610067®Number=0000000000091831&sum=88900 0 [11:36:34]StoreToDocumentArchive [11:36:34]shift 474 fd 116208 [11:36:34]save to /storage/0474/doc_00116208 [11:36:34]save last doc name /storage/0474/doc_00116208 to /storage/kkm_last_doc_name [11:36:34]save OK [11:36:34]Clear old archive folders... [11:36:35]ProcessDocumentItem done err = 0, tmpTLVsize=807 [11:36:35]tlvbuf is 00A362E0 [11:36:35]SAM_PROTO_ClearQueue [11:36:35]wFMCommunicate request_size=4 [11:36:35]MH_SAM_APDU [11:36:35]CAPDU: 80 09 00 00 [11:36:35]Write to MH i2c: E2 08 00 53 02 80 09 00 00 00 00 00 00 C7 [11:36:35]Write i2c OK [11:36:35]MH_I2C_Read... [11:36:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:36:35]Read from MH i2c: E2 [11:36:35]MH_I2C_Read... [11:36:35]Read from MH i2c: E2 03 00 [11:36:35]MH_I2C_Read... [11:36:35]Read from MH i2c: E2 03 00 53 02 00 90 00 C9 [11:36:35]RAPDU: 90 00 [11:36:35]wFMCommunicate OK [11:36:35]SAM_PROTO_ClearQueue done [11:36:35]KKMCreateOFDPacket [11:36:35]OFDProtocolAddRootSTLVToBuf [11:36:35]FM_MakeSignedData [11:36:35]FM_MakeSignedData [11:36:35]SAM_PROTO_SignData [11:36:35]wFMCommunicate request_size=4 [11:36:35]MH_SAM_APDU [11:36:35]CAPDU: 80 0D 01 02 [11:36:35]Write to MH i2c: E2 08 00 54 02 80 0D 01 02 00 00 00 00 CF [11:36:35]Write i2c OK [11:36:35]MH_I2C_Read... [11:36:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:36:35]Read from MH i2c: E2 [11:36:35]MH_I2C_Read... [11:36:35]Read from MH i2c: E2 03 00 [11:36:35]MH_I2C_Read... [11:36:35]Read from MH i2c: E2 03 00 54 02 00 90 00 CA [11:36:35]RAPDU: 90 00 [11:36:35]wFMCommunicate OK [11:36:35]wFMCommunicate request_size=255 [11:36:35]MH_SAM_APDU [11:36:35]CAPDU: 80 0D 02 02 FA 03 00 27 03 1E 04 01 00 01 23 04 5B 00 8A 04 08 00 34 37 38 30 33 31 35 32 06 04 1C 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 4D 65 76 69 75 73 20 52 65 76 6F FF 03 08 00 03 A0 0F 00 00 00 00 00 37 04 06 00 1C 3E 00 00 00 00 13 04 06 00 70 F8 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 71 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 39 34 06 04 2D 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D1 8F D0 B3 D0 BE D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 1D 00 D0 92 D0 BE [11:36:35]Write to MH i2c: E2 02 01 55 02 80 0D 02 02 FA 00 03 00 27 03 1E 04 01 00 01 23 04 5B 00 8A 04 08 00 34 37 38 30 33 31 35 32 06 04 1C 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 4D 65 76 69 75 73 20 52 65 76 6F FF 03 08 00 03 A0 0F 00 00 00 00 00 37 04 06 00 1C 3E 00 00 00 00 13 04 06 00 70 F8 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 71 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 39 34 06 04 2D 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D1 8F D0 B3 D0 BE D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 1D 00 D0 92 D0 BE 00 00 1E [11:36:35]Write i2c OK [11:36:35]MH_I2C_Read... [11:36:35]OFD Sender: No OFD packet to send [11:36:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:36:35]Read from MH i2c: E2 [11:36:35]MH_I2C_Read... [11:36:35]Read from MH i2c: E2 03 00 [11:36:35]MH_I2C_Read... [11:36:35]Read from MH i2c: E2 03 00 55 02 00 90 00 CB [11:36:35]RAPDU: 90 00 [11:36:35]wFMCommunicate OK [11:36:35]wFMCommunicate request_size=255 [11:36:35]MH_SAM_APDU [11:36:35]CAPDU: 80 0D 02 02 FA D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 64 00 8A 04 0D 00 34 37 30 30 30 30 37 36 39 30 30 31 38 06 04 20 00 D0 9D D0 B5 D0 B3 D0 B0 D0 B7 20 D0 B2 D0 BE D0 B4 D0 B0 20 50 61 6D 69 72 20 30 2C 35 20 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B8 0B 00 00 00 00 13 04 06 00 B8 0B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 69 00 8A 04 08 00 34 36 32 31 34 36 34 35 06 04 2A 00 D0 A0 2F D0 B6 20 6D 65 6E 74 6F 73 20 70 75 72 65 20 77 68 69 74 65 20 D0 BA D0 BB D1 83 D0 B1 20 31 36 2F 31 35 2C 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 [11:36:35]Write to MH i2c: E2 02 01 56 02 80 0D 02 02 FA 00 D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 64 00 8A 04 0D 00 34 37 30 30 30 30 37 36 39 30 30 31 38 06 04 20 00 D0 9D D0 B5 D0 B3 D0 B0 D0 B7 20 D0 B2 D0 BE D0 B4 D0 B0 20 50 61 6D 69 72 20 30 2C 35 20 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B8 0B 00 00 00 00 13 04 06 00 B8 0B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 69 00 8A 04 08 00 34 36 32 31 34 36 34 35 06 04 2A 00 D0 A0 2F D0 B6 20 6D 65 6E 74 6F 73 20 70 75 72 65 20 77 68 69 74 65 20 D0 BA D0 BB D1 83 D0 B1 20 31 36 2F 31 35 2C 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 00 00 AB [11:36:35]Write i2c OK [11:36:35]MH_I2C_Read... [11:36:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:36:35]Read from MH i2c: E2 [11:36:35]MH_I2C_Read... [11:36:35]Read from MH i2c: E2 03 00 [11:36:35]MH_I2C_Read... [11:36:35]Read from MH i2c: E2 03 00 56 02 00 90 00 CC [11:36:35]RAPDU: 90 00 [11:36:35]wFMCommunicate OK [11:36:35]wFMCommunicate request_size=255 [11:36:35]MH_SAM_APDU [11:36:35]CAPDU: 80 0D 02 02 FA 37 04 06 00 24 13 00 00 00 00 13 04 06 00 24 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 36 30 37 30 36 35 30 30 31 34 34 35 06 04 27 00 D0 A8 D0 BE D0 BA 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 53 6E 69 63 6B 65 72 73 20 35 30 2C 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 0C 17 00 00 00 00 13 04 06 00 0C 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 44 5B 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 11 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E0 24 00 00 00 00 07 04 06 00 44 5B 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 C2 F5 F3 66 0E 04 04 00 DA 01 00 00 B9 04 [11:36:35]Write to MH i2c: E2 02 01 57 02 80 0D 02 02 FA 00 37 04 06 00 24 13 00 00 00 00 13 04 06 00 24 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 36 30 37 30 36 35 30 30 31 34 34 35 06 04 27 00 D0 A8 D0 BE D0 BA 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 53 6E 69 63 6B 65 72 73 20 35 30 2C 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 0C 17 00 00 00 00 13 04 06 00 0C 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 44 5B 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 11 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E0 24 00 00 00 00 07 04 06 00 44 5B 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 C2 F5 F3 66 0E 04 04 00 DA 01 00 00 B9 04 00 00 D1 [11:36:36]Write i2c OK [11:36:36]MH_I2C_Read... [11:36:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:36:36]Read from MH i2c: E2 [11:36:36]MH_I2C_Read... [11:36:36]Read from MH i2c: E2 03 00 [11:36:36]MH_I2C_Read... [11:36:36]Read from MH i2c: E2 03 00 57 02 00 90 00 CD [11:36:36]RAPDU: 90 00 [11:36:36]wFMCommunicate OK [11:36:36]wFMCommunicate request_size=66 [11:36:36]MH_SAM_APDU [11:36:36]CAPDU: 80 0D 02 02 3D 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 F0 C5 01 00 35 04 06 00 93 17 91 30 55 7F [11:36:36]Write to MH i2c: E2 45 00 58 02 80 0D 02 02 3D 00 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 F0 C5 01 00 35 04 06 00 93 17 91 30 55 7F 00 00 13 [11:36:36]Write i2c OK [11:36:36]MH_I2C_Read... [11:36:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:36:36]Read from MH i2c: E2 [11:36:36]MH_I2C_Read... [11:36:36]Read from MH i2c: E2 03 00 [11:36:36]MH_I2C_Read... [11:36:36]Read from MH i2c: E2 03 00 58 02 00 90 00 CE [11:36:36]RAPDU: 90 00 [11:36:36]wFMCommunicate OK [11:36:36]wFMCommunicate request_size=4 [11:36:36]MH_SAM_APDU [11:36:36]CAPDU: 80 0D 03 02 [11:36:36]Write to MH i2c: E2 08 00 59 02 80 0D 03 02 00 00 00 00 D6 [11:36:36]Write i2c OK [11:36:36]MH_I2C_Read... [11:36:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:36:36]Read from MH i2c: E2 [11:36:36]MH_I2C_Read... [11:36:36]Read from MH i2c: E2 0B 00 [11:36:36]MH_I2C_Read... [11:36:36]Read from MH i2c: E2 0B 00 59 02 00 E9 BD E5 F2 77 90 65 5F 90 00 1F [11:36:36]RAPDU: E9 BD E5 F2 77 90 65 5F 90 00 [11:36:36]wFMCommunicate OK [11:36:36]SAM_PROTO_SignData done [11:36:36]FM_MakeSignedData done [11:36:36]CreateOFDProtocolMessage [11:36:36]wFMCommunicate request_size=4 [11:36:36]MH_SAM_APDU [11:36:36]CAPDU: 80 11 00 00 [11:36:36]Write to MH i2c: E2 08 00 5A 02 80 11 00 00 00 00 00 00 D6 [11:36:36]Write i2c OK [11:36:36]MH_I2C_Read... [11:36:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:36:36]Read from MH i2c: E2 [11:36:36]MH_I2C_Read... [11:36:36]Read from MH i2c: E2 17 00 [11:36:36]MH_I2C_Read... [11:36:36]Read from MH i2c: E2 17 00 5A 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 24 [11:36:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [11:36:36]wFMCommunicate OK [11:36:36]CreateOFDProtocolMessage done [11:36:36]OFDSenderStorePacket 116208 [11:36:36]StoreOFDPacket docnum=116208 [11:36:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 3B 03 00 00 6A CA 33 03 2C 5E 5A 03 01 00 03 00 27 03 1E 04 01 00 01 23 04 5B 00 8A 04 08 00 34 37 38 30 33 31 35 32 06 04 1C 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 4D 65 76 69 75 73 20 52 65 76 6F FF 03 08 00 03 A0 0F 00 00 00 00 00 37 04 06 00 1C 3E 00 00 00 00 13 04 06 00 70 F8 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 71 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 39 34 06 04 2D 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D1 8F D0 B3 D0 BE D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 64 00 8A 04 0D 00 34 37 30 30 30 30 37 36 39 30 30 31 38 06 04 20 00 D0 9D D0 B5 D0 B3 D0 B0 D0 B7 20 D0 B2 D0 BE D0 B4 D0 B0 20 50 61 6D 69 72 20 30 2C 35 20 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B8 0B 00 00 00 00 13 04 06 00 B8 0B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 69 00 8A 04 08 00 34 36 32 31 34 36 34 35 06 04 2A 00 D0 A0 2F D0 B6 20 6D 65 6E 74 6F 73 20 70 75 72 65 20 77 68 69 74 65 20 D0 BA D0 BB D1 83 D0 B1 20 31 36 2F 31 35 2C 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 13 00 00 00 00 13 04 06 00 24 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 36 30 37 30 36 35 30 30 31 34 34 35 06 04 27 00 D0 A8 D0 BE D0 BA 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 53 6E 69 63 6B 65 72 73 20 35 30 2C 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 0C 17 00 00 00 00 13 04 06 00 0C 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 44 5B 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 11 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E0 24 00 00 00 00 07 04 06 00 44 5B 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 C2 F5 F3 66 0E 04 04 00 DA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 F0 C5 01 00 35 04 06 00 93 17 91 30 55 7F E9 BD E5 F2 77 90 65 5F [11:36:36]CheckFolder [11:36:36]dirname=/storage/ofd_packets [11:36:36]CheckFolder done [11:36:36]ProducePacketName [11:36:36]name=ofd_packets/00116208 [11:36:36]NVStorageSaveData ofd_packets/00116208 [11:36:36]File name is /storage/ofd_packets/00116208 [11:36:36]Write 857 bytes [11:36:36]NVStorageSaveData done [11:36:36]OFDSenderStorePacket done [11:36:36]KKMCreateOFDPacket done [11:36:36]NVStorageSaveData kkm_last_timestamp [11:36:36]File name is /storage/kkm_last_timestamp [11:36:36]Write 4 bytes [11:36:36]NVStorageSaveData done [11:36:36]ExternCall_PrintAddStr [11:36:36]wPrintStart [11:36:36]Write to MH i2c: 01 00 00 5B 02 5D [11:36:36]Write i2c OK [11:36:36]MH_I2C_Read... [11:36:36]Read from MH i2c: 01 [11:36:36]MH_I2C_Read... [11:36:36]Read from MH i2c: 01 07 00 [11:36:36]MH_I2C_Read... [11:36:36]Read from MH i2c: 01 07 00 5B 02 00 00 00 00 00 FF 0F 72 [11:36:36]RasterBufferAndPrint [11:36:36]line Счет N : (3)344377 [11:36:36]line ИНН: 02508201610067 [11:36:36]line Контрольно-Кассовый Чек [11:36:36]line ПРОДАЖА [11:36:36]line Товар: 47803152 [11:36:36]line Сигареты Mevius Revo [11:36:36]line 4.000 * 159.00 [11:36:36]line = 636.00 [11:36:36]line НДС 12% НСП 1% [11:36:36]line > о реализуемом товаре [11:36:36]line Товар: 5449000189394 [11:36:36]line Холодный чай Fuse ягода 0,5л [11:36:36]line 1.000 * 75.00 [11:36:36]line = 75.00 [11:36:36]line НДС 12% НСП 1% [11:36:36]line > о реализуемом товаре [11:36:36]line Товар: 4700000160211 [11:36:36]line Вода Легенда 0,5л [11:36:36]line 1.000 * 40.00 [11:36:36]line = 40.00 [11:36:36]line НДС 12% НСП 1% [11:36:36]line > о реализуемом товаре [11:36:36]line Товар: 4700007690018 [11:36:36]line Негаз вода Pamir 0,5 л [11:36:36]line 1.000 * 30.00 [11:36:36]line = 30.00 [11:36:36]line НДС 12% НСП 1% [11:36:36]line > о реализуемом товаре [11:36:36]line Товар: 46214645 [11:36:36]line Р/ж mentos pure white клуб 16/15,5г [11:36:36]line 1.000 * 49.00 [11:36:36]line = 49.00 [11:36:36]line НДС 12% НСП 1% [11:36:36]line > о реализуемом товаре [11:36:36]line Товар: 4607065001445 [11:36:36]line Шок батончик Snickers 50,5г [11:36:36]line 1.000 * 59.00 [11:36:36]line = 59.00 [11:36:36]line НДС 12% НСП 1% [11:36:36]line > о реализуемом товаре [11:36:36]line ИТОГО: 889.00 [11:36:36]line НСП 1% : 7.85 [11:36:36]line НДС 12% : 94.40 [11:36:36]line Наличными: 889.00 [11:36:36]line Безнал.: 0.00 [11:36:36]line Место: АЗС № 90 "Партнер Нефть" [11:36:36]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [11:36:36]line СНО: Общий режим [11:36:36]line Чек 64 25.09.2024 11:36 [11:36:36]line Смена: 474 ФФД: 1.0 [11:36:36]line ЗНМ: 0300000120 [11:36:36]line РНМ: 0000000000091831 [11:36:36]line Версия ККМ: 001 [11:36:36]line ФМ: 0000000000871830 [11:36:36]line ФД: 116208 [11:36:36]line ФПД: 161729429394815 [11:36:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240925T113634&type=1&operation_type=1&fn_number=0000000000871830&fd_number=116208&fm=161729429394815&tin=02508201610067®Number=0000000000091831&sum=88900 [11:36:36]OFD Sender: Processing packet 116208 [packets to send 482, broken 481] [11:36:36]ProducePacketName [11:36:36]name=ofd_packets/00116208 [11:36:36]OFD Sender: To server: pG, [11:36:36]CommunicateWithHost lk.salyk.kg:30040 [11:36:36]ConnectInit lk.salyk.kg [11:36:36]line 0 [11:36:36]written 0, free lines is 4095 [11:36:37]Connected sock=10 [11:36:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 3B 03 00 00 6A CA 33 03 2C 5E 5A 03 01 00 03 00 27 03 1E 04 01 00 01 23 04 5B 00 8A 04 08 00 34 37 38 30 33 31 35 32 06 04 1C 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 4D 65 76 69 75 73 20 52 65 76 6F FF 03 08 00 03 A0 0F 00 00 00 00 00 37 04 06 00 1C 3E 00 00 00 00 13 04 06 00 70 F8 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 71 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 39 34 06 04 2D 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D1 8F D0 B3 D0 BE D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 64 00 8A 04 0D 00 34 37 30 30 30 30 37 36 39 30 30 31 38 06 04 20 00 D0 9D D0 B5 D0 B3 D0 B0 D0 B7 20 D0 B2 D0 BE D0 B4 D0 B0 20 50 61 6D 69 72 20 30 2C 35 20 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B8 0B 00 00 00 00 13 04 06 00 B8 0B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 69 00 8A 04 08 00 34 36 32 31 34 36 34 35 06 04 2A 00 D0 A0 2F D0 B6 20 6D 65 6E 74 6F 73 20 70 75 72 65 20 77 68 69 74 65 20 D0 BA D0 BB D1 83 D0 B1 20 31 36 2F 31 35 2C 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 13 00 00 00 00 13 04 06 00 24 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 36 30 37 30 36 35 30 30 31 34 34 35 06 04 27 00 D0 A8 D0 BE D0 BA 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 53 6E 69 63 6B 65 72 73 20 35 30 2C 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 0C 17 00 00 00 00 13 04 06 00 0C 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 44 5B 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 11 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E0 24 00 00 00 00 07 04 06 00 44 5B 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 C2 F5 F3 66 0E 04 04 00 DA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 F0 C5 01 00 35 04 06 00 93 17 91 30 55 7F E9 BD E5 F2 77 90 65 5F [11:36:37]Write to MH i2c: 01 00 00 A1 02 A3 [11:36:37]Write i2c OK [11:36:37]MH_I2C_Read... [11:36:37]Read from MH i2c: 01 [11:36:37]MH_I2C_Read... [11:36:37]Read from MH i2c: 01 07 00 [11:36:37]MH_I2C_Read... [11:36:37]Read from MH i2c: 01 07 00 A1 02 00 00 00 00 00 F1 09 A4 [11:36:37]RasterBufferAndPrint [11:36:37]line [11:36:37]line [11:36:37]line [11:36:37]line [11:36:37]line [11:36:37]written 0, free lines is 2551 [11:36:37]MH_Cut [11:36:37]Write to MH i2c: D1 01 00 A8 02 01 7C [11:36:37]Write i2c OK [11:36:37]MH_I2C_Read... [11:36:37]Read from MH i2c: D1 [11:36:37]MH_I2C_Read... [11:36:37]Read from MH i2c: D1 01 00 [11:36:37]MH_I2C_Read... [11:36:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 F2 D5 47 00 F2 CF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 F0 C5 01 00 F4 03 04 00 00 9B F3 66 B6 04 01 00 00 51 53 6A DE 52 B0 20 BF [11:36:37]CommunicateWithHost err = 0 [11:36:37]CheckOFDResponse [11:36:37]1017 (14) - 77093643461234 [11:36:37]1041 (16) - 0000000000871830 [11:36:37]1040 (4) - 116208 [11:36:37]1012 (4) - 25.09.2024 05:09 [11:36:37]1206 (1) - 0 [11:36:37]OFD Sender: Remove packet 116208 [11:36:37]ProducePacketName [11:36:37]name=ofd_packets/00116208 [11:36:37]NVStorageDeleteData [11:36:37]Read from MH i2c: D1 01 00 A8 02 00 7B [11:36:37]Write to MH i2c: 01 00 00 A9 02 AB [11:36:37]Write i2c OK [11:36:37]MH_I2C_Read... [11:36:38]OFD Sender: No OFD packet to send [11:36:39]*** Cut start [11:36:39]*** Partial cut [11:36:39]*** CUTSNS_PIN = 1 [11:36:39]*** CUTSNS_PIN = 0 [11:36:39]*** Brake cut motor [11:36:40]Read from MH i2c: *** Stop cut motor [11:36:40]*** Cut end [11:36:40]01 [11:36:40]MH_I2C_Read... [11:36:40]Read from MH i2c: 01 07 00 [11:36:40]MH_I2C_Read... [11:36:40]Read from MH i2c: 01 07 00 A9 02 00 00 00 00 00 FF 0F C0 [11:36:40]process_action close_receipt done [11:36:40]requested_data is exist [11:36:40]produce_requested_data [11:36:40]requested_item fm.sn is exist - process it [11:36:40]wFMCommunicate request_size=4 [11:36:40]MH_SAM_APDU [11:36:40]CAPDU: 80 11 00 00 [11:36:40]Write to MH i2c: E2 08 00 AA 02 80 11 00 00 00 00 00 00 26 [11:36:40]Write i2c OK [11:36:40]MH_I2C_Read... [11:36:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:36:40]Read from MH i2c: E2 [11:36:40]MH_I2C_Read... [11:36:40]Read from MH i2c: E2 17 00 [11:36:40]MH_I2C_Read... [11:36:40]Read from MH i2c: E2 17 00 AA 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 74 [11:36:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [11:36:40]wFMCommunicate OK [11:36:40]requested_item fd.num is exist - process it [11:36:40]SAM_PROTO_GetFieldsCounters [11:36:40]wFMCommunicate request_size=4 [11:36:40]MH_SAM_APDU [11:36:40]CAPDU: 80 13 00 00 [11:36:40]Write to MH i2c: E2 08 00 AB 02 80 13 00 00 00 00 00 00 29 [11:36:40]Write i2c OK [11:36:40]MH_I2C_Read... [11:36:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:36:40]Read from MH i2c: E2 [11:36:40]MH_I2C_Read... [11:36:40]Read from MH i2c: E2 62 00 [11:36:40]MH_I2C_Read... [11:36:40]Read from MH i2c: E2 62 00 AB 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 F0 C5 01 00 0E 04 04 00 DA 01 00 00 12 04 04 00 40 00 00 00 5E 04 04 00 40 00 00 00 57 04 04 00 41 00 00 00 19 04 04 00 00 00 00 00 90 00 93 [11:36:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 F0 C5 01 00 0E 04 04 00 DA 01 00 00 12 04 04 00 40 00 00 00 5E 04 04 00 40 00 00 00 57 04 04 00 41 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:36:40]wFMCommunicate OK [11:36:40]SAM_PROTO_GetFieldsCounters done [11:36:40]requested_item shift.num is exist - process it [11:36:40]requested_item shift.opened is exist - process it [11:36:40]req_shift_opened [11:36:40]FM_GetShiftState [11:36:40]SAM_PROTO_GetShiftState [11:36:40]wFMCommunicate request_size=4 [11:36:40]MH_SAM_APDU [11:36:40]CAPDU: 80 13 01 00 [11:36:40]Write to MH i2c: E2 08 00 AC 02 80 13 01 00 00 00 00 00 2B [11:36:40]Write i2c OK [11:36:40]MH_I2C_Read... [11:36:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:36:40]Read from MH i2c: E2 [11:36:40]MH_I2C_Read... [11:36:40]Read from MH i2c: E2 0E 00 [11:36:40]MH_I2C_Read... [11:36:40]Read from MH i2c: E2 0E 00 AC 02 00 09 00 01 63 60 F3 66 00 00 00 00 90 00 53 [11:36:40]RAPDU: 09 00 01 63 60 F3 66 00 00 00 00 90 00 [11:36:40]wFMCommunicate OK [11:36:40]SAM_PROTO_GetShiftState done [11:36:40]FM_GetShiftState done [11:36:40]req_shift_opened done [11:36:40]requested_item shift.open_date is exist - process it [11:36:40]req_shift_open_date [11:36:40]req_shift_open_date done [11:36:40]produce_requested_data done [11:36:40]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":116208,"shift.num":474,"shift.opened":1,"shift.open_date":1727225955} [11:36:40]process_action_free close_receipt [11:36:40]json_value_free [11:36:40]json_value_free done [11:36:40]process_json_proto returns [11:36:40]Send response to host [11:36:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":116208,"shift.num":474,"shift.opened":1,"shift.open_date":1727225955}}} [11:36:40]free response buf [11:36:40]execute_script done [11:36:40]execute_script returns [11:36:40]free content buf [11:36:40]Sock 9.Close socket [11:36:40]Sock 9.Thread stoped [11:36:43]OFD Sender: No OFD packet to send [11:36:48]OFD Sender: No OFD packet to send [11:36:53]OFD Sender: No OFD packet to send [11:36:58]OFD Sender: No OFD packet to send [11:37:03]OFD Sender: No OFD packet to send [11:37:08]OFD Sender: No OFD packet to send [11:37:13]OFD Sender: No OFD packet to send [11:37:18]OFD Sender: No OFD packet to send [11:37:23]OFD Sender: No OFD packet to send [11:37:28]OFD Sender: No OFD packet to send [11:37:33]OFD Sender: No OFD packet to send [11:37:38]OFD Sender: No OFD packet to send [11:37:43]OFD Sender: No OFD packet to send [11:37:48]OFD Sender: No OFD packet to send [11:37:53]OFD Sender: No OFD packet to send [11:37:58]OFD Sender: No OFD packet to send [11:38:03]OFD Sender: No OFD packet to send [11:38:08]OFD Sender: No OFD packet to send [11:38:13]OFD Sender: No OFD packet to send [11:38:18]OFD Sender: No OFD packet to send [11:38:23]OFD Sender: No OFD packet to send [11:38:28]OFD Sender: No OFD packet to send [11:38:33]OFD Sender: No OFD packet to send [11:38:38]OFD Sender: No OFD packet to send [11:38:43]OFD Sender: No OFD packet to send [11:38:48]OFD Sender: No OFD packet to send [11:38:53]OFD Sender: No OFD packet to send [11:38:54]accept exits with 7 [11:38:54]New connection [11:38:54]New thread 3067587940 created [11:38:54]Thread 3067444580 joined [11:38:54]Waiting for new connection... [11:38:54] Sock 7.Parse request [11:38:54]Sock 7.Check first char [11:38:54]Sock 7.First char is OK [11:38:54]request: POST /json_proto HTTP/1.0 [11:38:54]Method: POST [11:38:54]URL: /json_proto [11:38:54]Method is POST - this is cgi request [11:38:54]url: /json_proto [11:38:54]query_string will be loaded in cgi processing [11:38:54]execute_cgi json_proto POST (null) [11:38:54]execute_cgi path=json_proto method=POST [11:38:54]POST find Content-Length [11:38:54]Host: 172.17.41.136:8080 [11:38:54]Content-Length: 630 [11:38:54]Content-Type: application/json [11:38:54] [11:38:54]POST finish read [11:38:54]Found Content-Length = 630 [11:38:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)344378", "tax_sys" : 0, "items" : [ { "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 50.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:38:54]execute_script... [11:38: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 : (3)344378", "tax_sys" : 0, "items" : [ { "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 50.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:38:54]POST & json_proto [11:38:54]process_json_proto [11:38:54]json parsed OK: [11:38:54]protocol is kg_v1.0 [11:38:54]action value=close_receipt [11:38:54]process_action close_receipt [11:38:54]cmd_close_receipt [11:38:54]MH_GetDate [11:38:54]Write to MH i2c: F0 00 00 AD 02 9E [11:38:54]Write i2c OK [11:38:54]MH_I2C_Read... [11:38:54]Read from MH i2c: F0 [11:38:54]MH_I2C_Read... [11:38:54]Read from MH i2c: F0 09 00 [11:38:54]MH_I2C_Read... [11:38:54]Read from MH i2c: F0 09 00 AD 02 00 4F F6 F3 66 1B D0 5A 64 EE [11:38:54]GetLastDocTimeStamp 1727264194 [11:38:54]current date 1727264335 [11:38:54]FM_GetShiftState [11:38:54]SAM_PROTO_GetShiftState [11:38:54]wFMCommunicate request_size=4 [11:38:54]MH_SAM_APDU [11:38:54]CAPDU: 80 13 01 00 [11:38:54]Write to MH i2c: E2 08 00 AE 02 80 13 01 00 00 00 00 00 2D [11:38:54]Write i2c OK [11:38:54]MH_I2C_Read... [11:38:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:38:54]Read from MH i2c: E2 [11:38:54]MH_I2C_Read... [11:38:54]Read from MH i2c: E2 0E 00 [11:38:54]MH_I2C_Read... [11:38:54]Read from MH i2c: E2 0E 00 AE 02 00 09 00 01 63 60 F3 66 00 00 00 00 90 00 55 [11:38:54]RAPDU: 09 00 01 63 60 F3 66 00 00 00 00 90 00 [11:38:54]wFMCommunicate OK [11:38:54]SAM_PROTO_GetShiftState done [11:38:54]FM_GetShiftState done [11:38:54]opened in 1727225955 [11:38:54]opened+sec_in_day 1727312355 [11:38:54]quantity*price = 5000 [11:38:54]sum+1 = 5001 [11:38:54]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 50.00 НСП 1% : 0.44 НДС 12% : 5.31 Наличными: 50.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 65 25.09.2024 11:38 Смена: 474 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 116209 ФПД: 190312888014270 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240925T113855&type=1&operation_type=1&fn_number=0000000000871830&fd_number=116209&fm=190312888014270&tin=02508201610067®Number=0000000000091831&sum=5000 0 [11:38:55]StoreToDocumentArchive [11:38:55]shift 474 fd 116209 [11:38:55]save to /storage/0474/doc_00116209 [11:38:55]save last doc name /storage/0474/doc_00116209 to /storage/kkm_last_doc_name [11:38:55]save OK [11:38:55]Clear old archive folders... [11:38:55]ProcessDocumentItem done err = 0, tmpTLVsize=269 [11:38:55]tlvbuf is 009B4880 [11:38:55]SAM_PROTO_ClearQueue [11:38:55]wFMCommunicate request_size=4 [11:38:55]MH_SAM_APDU [11:38:55]CAPDU: 80 09 00 00 [11:38:55]Write to MH i2c: E2 08 00 BB 02 80 09 00 00 00 00 00 00 2F [11:38:55]Write i2c OK [11:38:55]MH_I2C_Read... [11:38:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:38:55]Read from MH i2c: E2 [11:38:55]MH_I2C_Read... [11:38:55]Read from MH i2c: E2 03 00 [11:38:55]MH_I2C_Read... [11:38:55]Read from MH i2c: E2 03 00 BB 02 00 90 00 31 [11:38:55]RAPDU: 90 00 [11:38:55]wFMCommunicate OK [11:38:55]SAM_PROTO_ClearQueue done [11:38:55]KKMCreateOFDPacket [11:38:55]OFDProtocolAddRootSTLVToBuf [11:38:55]FM_MakeSignedData [11:38:55]FM_MakeSignedData [11:38:55]SAM_PROTO_SignData [11:38:55]wFMCommunicate request_size=4 [11:38:55]MH_SAM_APDU [11:38:55]CAPDU: 80 0D 01 02 [11:38:55]Write to MH i2c: E2 08 00 BC 02 80 0D 01 02 00 00 00 00 37 [11:38:55]Write i2c OK [11:38:55]MH_I2C_Read... [11:38:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:38:55]Read from MH i2c: E2 [11:38:55]MH_I2C_Read... [11:38:55]Read from MH i2c: E2 03 00 [11:38:55]MH_I2C_Read... [11:38:55]Read from MH i2c: E2 03 00 BC 02 00 90 00 32 [11:38:55]RAPDU: 90 00 [11:38:55]wFMCommunicate OK [11:38:55]wFMCommunicate request_size=255 [11:38:55]MH_SAM_APDU [11:38:55]CAPDU: 80 0D 02 02 FA 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 88 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 4F F6 F3 66 0E 04 04 00 DA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 [11:38:55]Write to MH i2c: E2 02 01 BD 02 80 0D 02 02 FA 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 88 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 4F F6 F3 66 0E 04 04 00 DA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 00 00 05 [11:38:55]Write i2c OK [11:38:55]MH_I2C_Read... [11:38:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:38:55]Read from MH i2c: E2 [11:38:55]MH_I2C_Read... [11:38:55]Read from MH i2c: E2 03 00 [11:38:55]MH_I2C_Read... [11:38:55]Read from MH i2c: E2 03 00 BD 02 00 90 00 33 [11:38:55]RAPDU: 90 00 [11:38:55]wFMCommunicate OK [11:38:55]wFMCommunicate request_size=28 [11:38:55]MH_SAM_APDU [11:38:55]CAPDU: 80 0D 02 02 17 37 31 38 33 30 10 04 04 00 F1 C5 01 00 35 04 06 00 AD 16 AC 16 15 BE [11:38:55]Write to MH i2c: E2 1F 00 BE 02 80 0D 02 02 17 00 37 31 38 33 30 10 04 04 00 F1 C5 01 00 35 04 06 00 AD 16 AC 16 15 BE 00 00 D1 [11:38:55]Write i2c OK [11:38:55]MH_I2C_Read... [11:38:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:38:56]Read from MH i2c: E2 [11:38:56]MH_I2C_Read... [11:38:56]Read from MH i2c: E2 03 00 [11:38:56]MH_I2C_Read... [11:38:56]Read from MH i2c: E2 03 00 BE 02 00 90 00 34 [11:38:56]RAPDU: 90 00 [11:38:56]wFMCommunicate OK [11:38:56]wFMCommunicate request_size=4 [11:38:56]MH_SAM_APDU [11:38:56]CAPDU: 80 0D 03 02 [11:38:56]Write to MH i2c: E2 08 00 BF 02 80 0D 03 02 00 00 00 00 3C [11:38:56]Write i2c OK [11:38:56]MH_I2C_Read... [11:38:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:38:56]Read from MH i2c: E2 [11:38:56]MH_I2C_Read... [11:38:56]Read from MH i2c: E2 0B 00 [11:38:56]MH_I2C_Read... [11:38:56]Read from MH i2c: E2 0B 00 BF 02 00 FA 22 C9 66 05 8C 4B 8C 90 00 F0 [11:38:56]RAPDU: FA 22 C9 66 05 8C 4B 8C 90 00 [11:38:56]wFMCommunicate OK [11:38:56]SAM_PROTO_SignData done [11:38:56]FM_MakeSignedData done [11:38:56]CreateOFDProtocolMessage [11:38:56]wFMCommunicate request_size=4 [11:38:56]MH_SAM_APDU [11:38:56]CAPDU: 80 11 00 00 [11:38:56]Write to MH i2c: E2 08 00 C0 02 80 11 00 00 00 00 00 00 3C [11:38:56]Write i2c OK [11:38:56]MH_I2C_Read... [11:38:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:38:56]Read from MH i2c: E2 [11:38:56]MH_I2C_Read... [11:38:56]Read from MH i2c: E2 17 00 [11:38:56]MH_I2C_Read... [11:38:56]Read from MH i2c: E2 17 00 C0 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 8A [11:38:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [11:38:56]wFMCommunicate OK [11:38:56]CreateOFDProtocolMessage done [11:38:56]OFDSenderStorePacket 116209 [11:38:56]StoreOFDPacket docnum=116209 [11:38:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 21 01 00 00 CB CD 19 01 26 8F 5A 03 01 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 88 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 4F F6 F3 66 0E 04 04 00 DA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 F1 C5 01 00 35 04 06 00 AD 16 AC 16 15 BE FA 22 C9 66 05 8C 4B 8C [11:38:56]CheckFolder [11:38:56]dirname=/storage/ofd_packets [11:38:56]CheckFolder done [11:38:56]ProducePacketName [11:38:56]name=ofd_packets/00116209 [11:38:56]NVStorageSaveData ofd_packets/00116209 [11:38:56]File name is /storage/ofd_packets/00116209 [11:38:56]Write 319 bytes [11:38:56]NVStorageSaveData done [11:38:56]OFDSenderStorePacket done [11:38:56]KKMCreateOFDPacket done [11:38:56]NVStorageSaveData kkm_last_timestamp [11:38:56]File name is /storage/kkm_last_timestamp [11:38:56]Write 4 bytes [11:38:56]NVStorageSaveData done [11:38:56]ExternCall_PrintAddStr [11:38:56]wPrintStart [11:38:56]Write to MH i2c: 01 00 00 C1 02 C3 [11:38:56]Write i2c OK [11:38:56]MH_I2C_Read... [11:38:56]Read from MH i2c: 01 [11:38:56]MH_I2C_Read... [11:38:56]Read from MH i2c: 01 07 00 [11:38:56]MH_I2C_Read... [11:38:56]Read from MH i2c: 01 07 00 C1 02 00 00 00 00 00 FF 0F D8 [11:38:56]RasterBufferAndPrint [11:38:56]line Счет N : (3)344378 [11:38:56]line ИНН: 02508201610067 [11:38:56]line Контрольно-Кассовый Чек [11:38:56]line ПРОДАЖА [11:38:56]line Товар: 4700000160358 [11:38:56]line Вода Легенда 1л [11:38:56]line 1.000 * 50.00 [11:38:56]line = 50.00 [11:38:56]line НДС 12% НСП 1% [11:38:56]line > о реализуемом товаре [11:38:56]line ИТОГО: 50.00 [11:38:56]line НСП 1% : 0.44 [11:38:56]line НДС 12% : 5.31 [11:38:56]line Наличными: 50.00 [11:38:56]line Безнал.: 0.00 [11:38:56]line Место: АЗС № 90 "Партнер Нефть" [11:38:56]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [11:38:56]line СНО: Общий режим [11:38:56]line Чек 65 25.09.2024 11:38 [11:38:56]line Смена: 474 ФФД: 1.0 [11:38:56]line ЗНМ: 0300000120 [11:38:56]line РНМ: 0000000000091831 [11:38:56]line Версия ККМ: 001 [11:38:56]line ФМ: 0000000000871830 [11:38:56]line ФД: 116209 [11:38:56]line ФПД: 190312888014270 [11:38:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240925T113855&type=1&operation_type=1&fn_number=0000000000871830&fd_number=116209&fm=190312888014270&tin=02508201610067®Number=0000000000091831&sum=5000 [11:38:56]line 0 [11:38:56]written 0, free lines is 4095 [11:38:56]OFD Sender: Processing packet 116209 [packets to send 482, broken 481] [11:38:56]ProducePacketName [11:38:56]name=ofd_packets/00116209 [11:38:56]OFD Sender: To server: pG, [11:38:56]CommunicateWithHost lk.salyk.kg:30040 [11:38:56]ConnectInit lk.salyk.kg [11:38:56]Connected sock=10 [11:38:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 21 01 00 00 CB CD 19 01 26 8F 5A 03 01 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 88 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 4F F6 F3 66 0E 04 04 00 DA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 F1 C5 01 00 35 04 06 00 AD 16 AC 16 15 BE FA 22 C9 66 05 8C 4B 8C [11:38:56]Write to MH i2c: 01 00 00 E8 02 EA [11:38:56]Write i2c OK [11:38:56]MH_I2C_Read... [11:38:56]Read from MH i2c: 01 [11:38:56]MH_I2C_Read... [11:38:56]Read from MH i2c: 01 07 00 [11:38:56]MH_I2C_Read... [11:38:56]Read from MH i2c: 01 07 00 E8 02 00 00 00 00 00 88 0C 85 [11:38:56]RasterBufferAndPrint [11:38:56]line [11:38:56]line [11:38:56]line [11:38:56]line [11:38:56]line [11:38:56]written 0, free lines is 3213 [11:38:56]MH_Cut [11:38:56]Write to MH i2c: D1 01 00 EF 02 01 C3 [11:38:56]Write i2c OK [11:38:56]MH_I2C_Read... [11:38:56]Read from MH i2c: D1 [11:38:56]MH_I2C_Read... [11:38:56]Read from MH i2c: D1 01 00 [11:38:56]MH_I2C_Read... [11:38:56]Read from MH i2c: D1 01 00 EF 02 00 C2 [11:38:56]Write to MH i2c: 01 00 00 F0 02 F2 [11:38:56]Write i2c OK [11:38:56]MH_I2C_Read... [11:38:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 C1 B0 47 00 EF 75 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 F1 C5 01 00 F4 03 04 00 8B 9B F3 66 B6 04 01 00 00 57 FE 36 21 13 1E 1C F7 [11:38:56]CommunicateWithHost err = 0 [11:38:56]CheckOFDResponse [11:38:56]1017 (14) - 77093643461234 [11:38:56]1041 (16) - 0000000000871830 [11:38:56]1040 (4) - 116209 [11:38:56]1012 (4) - 25.09.2024 05:11 [11:38:56]1206 (1) - 0 [11:38:56]OFD Sender: Remove packet 116209 [11:38:56]ProducePacketName [11:38:56]name=ofd_packets/00116209 [11:38:56]NVStorageDeleteData [11:38:57]OFD Sender: No OFD packet to send [11:38:57]*** Cut start [11:38:57]*** Partial cut [11:38:57]*** CUTSNS_PIN = 1 [11:38:57]*** CUTSNS_PIN = 0 [11:38:58]*** Brake cut motor [11:38:58]Read from MH i2c: 01 [11:38:58]MH_I2C_Read... [11:38:58]*** Stop cut motor [11:38:58]*** Cut end [11:38:58]Read from MH i2c: 01 07 00 [11:38:58]MH_I2C_Read... [11:38:58]Read from MH i2c: 01 07 00 F0 02 00 00 00 00 00 FF 0F 07 [11:38:58]process_action close_receipt done [11:38:58]requested_data is exist [11:38:58]produce_requested_data [11:38:58]requested_item fm.sn is exist - process it [11:38:58]wFMCommunicate request_size=4 [11:38:58]MH_SAM_APDU [11:38:58]CAPDU: 80 11 00 00 [11:38:58]Write to MH i2c: E2 08 00 F1 02 80 11 00 00 00 00 00 00 6D [11:38:58]Write i2c OK [11:38:58]MH_I2C_Read... [11:38:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:38:58]Read from MH i2c: E2 [11:38:58]MH_I2C_Read... [11:38:58]Read from MH i2c: E2 17 00 [11:38:58]MH_I2C_Read... [11:38:58]Read from MH i2c: E2 17 00 F1 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 BB [11:38:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [11:38:58]wFMCommunicate OK [11:38:58]requested_item fd.num is exist - process it [11:38:58]SAM_PROTO_GetFieldsCounters [11:38:58]wFMCommunicate request_size=4 [11:38:58]MH_SAM_APDU [11:38:58]CAPDU: 80 13 00 00 [11:38:58]Write to MH i2c: E2 08 00 F2 02 80 13 00 00 00 00 00 00 70 [11:38:58]Write i2c OK [11:38:58]MH_I2C_Read... [11:38:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:38:58]Read from MH i2c: E2 [11:38:58]MH_I2C_Read... [11:38:58]Read from MH i2c: E2 62 00 [11:38:58]MH_I2C_Read... [11:38:58]Read from MH i2c: E2 62 00 F2 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 F1 C5 01 00 0E 04 04 00 DA 01 00 00 12 04 04 00 41 00 00 00 5E 04 04 00 41 00 00 00 57 04 04 00 42 00 00 00 19 04 04 00 00 00 00 00 90 00 DE [11:38:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 F1 C5 01 00 0E 04 04 00 DA 01 00 00 12 04 04 00 41 00 00 00 5E 04 04 00 41 00 00 00 57 04 04 00 42 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:38:58]wFMCommunicate OK [11:38:58]SAM_PROTO_GetFieldsCounters done [11:38:58]requested_item shift.num is exist - process it [11:38:58]requested_item shift.opened is exist - process it [11:38:58]req_shift_opened [11:38:58]FM_GetShiftState [11:38:58]SAM_PROTO_GetShiftState [11:38:58]wFMCommunicate request_size=4 [11:38:58]MH_SAM_APDU [11:38:58]CAPDU: 80 13 01 00 [11:38:58]Write to MH i2c: E2 08 00 F3 02 80 13 01 00 00 00 00 00 72 [11:38:58]Write i2c OK [11:38:58]MH_I2C_Read... [11:38:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:38:58]Read from MH i2c: E2 [11:38:58]MH_I2C_Read... [11:38:58]Read from MH i2c: E2 0E 00 [11:38:58]MH_I2C_Read... [11:38:58]Read from MH i2c: E2 0E 00 F3 02 00 09 00 01 63 60 F3 66 00 00 00 00 90 00 9A [11:38:58]RAPDU: 09 00 01 63 60 F3 66 00 00 00 00 90 00 [11:38:58]wFMCommunicate OK [11:38:58]SAM_PROTO_GetShiftState done [11:38:58]FM_GetShiftState done [11:38:58]req_shift_opened done [11:38:58]requested_item shift.open_date is exist - process it [11:38:58]req_shift_open_date [11:38:58]req_shift_open_date done [11:38:58]produce_requested_data done [11:38:58]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":116209,"shift.num":474,"shift.opened":1,"shift.open_date":1727225955} [11:38:58]process_action_free close_receipt [11:38:58]json_value_free [11:38:58]json_value_free done [11:38:58]process_json_proto returns [11:38:58]Send response to host [11:38:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":116209,"shift.num":474,"shift.opened":1,"shift.open_date":1727225955}}} [11:38:58]free response buf [11:38:58]execute_script done [11:38:58]execute_script returns [11:38:58]free content buf [11:38:58]Sock 7.Close socket [11:38:58]Sock 7.Thread stoped [11:39:02]OFD Sender: No OFD packet to send [11:39:07]OFD Sender: No OFD packet to send [11:39:12]OFD Sender: No OFD packet to send [11:39:17]OFD Sender: No OFD packet to send [11:39:22]OFD Sender: No OFD packet to send [11:39:27]OFD Sender: No OFD packet to send [11:39:32]OFD Sender: No OFD packet to send [11:39:37]OFD Sender: No OFD packet to send [11:39:42]OFD Sender: No OFD packet to send [11:39:47]OFD Sender: No OFD packet to send [11:39:52]OFD Sender: No OFD packet to send [11:39:57]OFD Sender: No OFD packet to send [11:40:02]OFD Sender: No OFD packet to send [11:40:07]OFD Sender: No OFD packet to send [11:40:12]OFD Sender: No OFD packet to send [11:40:17]OFD Sender: No OFD packet to send [11:40:22]OFD Sender: No OFD packet to send [11:40:27]OFD Sender: No OFD packet to send [11:40:32]OFD Sender: No OFD packet to send [11:40:37]OFD Sender: No OFD packet to send [11:40:42]OFD Sender: No OFD packet to send [11:40:47]OFD Sender: No OFD packet to send [11:40:52]OFD Sender: No OFD packet to send [11:40:57]OFD Sender: No OFD packet to send [11:41:02]OFD Sender: No OFD packet to send [11:41:07]OFD Sender: No OFD packet to send [11:41:12]OFD Sender: No OFD packet to send [11:41:17]OFD Sender: No OFD packet to send [11:41:22]OFD Sender: No OFD packet to send [11:41:27]OFD Sender: No OFD packet to send [11:41:37]OFD Sender: No OFD packet to send [11:41:42]OFD Sender: No OFD packet to send [11:41:47]OFD Sender: No OFD packet to send [11:41:52]OFD Sender: No OFD packet to send [11:41:57]OFD Sender: No OFD packet to send [11:42:02]OFD Sender: No OFD packet to send [11:42:07]OFD Sender: No OFD packet to send [11:42:12]OFD Sender: No OFD packet to send [11:42:17]OFD Sender: No OFD packet to send [11:42:22]OFD Sender: No OFD packet to send [11:42:27]OFD Sender: No OFD packet to send [11:42:32]OFD Sender: No OFD packet to send [11:42:37]OFD Sender: No OFD packet to send [11:42:42]OFD Sender: No OFD packet to send [11:42:47]OFD Sender: No OFD packet to send [11:42:52]OFD Sender: No OFD packet to send [11:42:57]OFD Sender: No OFD packet to send [11:43:02]OFD Sender: No OFD packet to send [11:43:07]OFD Sender: No OFD packet to send [11:43:12]OFD Sender: No OFD packet to send [11:43:17]OFD Sender: No OFD packet to send [11:43:22]OFD Sender: No OFD packet to send [11:43:27]OFD Sender: No OFD packet to send [11:43:32]OFD Sender: No OFD packet to send [11:43:37]OFD Sender: No OFD packet to send [11:43:42]OFD Sender: No OFD packet to send [11:43:46]ConnectInit Can't connect to host [11:43:47]OFD Sender: No OFD packet to send [11:43:53]OFD Sender: No OFD packet to send [11:43:58]OFD Sender: No OFD packet to send [11:44:03]OFD Sender: No OFD packet to send [11:44:08]OFD Sender: No OFD packet to send [11:44:13]OFD Sender: No OFD packet to send [11:44:18]OFD Sender: No OFD packet to send [11:44:23]OFD Sender: No OFD packet to send [11:44:28]OFD Sender: No OFD packet to send [11:44:33]OFD Sender: No OFD packet to send [11:44:38]OFD Sender: No OFD packet to send [11:44:43]OFD Sender: No OFD packet to send [11:44:48]OFD Sender: No OFD packet to send [11:44:53]OFD Sender: No OFD packet to send [11:44:58]OFD Sender: No OFD packet to send [11:45:03]OFD Sender: No OFD packet to send [11:45:08]OFD Sender: No OFD packet to send [11:45:13]OFD Sender: No OFD packet to send [11:45:18]OFD Sender: No OFD packet to send [11:45:23]OFD Sender: No OFD packet to send [11:45:28]OFD Sender: No OFD packet to send [11:45:33]OFD Sender: No OFD packet to send [11:45:38]OFD Sender: No OFD packet to send [11:45:43]OFD Sender: No OFD packet to send [11:45:48]OFD Sender: No OFD packet to send [11:45:53]OFD Sender: No OFD packet to send [11:45:58]OFD Sender: No OFD packet to send [11:46:03]OFD Sender: No OFD packet to send [11:46:08]OFD Sender: No OFD packet to send [11:46:13]OFD Sender: No OFD packet to send [11:46:18]OFD Sender: No OFD packet to send [11:46:23]OFD Sender: No OFD packet to send [11:46:28]OFD Sender: No OFD packet to send [11:46:33]OFD Sender: No OFD packet to send [11:46:38]OFD Sender: No OFD packet to send [11:46:43]OFD Sender: No OFD packet to send [11:46:48]OFD Sender: No OFD packet to send [11:46:53]OFD Sender: No OFD packet to send [11:46:58]OFD Sender: No OFD packet to send [11:47:01]accept exits with 9 [11:47:01]New connection [11:47:01]New thread 3067444580 created [11:47:01]Thread 3067587940 joined [11:47:01]Waiting for new connection... [11:47:01] Sock 9.Parse request [11:47:01]Sock 9.Check first char [11:47:01]Sock 9.First char is OK [11:47:01]request: POST /json_proto HTTP/1.0 [11:47:01]Method: POST [11:47:01]URL: /json_proto [11:47:01]Method is POST - this is cgi request [11:47:01]url: /json_proto [11:47:01]query_string will be loaded in cgi processing [11:47:01]execute_cgi json_proto POST (null) [11:47:01]execute_cgi path=json_proto method=POST [11:47:01]POST find Content-Length [11:47:01]Host: 172.17.41.136:8080 [11:47:01]Content-Length: 621 [11:47:01]Content-Type: application/json [11:47:01] [11:47:01]POST finish read [11:47:01]Found Content-Length = 621 [11:47:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)344379", "tax_sys" : 0, "items" : [ { "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 144.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:47:01]execute_script... [11:47:01]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)344379", "tax_sys" : 0, "items" : [ { "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 144.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:47:01]POST & json_proto [11:47:01]process_json_proto [11:47:01]json parsed OK: [11:47:01]protocol is kg_v1.0 [11:47:01]action value=close_receipt [11:47:01]process_action close_receipt [11:47:01]cmd_close_receipt [11:47:01]MH_GetDate [11:47:01]Write to MH i2c: F0 00 00 F4 02 E5 [11:47:01]Write i2c OK [11:47:01]MH_I2C_Read... [11:47:01]Read from MH i2c: F0 [11:47:01]MH_I2C_Read... [11:47:01]Read from MH i2c: F0 09 00 [11:47:01]MH_I2C_Read... [11:47:01]Read from MH i2c: F0 09 00 F4 02 00 36 F8 F3 66 1B D0 5A 64 1E [11:47:01]GetLastDocTimeStamp 1727264335 [11:47:01]current date 1727264822 [11:47:01]FM_GetShiftState [11:47:01]SAM_PROTO_GetShiftState [11:47:01]wFMCommunicate request_size=4 [11:47:01]MH_SAM_APDU [11:47:01]CAPDU: 80 13 01 00 [11:47:01]Write to MH i2c: E2 08 00 F5 02 80 13 01 00 00 00 00 00 74 [11:47:01]Write i2c OK [11:47:01]MH_I2C_Read... [11:47:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:47:01]Read from MH i2c: E2 [11:47:01]MH_I2C_Read... [11:47:01]Read from MH i2c: E2 0E 00 [11:47:01]MH_I2C_Read... [11:47:01]Read from MH i2c: E2 0E 00 F5 02 00 09 00 01 63 60 F3 66 00 00 00 00 90 00 9C [11:47:01]RAPDU: 09 00 01 63 60 F3 66 00 00 00 00 90 00 [11:47:01]wFMCommunicate OK [11:47:01]SAM_PROTO_GetShiftState done [11:47:01]FM_GetShiftState done [11:47:01]opened in 1727225955 [11:47:01]opened+sec_in_day 1727312355 [11:47:01]quantity*price = 14400 [11:47:01]sum+1 = 14401 [11:47:01]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 144.00 НСП 1% : 1.27 НДС 12% : 15.29 Наличными: 144.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 66 25.09.2024 11:47 Смена: 474 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 116210 ФПД: 98042642731026 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240925T114702&type=1&operation_type=1&fn_number=0000000000871830&fd_number=116210&fm=98042642731026&tin=02508201610067®Number=0000000000091831&sum=14400 0 [11:47:02]StoreToDocumentArchive [11:47:02]shift 474 fd 116210 [11:47:02]save to /storage/0474/doc_00116210 [11:47:02]save last doc name /storage/0474/doc_00116210 to /storage/kkm_last_doc_name [11:47:02]save OK [11:47:02]Clear old archive folders... [11:47:02]ProcessDocumentItem done err = 0, tmpTLVsize=273 [11:47:02]tlvbuf is 00A373F0 [11:47:02]SAM_PROTO_ClearQueue [11:47:02]wFMCommunicate request_size=4 [11:47:02]MH_SAM_APDU [11:47:02]CAPDU: 80 09 00 00 [11:47:02]Write to MH i2c: E2 08 00 02 03 80 09 00 00 00 00 00 00 77 [11:47:02]Write i2c OK [11:47:02]MH_I2C_Read... [11:47:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:47:02]Read from MH i2c: E2 [11:47:02]MH_I2C_Read... [11:47:02]Read from MH i2c: E2 03 00 [11:47:02]MH_I2C_Read... [11:47:02]Read from MH i2c: E2 03 00 02 03 00 90 00 79 [11:47:02]RAPDU: 90 00 [11:47:02]wFMCommunicate OK [11:47:02]SAM_PROTO_ClearQueue done [11:47:02]KKMCreateOFDPacket [11:47:02]OFDProtocolAddRootSTLVToBuf [11:47:02]FM_MakeSignedData [11:47:02]FM_MakeSignedData [11:47:02]SAM_PROTO_SignData [11:47:02]wFMCommunicate request_size=4 [11:47:02]MH_SAM_APDU [11:47:02]CAPDU: 80 0D 01 02 [11:47:02]Write to MH i2c: E2 08 00 03 03 80 0D 01 02 00 00 00 00 7F [11:47:02]Write i2c OK [11:47:02]MH_I2C_Read... [11:47:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:47:02]Read from MH i2c: E2 [11:47:02]MH_I2C_Read... [11:47:02]Read from MH i2c: E2 03 00 [11:47:02]MH_I2C_Read... [11:47:02]Read from MH i2c: E2 03 00 03 03 00 90 00 7A [11:47:02]RAPDU: 90 00 [11:47:02]wFMCommunicate OK [11:47:02]wFMCommunicate request_size=255 [11:47:02]MH_SAM_APDU [11:47:02]CAPDU: 80 0D 02 02 FA 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 38 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 00 00 00 F4 03 04 00 36 F8 F3 66 0E 04 04 00 DA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 [11:47:02]Write to MH i2c: E2 02 01 04 03 80 0D 02 02 FA 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 38 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 00 00 00 F4 03 04 00 36 F8 F3 66 0E 04 04 00 DA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 00 00 8A [11:47:02]Write i2c OK [11:47:02]MH_I2C_Read... [11:47:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:47:02]Read from MH i2c: E2 [11:47:02]MH_I2C_Read... [11:47:02]Read from MH i2c: E2 03 00 [11:47:02]MH_I2C_Read... [11:47:02]Read from MH i2c: E2 03 00 04 03 00 90 00 7B [11:47:02]RAPDU: 90 00 [11:47:02]wFMCommunicate OK [11:47:02]wFMCommunicate request_size=32 [11:47:02]MH_SAM_APDU [11:47:02]CAPDU: 80 0D 02 02 1B 30 30 30 38 37 31 38 33 30 10 04 04 00 F2 C5 01 00 35 04 06 00 59 2B 54 E4 90 12 [11:47:02]Write to MH i2c: E2 23 00 05 03 80 0D 02 02 1B 00 30 30 30 38 37 31 38 33 30 10 04 04 00 F2 C5 01 00 35 04 06 00 59 2B 54 E4 90 12 00 00 F0 [11:47:02]Write i2c OK [11:47:02]MH_I2C_Read... [11:47:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:47:02]Read from MH i2c: E2 [11:47:02]MH_I2C_Read... [11:47:02]Read from MH i2c: E2 03 00 [11:47:02]MH_I2C_Read... [11:47:02]Read from MH i2c: E2 03 00 05 03 00 90 00 7C [11:47:02]RAPDU: 90 00 [11:47:02]wFMCommunicate OK [11:47:02]wFMCommunicate request_size=4 [11:47:02]MH_SAM_APDU [11:47:02]CAPDU: 80 0D 03 02 [11:47:02]Write to MH i2c: E2 08 00 06 03 80 0D 03 02 00 00 00 00 84 [11:47:02]Write i2c OK [11:47:02]MH_I2C_Read... [11:47:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:47:03]Read from MH i2c: E2 [11:47:03]MH_I2C_Read... [11:47:03]Read from MH i2c: E2 0B 00 [11:47:03]MH_I2C_Read... [11:47:03]Read from MH i2c: E2 0B 00 06 03 00 AE 64 B9 FE 4F 11 F7 4F 90 00 F4 [11:47:03]RAPDU: AE 64 B9 FE 4F 11 F7 4F 90 00 [11:47:03]wFMCommunicate OK [11:47:03]SAM_PROTO_SignData done [11:47:03]FM_MakeSignedData done [11:47:03]CreateOFDProtocolMessage [11:47:03]wFMCommunicate request_size=4 [11:47:03]MH_SAM_APDU [11:47:03]CAPDU: 80 11 00 00 [11:47:03]Write to MH i2c: E2 08 00 07 03 80 11 00 00 00 00 00 00 84 [11:47:03]Write i2c OK [11:47:03]MH_I2C_Read... [11:47:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:47:03]Read from MH i2c: E2 [11:47:03]MH_I2C_Read... [11:47:03]Read from MH i2c: E2 17 00 [11:47:03]MH_I2C_Read... [11:47:03]Read from MH i2c: E2 17 00 07 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 D2 [11:47:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [11:47:03]wFMCommunicate OK [11:47:03]CreateOFDProtocolMessage done [11:47:03]OFDSenderStorePacket 116210 [11:47:03]StoreOFDPacket docnum=116210 [11:47:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 25 01 00 00 1E 85 1D 01 D0 B4 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 38 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 00 00 00 F4 03 04 00 36 F8 F3 66 0E 04 04 00 DA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 F2 C5 01 00 35 04 06 00 59 2B 54 E4 90 12 AE 64 B9 FE 4F 11 F7 4F [11:47:03]CheckFolder [11:47:03]dirname=/storage/ofd_packets [11:47:03]CheckFolder done [11:47:03]ProducePacketName [11:47:03]name=ofd_packets/00116210 [11:47:03]NVStorageSaveData ofd_packets/00116210 [11:47:03]File name is /storage/ofd_packets/00116210 [11:47:03]Write 323 bytes [11:47:03]NVStorageSaveData done [11:47:03]OFDSenderStorePacket done [11:47:03]KKMCreateOFDPacket done [11:47:03]NVStorageSaveData kkm_last_timestamp [11:47:03]File name is /storage/kkm_last_timestamp [11:47:03]Write 4 bytes [11:47:03]NVStorageSaveData done [11:47:03]ExternCall_PrintAddStr [11:47:03]wPrintStart [11:47:03]Write to MH i2c: 01 00 00 08 03 0B [11:47:03]Write i2c OK [11:47:03]MH_I2C_Read... [11:47:03]Read from MH i2c: 01 [11:47:03]MH_I2C_Read... [11:47:03]Read from MH i2c: 01 07 00 [11:47:03]MH_I2C_Read... [11:47:03]Read from MH i2c: 01 07 00 08 03 00 00 00 00 00 FF 0F 20 [11:47:03]RasterBufferAndPrint [11:47:03]line Счет N : (3)344379 [11:47:03]line ИНН: 02508201610067 [11:47:03]line Контрольно-Кассовый Чек [11:47:03]line ПРОДАЖА [11:47:03]line Товар: 48743570 [11:47:03]line Сигареты Winston XStyle Blue [11:47:03]line 1.000 * 144.00 [11:47:03]line = 144.00 [11:47:03]line НДС 12% НСП 1% [11:47:03]line > о реализуемом товаре [11:47:03]line ИТОГО: 144.00 [11:47:03]line НСП 1% : 1.27 [11:47:03]line НДС 12% : 15.29 [11:47:03]line Наличными: 144.00 [11:47:03]line Безнал.: 0.00 [11:47:03]line Место: АЗС № 90 "Партнер Нефть" [11:47:03]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [11:47:03]line СНО: Общий режим [11:47:03]line Чек 66 25.09.2024 11:47 [11:47:03]line Смена: 474 ФФД: 1.0 [11:47:03]line ЗНМ: 0300000120 [11:47:03]line РНМ: 0000000000091831 [11:47:03]line Версия ККМ: 001 [11:47:03]line ФМ: 0000000000871830 [11:47:03]line ФД: 116210 [11:47:03]line ФПД: 98042642731026 [11:47:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240925T114702&type=1&operation_type=1&fn_number=0000000000871830&fd_number=116210&fm=98042642731026&tin=02508201610067®Number=0000000000091831&sum=14400 [11:47:03]line 0 [11:47:03]OFD Sender: Processing packet 116210 [packets to send 482, broken 481] [11:47:03]ProducePacketName [11:47:03]name=ofd_packets/00116210 [11:47:03]OFD Sender: To server: pG, [11:47:03]CommunicateWithHost lk.salyk.kg:30040 [11:47:03]ConnectInit lk.salyk.kg [11:47:03]written 0, free lines is 4095 [11:47:03]Connected sock=11 [11:47:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 25 01 00 00 1E 85 1D 01 D0 B4 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 38 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 00 00 00 F4 03 04 00 36 F8 F3 66 0E 04 04 00 DA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 F2 C5 01 00 35 04 06 00 59 2B 54 E4 90 12 AE 64 B9 FE 4F 11 F7 4F [11:47:03]Write to MH i2c: 01 00 00 2F 03 32 [11:47:03]Write i2c OK [11:47:03]MH_I2C_Read... [11:47:03]Read from MH i2c: 01 [11:47:03]MH_I2C_Read... [11:47:03]Read from MH i2c: 01 07 00 [11:47:03]MH_I2C_Read... [11:47:03]Read from MH i2c: 01 07 00 2F 03 00 00 00 00 00 7E 0C C3 [11:47:03]RasterBufferAndPrint [11:47:03]line [11:47:03]line [11:47:03]line [11:47:03]line [11:47:03]line [11:47:03]written 0, free lines is 3202 [11:47:03]MH_Cut [11:47:03]Write to MH i2c: D1 01 00 36 03 01 0B [11:47:03]Write i2c OK [11:47:03]MH_I2C_Read... [11:47:03]Read from MH i2c: D1 [11:47:03]MH_I2C_Read... [11:47:03]Read from MH i2c: D1 01 00 [11:47:03]MH_I2C_Read... [11:47:03]Read from MH i2c: D1 01 00 36 03 00 0A [11:47:03]Write to MH i2c: 01 00 00 37 03 3A [11:47:03]Write i2c OK [11:47:03]MH_I2C_Read... [11:47:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 AB FE 47 00 C2 0A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 F2 C5 01 00 F4 03 04 00 72 9D F3 66 B6 04 01 00 00 34 35 EF F3 1B C7 28 19 [11:47:03]CommunicateWithHost err = 0 [11:47:03]CheckOFDResponse [11:47:03]1017 (14) - 77093643461234 [11:47:03]1041 (16) - 0000000000871830 [11:47:03]1040 (4) - 116210 [11:47:03]1012 (4) - 25.09.2024 05:19 [11:47:03]1206 (1) - 0 [11:47:03]OFD Sender: Remove packet 116210 [11:47:03]ProducePacketName [11:47:03]name=ofd_packets/00116210 [11:47:03]NVStorageDeleteData [11:47:04]OFD Sender: No OFD packet to send [11:47:04]*** Cut start [11:47:04]*** Partial cut [11:47:04]*** CUTSNS_PIN = 1 [11:47:04]*** CUTSNS_PIN = 0 [11:47:05]*** Brake cut motor [11:47:05]Read from MH i2c: 01 [11:47:05]MH_I2C_Read... [11:47:05]*** Stop cut motor [11:47:05]*** Cut end [11:47:05]Read from MH i2c: 01 07 00 [11:47:05]MH_I2C_Read... [11:47:05]Read from MH i2c: 01 07 00 37 03 00 00 00 00 00 FF 0F 4F [11:47:05]process_action close_receipt done [11:47:05]requested_data is exist [11:47:05]produce_requested_data [11:47:05]requested_item fm.sn is exist - process it [11:47:05]wFMCommunicate request_size=4 [11:47:05]MH_SAM_APDU [11:47:05]CAPDU: 80 11 00 00 [11:47:05]Write to MH i2c: E2 08 00 38 03 80 11 00 00 00 00 00 00 B5 [11:47:05]Write i2c OK [11:47:05]MH_I2C_Read... [11:47:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:47:05]Read from MH i2c: E2 [11:47:05]MH_I2C_Read... [11:47:05]Read from MH i2c: E2 17 00 [11:47:05]MH_I2C_Read... [11:47:05]Read from MH i2c: E2 17 00 38 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 03 [11:47:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [11:47:05]wFMCommunicate OK [11:47:05]requested_item fd.num is exist - process it [11:47:05]SAM_PROTO_GetFieldsCounters [11:47:05]wFMCommunicate request_size=4 [11:47:05]MH_SAM_APDU [11:47:05]CAPDU: 80 13 00 00 [11:47:05]Write to MH i2c: E2 08 00 39 03 80 13 00 00 00 00 00 00 B8 [11:47:05]Write i2c OK [11:47:05]MH_I2C_Read... [11:47:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:47:05]Read from MH i2c: E2 [11:47:05]MH_I2C_Read... [11:47:05]Read from MH i2c: E2 62 00 [11:47:05]MH_I2C_Read... [11:47:05]Read from MH i2c: E2 62 00 39 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 F2 C5 01 00 0E 04 04 00 DA 01 00 00 12 04 04 00 42 00 00 00 5E 04 04 00 42 00 00 00 57 04 04 00 43 00 00 00 19 04 04 00 00 00 00 00 90 00 2A [11:47:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 F2 C5 01 00 0E 04 04 00 DA 01 00 00 12 04 04 00 42 00 00 00 5E 04 04 00 42 00 00 00 57 04 04 00 43 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:47:05]wFMCommunicate OK [11:47:05]SAM_PROTO_GetFieldsCounters done [11:47:05]requested_item shift.num is exist - process it [11:47:05]requested_item shift.opened is exist - process it [11:47:05]req_shift_opened [11:47:05]FM_GetShiftState [11:47:05]SAM_PROTO_GetShiftState [11:47:05]wFMCommunicate request_size=4 [11:47:05]MH_SAM_APDU [11:47:05]CAPDU: 80 13 01 00 [11:47:05]Write to MH i2c: E2 08 00 3A 03 80 13 01 00 00 00 00 00 BA [11:47:05]Write i2c OK [11:47:05]MH_I2C_Read... [11:47:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:47:05]Read from MH i2c: E2 [11:47:05]MH_I2C_Read... [11:47:05]Read from MH i2c: E2 0E 00 [11:47:05]MH_I2C_Read... [11:47:05]Read from MH i2c: E2 0E 00 3A 03 00 09 00 01 63 60 F3 66 00 00 00 00 90 00 E2 [11:47:05]RAPDU: 09 00 01 63 60 F3 66 00 00 00 00 90 00 [11:47:05]wFMCommunicate OK [11:47:05]SAM_PROTO_GetShiftState done [11:47:05]FM_GetShiftState done [11:47:05]req_shift_opened done [11:47:05]requested_item shift.open_date is exist - process it [11:47:05]req_shift_open_date [11:47:05]req_shift_open_date done [11:47:05]produce_requested_data done [11:47:05]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":116210,"shift.num":474,"shift.opened":1,"shift.open_date":1727225955} [11:47:05]process_action_free close_receipt [11:47:05]json_value_free [11:47:05]json_value_free done [11:47:05]process_json_proto returns [11:47:05]Send response to host [11:47:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":116210,"shift.num":474,"shift.opened":1,"shift.open_date":1727225955}}} [11:47:05]free response buf [11:47:05]execute_script done [11:47:05]execute_script returns [11:47:05]free content buf [11:47:05]Sock 9.Close socket [11:47:05]Sock 9.Thread stoped [11:47:09]OFD Sender: No OFD packet to send [11:47:14]OFD Sender: No OFD packet to send [11:47:19]OFD Sender: No OFD packet to send [11:47:24]OFD Sender: No OFD packet to send [11:47:29]OFD Sender: No OFD packet to send [11:47:34]OFD Sender: No OFD packet to send [11:47:39]OFD Sender: No OFD packet to send [11:47:44]OFD Sender: No OFD packet to send [11:47:49]OFD Sender: No OFD packet to send [11:47:54]OFD Sender: No OFD packet to send [11:47:59]OFD Sender: No OFD packet to send [11:48:04]OFD Sender: No OFD packet to send [11:48:09]OFD Sender: No OFD packet to send [11:48:14]OFD Sender: No OFD packet to send [11:48:19]OFD Sender: No OFD packet to send [11:48:24]OFD Sender: No OFD packet to send [11:48:29]OFD Sender: No OFD packet to send [11:48:34]OFD Sender: No OFD packet to send [11:48:39]OFD Sender: No OFD packet to send [11:48:44]OFD Sender: No OFD packet to send [11:48:49]OFD Sender: No OFD packet to send [11:48:54]OFD Sender: No OFD packet to send [11:48:59]OFD Sender: No OFD packet to send [11:49:04]OFD Sender: No OFD packet to send [11:49:09]OFD Sender: No OFD packet to send [11:49:14]OFD Sender: No OFD packet to send [11:49:19]OFD Sender: No OFD packet to send [11:49:24]OFD Sender: No OFD packet to send [11:49:29]OFD Sender: No OFD packet to send [11:49:34]OFD Sender: No OFD packet to send [11:49:39]OFD Sender: No OFD packet to send [11:49:44]OFD Sender: No OFD packet to send [11:49:49]OFD Sender: No OFD packet to send [11:49:54]OFD Sender: No OFD packet to send [11:49:59]OFD Sender: No OFD packet to send [11:50:04]OFD Sender: No OFD packet to send [11:50:09]OFD Sender: No OFD packet to send [11:50:14]OFD Sender: No OFD packet to send [11:50:19]OFD Sender: No OFD packet to send [11:50:24]OFD Sender: No OFD packet to send [11:50:29]OFD Sender: No OFD packet to send [11:50:34]OFD Sender: No OFD packet to send [11:50:39]OFD Sender: No OFD packet to send [11:50:44]OFD Sender: No OFD packet to send [11:50:49]OFD Sender: No OFD packet to send [11:50:54]OFD Sender: No OFD packet to send [11:50:59]OFD Sender: No OFD packet to send [11:51:04]OFD Sender: No OFD packet to send [11:51:09]OFD Sender: No OFD packet to send [11:51:14]OFD Sender: No OFD packet to send [11:51:19]OFD Sender: No OFD packet to send [11:51:24]OFD Sender: No OFD packet to send [11:51:29]OFD Sender: No OFD packet to send [11:51:34]OFD Sender: No OFD packet to send [11:51:39]OFD Sender: No OFD packet to send [11:51:44]OFD Sender: No OFD packet to send [11:51:49]OFD Sender: No OFD packet to send [11:51:54]OFD Sender: No OFD packet to send [11:52:00]OFD Sender: No OFD packet to send [11:52:05]OFD Sender: No OFD packet to send [11:52:10]OFD Sender: No OFD packet to send [11:52:15]OFD Sender: No OFD packet to send [11:52:20]OFD Sender: No OFD packet to send [11:52:25]OFD Sender: No OFD packet to send [11:52:30]OFD Sender: No OFD packet to send [11:52:35]OFD Sender: No OFD packet to send [11:52:40]OFD Sender: No OFD packet to send [11:52:45]OFD Sender: No OFD packet to send [11:52:50]OFD Sender: No OFD packet to send [11:52:55]OFD Sender: No OFD packet to send [11:53:00]OFD Sender: No OFD packet to send [11:53:05]OFD Sender: No OFD packet to send [11:53:10]OFD Sender: No OFD packet to send [11:53:15]OFD Sender: No OFD packet to send [11:53:20]OFD Sender: No OFD packet to send [11:53:25]OFD Sender: No OFD packet to send [11:53:30]OFD Sender: No OFD packet to send [11:53:35]OFD Sender: No OFD packet to send [11:53:40]OFD Sender: No OFD packet to send [11:53:45]OFD Sender: No OFD packet to send [11:53:50]OFD Sender: No OFD packet to send [11:53:55]OFD Sender: No OFD packet to send [11:54:00]OFD Sender: No OFD packet to send [11:54:05]OFD Sender: No OFD packet to send [11:54:10]OFD Sender: No OFD packet to send [11:54:15]OFD Sender: No OFD packet to send [11:54:20]OFD Sender: No OFD packet to send [11:54:25]OFD Sender: No OFD packet to send [11:54:30]OFD Sender: No OFD packet to send [11:54:35]OFD Sender: No OFD packet to send [11:54:40]OFD Sender: No OFD packet to send [11:54:45]OFD Sender: No OFD packet to send [11:54:50]OFD Sender: No OFD packet to send [11:54:55]OFD Sender: No OFD packet to send [11:55:00]OFD Sender: No OFD packet to send [11:55:05]OFD Sender: No OFD packet to send [11:55:10]OFD Sender: No OFD packet to send [11:55:15]OFD Sender: No OFD packet to send [11:55:20]OFD Sender: No OFD packet to send [11:55:25]OFD Sender: No OFD packet to send [11:55:30]OFD Sender: No OFD packet to send [11:55:35]OFD Sender: No OFD packet to send [11:55:40]OFD Sender: No OFD packet to send [11:55:45]OFD Sender: No OFD packet to send [11:55:50]OFD Sender: No OFD packet to send [11:55:55]OFD Sender: No OFD packet to send [11:56:00]OFD Sender: No OFD packet to send [11:56:05]OFD Sender: No OFD packet to send [11:56:10]OFD Sender: No OFD packet to send [11:56:15]OFD Sender: No OFD packet to send [11:56:20]OFD Sender: No OFD packet to send [11:56:25]OFD Sender: No OFD packet to send [11:56:30]OFD Sender: No OFD packet to send [11:56:35]OFD Sender: No OFD packet to send [11:56:40]OFD Sender: No OFD packet to send [11:56:45]OFD Sender: No OFD packet to send [11:56:50]OFD Sender: No OFD packet to send [11:56:55]OFD Sender: No OFD packet to send [11:57:00]OFD Sender: No OFD packet to send [11:57:05]OFD Sender: No OFD packet to send [11:57:10]OFD Sender: No OFD packet to send [11:57:15]OFD Sender: No OFD packet to send [11:57:20]OFD Sender: No OFD packet to send [11:57:25]OFD Sender: No OFD packet to send [11:57:30]OFD Sender: No OFD packet to send [11:57:35]OFD Sender: No OFD packet to send [11:57:40]OFD Sender: No OFD packet to send [11:57:45]OFD Sender: No OFD packet to send [11:57:50]OFD Sender: No OFD packet to send [11:57:55]OFD Sender: No OFD packet to send [11:58:00]OFD Sender: No OFD packet to send [11:58:05]OFD Sender: No OFD packet to send [11:58:10]OFD Sender: No OFD packet to send [11:58:15]OFD Sender: No OFD packet to send [11:58:20]OFD Sender: No OFD packet to send [11:58:25]OFD Sender: No OFD packet to send [11:58:30]OFD Sender: No OFD packet to send [11:58:35]OFD Sender: No OFD packet to send [11:58:40]OFD Sender: No OFD packet to send [11:58:45]OFD Sender: No OFD packet to send [11:58:50]OFD Sender: No OFD packet to send [11:58:56]OFD Sender: No OFD packet to send [11:59:01]OFD Sender: No OFD packet to send [11:59:06]OFD Sender: No OFD packet to send [11:59:11]OFD Sender: No OFD packet to send [11:59:16]OFD Sender: No OFD packet to send [11:59:21]OFD Sender: No OFD packet to send [11:59:26]OFD Sender: No OFD packet to send [11:59:31]OFD Sender: No OFD packet to send [11:59:36]OFD Sender: No OFD packet to send [11:59:41]OFD Sender: No OFD packet to send [11:59:46]OFD Sender: No OFD packet to send [11:59:51]OFD Sender: No OFD packet to send [11:59:56]OFD Sender: No OFD packet to send [12:00:01]OFD Sender: No OFD packet to send [12:00:06]OFD Sender: No OFD packet to send [12:00:11]OFD Sender: No OFD packet to send [12:00:16]OFD Sender: No OFD packet to send [12:00:21]OFD Sender: No OFD packet to send [12:00:26]OFD Sender: No OFD packet to send [12:00:31]OFD Sender: No OFD packet to send [12:00:36]OFD Sender: No OFD packet to send [12:00:41]OFD Sender: No OFD packet to send [12:00:46]OFD Sender: No OFD packet to send [12:00:51]OFD Sender: No OFD packet to send [12:00:56]OFD Sender: No OFD packet to send [12:01:01]OFD Sender: No OFD packet to send [12:01:06]OFD Sender: No OFD packet to send [12:01:11]OFD Sender: No OFD packet to send [12:01:16]OFD Sender: No OFD packet to send [12:01:21]OFD Sender: No OFD packet to send [12:01:26]OFD Sender: No OFD packet to send [12:01:31]OFD Sender: No OFD packet to send [12:01:36]OFD Sender: No OFD packet to send [12:01:41]OFD Sender: No OFD packet to send [12:01:46]OFD Sender: No OFD packet to send [12:01:51]OFD Sender: No OFD packet to send [12:01:56]OFD Sender: No OFD packet to send [12:02:01]OFD Sender: No OFD packet to send [12:02:06]OFD Sender: No OFD packet to send [12:02:11]OFD Sender: No OFD packet to send [12:02:16]OFD Sender: No OFD packet to send [12:02:21]OFD Sender: No OFD packet to send [12:02:26]OFD Sender: No OFD packet to send [12:02:31]OFD Sender: No OFD packet to send [12:02:36]OFD Sender: No OFD packet to send [12:02:41]OFD Sender: No OFD packet to send [12:02:46]OFD Sender: No OFD packet to send [12:02:51]OFD Sender: No OFD packet to send [12:02:56]OFD Sender: No OFD packet to send [12:03:01]OFD Sender: No OFD packet to send [12:03:06]OFD Sender: No OFD packet to send [12:03:11]OFD Sender: No OFD packet to send [12:03:16]OFD Sender: No OFD packet to send [12:03:21]OFD Sender: No OFD packet to send [12:03:26]OFD Sender: No OFD packet to send [12:03:31]OFD Sender: No OFD packet to send [12:03:36]OFD Sender: No OFD packet to send [12:03:41]OFD Sender: No OFD packet to send [12:03:46]OFD Sender: No OFD packet to send [12:03:51]OFD Sender: No OFD packet to send [12:03:56]OFD Sender: No OFD packet to send [12:04:01]OFD Sender: No OFD packet to send [12:04:06]OFD Sender: No OFD packet to send [12:04:11]OFD Sender: No OFD packet to send [12:04:16]OFD Sender: No OFD packet to send [12:04:21]OFD Sender: No OFD packet to send [12:04:26]OFD Sender: No OFD packet to send [12:04:31]OFD Sender: No OFD packet to send [12:04:36]OFD Sender: No OFD packet to send [12:04:41]OFD Sender: No OFD packet to send [12:04:46]OFD Sender: No OFD packet to send [12:04:51]OFD Sender: No OFD packet to send [12:04:56]OFD Sender: No OFD packet to send [12:05:01]OFD Sender: No OFD packet to send [12:05:06]OFD Sender: No OFD packet to send [12:05:11]OFD Sender: No OFD packet to send [12:05:16]OFD Sender: No OFD packet to send [12:05:21]OFD Sender: No OFD packet to send [12:05:26]OFD Sender: No OFD packet to send [12:05:31]OFD Sender: No OFD packet to send [12:05:36]OFD Sender: No OFD packet to send [12:05:41]OFD Sender: No OFD packet to send [12:05:47]OFD Sender: No OFD packet to send [12:05:52]OFD Sender: No OFD packet to send [12:05:57]OFD Sender: No OFD packet to send [12:06:02]OFD Sender: No OFD packet to send [12:06:07]OFD Sender: No OFD packet to send [12:06:12]OFD Sender: No OFD packet to send [12:06:17]OFD Sender: No OFD packet to send [12:06:22]OFD Sender: No OFD packet to send [12:06:27]OFD Sender: No OFD packet to send [12:06:32]OFD Sender: No OFD packet to send [12:06:37]OFD Sender: No OFD packet to send [12:06:42]OFD Sender: No OFD packet to send [12:06:47]OFD Sender: No OFD packet to send [12:06:52]OFD Sender: No OFD packet to send [12:06:57]OFD Sender: No OFD packet to send [12:07:02]OFD Sender: No OFD packet to send [12:07:07]OFD Sender: No OFD packet to send [12:07:12]OFD Sender: No OFD packet to send [12:07:17]OFD Sender: No OFD packet to send [12:07:22]OFD Sender: No OFD packet to send [12:07:27]OFD Sender: No OFD packet to send [12:07:32]OFD Sender: No OFD packet to send [12:07:37]OFD Sender: No OFD packet to send [12:07:42]OFD Sender: No OFD packet to send [12:07:47]OFD Sender: No OFD packet to send [12:07:52]OFD Sender: No OFD packet to send [12:07:57]OFD Sender: No OFD packet to send [12:08:02]OFD Sender: No OFD packet to send [12:08:07]OFD Sender: No OFD packet to send [12:08:12]OFD Sender: No OFD packet to send [12:08:17]OFD Sender: No OFD packet to send [12:08:22]OFD Sender: No OFD packet to send [12:08:27]OFD Sender: No OFD packet to send [12:08:32]OFD Sender: No OFD packet to send [12:08:37]OFD Sender: No OFD packet to send [12:08:42]OFD Sender: No OFD packet to send [12:08:47]OFD Sender: No OFD packet to send [12:08:52]OFD Sender: No OFD packet to send [12:08:57]OFD Sender: No OFD packet to send [12:09:02]OFD Sender: No OFD packet to send [12:09:07]OFD Sender: No OFD packet to send [12:09:12]OFD Sender: No OFD packet to send [12:09:17]OFD Sender: No OFD packet to send [12:09:22]OFD Sender: No OFD packet to send [12:09:27]OFD Sender: No OFD packet to send [12:09:32]OFD Sender: No OFD packet to send [12:09:37]OFD Sender: No OFD packet to send [12:09:42]OFD Sender: No OFD packet to send [12:09:47]OFD Sender: No OFD packet to send [12:09:52]OFD Sender: No OFD packet to send [12:09:57]OFD Sender: No OFD packet to send [12:10:02]OFD Sender: No OFD packet to send [12:10:07]OFD Sender: No OFD packet to send [12:10:12]OFD Sender: No OFD packet to send [12:10:17]OFD Sender: No OFD packet to send [12:10:22]OFD Sender: No OFD packet to send [12:10:27]OFD Sender: No OFD packet to send [12:10:32]OFD Sender: No OFD packet to send [12:10:37]OFD Sender: No OFD packet to send [12:10:42]OFD Sender: No OFD packet to send [12:10:47]OFD Sender: No OFD packet to send [12:10:52]OFD Sender: No OFD packet to send [12:10:57]OFD Sender: No OFD packet to send [12:11:02]OFD Sender: No OFD packet to send [12:11:07]OFD Sender: No OFD packet to send [12:11:12]OFD Sender: No OFD packet to send [12:11:17]OFD Sender: No OFD packet to send [12:11:22]OFD Sender: No OFD packet to send [12:11:27]OFD Sender: No OFD packet to send [12:11:32]OFD Sender: No OFD packet to send [12:12:44]ConnectInit Can't connect to host [12:12:46]OFD Sender: No OFD packet to send [12:12:51]OFD Sender: No OFD packet to send [12:12:56]OFD Sender: No OFD packet to send [12:13:01]OFD Sender: No OFD packet to send [12:13:06]OFD Sender: No OFD packet to send [12:13:11]OFD Sender: No OFD packet to send [12:13:16]OFD Sender: No OFD packet to send [12:13:21]OFD Sender: No OFD packet to send [12:13:26]OFD Sender: No OFD packet to send [12:13:31]OFD Sender: No OFD packet to send [12:13:36]OFD Sender: No OFD packet to send [12:13:41]OFD Sender: No OFD packet to send [12:13:46]OFD Sender: No OFD packet to send [12:13:51]OFD Sender: No OFD packet to send [12:13:56]OFD Sender: No OFD packet to send [12:14:01]OFD Sender: No OFD packet to send [12:14:06]OFD Sender: No OFD packet to send [12:14:11]OFD Sender: No OFD packet to send [12:14:16]OFD Sender: No OFD packet to send [12:14:21]OFD Sender: No OFD packet to send [12:14:26]OFD Sender: No OFD packet to send [12:14:31]OFD Sender: No OFD packet to send [12:14:36]OFD Sender: No OFD packet to send [12:14:41]OFD Sender: No OFD packet to send [12:14:46]OFD Sender: No OFD packet to send [12:14:51]OFD Sender: No OFD packet to send [12:14:56]OFD Sender: No OFD packet to send [12:15:01]OFD Sender: No OFD packet to send [12:15:06]OFD Sender: No OFD packet to send [12:15:11]OFD Sender: No OFD packet to send [12:15:16]OFD Sender: No OFD packet to send [12:15:21]OFD Sender: No OFD packet to send [12:15:26]OFD Sender: No OFD packet to send [12:15:31]OFD Sender: No OFD packet to send [12:15:36]OFD Sender: No OFD packet to send [12:15:41]OFD Sender: No OFD packet to send [12:15:46]OFD Sender: No OFD packet to send [12:15:51]OFD Sender: No OFD packet to send [12:15:56]OFD Sender: No OFD packet to send [12:16:01]OFD Sender: No OFD packet to send [12:16:06]OFD Sender: No OFD packet to send [12:16:10]accept exits with 7 [12:16:10]New connection [12:16:10]New thread 3066830180 created [12:16:10]Waiting for new connection... [12:16:10] Sock 7.Parse request [12:16:10]Sock 7.Check first char [12:16:10]Sock 7.First char is OK [12:16:10]request: POST /json_proto HTTP/1.0 [12:16:10]Method: POST [12:16:10]URL: /json_proto [12:16:10]Method is POST - this is cgi request [12:16:10]url: /json_proto [12:16:10]query_string will be loaded in cgi processing [12:16:10]execute_cgi json_proto POST (null) [12:16:10]execute_cgi path=json_proto method=POST [12:16:10]POST find Content-Length [12:16:10]Host: 172.17.41.136:8080 [12:16:10]Content-Length: 215 [12:16:10]Content-Type: application/json [12:16:10] [12:16:10]POST finish read [12:16:10]Found Content-Length = 215 [12:16:10]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" ] } } [12:16:10]execute_script... [12:16:10]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" ] } } [12:16:10]POST & json_proto [12:16:10]process_json_proto [12:16:10]json parsed OK: [12:16:10]protocol is kg_v1.0 [12:16:10]action value=get_value [12:16:10]process_action get_value [12:16:10]cmd_get_value [12:16:10]process_action get_value done [12:16:10]requested_data is exist [12:16:10]produce_requested_data [12:16:10]requested_item kkm.sn is exist - process it [12:16:10]requested_item kkm.ver is exist - process it [12:16:10]requested_item fm.sn is exist - process it [12:16:10]wFMCommunicate request_size=4 [12:16:10]MH_SAM_APDU [12:16:10]CAPDU: 80 11 00 00 [12:16:10]Write to MH i2c: E2 08 00 10 00 80 11 00 00 00 00 00 00 8A [12:16:10]Write i2c OK [12:16:10]MH_I2C_Read... [12:16:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:16:10]Read from MH i2c: E2 [12:16:10]MH_I2C_Read... [12:16:10]Read from MH i2c: E2 17 00 [12:16:10]MH_I2C_Read... [12:16:10]Read from MH i2c: E2 17 00 10 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 D8 [12:16:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [12:16:10]wFMCommunicate OK [12:16:10]requested_item fd.num is exist - process it [12:16:10]SAM_PROTO_GetFieldsCounters [12:16:10]wFMCommunicate request_size=4 [12:16:10]MH_SAM_APDU [12:16:10]CAPDU: 80 13 00 00 [12:16:10]Write to MH i2c: E2 08 00 11 00 80 13 00 00 00 00 00 00 8D [12:16:10]Write i2c OK [12:16:10]MH_I2C_Read... [12:16:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:16:10]Read from MH i2c: E2 [12:16:10]MH_I2C_Read... [12:16:10]Read from MH i2c: E2 62 00 [12:16:10]MH_I2C_Read... [12:16:10]Read from MH i2c: E2 62 00 11 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 F2 C5 01 00 0E 04 04 00 DA 01 00 00 12 04 04 00 42 00 00 00 5E 04 04 00 42 00 00 00 57 04 04 00 43 00 00 00 19 04 04 00 00 00 00 00 90 00 FF [12:16:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 F2 C5 01 00 0E 04 04 00 DA 01 00 00 12 04 04 00 42 00 00 00 5E 04 04 00 42 00 00 00 57 04 04 00 43 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:16:10]wFMCommunicate OK [12:16:10]SAM_PROTO_GetFieldsCounters done [12:16:10]requested_item shift.num is exist - process it [12:16:10]requested_item shift.opened is exist - process it [12:16:10]req_shift_opened [12:16:10]FM_GetShiftState [12:16:10]SAM_PROTO_GetShiftState [12:16:10]wFMCommunicate request_size=4 [12:16:10]MH_SAM_APDU [12:16:10]CAPDU: 80 13 01 00 [12:16:10]Write to MH i2c: E2 08 00 12 00 80 13 01 00 00 00 00 00 8F [12:16:10]Write i2c OK [12:16:10]MH_I2C_Read... [12:16:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:16:10]Read from MH i2c: E2 [12:16:10]MH_I2C_Read... [12:16:10]Read from MH i2c: E2 0E 00 [12:16:10]MH_I2C_Read... [12:16:10]Read from MH i2c: E2 0E 00 12 00 00 09 00 01 63 60 F3 66 00 00 00 00 90 00 B7 [12:16:10]RAPDU: 09 00 01 63 60 F3 66 00 00 00 00 90 00 [12:16:10]wFMCommunicate OK [12:16:10]SAM_PROTO_GetShiftState done [12:16:10]FM_GetShiftState done [12:16:10]req_shift_opened done [12:16:10]requested_item shift.open_date is exist - process it [12:16:10]req_shift_open_date [12:16:10]req_shift_open_date done [12:16:10]produce_requested_data done [12:16:10]produce_requested_data return {"kkm.sn":"0300000120","kkm.ver":"001","fm.sn":"0000000000871830","fd.num":116210,"shift.num":474,"shift.opened":1,"shift.open_date":1727225955} [12:16:10]process_action_free get_value [12:16:10]json_value_free [12:16:10]json_value_free done [12:16:10]process_json_proto returns [12:16:10]Send response to host [12:16:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000120","kkm.ver":"001","fm.sn":"0000000000871830","fd.num":116210,"shift.num":474,"shift.opened":1,"shift.open_date":1727225955}}} [12:16:10]free response buf [12:16:10]execute_script done [12:16:10]execute_script returns [12:16:10]free content buf [12:16:10]Sock 7.Close socket [12:16:10]Sock 7.Thread stoped [12:16:11]OFD Sender: No OFD packet to send [12:16:13]accept exits with 9 [12:16:13]New connection [12:16:13]New thread 3066686820 created [12:16:13]Thread 3066830180 joined [12:16:13]Waiting for new connection... [12:16:13] Sock 9.Parse request [12:16:13]Sock 9.Check first char [12:16:13]Sock 9.First char is OK [12:16:13]request: POST /json_proto HTTP/1.0 [12:16:13]Method: POST [12:16:13]URL: /json_proto [12:16:13]Method is POST - this is cgi request [12:16:13]url: /json_proto [12:16:13]query_string will be loaded in cgi processing [12:16:13]execute_cgi json_proto POST (null) [12:16:13]execute_cgi path=json_proto method=POST [12:16:13]POST find Content-Length [12:16:13]Host: 172.17.41.136:8080 [12:16:13]Content-Length: 331 [12:16:13]Content-Type: application/json [12:16:13] [12:16:13]POST finish read [12:16:13]Found Content-Length = 331 [12:16:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [12:16:13]execute_script... [12:16:13]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [12:16:13]POST & json_proto [12:16:13]process_json_proto [12:16:13]json parsed OK: [12:16:13]protocol is kg_v1.0 [12:16:13]action value=get_value [12:16:13]process_action get_value [12:16:13]cmd_get_value [12:16:13]process_action get_value done [12:16:13]requested_data is exist [12:16:13]produce_requested_data [12:16:13]requested_item fm.sale.total is exist - process it [12:16:13]SAM_PROTO_GetFMData [12:16:13]wFMCommunicate request_size=4 [12:16:13]MH_SAM_APDU [12:16:13]CAPDU: 80 13 03 00 [12:16:13]Write to MH i2c: E2 08 00 13 00 80 13 03 00 00 00 00 00 92 [12:16:13]Write i2c OK [12:16:13]MH_I2C_Read... [12:16:14]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [12:16:14]Read from MH i2c: E2 [12:16:14]MH_I2C_Read... [12:16:14]Read from MH i2c: E2 FD 00 [12:16:14]MH_I2C_Read... [12:16:14]Read from MH i2c: E2 FD 00 13 00 00 C5 04 85 04 C1 04 6E 04 04 00 3D C2 01 00 69 04 A3 00 6F 04 04 00 BD C0 01 00 B1 04 05 00 25 83 58 83 01 70 04 05 00 D1 2B FB 48 01 72 04 04 00 54 57 5D 3A 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 1C 35 24 29 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 66 78 6D 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 80 01 00 00 B1 04 04 00 CC 60 FF 0F 70 04 04 00 CC 60 FF 0F 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 16 ED B2 01 EF 03 09 90 00 D1 [12:16:14]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 3D C2 01 00 69 04 A3 00 6F 04 04 00 BD C0 01 00 B1 04 05 00 25 83 58 83 01 70 04 05 00 D1 2B FB 48 01 72 04 04 00 54 57 5D 3A 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 1C 35 24 29 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 66 78 6D 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 80 01 00 00 B1 04 04 00 CC 60 FF 0F 70 04 04 00 CC 60 FF 0F 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 16 ED B2 01 EF 03 09 90 00 [12:16:14]wFMCommunicate OK [12:16:14]wFMCommunicate request_size=4 [12:16:14]MH_SAM_APDU [12:16:14]CAPDU: 80 17 00 00 [12:16:14]Write to MH i2c: E2 08 00 14 00 80 17 00 00 00 00 00 00 94 [12:16:14]Write i2c OK [12:16:14]MH_I2C_Read... [12:16:14]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [12:16:14]Read from MH i2c: E2 [12:16:14]MH_I2C_Read... [12:16:14]Read from MH i2c: E2 FD 00 [12:16:14]MH_I2C_Read... [12:16:14]Read from MH i2c: E2 FD 00 14 00 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 50 3E 24 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 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 FC [12:16:14]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 50 3E 24 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 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 [12:16:14]wFMCommunicate OK [12:16:14]wFMCommunicate request_size=4 [12:16:14]MH_SAM_APDU [12:16:14]CAPDU: 80 17 00 00 [12:16:14]Write to MH i2c: E2 08 00 15 00 80 17 00 00 00 00 00 00 95 [12:16:14]Write i2c OK [12:16:14]MH_I2C_Read... [12:16:14]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [12:16:14]Read from MH i2c: E2 [12:16:14]MH_I2C_Read... [12:16:14]Read from MH i2c: E2 FD 00 [12:16:14]MH_I2C_Read... [12:16:14]Read from MH i2c: E2 FD 00 15 00 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 A7 [12:16:14]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 [12:16:14]wFMCommunicate OK [12:16:14]wFMCommunicate request_size=4 [12:16:14]MH_SAM_APDU [12:16:14]CAPDU: 80 17 00 00 [12:16:14]Write to MH i2c: E2 08 00 16 00 80 17 00 00 00 00 00 00 96 [12:16:14]Write i2c OK [12:16:14]MH_I2C_Read... [12:16:15]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [12:16:15]Read from MH i2c: E2 [12:16:15]MH_I2C_Read... [12:16:15]Read from MH i2c: E2 FD 00 [12:16:15]MH_I2C_Read... [12:16:15]Read from MH i2c: E2 FD 00 16 00 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 22 [12:16:15]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 [12:16:15]wFMCommunicate OK [12:16:15]wFMCommunicate request_size=4 [12:16:15]MH_SAM_APDU [12:16:15]CAPDU: 80 17 00 00 [12:16:15]Write to MH i2c: E2 08 00 17 00 80 17 00 00 00 00 00 00 97 [12:16:15]Write i2c OK [12:16:15]MH_I2C_Read... [12:16:15]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [12:16:15]Read from MH i2c: E2 [12:16:15]MH_I2C_Read... [12:16:15]Read from MH i2c: E2 E2 00 [12:16:15]MH_I2C_Read... [12:16:15]Read from MH i2c: E2 E2 00 17 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 75 [12:16:15]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 [12:16:15]wFMCommunicate OK [12:16:15]SAM_PROTO_GetFMData done [12:16:15]requested_item fm.sale_refund.total is exist - process it [12:16:15]requested_item fm.buy.total is exist - process it [12:16:15]requested_item shift.sale.total is exist - process it [12:16:15]SAM_PROTO_GetShiftData [12:16:15]wFMCommunicate request_size=4 [12:16:15]MH_SAM_APDU [12:16:15]CAPDU: 80 13 02 00 [12:16:15]Write to MH i2c: E2 08 00 18 00 80 13 02 00 00 00 00 00 96 [12:16:15]Write i2c OK [12:16:15]MH_I2C_Read... [12:16:15]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [12:16:15]Read from MH i2c: E2 [12:16:15]MH_I2C_Read... [12:16:15]Read from MH i2c: E2 FD 00 [12:16:15]MH_I2C_Read... [12:16:15]Read from MH i2c: E2 FD 00 18 00 00 B9 04 AA 04 B5 04 6E 04 04 00 42 00 00 00 69 04 9B 00 6F 04 04 00 40 00 00 00 B1 04 03 00 54 38 50 70 04 03 00 DC 1E 4B 72 04 03 00 78 19 05 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 E2 84 08 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 B2 B5 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 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 02 00 00 00 B1 04 03 00 90 D5 30 70 04 03 00 90 D5 30 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 99 2F 05 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 92 [12:16:15]RAPDU: B9 04 AA 04 B5 04 6E 04 04 00 42 00 00 00 69 04 9B 00 6F 04 04 00 40 00 00 00 B1 04 03 00 54 38 50 70 04 03 00 DC 1E 4B 72 04 03 00 78 19 05 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 E2 84 08 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 B2 B5 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 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 02 00 00 00 B1 04 03 00 90 D5 30 70 04 03 00 90 D5 30 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 99 2F 05 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 [12:16:15]wFMCommunicate OK [12:16:15]wFMCommunicate request_size=4 [12:16:15]MH_SAM_APDU [12:16:15]CAPDU: 80 17 00 00 [12:16:15]Write to MH i2c: E2 08 00 19 00 80 17 00 00 00 00 00 00 99 [12:16:15]Write i2c OK [12:16:15]MH_I2C_Read... [12:16:16]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [12:16:16]Read from MH i2c: E2 [12:16:16]MH_I2C_Read... [12:16:16]Read from MH i2c: E2 FD 00 [12:16:16]MH_I2C_Read... [12:16:16]Read from MH i2c: E2 FD 00 19 00 00 03 0B 00 F6 03 01 00 01 F7 03 02 00 A2 6E EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 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 90 00 68 [12:16:16]RAPDU: 03 0B 00 F6 03 01 00 01 F7 03 02 00 A2 6E EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 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 90 00 [12:16:16]wFMCommunicate OK [12:16:16]wFMCommunicate request_size=4 [12:16:16]MH_SAM_APDU [12:16:16]CAPDU: 80 17 00 00 [12:16:16]Write to MH i2c: E2 08 00 1A 00 80 17 00 00 00 00 00 00 9A [12:16:16]Write i2c OK [12:16:16]MH_I2C_Read... [12:16:16]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [12:16:16]Read from MH i2c: E2 [12:16:16]MH_I2C_Read... [12:16:16]Read from MH i2c: E2 FD 00 [12:16:16]MH_I2C_Read... [12:16:16]Read from MH i2c: E2 FD 00 1A 00 00 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 90 00 C2 [12:16:16]RAPDU: 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 90 00 [12:16:16]wFMCommunicate OK [12:16:16]wFMCommunicate request_size=4 [12:16:16]MH_SAM_APDU [12:16:16]CAPDU: 80 17 00 00 [12:16:16]Write to MH i2c: E2 08 00 1B 00 80 17 00 00 00 00 00 00 9B [12:16:16]Write i2c OK [12:16:16]MH_I2C_Read... [12:16:16]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [12:16:16]OFD Sender: No OFD packet to send [12:16:16]Read from MH i2c: E2 [12:16:16]MH_I2C_Read... [12:16:16]Read from MH i2c: E2 FD 00 [12:16:16]MH_I2C_Read... [12:16:16]Read from MH i2c: E2 FD 00 1B 00 00 EF 03 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 90 00 13 [12:16:16]RAPDU: EF 03 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 90 00 [12:16:16]wFMCommunicate OK [12:16:16]wFMCommunicate request_size=4 [12:16:16]MH_SAM_APDU [12:16:16]CAPDU: 80 17 00 00 [12:16:16]Write to MH i2c: E2 08 00 1C 00 80 17 00 00 00 00 00 00 9C [12:16:16]Write i2c OK [12:16:16]MH_I2C_Read... [12:16:16]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 211! [12:16:16]Read from MH i2c: E2 [12:16:16]MH_I2C_Read... [12:16:16]Read from MH i2c: E2 D6 00 [12:16:16]MH_I2C_Read... [12:16:16]Read from MH i2c: E2 D6 00 1C 00 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 7E [12:16:17]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 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [12:16:17]wFMCommunicate OK [12:16:17]SAM_PROTO_GetShiftData done [12:16:17]requested_item shift.sale.total_cash is exist - process it [12:16:17]requested_item shift.sale_refund.total is exist - process it [12:16:17]requested_item shift.sale_refund.total_cash is exist - process it [12:16:17]requested_item shift.buy.total is exist - process it [12:16:17]requested_item shift.buy.total_cash is exist - process it [12:16:17]produce_requested_data done [12:16:17]produce_requested_data return {"fm.sale.total":64985833.33,"fm.sale_refund.total":2683947.00,"fm.buy.total":0.00,"shift.sale.total":52573.00,"shift.sale.total_cash":49231.00,"shift.sale_refund.total":32004.00,"shift.sale_refund.total_cash":32004.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [12:16:17]process_action_free get_value [12:16:17]json_value_free [12:16:17]json_value_free done [12:16:17]process_json_proto returns [12:16:17]Send response to host [12:16:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":64985833.33,"fm.sale_refund.total":2683947.00,"fm.buy.total":0.00,"shift.sale.total":52573.00,"shift.sale.total_cash":49231.00,"shift.sale_refund.total":32004.00,"shift.sale_refund.total_cash":32004.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [12:16:17]free response buf [12:16:17]execute_script done [12:16:17]execute_script returns [12:16:17]free content buf [12:16:17]Sock 9.Close socket [12:16:17]Sock 9.Thread stoped [12:16:21]OFD Sender: No OFD packet to send [12:16:26]OFD Sender: No OFD packet to send [12:16:31]OFD Sender: No OFD packet to send [12:16:36]OFD Sender: No OFD packet to send [12:16:41]OFD Sender: No OFD packet to send [12:16:46]OFD Sender: No OFD packet to send [12:16:51]OFD Sender: No OFD packet to send [12:16:56]OFD Sender: No OFD packet to send [12:17:01]OFD Sender: No OFD packet to send [12:17:06]OFD Sender: No OFD packet to send [12:17:11]OFD Sender: No OFD packet to send [12:17:16]OFD Sender: No OFD packet to send [12:17:18]accept exits with 7 [12:17:18]New connection [12:17:18]New thread 3066830180 created [12:17:18]Thread 3066686820 joined [12:17:18]Waiting for new connection... [12:17:18] Sock 7.Parse request [12:17:18]Sock 7.Check first char [12:17:18]Sock 7.First char is OK [12:17:18]request: POST /json_proto HTTP/1.0 [12:17:18]Method: POST [12:17:18]URL: /json_proto [12:17:18]Method is POST - this is cgi request [12:17:18]url: /json_proto [12:17:18]query_string will be loaded in cgi processing [12:17:18]execute_cgi json_proto POST (null) [12:17:18]execute_cgi path=json_proto method=POST [12:17:18]POST find Content-Length [12:17:18]Host: 172.17.41.136:8080 [12:17:18]Content-Length: 215 [12:17:18]Content-Type: application/json [12:17:18] [12:17:18]POST finish read [12:17:18]Found Content-Length = 215 [12:17: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" ] } } [12:17:18]execute_script... [12:17: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" ] } } [12:17:18]POST & json_proto [12:17:18]process_json_proto [12:17:18]json parsed OK: [12:17:18]protocol is kg_v1.0 [12:17:18]action value=get_value [12:17:18]process_action get_value [12:17:18]cmd_get_value [12:17:18]process_action get_value done [12:17:18]requested_data is exist [12:17:18]produce_requested_data [12:17:18]requested_item kkm.sn is exist - process it [12:17:18]requested_item kkm.ver is exist - process it [12:17:18]requested_item fm.sn is exist - process it [12:17:18]wFMCommunicate request_size=4 [12:17:18]MH_SAM_APDU [12:17:18]CAPDU: 80 11 00 00 [12:17:18]Write to MH i2c: E2 08 00 1D 00 80 11 00 00 00 00 00 00 97 [12:17:18]Write i2c OK [12:17:18]MH_I2C_Read... [12:17:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:17:18]Read from MH i2c: E2 [12:17:18]MH_I2C_Read... [12:17:18]Read from MH i2c: E2 17 00 [12:17:18]MH_I2C_Read... [12:17:18]Read from MH i2c: E2 17 00 1D 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 E5 [12:17:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [12:17:18]wFMCommunicate OK [12:17:18]requested_item fd.num is exist - process it [12:17:18]SAM_PROTO_GetFieldsCounters [12:17:18]wFMCommunicate request_size=4 [12:17:18]MH_SAM_APDU [12:17:18]CAPDU: 80 13 00 00 [12:17:18]Write to MH i2c: E2 08 00 1E 00 80 13 00 00 00 00 00 00 9A [12:17:18]Write i2c OK [12:17:18]MH_I2C_Read... [12:17:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:17:18]Read from MH i2c: E2 [12:17:18]MH_I2C_Read... [12:17:18]Read from MH i2c: E2 62 00 [12:17:18]MH_I2C_Read... [12:17:18]Read from MH i2c: E2 62 00 1E 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 F2 C5 01 00 0E 04 04 00 DA 01 00 00 12 04 04 00 42 00 00 00 5E 04 04 00 42 00 00 00 57 04 04 00 43 00 00 00 19 04 04 00 00 00 00 00 90 00 0C [12:17:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 F2 C5 01 00 0E 04 04 00 DA 01 00 00 12 04 04 00 42 00 00 00 5E 04 04 00 42 00 00 00 57 04 04 00 43 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:17:18]wFMCommunicate OK [12:17:18]SAM_PROTO_GetFieldsCounters done [12:17:18]requested_item shift.num is exist - process it [12:17:18]requested_item shift.opened is exist - process it [12:17:18]req_shift_opened [12:17:18]FM_GetShiftState [12:17:18]SAM_PROTO_GetShiftState [12:17:18]wFMCommunicate request_size=4 [12:17:18]MH_SAM_APDU [12:17:18]CAPDU: 80 13 01 00 [12:17:18]Write to MH i2c: E2 08 00 1F 00 80 13 01 00 00 00 00 00 9C [12:17:18]Write i2c OK [12:17:18]MH_I2C_Read... [12:17:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:17:18]Read from MH i2c: E2 [12:17:18]MH_I2C_Read... [12:17:18]Read from MH i2c: E2 0E 00 [12:17:18]MH_I2C_Read... [12:17:18]Read from MH i2c: E2 0E 00 1F 00 00 09 00 01 63 60 F3 66 00 00 00 00 90 00 C4 [12:17:18]RAPDU: 09 00 01 63 60 F3 66 00 00 00 00 90 00 [12:17:18]wFMCommunicate OK [12:17:18]SAM_PROTO_GetShiftState done [12:17:18]FM_GetShiftState done [12:17:18]req_shift_opened done [12:17:18]requested_item shift.open_date is exist - process it [12:17:18]req_shift_open_date [12:17:18]req_shift_open_date done [12:17:18]produce_requested_data done [12:17:18]produce_requested_data return {"kkm.sn":"0300000120","kkm.ver":"001","fm.sn":"0000000000871830","fd.num":116210,"shift.num":474,"shift.opened":1,"shift.open_date":1727225955} [12:17:18]process_action_free get_value [12:17:18]json_value_free [12:17:18]json_value_free done [12:17:18]process_json_proto returns [12:17:18]Send response to host [12:17:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000120","kkm.ver":"001","fm.sn":"0000000000871830","fd.num":116210,"shift.num":474,"shift.opened":1,"shift.open_date":1727225955}}} [12:17:18]free response buf [12:17:18]execute_script done [12:17:18]execute_script returns [12:17:18]free content buf [12:17:18]Sock 7.Close socket [12:17:18]Sock 7.Thread stoped [12:17:18]accept exits with 9 [12:17:18]New connection [12:17:18]New thread 3066686820 created [12:17:18]Thread 3066830180 joined [12:17:18]Waiting for new connection... [12:17:18] Sock 9.Parse request [12:17:18]Sock 9.Check first char [12:17:18]Sock 9.First char is OK [12:17:18]request: POST /json_proto HTTP/1.0 [12:17:18]Method: POST [12:17:18]URL: /json_proto [12:17:18]Method is POST - this is cgi request [12:17:18]url: /json_proto [12:17:18]query_string will be loaded in cgi processing [12:17:18]execute_cgi json_proto POST (null) [12:17:18]execute_cgi path=json_proto method=POST [12:17:18]POST find Content-Length [12:17:18]Host: 172.17.41.136:8080 [12:17:18]Content-Length: 331 [12:17:18]Content-Type: application/json [12:17:18] [12:17:18]POST finish read [12:17:18]Found Content-Length = 331 [12:17: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" ] } } [12:17:18]execute_script... [12:17: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" ] } } [12:17:18]POST & json_proto [12:17:18]process_json_proto [12:17:18]json parsed OK: [12:17:18]protocol is kg_v1.0 [12:17:18]action value=get_value [12:17:18]process_action get_value [12:17:18]cmd_get_value [12:17:18]process_action get_value done [12:17:18]requested_data is exist [12:17:18]produce_requested_data [12:17:18]requested_item fm.sale.total is exist - process it [12:17:18]SAM_PROTO_GetFMData [12:17:18]wFMCommunicate request_size=4 [12:17:18]MH_SAM_APDU [12:17:18]CAPDU: 80 13 03 00 [12:17:18]Write to MH i2c: E2 08 00 20 00 80 13 03 00 00 00 00 00 9F [12:17:18]Write i2c OK [12:17:18]MH_I2C_Read... [12:17:19]Read from MH i2c: E2 [12:17:19]MH_I2C_Read... [12:17:19]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [12:17:19]Read from MH i2c: E2 FD 00 [12:17:19]MH_I2C_Read... [12:17:19]Read from MH i2c: E2 FD 00 20 00 00 C5 04 85 04 C1 04 6E 04 04 00 3D C2 01 00 69 04 A3 00 6F 04 04 00 BD C0 01 00 B1 04 05 00 25 83 58 83 01 70 04 05 00 D1 2B FB 48 01 72 04 04 00 54 57 5D 3A 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 1C 35 24 29 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 66 78 6D 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 80 01 00 00 B1 04 04 00 CC 60 FF 0F 70 04 04 00 CC 60 FF 0F 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 16 ED B2 01 EF 03 09 90 00 DE [12:17:19]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 3D C2 01 00 69 04 A3 00 6F 04 04 00 BD C0 01 00 B1 04 05 00 25 83 58 83 01 70 04 05 00 D1 2B FB 48 01 72 04 04 00 54 57 5D 3A 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 1C 35 24 29 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 66 78 6D 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 80 01 00 00 B1 04 04 00 CC 60 FF 0F 70 04 04 00 CC 60 FF 0F 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 16 ED B2 01 EF 03 09 90 00 [12:17:19]wFMCommunicate OK [12:17:19]wFMCommunicate request_size=4 [12:17:19]MH_SAM_APDU [12:17:19]CAPDU: 80 17 00 00 [12:17:19]Write to MH i2c: E2 08 00 21 00 80 17 00 00 00 00 00 00 A1 [12:17:19]Write i2c OK [12:17:19]MH_I2C_Read... [12:17:19]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [12:17:19]Read from MH i2c: E2 [12:17:19]MH_I2C_Read... [12:17:19]Read from MH i2c: E2 FD 00 [12:17:19]MH_I2C_Read... [12:17:19]Read from MH i2c: E2 FD 00 21 00 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 50 3E 24 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 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 09 [12:17: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 50 3E 24 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 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 [12:17:19]wFMCommunicate OK [12:17:19]wFMCommunicate request_size=4 [12:17:19]MH_SAM_APDU [12:17:19]CAPDU: 80 17 00 00 [12:17:19]Write to MH i2c: E2 08 00 22 00 80 17 00 00 00 00 00 00 A2 [12:17:19]Write i2c OK [12:17:19]MH_I2C_Read... [12:17:19]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [12:17:19]Read from MH i2c: E2 [12:17:19]MH_I2C_Read... [12:17:19]Read from MH i2c: E2 FD 00 [12:17:19]MH_I2C_Read... [12:17:19]Read from MH i2c: E2 FD 00 22 00 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 B4 [12:17:19]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 [12:17:19]wFMCommunicate OK [12:17:19]wFMCommunicate request_size=4 [12:17:19]MH_SAM_APDU [12:17:19]CAPDU: 80 17 00 00 [12:17:19]Write to MH i2c: E2 08 00 23 00 80 17 00 00 00 00 00 00 A3 [12:17:19]Write i2c OK [12:17:19]MH_I2C_Read... [12:17:20]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [12:17:20]Read from MH i2c: E2 [12:17:20]MH_I2C_Read... [12:17:20]Read from MH i2c: E2 FD 00 [12:17:20]MH_I2C_Read... [12:17:20]Read from MH i2c: E2 FD 00 23 00 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 2F [12:17: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 [12:17:20]wFMCommunicate OK [12:17:20]wFMCommunicate request_size=4 [12:17:20]MH_SAM_APDU [12:17:20]CAPDU: 80 17 00 00 [12:17:20]Write to MH i2c: E2 08 00 24 00 80 17 00 00 00 00 00 00 A4 [12:17:20]Write i2c OK [12:17:20]MH_I2C_Read... [12:17:20]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [12:17:20]Read from MH i2c: E2 [12:17:20]MH_I2C_Read... [12:17:20]Read from MH i2c: E2 E2 00 [12:17:20]MH_I2C_Read... [12:17:20]Read from MH i2c: E2 E2 00 24 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 82 [12:17: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 [12:17:20]wFMCommunicate OK [12:17:20]SAM_PROTO_GetFMData done [12:17:20]requested_item fm.sale_refund.total is exist - process it [12:17:20]requested_item fm.buy.total is exist - process it [12:17:20]requested_item shift.sale.total is exist - process it [12:17:20]SAM_PROTO_GetShiftData [12:17:20]wFMCommunicate request_size=4 [12:17:20]MH_SAM_APDU [12:17:20]CAPDU: 80 13 02 00 [12:17:20]Write to MH i2c: E2 08 00 25 00 80 13 02 00 00 00 00 00 A3 [12:17:20]Write i2c OK [12:17:20]MH_I2C_Read... [12:17:20]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [12:17:20]Read from MH i2c: E2 [12:17:20]MH_I2C_Read... [12:17:20]Read from MH i2c: E2 FD 00 [12:17:20]MH_I2C_Read... [12:17:20]Read from MH i2c: E2 FD 00 25 00 00 B9 04 AA 04 B5 04 6E 04 04 00 42 00 00 00 69 04 9B 00 6F 04 04 00 40 00 00 00 B1 04 03 00 54 38 50 70 04 03 00 DC 1E 4B 72 04 03 00 78 19 05 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 E2 84 08 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 B2 B5 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 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 02 00 00 00 B1 04 03 00 90 D5 30 70 04 03 00 90 D5 30 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 99 2F 05 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 9F [12:17:20]RAPDU: B9 04 AA 04 B5 04 6E 04 04 00 42 00 00 00 69 04 9B 00 6F 04 04 00 40 00 00 00 B1 04 03 00 54 38 50 70 04 03 00 DC 1E 4B 72 04 03 00 78 19 05 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 E2 84 08 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 B2 B5 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 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 02 00 00 00 B1 04 03 00 90 D5 30 70 04 03 00 90 D5 30 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 99 2F 05 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 [12:17:20]wFMCommunicate OK [12:17:20]wFMCommunicate request_size=4 [12:17:20]MH_SAM_APDU [12:17:20]CAPDU: 80 17 00 00 [12:17:20]Write to MH i2c: E2 08 00 26 00 80 17 00 00 00 00 00 00 A6 [12:17:20]Write i2c OK [12:17:20]MH_I2C_Read... [12:17:21]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [12:17:21]Read from MH i2c: E2 [12:17:21]MH_I2C_Read... [12:17:21]Read from MH i2c: E2 FD 00 [12:17:21]MH_I2C_Read... [12:17:21]Read from MH i2c: E2 FD 00 26 00 00 03 0B 00 F6 03 01 00 01 F7 03 02 00 A2 6E EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 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 90 00 75 [12:17:21]RAPDU: 03 0B 00 F6 03 01 00 01 F7 03 02 00 A2 6E EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 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 90 00 [12:17:21]wFMCommunicate OK [12:17:21]wFMCommunicate request_size=4 [12:17:21]MH_SAM_APDU [12:17:21]CAPDU: 80 17 00 00 [12:17:21]Write to MH i2c: E2 08 00 27 00 80 17 00 00 00 00 00 00 A7 [12:17:21]Write i2c OK [12:17:21]MH_I2C_Read... [12:17:21]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [12:17:21]Read from MH i2c: E2 [12:17:21]MH_I2C_Read... [12:17:21]Read from MH i2c: E2 FD 00 [12:17:21]MH_I2C_Read... [12:17:21]Read from MH i2c: E2 FD 00 27 00 00 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 90 00 CF [12:17:21]RAPDU: 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 90 00 [12:17:21]wFMCommunicate OK [12:17:21]wFMCommunicate request_size=4 [12:17:21]MH_SAM_APDU [12:17:21]CAPDU: 80 17 00 00 [12:17:21]Write to MH i2c: E2 08 00 28 00 80 17 00 00 00 00 00 00 A8 [12:17:21]Write i2c OK [12:17:21]MH_I2C_Read... [12:17:21]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [12:17:21]Read from MH i2c: E2 [12:17:21]MH_I2C_Read... [12:17:21]Read from MH i2c: E2 FD 00 [12:17:21]MH_I2C_Read... [12:17:21]Read from MH i2c: E2 FD 00 28 00 00 EF 03 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 90 00 20 [12:17:21]RAPDU: EF 03 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 90 00 [12:17:21]wFMCommunicate OK [12:17:21]wFMCommunicate request_size=4 [12:17:21]MH_SAM_APDU [12:17:21]CAPDU: 80 17 00 00 [12:17:21]Write to MH i2c: E2 08 00 29 00 80 17 00 00 00 00 00 00 A9 [12:17:21]Write i2c OK [12:17:21]MH_I2C_Read... [12:17:21]OFD Sender: No OFD packet to send [12:17:21]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 211! [12:17:22]Read from MH i2c: E2 [12:17:22]MH_I2C_Read... [12:17:22]Read from MH i2c: E2 D6 00 [12:17:22]MH_I2C_Read... [12:17:22]Read from MH i2c: E2 D6 00 29 00 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 8B [12:17:22]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 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [12:17:22]wFMCommunicate OK [12:17:22]SAM_PROTO_GetShiftData done [12:17:22]requested_item shift.sale.total_cash is exist - process it [12:17:22]requested_item shift.sale_refund.total is exist - process it [12:17:22]requested_item shift.sale_refund.total_cash is exist - process it [12:17:22]requested_item shift.buy.total is exist - process it [12:17:22]requested_item shift.buy.total_cash is exist - process it [12:17:22]produce_requested_data done [12:17:22]produce_requested_data return {"fm.sale.total":64985833.33,"fm.sale_refund.total":2683947.00,"fm.buy.total":0.00,"shift.sale.total":52573.00,"shift.sale.total_cash":49231.00,"shift.sale_refund.total":32004.00,"shift.sale_refund.total_cash":32004.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [12:17:22]process_action_free get_value [12:17:22]json_value_free [12:17:22]json_value_free done [12:17:22]process_json_proto returns [12:17:22]Send response to host [12:17:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":64985833.33,"fm.sale_refund.total":2683947.00,"fm.buy.total":0.00,"shift.sale.total":52573.00,"shift.sale.total_cash":49231.00,"shift.sale_refund.total":32004.00,"shift.sale_refund.total_cash":32004.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [12:17:22]free response buf [12:17:22]execute_script done [12:17:22]execute_script returns [12:17:22]free content buf [12:17:22]Sock 9.Close socket [12:17:22]Sock 9.Thread stoped [12:17:26]OFD Sender: No OFD packet to send [12:17:32]OFD Sender: No OFD packet to send [12:17:37]OFD Sender: No OFD packet to send [12:17:42]OFD Sender: No OFD packet to send [12:17:47]OFD Sender: No OFD packet to send [12:17:52]OFD Sender: No OFD packet to send [12:17:57]OFD Sender: No OFD packet to send [12:18:02]OFD Sender: No OFD packet to send [12:18:07]OFD Sender: No OFD packet to send [12:18:12]OFD Sender: No OFD packet to send [12:18:17]OFD Sender: No OFD packet to send [12:18:22]OFD Sender: No OFD packet to send [12:18:27]OFD Sender: No OFD packet to send [12:18:32]OFD Sender: No OFD packet to send [12:18:37]OFD Sender: No OFD packet to send [12:18:42]OFD Sender: No OFD packet to send [12:18:46]accept exits with 7 [12:18:46]New connection [12:18:46]New thread 3066830180 created [12:18:46]Thread 3066686820 joined [12:18:46]Waiting for new connection... [12:18:46] Sock 7.Parse request [12:18:46]Sock 7.Check first char [12:18:46]Sock 7.First char is OK [12:18:46]request: POST /json_proto HTTP/1.0 [12:18:46]Method: POST [12:18:46]URL: /json_proto [12:18:46]Method is POST - this is cgi request [12:18:46]url: /json_proto [12:18:46]query_string will be loaded in cgi processing [12:18:46]execute_cgi json_proto POST (null) [12:18:46]execute_cgi path=json_proto method=POST [12:18:46]POST find Content-Length [12:18:46]Host: 172.17.41.136:8080 [12:18:46]Content-Length: 3050 [12:18:46]Content-Type: application/json [12:18:46] [12:18:46]POST finish read [12:18:46]Found Content-Length = 3050 [12:18:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)344380", "tax_sys" : 0, "items" : [ { "code": "4670003190013", "name": "\u0410\u043D\u0442\u0438\u0444\u0440\u0438\u0437 SIBIRIA ANTIFREEZE \u041E\u0416-40 \u0436\u0435\u043B 1\u043B", "price" : 225.00, "quantity" : 3.000, "sum" : 675.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000160211", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 0,5\u043B", "price" : 40.00, "quantity" : 2.000, "sum" : 80.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000036210013", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E (GABB TRADE)", "price" : 115.00, "quantity" : 1.000, "sum" : 115.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000032800010", "name": "\u0421\u043E\u0447\u043D\u0438\u043A DC \u04est" : { "! [12:18:46]execute_script... [12:18:46]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)344380", "tax_sys" : 0, "items" : [ { "code": "4670003190013", "name": "\u0410\u043D\u0442\u0438\u0444\u0440\u0438\u0437 SIBIRIA ANTIFREEZE \u041E\u0416-40 \u0436\u0435\u043B 1\u043B", "price" : 225.00, "quantity" : 3.000, "sum" : 675.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000160211", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 0,5\u043B", "price" : 40.00, "quantity" : 2.000, "sum" : 80.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000036210013", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E (GABB TRADE)", "price" : 115.00, "quantity" : 1.000, "sum" : 115.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000032800010", "name": "\u0421\u043E\u0447\u043D\u0438\u043A DC \u04est" : { "! [12:18:46]POST & json_proto [12:18:46]process_json_proto [12:18:46]json parse error [12:18:46]process_json_proto returns [12:18:46]execute_script returns [12:18:46]free content buf [12:18:46]Sock 7.Close socket [12:18:46]Sock 7.Thread stoped [12:18:47]OFD Sender: No OFD packet to send [12:18:52]OFD Sender: No OFD packet to send [12:18:57]OFD Sender: No OFD packet to send [12:19:02]OFD Sender: No OFD packet to send [12:19:07]OFD Sender: No OFD packet to send [12:19:12]OFD Sender: No OFD packet to send [12:19:17]OFD Sender: No OFD packet to send [12:19:22]OFD Sender: No OFD packet to send [12:19:27]OFD Sender: No OFD packet to send [12:19:32]OFD Sender: No OFD packet to send [12:19:37]OFD Sender: No OFD packet to send [12:19:42]OFD Sender: No OFD packet to send [12:19:47]OFD Sender: No OFD packet to send [12:19:52]OFD Sender: No OFD packet to send [12:19:57]OFD Sender: No OFD packet to send [12:20:02]OFD Sender: No OFD packet to send [12:20:07]OFD Sender: No OFD packet to send [12:20:12]OFD Sender: No OFD packet to send [12:20:17]OFD Sender: No OFD packet to send [12:20:22]OFD Sender: No OFD packet to send [00:00:10] *** EcrCore started. Build 196 *** [00:00:10]/dev/ttyS4 opened [00:00:10]MH_InterfaceInit /dev/i2c-1 [00:00:10]Malloc ok [00:00:10]MH_GetMetrics [00:00:10]Write to MH i2c: 00 00 00 01 00 00 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 29 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 29 00 01 00 00 03 9C 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 B9 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 01 03 00 5E [00:00:10]Are we in boot? [00:00:10]We are in boot - try to switch [00:00:10]Write to MH i2c: A0 00 00 02 00 A1 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: A0 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: A0 01 00 [00:00:10]MH_I2C_Read... [00:00:10]*** Check firmware version 30620, crc_r 49A1A6DB, crc_c: 49A1A6DB, size: 53248 [00:00:10]*** [00:00:10]Read from MH i2c: A0 01 00 02 00 00 A2 [00:00:10]*** Starting fw at address 01020100 (2007E328 010249C5) [00:00:10]*** Waiting for read because exit forced [00:00:10]*** 10 ms more... [00:00:10]*** MH1903S init start (LINUX_LIGHT) [00:00:10]*** Compilation Date Jun 20 2023 Time 12:36:20 [00:00:10]*** Serial: 3139303353513838 54000000005725B9 (1903SQ88T) [00:00:10]*** User serial: FFFFFFFFFFFFFFFF FFFFFFFFFFFFFFFF () [00:00:10]*** step 0: 5000 (2650, 2350 REF) [00:00:10]*** step 1: 4835 (2500, 2335 REF) [00:00:10]*** step 2: 4676 (2440, 2236 REF) [00:00:10]*** step 3: 4523 (2280, 2243 REF) [00:00:10]*** step 4: 4376 (2160, 2216 REF) [00:00:10]*** step 5: 4235 (2050, 2185 REF) [00:00:10]*** step 6: 4098 (1950, 2148 REF) [00:00:10]*** step 7: 3967 (1870, 2097 REF) [00:00:10]*** step 8: 3840 (1828, 2012 REF) [00:00:10]*** step 9: 3719 (1728, 1991 REF) [00:00:10]*** step 10: 3601 (1675, 1926 REF) [00:00:10]*** step 11: 3488 (1635, 1853 REF) [00:00:10]*** step 12: 3379 (1595, 1784 REF) [00:00:10]*** step 13: 3275 (1565, 1710 REF) [00:00:10]*** step 14: 3174 (1543, 1631 REF) [00:00:10]*** step 15: 3077 (1523, 1554 REF) [00:00:10]*** step 16: 2983 (1503, 1480 REF) [00:00:10]*** step 17: 2893 (1486, 1407 REF) [00:00:10]*** step 18: 2806 (1466, 1340 REF) [00:00:10]*** step 19: 2723 (1426, 1297 REF) [00:00:10]*** step 20: 2642 (1406, 1236 REF) [00:00:10]*** step 21: 2565 (1384, 1181 REF) [00:00:10]*** step 22: 2490 (1364, 1126 REF) [00:00:10]*** step 23: 2418 (1344, 1074 REF) [00:00:10]*** step 24: 2349 (1322, 1027 REF) [00:00:10]*** step 25: 2283 (1302, 981 REF) [00:00:10]*** step 26: 2218 (1282, 936 REF) [00:00:10]*** step 27: 2157 (1262, 895 REF) [00:00:10]*** step 28: 2097 (1242, 855 REF) [00:00:10]*** step 29: 2040 (1222, 818 REF) [00:00:10]*** step 30: 1985 (1202, 783 REF) [00:00:10]*** step 31: 1932 (1191, 741 REF) [00:00:10]*** step 32: 1880 (1181, 699 REF) [00:00:10]*** step 33: 1831 (1171, 660 REF) [00:00:10]*** step 34: 1784 (1161, 623 REF) [00:00:10]*** step 35: 1738 (1151, 587 REF) [00:00:10]*** step 36: 1694 (1141, 553 REF) [00:00:10]*** step 37: 1652 (1131, 521 REF) [00:00:10]*** step 38: 1611 (1121, 490 REF) [00:00:10]*** step 39: 1572 (1111, 461 REF) [00:00:10]*** step 40: 1534 (1103, 431 REF) [00:00:10]*** step 41: 1497 (1093, 404 REF) [00:00:10]*** step 42: 1462 (1083, 379 REF) [00:00:10]*** step 43: 1428 (1073, 355 REF) [00:00:10]*** step 44: 1396 (1063, 333 REF) [00:00:10]*** step 45: 1365 (1053, 312 REF) [00:00:10]*** step 46: 1334 (1043, 291 REF) [00:00:10]*** step 47: 1305 (1033, 272 REF) [00:00:10]*** step 48: 1277 (1023, 254 REF) [00:00:10]*** step 49: 1250 (1013, 237 REF) [00:00:10]*** step 50: 1224 (990, 234 REF) [00:00:10]*** step 51: 1199 (980, 219 REF) [00:00:10]*** step 52: 1175 (970, 205 REF) [00:00:10]*** step 53: 1152 (960, 192 REF) [00:00:10]*** step 54: 1130 (950, 180 REF) [00:00:10]*** step 55: 1108 (940, 168 REF) [00:00:10]*** step 56: 1088 (930, 158 REF) [00:00:10]*** step 57: 1068 (920, 148 REF) [00:00:10]*** step 58: 1049 (910, 139 REF) [00:00:10]*** step 59: 1030 (900, 130 REF) [00:00:10]*** step 60: 1012 (890, 122 REF) [00:00:10]*** step 61: 995 (880, 115 REF) [00:00:10]*** step 62: 979 (870, 109 REF) [00:00:10]*** step 63: 963 (860, 103 REF) [00:00:10]*** step 64: 948 (850, 98 REF) [00:00:10]*** step 65: 933 (840, 93 REF) [00:00:10]*** step 66: 919 (830, 89 REF) [00:00:10]*** step 67: 905 (820, 85 REF) [00:00:10]*** step 68: 892 (810, 82 REF) [00:00:10]*** step 69: 879 (800, 79 REF) [00:00:10]*** step 70: 867 (790, 77 REF) [00:00:10]*** step 71: 855 (780, 75 REF) [00:00:10]*** step 72: 844 (770, 74 REF) [00:00:10]*** step 73: 833 (760, 73 REF) [00:00:10]*** step 74: 822 (750, 72 REF) [00:00:10]*** step 75: 812 (740, 72 REF) [00:00:10]*** step 76: 803 (730, 73 REF) [00:00:10]*** step 77: 793 (720, 73 REF) [00:00:10]*** step 78: 784 (710, 74 REF) [00:00:10]*** step 79: 776 (700, 76 REF) [00:00:10]*** step 80: 767 (690, 77 REF) [00:00:10]*** step 81: 759 (680, 79 REF) [00:00:10]*** step 82: 751 (670, 81 REF) [00:00:10]*** step 83: 744 (660, 84 REF) [00:00:10]*** step 84: 737 (650, 87 REF) [00:00:10]*** step 85: 730 (640, 90 REF) [00:00:10]*** step 86: 723 (630, 93 REF) [00:00:10]*** step 87: 717 (620, 97 REF) [00:00:10]*** step 88: 710 (610, 100 REF) [00:00:10]*** step 89: 705 (600, 105 REF) [00:00:10]*** step 90: 699 [00:00:10]*** step 91: 693 [00:00:10]*** step 92: 688 [00:00:10]*** step 93: 683 [00:00:10]*** step 94: 678 [00:00:10]*** step 95: 673 [00:00:10]*** step 96: 669 [00:00:10]*** step 97: 664 [00:00:10]*** step 98: 660 [00:00:10]*** step 99: 656 [00:00:10]*** step 100: 652 [00:00:10]*** step 101: 648 [00:00:10]*** step 102: 644 [00:00:10]*** step 103: 641 [00:00:10]*** step 104: 638 [00:00:10]*** step 105: 634 [00:00:10]*** step 106: 631 [00:00:10]*** step 107: 628 [00:00:10]*** step 108: 625 [00:00:10]*** step 109: 622 [00:00:10]*** step 110: 620 [00:00:10]*** step 111: 617 [00:00:10]*** step 112: 615 [00:00:10]*** step 113: 612 [00:00:10]*** step 114: 610 [00:00:10]*** step 115: 608 [00:00:10]*** step 116: 605 [00:00:10]*** step 117: 603 [00:00:10]*** step 118: 601 [00:00:10]*** step 119: 599 [00:00:10]*** printer: Printer HW initialized [00:00:10]*** initSamCard finished [00:00:10]*** RTC: 43593727+1683673115=1727266842 [00:00:10]*** BPK Status Register BPK_RDY = 0x0 [00:00:10]*** SEN State Register SEN_STATE = 0x200ff [00:00:10]*** 32K Frequency Sensor Enable SEN_XTAL32_EN = 0x80000055 [00:00:10]*** Analog Control Register 0 SEN_ANA0 = 0x334f0623 [00:00:10]*** Is cutter blocked? [00:00:11]MH_GetMetrics [00:00:11]Write to MH i2c: 00 00 00 03 00 02 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 29 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 29 00 03 00 00 03 9C 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 B9 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 00 03 00 5F [00:00:11]Are we in boot? [00:00:11]We are not in boot now [00:00:11]Write to MH i2c: 01 00 00 04 00 04 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 07 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 07 00 04 00 00 00 00 00 00 FF 0F 19 [00:00:11]Model is 3 [00:00:11]MH firmware is 30620 [00:00:11]MH boot firmware is 3 [00:00:11]MH_SetPrinterDots 448 [00:00:11]HeadWidthInBytes 56 [00:00:11]maxmasksize 7 [00:00:11]Write to MH i2c: D6 06 00 05 00 78 00 38 00 FF FF 8E [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 01 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 01 00 05 00 00 DB [00:00:11]Write to MH i2c: D5 00 00 06 00 DA [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 01 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 01 00 06 00 00 DB [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]ExternCall_SetCallbacks [00:00:11]NVStorageInit [00:00:11]MH_GetDate [00:00:11]Write to MH i2c: F0 00 00 07 00 F6 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 09 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 09 00 07 00 00 1B 00 F4 66 1B D0 5A 64 1D [12:20:43]Current date/time: 25.09.2024 12:20 [12:20:43]FM_Init [12:20:43]wFMConnect [12:20:43]MH_SAM_On [12:20:43]Write to MH i2c: E0 00 00 08 00 E7 [12:20:43]Write i2c OK [12:20:43]MH_I2C_Read... [12:20:43]*** iso7816_init finished! [12:20:43]*** atr: [12:20:43]*** 0F 3B D5 18 FF 81 91 FE [12:20:43]*** 1F C3 80 73 C8 21 10 0A [12:20:43]*** 00 00 00 00 00 00 00 00 [12:20:43]*** 00 00 00 00 00 00 00 00 [12:20:43]*** 00 00 00 00 00 00 00 00 [12:20:43]*** 00 00 00 00 00 00 00 00 [12:20:43]*** 00 00 00 00 00 00 00 00 [12:20:43]*** 00 00 00 00 00 00 00 00 [12:20:43]Read from MH i2c: E0 [12:20:43]MH_I2C_Read... [12:20:43]Read from MH i2c: E0 10 00 [12:20:43]MH_I2C_Read... [12:20:43]Read from MH i2c: E0 10 00 08 00 00 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A 06 [12:20:43]ATR: 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A [12:20:43]wFMCommunicate request_size=10 [12:20:43]MH_SAM_APDU [12:20:43]CAPDU: 00 A4 04 00 05 01 02 03 04 05 [12:20:43]Write to MH i2c: E2 0D 00 09 00 00 A4 04 00 05 00 01 02 03 04 05 00 00 B3 [12:20:43]Write i2c OK [12:20:43]MH_I2C_Read... [12:20:43]*** iso7816_exchange 00 A4 04 00... Resp OK rsp.len_out = 0! [12:20:43]Read from MH i2c: E2 [12:20:43]MH_I2C_Read... [12:20:43]Read from MH i2c: E2 03 00 [12:20:43]MH_I2C_Read... [12:20:43]Read from MH i2c: E2 03 00 09 00 00 90 00 7D [12:20:43]RAPDU: 90 00 [12:20:43]wFMCommunicate OK [12:20:43]wFMCommunicate request_size=4 [12:20:43]MH_SAM_APDU [12:20:43]CAPDU: 80 11 00 00 [12:20:43]Write to MH i2c: E2 08 00 0A 00 80 11 00 00 00 00 00 00 84 [12:20:43]Write i2c OK [12:20:43]MH_I2C_Read... [12:20:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:20:43]Read from MH i2c: E2 [12:20:43]MH_I2C_Read... [12:20:43]Read from MH i2c: E2 17 00 [12:20:43]MH_I2C_Read... [12:20:43]Read from MH i2c: E2 17 00 0A 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 D2 [12:20:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [12:20:43]wFMCommunicate OK [12:20:43]Detected FM SN is 0000000000871830 [12:20:43]Stored FM SN is 0000000000871830 [12:20:43]wFMCommunicate request_size=9 [12:20:43]MH_SAM_APDU [12:20:43]CAPDU: 80 16 00 00 04 2B 08 01 00 [12:20:43]Write to MH i2c: E2 0C 00 0B 00 80 16 00 00 04 00 2B 08 01 00 00 00 C6 [12:20:43]Write i2c OK [12:20:43]MH_I2C_Read... [12:20:43]*** iso7816_exchange 80 16 00 00... Resp OK rsp.len_out = 0! [12:20:43]Read from MH i2c: E2 [12:20:43]MH_I2C_Read... [12:20:43]Read from MH i2c: E2 03 00 [12:20:43]MH_I2C_Read... [12:20:43]Read from MH i2c: E2 03 00 0B 00 00 90 00 7F [12:20:43]RAPDU: 90 00 [12:20:43]wFMCommunicate OK [12:20:43]FM PIN OK [12:20:43]wFMCommunicate request_size=8 [12:20:43]MH_SAM_APDU [12:20:43]CAPDU: 80 14 04 00 03 02 00 01 [12:20:43]Write to MH i2c: E2 0B 00 0C 00 80 14 04 00 03 00 02 00 01 00 00 96 [12:20:43]Write i2c OK [12:20:43]MH_I2C_Read... [12:20:43]*** iso7816_exchange 80 14 04 00... Resp OK rsp.len_out = 0! [12:20:43]Read from MH i2c: E2 [12:20:43]MH_I2C_Read... [12:20:43]Read from MH i2c: E2 03 00 [12:20:43]MH_I2C_Read... [12:20:43]Read from MH i2c: E2 03 00 0C 00 00 90 00 80 [12:20:43]RAPDU: 90 00 [12:20:43]wFMCommunicate OK [12:20:43]wFMCommunicate request_size=13 [12:20:43]MH_SAM_APDU [12:20:43]CAPDU: 80 14 04 01 08 07 00 01 02 03 04 05 06 [12:20:43]Write to MH i2c: E2 10 00 0D 00 80 14 04 01 08 00 07 00 01 02 03 04 05 06 00 00 BB [12:20:43]Write i2c OK [12:20:43]MH_I2C_Read... [12:20:43]*** iso7816_exchange 80 14 04 01... Resp OK rsp.len_out = 0! [12:20:43]Read from MH i2c: E2 [12:20:43]MH_I2C_Read... [12:20:43]Read from MH i2c: E2 03 00 [12:20:43]MH_I2C_Read... [12:20:43]Read from MH i2c: E2 03 00 0D 00 00 90 00 81 [12:20:43]RAPDU: 90 00 [12:20:43]wFMCommunicate OK [12:20:43]wFMCommunicate request_size=4 [12:20:43]MH_SAM_APDU [12:20:43]CAPDU: 80 11 00 00 [12:20:43]Write to MH i2c: E2 08 00 0E 00 80 11 00 00 00 00 00 00 88 [12:20:43]Write i2c OK [12:20:43]MH_I2C_Read... [12:20:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:20:43]Read from MH i2c: E2 [12:20:43]MH_I2C_Read... [12:20:43]Read from MH i2c: E2 17 00 [12:20:43]MH_I2C_Read... [12:20:43]Read from MH i2c: E2 17 00 0E 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 D6 [12:20:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [12:20:43]wFMCommunicate OK [12:20:43]DocumentArchiveInit [12:20:43]Start Httpd... [12:20:43]Httpd thread 3067243876 created [12:20:43]Write to MH i2c: 01 00 00 0F 00 0F [12:20:43]Write i2c OK [12:20:43]MH_I2C_Read... [12:20:43]Read from MH i2c: 01 [12:20:43]MH_I2C_Read... [12:20:43]Read from MH i2c: 01 07 00 [12:20:43]MH_I2C_Read... [12:20:43]Read from MH i2c: 01 07 00 0F 00 00 00 00 00 00 FF 0F 24 [12:20:43]MH Int Process started [12:20:43]Allocated Socket 8 [12:20:43]Bind OK [12:20:43]Listen OK [12:20:43]httpd running on port 8080 [12:20:43]Waiting for new connection... [12:20:44]OFD Sender: No OFD packet to send [12:20:47]accept exits with 9 [12:20:47]New connection [12:20:47]New thread 3066957156 created [12:20:47]Waiting for new connection... [12:20:47] Sock 9.Parse request [12:20:47]Sock 9.Check first char [12:20:47]Sock 9.First char is OK [12:20:47]request: POST /json_proto HTTP/1.0 [12:20:47]Method: POST [12:20:47]URL: /json_proto [12:20:47]Method is POST - this is cgi request [12:20:47]url: /json_proto [12:20:47]query_string will be loaded in cgi processing [12:20:47]execute_cgi json_proto POST (null) [12:20:47]execute_cgi path=json_proto method=POST [12:20:47]POST find Content-Length [12:20:47]Host: 172.17.41.136:8080 [12:20:47]Content-Length: 215 [12:20:47]Content-Type: application/json [12:20:47] [12:20:47]POST finish read [12:20:47]Found Content-Length = 215 [12:20:47]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" ] } } [12:20:47]execute_script... [12:20:47]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" ] } } [12:20:47]POST & json_proto [12:20:47]process_json_proto [12:20:47]json parsed OK: [12:20:47]protocol is kg_v1.0 [12:20:47]action value=get_value [12:20:47]process_action get_value [12:20:47]cmd_get_value [12:20:47]process_action get_value done [12:20:47]requested_data is exist [12:20:47]produce_requested_data [12:20:47]requested_item kkm.sn is exist - process it [12:20:47]requested_item kkm.ver is exist - process it [12:20:47]requested_item fm.sn is exist - process it [12:20:47]wFMCommunicate request_size=4 [12:20:47]MH_SAM_APDU [12:20:47]CAPDU: 80 11 00 00 [12:20:47]Write to MH i2c: E2 08 00 10 00 80 11 00 00 00 00 00 00 8A [12:20:47]Write i2c OK [12:20:47]MH_I2C_Read... [12:20:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:20:47]Read from MH i2c: E2 [12:20:47]MH_I2C_Read... [12:20:47]Read from MH i2c: E2 17 00 [12:20:47]MH_I2C_Read... [12:20:47]Read from MH i2c: E2 17 00 10 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 D8 [12:20:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [12:20:47]wFMCommunicate OK [12:20:47]requested_item fd.num is exist - process it [12:20:47]SAM_PROTO_GetFieldsCounters [12:20:47]wFMCommunicate request_size=4 [12:20:47]MH_SAM_APDU [12:20:47]CAPDU: 80 13 00 00 [12:20:47]Write to MH i2c: E2 08 00 11 00 80 13 00 00 00 00 00 00 8D [12:20:47]Write i2c OK [12:20:47]MH_I2C_Read... [12:20:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:20:47]Read from MH i2c: E2 [12:20:47]MH_I2C_Read... [12:20:47]Read from MH i2c: E2 62 00 [12:20:47]MH_I2C_Read... [12:20:47]Read from MH i2c: E2 62 00 11 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 F2 C5 01 00 0E 04 04 00 DA 01 00 00 12 04 04 00 42 00 00 00 5E 04 04 00 42 00 00 00 57 04 04 00 43 00 00 00 19 04 04 00 00 00 00 00 90 00 FF [12:20:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 F2 C5 01 00 0E 04 04 00 DA 01 00 00 12 04 04 00 42 00 00 00 5E 04 04 00 42 00 00 00 57 04 04 00 43 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:20:47]wFMCommunicate OK [12:20:47]SAM_PROTO_GetFieldsCounters done [12:20:47]requested_item shift.num is exist - process it [12:20:47]requested_item shift.opened is exist - process it [12:20:47]req_shift_opened [12:20:47]FM_GetShiftState [12:20:47]SAM_PROTO_GetShiftState [12:20:47]wFMCommunicate request_size=4 [12:20:47]MH_SAM_APDU [12:20:47]CAPDU: 80 13 01 00 [12:20:47]Write to MH i2c: E2 08 00 12 00 80 13 01 00 00 00 00 00 8F [12:20:47]Write i2c OK [12:20:47]MH_I2C_Read... [12:20:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:20:47]Read from MH i2c: E2 [12:20:47]MH_I2C_Read... [12:20:47]Read from MH i2c: E2 0E 00 [12:20:47]MH_I2C_Read... [12:20:47]Read from MH i2c: E2 0E 00 12 00 00 09 00 01 63 60 F3 66 00 00 00 00 90 00 B7 [12:20:47]RAPDU: 09 00 01 63 60 F3 66 00 00 00 00 90 00 [12:20:47]wFMCommunicate OK [12:20:47]SAM_PROTO_GetShiftState done [12:20:47]FM_GetShiftState done [12:20:47]req_shift_opened done [12:20:47]requested_item shift.open_date is exist - process it [12:20:47]req_shift_open_date [12:20:47]req_shift_open_date done [12:20:47]produce_requested_data done [12:20:47]produce_requested_data return {"kkm.sn":"0300000120","kkm.ver":"001","fm.sn":"0000000000871830","fd.num":116210,"shift.num":474,"shift.opened":1,"shift.open_date":1727225955} [12:20:47]process_action_free get_value [12:20:47]json_value_free [12:20:47]json_value_free done [12:20:47]process_json_proto returns [12:20:47]Send response to host [12:20:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000120","kkm.ver":"001","fm.sn":"0000000000871830","fd.num":116210,"shift.num":474,"shift.opened":1,"shift.open_date":1727225955}}} [12:20:47]free response buf [12:20:47]execute_script done [12:20:47]execute_script returns [12:20:47]free content buf [12:20:47]Sock 9.Close socket [12:20:47]Sock 9.Thread stoped [12:20:47]accept exits with 10 [12:20:47]New connection [12:20:47]New thread 3066813796 created [12:20:47]Thread 3066957156 joined [12:20:47]Waiting for new connection... [12:20:47] Sock 10.Parse request [12:20:47]Sock 10.Check first char [12:20:47]Sock 10.First char is OK [12:20:47]request: POST /json_proto HTTP/1.0 [12:20:47]Method: POST [12:20:47]URL: /json_proto [12:20:47]Method is POST - this is cgi request [12:20:47]url: /json_proto [12:20:47]query_string will be loaded in cgi processing [12:20:47]execute_cgi json_proto POST (null) [12:20:47]execute_cgi path=json_proto method=POST [12:20:47]POST find Content-Length [12:20:47]Host: 172.17.41.136:8080 [12:20:47]Content-Length: 331 [12:20:47]Content-Type: application/json [12:20:47] [12:20:47]POST finish read [12:20:47]Found Content-Length = 331 [12:20:47]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" ] } } [12:20:47]execute_script... [12:20:47]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" ] } } [12:20:47]POST & json_proto [12:20:47]process_json_proto [12:20:47]json parsed OK: [12:20:47]protocol is kg_v1.0 [12:20:47]action value=get_value [12:20:47]process_action get_value [12:20:47]cmd_get_value [12:20:47]process_action get_value done [12:20:47]requested_data is exist [12:20:47]produce_requested_data [12:20:47]requested_item fm.sale.total is exist - process it [12:20:47]SAM_PROTO_GetFMData [12:20:47]wFMCommunicate request_size=4 [12:20:47]MH_SAM_APDU [12:20:47]CAPDU: 80 13 03 00 [12:20:47]Write to MH i2c: E2 08 00 13 00 80 13 03 00 00 00 00 00 92 [12:20:47]Write i2c OK [12:20:47]MH_I2C_Read... [12:20:48]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [12:20:48]Read from MH i2c: E2 [12:20:48]MH_I2C_Read... [12:20:48]Read from MH i2c: E2 FD 00 [12:20:48]MH_I2C_Read... [12:20:48]Read from MH i2c: E2 FD 00 13 00 00 C5 04 85 04 C1 04 6E 04 04 00 3D C2 01 00 69 04 A3 00 6F 04 04 00 BD C0 01 00 B1 04 05 00 25 83 58 83 01 70 04 05 00 D1 2B FB 48 01 72 04 04 00 54 57 5D 3A 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 1C 35 24 29 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 66 78 6D 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 80 01 00 00 B1 04 04 00 CC 60 FF 0F 70 04 04 00 CC 60 FF 0F 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 16 ED B2 01 EF 03 09 90 00 D1 [12:20:48]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 3D C2 01 00 69 04 A3 00 6F 04 04 00 BD C0 01 00 B1 04 05 00 25 83 58 83 01 70 04 05 00 D1 2B FB 48 01 72 04 04 00 54 57 5D 3A 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 1C 35 24 29 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 66 78 6D 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 80 01 00 00 B1 04 04 00 CC 60 FF 0F 70 04 04 00 CC 60 FF 0F 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 16 ED B2 01 EF 03 09 90 00 [12:20:48]wFMCommunicate OK [12:20:48]wFMCommunicate request_size=4 [12:20:48]MH_SAM_APDU [12:20:48]CAPDU: 80 17 00 00 [12:20:48]Write to MH i2c: E2 08 00 14 00 80 17 00 00 00 00 00 00 94 [12:20:48]Write i2c OK [12:20:48]MH_I2C_Read... [12:20:48]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [12:20:48]Read from MH i2c: E2 [12:20:48]MH_I2C_Read... [12:20:48]Read from MH i2c: E2 FD 00 [12:20:48]MH_I2C_Read... [12:20:48]Read from MH i2c: E2 FD 00 14 00 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 50 3E 24 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 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 FC [12:20:48]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 50 3E 24 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 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 [12:20:48]wFMCommunicate OK [12:20:48]wFMCommunicate request_size=4 [12:20:48]MH_SAM_APDU [12:20:48]CAPDU: 80 17 00 00 [12:20:48]Write to MH i2c: E2 08 00 15 00 80 17 00 00 00 00 00 00 95 [12:20:48]Write i2c OK [12:20:48]MH_I2C_Read... [12:20:48]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [12:20:48]Read from MH i2c: E2 [12:20:48]MH_I2C_Read... [12:20:48]Read from MH i2c: E2 FD 00 [12:20:48]MH_I2C_Read... [12:20:48]Read from MH i2c: E2 FD 00 15 00 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 A7 [12:20:48]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 [12:20:48]wFMCommunicate OK [12:20:48]wFMCommunicate request_size=4 [12:20:48]MH_SAM_APDU [12:20:48]CAPDU: 80 17 00 00 [12:20:48]Write to MH i2c: E2 08 00 16 00 80 17 00 00 00 00 00 00 96 [12:20:48]Write i2c OK [12:20:48]MH_I2C_Read... [12:20:48]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [12:20:48]Read from MH i2c: E2 [12:20:48]MH_I2C_Read... [12:20:48]Read from MH i2c: E2 FD 00 [12:20:48]MH_I2C_Read... [12:20:48]Read from MH i2c: E2 FD 00 16 00 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 22 [12:20: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 [12:20:48]wFMCommunicate OK [12:20:48]wFMCommunicate request_size=4 [12:20:48]MH_SAM_APDU [12:20:48]CAPDU: 80 17 00 00 [12:20:48]Write to MH i2c: E2 08 00 17 00 80 17 00 00 00 00 00 00 97 [12:20:48]Write i2c OK [12:20:48]MH_I2C_Read... [12:20:49]OFD Sender: No OFD packet to send [12:20:49]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [12:20:49]Read from MH i2c: E2 [12:20:49]MH_I2C_Read... [12:20:49]Read from MH i2c: E2 E2 00 [12:20:49]MH_I2C_Read... [12:20:49]Read from MH i2c: E2 E2 00 17 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 75 [12:20:49]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 [12:20:49]wFMCommunicate OK [12:20:49]SAM_PROTO_GetFMData done [12:20:49]requested_item fm.sale_refund.total is exist - process it [12:20:49]requested_item fm.buy.total is exist - process it [12:20:49]requested_item shift.sale.total is exist - process it [12:20:49]SAM_PROTO_GetShiftData [12:20:49]wFMCommunicate request_size=4 [12:20:49]MH_SAM_APDU [12:20:49]CAPDU: 80 13 02 00 [12:20:49]Write to MH i2c: E2 08 00 18 00 80 13 02 00 00 00 00 00 96 [12:20:49]Write i2c OK [12:20:49]MH_I2C_Read... [12:20:49]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [12:20:49]Read from MH i2c: E2 [12:20:49]MH_I2C_Read... [12:20:49]Read from MH i2c: E2 FD 00 [12:20:49]MH_I2C_Read... [12:20:49]Read from MH i2c: E2 FD 00 18 00 00 B9 04 AA 04 B5 04 6E 04 04 00 42 00 00 00 69 04 9B 00 6F 04 04 00 40 00 00 00 B1 04 03 00 54 38 50 70 04 03 00 DC 1E 4B 72 04 03 00 78 19 05 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 E2 84 08 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 B2 B5 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 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 02 00 00 00 B1 04 03 00 90 D5 30 70 04 03 00 90 D5 30 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 99 2F 05 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 92 [12:20:49]RAPDU: B9 04 AA 04 B5 04 6E 04 04 00 42 00 00 00 69 04 9B 00 6F 04 04 00 40 00 00 00 B1 04 03 00 54 38 50 70 04 03 00 DC 1E 4B 72 04 03 00 78 19 05 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 E2 84 08 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 B2 B5 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 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 02 00 00 00 B1 04 03 00 90 D5 30 70 04 03 00 90 D5 30 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 99 2F 05 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 [12:20:49]wFMCommunicate OK [12:20:49]wFMCommunicate request_size=4 [12:20:49]MH_SAM_APDU [12:20:49]CAPDU: 80 17 00 00 [12:20:49]Write to MH i2c: E2 08 00 19 00 80 17 00 00 00 00 00 00 99 [12:20:49]Write i2c OK [12:20:49]MH_I2C_Read... [12:20:49]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [12:20:49]Read from MH i2c: E2 [12:20:49]MH_I2C_Read... [12:20:49]Read from MH i2c: E2 FD 00 [12:20:49]MH_I2C_Read... [12:20:49]Read from MH i2c: E2 FD 00 19 00 00 03 0B 00 F6 03 01 00 01 F7 03 02 00 A2 6E EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 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 90 00 68 [12:20:49]RAPDU: 03 0B 00 F6 03 01 00 01 F7 03 02 00 A2 6E EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 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 90 00 [12:20:50]wFMCommunicate OK [12:20:50]wFMCommunicate request_size=4 [12:20:50]MH_SAM_APDU [12:20:50]CAPDU: 80 17 00 00 [12:20:50]Write to MH i2c: E2 08 00 1A 00 80 17 00 00 00 00 00 00 9A [12:20:50]Write i2c OK [12:20:50]MH_I2C_Read... [12:20:50]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [12:20:50]Read from MH i2c: E2 [12:20:50]MH_I2C_Read... [12:20:50]Read from MH i2c: E2 FD 00 [12:20:50]MH_I2C_Read... [12:20:50]Read from MH i2c: E2 FD 00 1A 00 00 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 90 00 C2 [12:20:50]RAPDU: 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 90 00 [12:20:50]wFMCommunicate OK [12:20:50]wFMCommunicate request_size=4 [12:20:50]MH_SAM_APDU [12:20:50]CAPDU: 80 17 00 00 [12:20:50]Write to MH i2c: E2 08 00 1B 00 80 17 00 00 00 00 00 00 9B [12:20:50]Write i2c OK [12:20:50]MH_I2C_Read... [12:20:50]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [12:20:50]Read from MH i2c: E2 [12:20:50]MH_I2C_Read... [12:20:50]Read from MH i2c: E2 FD 00 [12:20:50]MH_I2C_Read... [12:20:50]Read from MH i2c: E2 FD 00 1B 00 00 EF 03 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 90 00 13 [12:20:50]RAPDU: EF 03 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 90 00 [12:20:50]wFMCommunicate OK [12:20:50]wFMCommunicate request_size=4 [12:20:50]MH_SAM_APDU [12:20:50]CAPDU: 80 17 00 00 [12:20:50]Write to MH i2c: E2 08 00 1C 00 80 17 00 00 00 00 00 00 9C [12:20:50]Write i2c OK [12:20:50]MH_I2C_Read... [12:20:50]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 211! [12:20:50]Read from MH i2c: E2 [12:20:50]MH_I2C_Read... [12:20:50]Read from MH i2c: E2 D6 00 [12:20:50]MH_I2C_Read... [12:20:50]Read from MH i2c: E2 D6 00 1C 00 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 7E [12:20:50]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 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [12:20:50]wFMCommunicate OK [12:20:50]SAM_PROTO_GetShiftData done [12:20:50]requested_item shift.sale.total_cash is exist - process it [12:20:50]requested_item shift.sale_refund.total is exist - process it [12:20:50]requested_item shift.sale_refund.total_cash is exist - process it [12:20:50]requested_item shift.buy.total is exist - process it [12:20:50]requested_item shift.buy.total_cash is exist - process it [12:20:50]produce_requested_data done [12:20:50]produce_requested_data return {"fm.sale.total":64985833.33,"fm.sale_refund.total":2683947.00,"fm.buy.total":0.00,"shift.sale.total":52573.00,"shift.sale.total_cash":49231.00,"shift.sale_refund.total":32004.00,"shift.sale_refund.total_cash":32004.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [12:20:50]process_action_free get_value [12:20:50]json_value_free [12:20:50]json_value_free done [12:20:50]process_json_proto returns [12:20:50]Send response to host [12:20:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":64985833.33,"fm.sale_refund.total":2683947.00,"fm.buy.total":0.00,"shift.sale.total":52573.00,"shift.sale.total_cash":49231.00,"shift.sale_refund.total":32004.00,"shift.sale_refund.total_cash":32004.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [12:20:50]free response buf [12:20:50]execute_script done [12:20:50]execute_script returns [12:20:50]free content buf [12:20:50]Sock 10.Close socket [12:20:50]Sock 10.Thread stoped [12:20:54]OFD Sender: No OFD packet to send [12:20:56]accept exits with 6 [12:20:56]New connection [12:20:56]New thread 3066957156 created [12:20:56]Thread 3066813796 joined [12:20:56]Waiting for new connection... [12:20:56] Sock 6.Parse request [12:20:56]Sock 6.Check first char [12:20:56]Sock 6.First char is OK [12:20:56]request: POST /json_proto HTTP/1.0 [12:20:56]Method: POST [12:20:56]URL: /json_proto [12:20:56]Method is POST - this is cgi request [12:20:56]url: /json_proto [12:20:56]query_string will be loaded in cgi processing [12:20:56]execute_cgi json_proto POST (null) [12:20:56]execute_cgi path=json_proto method=POST [12:20:56]POST find Content-Length [12:20:56]Host: 172.17.41.136:8080 [12:20:56]Content-Length: 3050 [12:20:56]Content-Type: application/json [12:20:56] [12:20:56]POST finish read [12:20:56]Found Content-Length = 3050 [12:20:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)344380", "tax_sys" : 0, "items" : [ { "code": "4670003190013", "name": "\u0410\u043D\u0442\u0438\u0444\u0440\u0438\u0437 SIBIRIA ANTIFREEZE \u041E\u0416-40 \u0436\u0435\u043B 1\u043B", "price" : 225.00, "quantity" : 3.000, "sum" : 675.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000160211", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 0,5\u043B", "price" : 40.00, "quantity" : 2.000, "sum" : 80.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000036210013", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E (GABB TRADE)", "price" : 115.00, "quantity" : 1.000, "sum" : 115.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000032800010", "name": "\u0421\u043E\u0447\u043D\u0438\u043A DC \u0442\u0432\u043E\u0440\u043E\u0433 75 \u0433", "price" : 30.00, "quantity" : 2.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870202522671", "name": "Garden \u043D\u0430\u043F\u0438\u0442\u043E\u043A \u0441\u043E \u0432\u043A\u0443\u0441\u043E\u043C \u0433\u0440\u0430\u043D\u0430\u0442\u0430 1,20 \u041F\u042D", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48744539", "name": "LD Compact Blue", "price" : 134.00, "quantity" : 1.000, "sum" : 134.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000480050", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Nitro Energy \u044D\u043D green \u0436/\u0431 0,45\u043B", "price" : 77.00, "quantity" : 1.000, "sum" : 77.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000027450", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A FuzeTea \u0447\u0430\u0439 \u043C\u0430\u043D\u0433\u043E,\u0440\u043E\u043C 0,5\u043B", "price" : 75.00, "quantity" : 1.000, "sum" : 75.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "47011656", "name": "\u0412\u043E\u0434\u043A\u0430 \u041F\u0448\u0435\u043D\u0438\u0447\u043D\u0430\u044F 0,1\u043B", "price" : 65.00, "quantity" : 1.000, "sum" : 65.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 1536.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:20:56]execute_script... [12:20:56]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)344380", "tax_sys" : 0, "items" : [ { "code": "4670003190013", "name": "\u0410\u043D\u0442\u0438\u0444\u0440\u0438\u0437 SIBIRIA ANTIFREEZE \u041E\u0416-40 \u0436\u0435\u043B 1\u043B", "price" : 225.00, "quantity" : 3.000, "sum" : 675.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000160211", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 0,5\u043B", "price" : 40.00, "quantity" : 2.000, "sum" : 80.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000036210013", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E (GABB TRADE)", "price" : 115.00, "quantity" : 1.000, "sum" : 115.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000032800010", "name": "\u0421\u043E\u0447\u043D\u0438\u043A DC \u0442\u0432\u043E\u0440\u043E\u0433 75 \u0433", "price" : 30.00, "quantity" : 2.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870202522671", "name": "Garden \u043D\u0430\u043F\u0438\u0442\u043E\u043A \u0441\u043E \u0432\u043A\u0443\u0441\u043E\u043C \u0433\u0440\u0430\u043D\u0430\u0442\u0430 1,20 \u041F\u042D", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48744539", "name": "LD Compact Blue", "price" : 134.00, "quantity" : 1.000, "sum" : 134.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000480050", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Nitro Energy \u044D\u043D green \u0436/\u0431 0,45\u043B", "price" : 77.00, "quantity" : 1.000, "sum" : 77.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000027450", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A FuzeTea \u0447\u0430\u0439 \u043C\u0430\u043D\u0433\u043E,\u0440\u043E\u043C 0,5\u043B", "price" : 75.00, "quantity" : 1.000, "sum" : 75.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "47011656", "name": "\u0412\u043E\u0434\u043A\u0430 \u041F\u0448\u0435\u043D\u0438\u0447\u043D\u0430\u044F 0,1\u043B", "price" : 65.00, "quantity" : 1.000, "sum" : 65.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 1536.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:20:56]POST & json_proto [12:20:56]process_json_proto [12:20:56]json parsed OK: [12:20:56]protocol is kg_v1.0 [12:20:56]action value=close_receipt [12:20:56]process_action close_receipt [12:20:56]cmd_close_receipt [12:20:56]MH_GetDate [12:20:56]Write to MH i2c: F0 00 00 1D 00 0C [12:20:56]Write i2c OK [12:20:56]MH_I2C_Read... [12:20:56]Read from MH i2c: F0 [12:20:56]MH_I2C_Read... [12:20:56]Read from MH i2c: F0 09 00 [12:20:56]MH_I2C_Read... [12:20:56]Read from MH i2c: F0 09 00 1D 00 00 28 00 F4 66 1B D0 5A 64 40 [12:20:56]GetLastDocTimeStamp 1727264822 [12:20:56]current date 1727266856 [12:20:56]FM_GetShiftState [12:20:56]SAM_PROTO_GetShiftState [12:20:56]wFMCommunicate request_size=4 [12:20:56]MH_SAM_APDU [12:20:56]CAPDU: 80 13 01 00 [12:20:56]Write to MH i2c: E2 08 00 1E 00 80 13 01 00 00 00 00 00 9B [12:20:56]Write i2c OK [12:20:56]MH_I2C_Read... [12:20:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:20:56]Read from MH i2c: E2 [12:20:56]MH_I2C_Read... [12:20:56]Read from MH i2c: E2 0E 00 [12:20:56]MH_I2C_Read... [12:20:56]Read from MH i2c: E2 0E 00 1E 00 00 09 00 01 63 60 F3 66 00 00 00 00 90 00 C3 [12:20:56]RAPDU: 09 00 01 63 60 F3 66 00 00 00 00 90 00 [12:20:56]wFMCommunicate OK [12:20:56]SAM_PROTO_GetShiftState done [12:20:56]FM_GetShiftState done [12:20:56]opened in 1727225955 [12:20:56]opened+sec_in_day 1727312355 [12:20:56]quantity*price = 67500 [12:20:56]sum+1 = 67501 [12:20:56]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700000160211 Вода Легенда 0,5л 2.000 * 40.00 = 80.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 2000036210013 Кофе Капучино (GABB TRADE) 1.000 * 115.00 = 115.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 2000036220012 Кофе Капучино XL(GABB TRADE) 1.000 * 130.00 = 130.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 2000032800010 Сочник DC творог 75 г 2.000 * 30.00 = 60.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4870202522671 Garden напиток со вкусом граната 1,20 ПЭ 1.000 * 125.00 = 125.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 48744539 LD Compact Blue 1.000 * 134.00 = 134.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4700000480050 Напиток Nitro Energy эн green ж/б 0,45л 1.000 * 77.00 = 77.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 5449000027450 Напиток FuzeTea чай манго,ром 0,5л 1.000 * 75.00 = 75.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 47011656 Водка Пшеничная 0,1л 1.000 * 65.00 = 65.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 1536.00 НСП 1% : 13.59 НДС 12% : 163.10 Наличными: 1536.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 67 25.09.2024 12:20 Смена: 474 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 116211 ФПД: 274382455555820 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240925T122057&type=1&operation_type=1&fn_number=0000000000871830&fd_number=116211&fm=274382455555820&tin=02508201610067®Number=0000000000091831&sum=153600 0 [12:20:58]StoreToDocumentArchive [12:20:58]shift 474 fd 116211 [12:20:58]save to /storage/0474/doc_00116211 [12:20:58]save last doc name /storage/0474/doc_00116211 to /storage/kkm_last_doc_name [12:20:58]save OK [12:20:58]Clear old archive folders... [12:20:58]ProcessDocumentItem done err = 0, tmpTLVsize=1293 [12:20:58]tlvbuf is 01315940 [12:20:58]SAM_PROTO_ClearQueue [12:20:58]wFMCommunicate request_size=4 [12:20:58]MH_SAM_APDU [12:20:58]CAPDU: 80 09 00 00 [12:20:58]Write to MH i2c: E2 08 00 2B 00 80 09 00 00 00 00 00 00 9D [12:20:58]Write i2c OK [12:20:58]MH_I2C_Read... [12:20:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:20:58]Read from MH i2c: E2 [12:20:58]MH_I2C_Read... [12:20:58]Read from MH i2c: E2 03 00 [12:20:58]MH_I2C_Read... [12:20:58]Read from MH i2c: E2 03 00 2B 00 00 90 00 9F [12:20:58]RAPDU: 90 00 [12:20:58]wFMCommunicate OK [12:20:58]SAM_PROTO_ClearQueue done [12:20:58]KKMCreateOFDPacket [12:20:58]OFDProtocolAddRootSTLVToBuf [12:20:58]FM_MakeSignedData [12:20:58]FM_MakeSignedData [12:20:58]SAM_PROTO_SignData [12:20:58]wFMCommunicate request_size=4 [12:20:58]MH_SAM_APDU [12:20:58]CAPDU: 80 0D 01 02 [12:20:58]Write to MH i2c: E2 08 00 2C 00 80 0D 01 02 00 00 00 00 A5 [12:20:58]Write i2c OK [12:20:58]MH_I2C_Read... [12:20:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:20:58]Read from MH i2c: E2 [12:20:58]MH_I2C_Read... [12:20:58]Read from MH i2c: E2 03 00 [12:20:58]MH_I2C_Read... [12:20:58]Read from MH i2c: E2 03 00 2C 00 00 90 00 A0 [12:20:58]RAPDU: 90 00 [12:20:58]wFMCommunicate OK [12:20:58]wFMCommunicate request_size=255 [12:20:58]MH_SAM_APDU [12:20:58]CAPDU: 80 0D 02 02 FA 03 00 0D 05 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 36 37 30 30 30 33 31 39 30 30 31 33 06 04 36 00 D0 90 D0 BD D1 82 D0 B8 D1 84 D1 80 D0 B8 D0 B7 20 53 49 42 49 52 49 41 20 41 4E 54 49 46 52 45 45 5A 45 20 D0 9E D0 96 2D 34 30 20 D0 B6 D0 B5 D0 BB 20 31 D0 BB FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 E4 57 00 00 00 00 13 04 06 00 AC 07 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 [12:20:58]Write to MH i2c: E2 02 01 2D 00 80 0D 02 02 FA 00 03 00 0D 05 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 36 37 30 30 30 33 31 39 30 30 31 33 06 04 36 00 D0 90 D0 BD D1 82 D0 B8 D1 84 D1 80 D0 B8 D0 B7 20 53 49 42 49 52 49 41 20 41 4E 54 49 46 52 45 45 5A 45 20 D0 9E D0 96 2D 34 30 20 D0 B6 D0 B5 D0 BB 20 31 D0 BB FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 E4 57 00 00 00 00 13 04 06 00 AC 07 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 00 00 76 [12:20:58]Write i2c OK [12:20:58]MH_I2C_Read... [12:20:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:20:58]Read from MH i2c: E2 [12:20:58]MH_I2C_Read... [12:20:58]Read from MH i2c: E2 03 00 [12:20:58]MH_I2C_Read... [12:20:58]Read from MH i2c: E2 03 00 2D 00 00 90 00 A1 [12:20:58]RAPDU: 90 00 [12:20:58]wFMCommunicate OK [12:20:58]wFMCommunicate request_size=255 [12:20:58]MH_SAM_APDU [12:20:58]CAPDU: 80 0D 02 02 FA 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 66 00 8A 04 0D 00 32 30 30 30 30 33 32 38 30 30 30 31 30 06 04 22 00 D0 A1 D0 BE D1 87 D0 BD D0 B8 D0 BA 20 44 43 20 D1 [12:20:59]Write to MH i2c: E2 02 01 2E 00 80 0D 02 02 FA 00 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 66 00 8A 04 0D 00 32 30 30 30 30 33 32 38 30 30 30 31 30 06 04 22 00 D0 A1 D0 BE D1 87 D0 BD D0 B8 D0 BA 20 44 43 20 D1 00 00 D8 [12:20:59]Write i2c OK [12:20:59]MH_I2C_Read... [12:20:59]OFD Sender: No OFD packet to send [12:20:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:20:59]Read from MH i2c: E2 [12:20:59]MH_I2C_Read... [12:20:59]Read from MH i2c: E2 03 00 [12:20:59]MH_I2C_Read... [12:20:59]Read from MH i2c: E2 03 00 2E 00 00 90 00 A2 [12:20:59]RAPDU: 90 00 [12:20:59]wFMCommunicate OK [12:20:59]wFMCommunicate request_size=255 [12:20:59]MH_SAM_APDU [12:20:59]CAPDU: 80 0D 02 02 FA 82 D0 B2 D0 BE D1 80 D0 BE D0 B3 20 37 35 20 D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 B8 0B 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 84 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 32 36 37 31 06 04 40 00 47 61 72 64 65 6E 20 D0 BD D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 81 D0 BE 20 D0 B2 D0 BA D1 83 D1 81 D0 BE D0 BC 20 D0 B3 D1 80 D0 B0 D0 BD D0 B0 D1 82 D0 B0 20 31 2C 32 30 20 D0 9F D0 AD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 4E 00 8A 04 08 00 34 38 37 34 34 35 33 39 06 04 0F 00 4C 44 20 43 6F 6D 70 61 63 74 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 [12:20:59]Write to MH i2c: E2 02 01 2F 00 80 0D 02 02 FA 00 82 D0 B2 D0 BE D1 80 D0 BE D0 B3 20 37 35 20 D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 B8 0B 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 84 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 32 36 37 31 06 04 40 00 47 61 72 64 65 6E 20 D0 BD D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 81 D0 BE 20 D0 B2 D0 BA D1 83 D1 81 D0 BE D0 BC 20 D0 B3 D1 80 D0 B0 D0 BD D0 B0 D1 82 D0 B0 20 31 2C 32 30 20 D0 9F D0 AD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 4E 00 8A 04 08 00 34 38 37 34 34 35 33 39 06 04 0F 00 4C 44 20 43 6F 6D 70 61 63 74 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 00 94 [12:20:59]Write i2c OK [12:20:59]MH_I2C_Read... [12:20:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:20:59]Read from MH i2c: E2 [12:20:59]MH_I2C_Read... [12:20:59]Read from MH i2c: E2 03 00 [12:20:59]MH_I2C_Read... [12:20:59]Read from MH i2c: E2 03 00 2F 00 00 90 00 A3 [12:20:59]RAPDU: 90 00 [12:20:59]wFMCommunicate OK [12:20:59]wFMCommunicate request_size=255 [12:20:59]MH_SAM_APDU [12:20:59]CAPDU: 80 0D 02 02 FA 00 58 34 00 00 00 00 13 04 06 00 58 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 1E 00 00 00 00 13 04 06 00 14 1E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 79 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 37 34 35 30 06 04 35 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 20 D1 87 D0 B0 D0 B9 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C [12:20:59]Write to MH i2c: E2 02 01 30 00 80 0D 02 02 FA 00 00 58 34 00 00 00 00 13 04 06 00 58 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 1E 00 00 00 00 13 04 06 00 14 1E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 79 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 37 34 35 30 06 04 35 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 20 D1 87 D0 B0 D0 B9 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 00 00 17 [12:20:59]Write i2c OK [12:20:59]MH_I2C_Read... [12:21:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:21:00]Read from MH i2c: E2 [12:21:00]MH_I2C_Read... [12:21:00]Read from MH i2c: E2 03 00 [12:21:00]MH_I2C_Read... [12:21:00]Read from MH i2c: E2 03 00 30 00 00 90 00 A4 [12:21:00]RAPDU: 90 00 [12:21:00]wFMCommunicate OK [12:21:00]wFMCommunicate request_size=255 [12:21:00]MH_SAM_APDU [12:21:00]CAPDU: 80 0D 02 02 FA 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 62 00 8A 04 08 00 34 37 30 31 31 36 35 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 9F D1 88 D0 B5 D0 BD D0 B8 D1 87 D0 BD D0 B0 D1 8F 20 30 2C 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 58 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4F 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B6 3F 00 00 00 00 07 04 06 00 00 58 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 29 00 F4 66 0E 04 04 00 DA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 [12:21:00]Write to MH i2c: E2 02 01 31 00 80 0D 02 02 FA 00 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 62 00 8A 04 08 00 34 37 30 31 31 36 35 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 9F D1 88 D0 B5 D0 BD D0 B8 D1 87 D0 BD D0 B0 D1 8F 20 30 2C 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 58 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4F 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B6 3F 00 00 00 00 07 04 06 00 00 58 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 29 00 F4 66 0E 04 04 00 DA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 00 00 5D [12:21:00]Write i2c OK [12:21:00]MH_I2C_Read... [12:21:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:21:00]Read from MH i2c: E2 [12:21:00]MH_I2C_Read... [12:21:00]Read from MH i2c: E2 03 00 [12:21:00]MH_I2C_Read... [12:21:00]Read from MH i2c: E2 03 00 31 00 00 90 00 A5 [12:21:00]RAPDU: 90 00 [12:21:00]wFMCommunicate OK [12:21:00]wFMCommunicate request_size=52 [12:21:00]MH_SAM_APDU [12:21:00]CAPDU: 80 0D 02 02 2F 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 F3 C5 01 00 35 04 06 00 F9 8C A4 CB C6 EC [12:21:00]Write to MH i2c: E2 37 00 32 00 80 0D 02 02 2F 00 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 F3 C5 01 00 35 04 06 00 F9 8C A4 CB C6 EC 00 00 C6 [12:21:00]Write i2c OK [12:21:00]MH_I2C_Read... [12:21:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:21:00]Read from MH i2c: E2 [12:21:00]MH_I2C_Read... [12:21:00]Read from MH i2c: E2 03 00 [12:21:00]MH_I2C_Read... [12:21:00]Read from MH i2c: E2 03 00 32 00 00 90 00 A6 [12:21:00]RAPDU: 90 00 [12:21:00]wFMCommunicate OK [12:21:00]wFMCommunicate request_size=4 [12:21:00]MH_SAM_APDU [12:21:00]CAPDU: 80 0D 03 02 [12:21:00]Write to MH i2c: E2 08 00 33 00 80 0D 03 02 00 00 00 00 AE [12:21:00]Write i2c OK [12:21:00]MH_I2C_Read... [12:21:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:21:00]Read from MH i2c: E2 [12:21:00]MH_I2C_Read... [12:21:00]Read from MH i2c: E2 0B 00 [12:21:00]MH_I2C_Read... [12:21:00]Read from MH i2c: E2 0B 00 33 00 00 D2 8D 28 AA 66 CB 60 79 90 00 EA [12:21:00]RAPDU: D2 8D 28 AA 66 CB 60 79 90 00 [12:21:00]wFMCommunicate OK [12:21:00]SAM_PROTO_SignData done [12:21:00]FM_MakeSignedData done [12:21:00]CreateOFDProtocolMessage [12:21:00]wFMCommunicate request_size=4 [12:21:00]MH_SAM_APDU [12:21:00]CAPDU: 80 11 00 00 [12:21:00]Write to MH i2c: E2 08 00 34 00 80 11 00 00 00 00 00 00 AE [12:21:00]Write i2c OK [12:21:00]MH_I2C_Read... [12:21:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:21:00]Read from MH i2c: E2 [12:21:00]MH_I2C_Read... [12:21:00]Read from MH i2c: E2 17 00 [12:21:00]MH_I2C_Read... [12:21:00]Read from MH i2c: E2 17 00 34 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 FC [12:21:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [12:21:00]wFMCommunicate OK [12:21:00]CreateOFDProtocolMessage done [12:21:00]OFDSenderStorePacket 116211 [12:21:00]StoreOFDPacket docnum=116211 [12:21:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 21 05 00 00 0D 84 19 05 90 E0 5A 03 01 00 03 00 0D 05 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 36 37 30 30 30 33 31 39 30 30 31 33 06 04 36 00 D0 90 D0 BD D1 82 D0 B8 D1 84 D1 80 D0 B8 D0 B7 20 53 49 42 49 52 49 41 20 41 4E 54 49 46 52 45 45 5A 45 20 D0 9E D0 96 2D 34 30 20 D0 B6 D0 B5 D0 BB 20 31 D0 BB FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 E4 57 00 00 00 00 13 04 06 00 AC 07 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 66 00 8A 04 0D 00 32 30 30 30 30 33 32 38 30 30 30 31 30 06 04 22 00 D0 A1 D0 BE D1 87 D0 BD D0 B8 D0 BA 20 44 43 20 D1 82 D0 B2 D0 BE D1 80 D0 BE D0 B3 20 37 35 20 D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 B8 0B 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 84 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 32 36 37 31 06 04 40 00 47 61 72 64 65 6E 20 D0 BD D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 81 D0 BE 20 D0 B2 D0 BA D1 83 D1 81 D0 BE D0 BC 20 D0 B3 D1 80 D0 B0 D0 BD D0 B0 D1 82 D0 B0 20 31 2C 32 30 20 D0 9F D0 AD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 4E 00 8A 04 08 00 34 38 37 34 34 35 33 39 06 04 0F 00 4C 44 20 43 6F 6D 70 61 63 74 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 34 00 00 00 00 13 04 06 00 58 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 1E 00 00 00 00 13 04 06 00 14 1E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 79 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 37 34 35 30 06 04 35 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 20 D1 87 D0 B0 D0 B9 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 62 00 8A 04 08 00 34 37 30 31 31 36 35 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 9F D1 88 D0 B5 D0 BD D0 B8 D1 87 D0 BD D0 B0 D1 8F 20 30 2C 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 58 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4F 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B6 3F 00 00 00 00 07 04 06 00 00 58 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 29 00 F4 66 0E 04 04 00 DA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 F3 C5 01 00 35 04 06 00 F9 8C A4 CB C6 EC D2 8D 28 AA 66 CB 60 79 [12:21:01]CheckFolder [12:21:01]dirname=/storage/ofd_packets [12:21:01]CheckFolder done [12:21:01]ProducePacketName [12:21:01]name=ofd_packets/00116211 [12:21:01]NVStorageSaveData ofd_packets/00116211 [12:21:01]File name is /storage/ofd_packets/00116211 [12:21:01]Write 1343 bytes [12:21:01]NVStorageSaveData done [12:21:01]OFDSenderStorePacket done [12:21:01]KKMCreateOFDPacket done [12:21:01]NVStorageSaveData kkm_last_timestamp [12:21:01]File name is /storage/kkm_last_timestamp [12:21:01]Write 4 bytes [12:21:01]NVStorageSaveData done [12:21:01]ExternCall_PrintAddStr [12:21:01]wPrintStart [12:21:01]Write to MH i2c: 01 00 00 35 00 35 [12:21:01]Write i2c OK [12:21:01]MH_I2C_Read... [12:21:01]Read from MH i2c: 01 [12:21:01]MH_I2C_Read... [12:21:01]Read from MH i2c: 01 07 00 [12:21:01]MH_I2C_Read... [12:21:01]Read from MH i2c: 01 07 00 35 00 00 00 00 00 00 FF 0F 4A [12:21:01]RasterBufferAndPrint [12:21:01]line Счет N : (3)344380 [12:21:01]line ИНН: 02508201610067 [12:21:01]line Контрольно-Кассовый Чек [12:21:01]line ПРОДАЖА [12:21:01]line Товар: 4670003190013 [12:21:01]line Антифриз SIBIRIA ANTIFREEZE ОЖ-40 жел 1л [12:21:01]line 3.000 * 225.00 [12:21:01]line = 675.00 [12:21:01]line НДС 12% НСП 1% [12:21:01]line > о реализуемом товаре [12:21:01]line Товар: 4700000160211 [12:21:01]line Вода Легенда 0,5л [12:21:01]line 2.000 * 40.00 [12:21:01]line = 80.00 [12:21:01]line НДС 12% НСП 1% [12:21:01]line > о реализуемом товаре [12:21:01]line Товар: 2000036210013 [12:21:01]line Кофе Капучино (GABB TRADE) [12:21:01]line 1.000 * 115.00 [12:21:01]line = 115.00 [12:21:01]line НДС 12% НСП 1% [12:21:01]line > о реализуемом товаре [12:21:01]line Товар: 2000036220012 [12:21:01]line Кофе Капучино XL(GABB TRADE) [12:21:01]line 1.000 * 130.00 [12:21:01]line = 130.00 [12:21:01]line НДС 12% НСП 1% [12:21:01]line > о реализуемом товаре [12:21:01]line Товар: 2000032800010 [12:21:01]line Сочник DC творог 75 г [12:21:01]line 2.000 * 30.00 [12:21:01]line = 60.00 [12:21:01]line НДС 12% НСП 1% [12:21:01]line > о реализуемом товаре [12:21:01]line Товар: 4870202522671 [12:21:01]line Garden напиток со вкусом граната 1,20 ПЭ [12:21:01]line 1.000 * 125.00 [12:21:01]line = 125.00 [12:21:01]line НДС 12% НСП 1% [12:21:01]line > о реализуемом товаре [12:21:01]line Товар: 48744539 [12:21:01]line LD Compact Blue [12:21:01]line 1.000 * 134.00 [12:21:01]line = 134.00 [12:21:01]line НДС 12% НСП 1% [12:21:01]line > о реализуемом товаре [12:21:01]line Товар: 4700000480050 [12:21:01]line Напиток Nitro Energy эн green ж/б 0,45л [12:21:01]line 1.000 * 77.00 [12:21:01]line = 77.00 [12:21:01]line НДС 12% НСП 1% [12:21:01]line > о реализуемом товаре [12:21:01]line Товар: 5449000027450 [12:21:01]line Напиток FuzeTea чай манго,ром 0,5л [12:21:01]line 1.000 * 75.00 [12:21:01]line = 75.00 [12:21:01]line НДС 12% НСП 1% [12:21:01]line > о реализуемом товаре [12:21:01]line Товар: 47011656 [12:21:01]line Водка Пшеничная 0,1л [12:21:01]line 1.000 * 65.00 [12:21:01]line = 65.00 [12:21:01]line НДС 12% НСП 1% [12:21:01]line > о реализуемом товаре [12:21:01]line ИТОГО: 1536.00 [12:21:01]line НСП 1% : 13.59 [12:21:01]line НДС 12% : 163.10 [12:21:01]line Наличными: 1536.00 [12:21:01]line Безнал.: 0.00 [12:21:01]line Место: АЗС № 90 "Партнер Нефть" [12:21:01]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [12:21:01]line СНО: Общий режим [12:21:01]line Чек 67 25.09.2024 12:20 [12:21:01]line Смена: 474 ФФД: 1.0 [12:21:01]line ЗНМ: 0300000120 [12:21:01]line РНМ: 0000000000091831 [12:21:01]line Версия ККМ: 001 [12:21:01]line ФМ: 0000000000871830 [12:21:01]line ФД: 116211 [12:21:01]line ФПД: 274382455555820 [12:21:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240925T122057&type=1&operation_type=1&fn_number=0000000000871830&fd_number=116211&fm=274382455555820&tin=02508201610067®Number=0000000000091831&sum=153600 [12:21:01]line 0 [12:21:01]written 0, free lines is 4095 [12:21:01]OFD Sender: Processing packet 116211 [packets to send 482, broken 481] [12:21:01]ProducePacketName [12:21:01]name=ofd_packets/00116211 [12:21:01]OFD Sender: To server: pG, [12:21:01]CommunicateWithHost lk.salyk.kg:30040 [12:21:01]ConnectInit lk.salyk.kg [12:21:01]Connected sock=10 [12:21:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 21 05 00 00 0D 84 19 05 90 E0 5A 03 01 00 03 00 0D 05 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 36 37 30 30 30 33 31 39 30 30 31 33 06 04 36 00 D0 90 D0 BD D1 82 D0 B8 D1 84 D1 80 D0 B8 D0 B7 20 53 49 42 49 52 49 41 20 41 4E 54 49 46 52 45 45 5A 45 20 D0 9E D0 96 2D 34 30 20 D0 B6 D0 B5 D0 BB 20 31 D0 BB FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 E4 57 00 00 00 00 13 04 06 00 AC 07 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 66 00 8A 04 0D 00 32 30 30 30 30 33 32 38 30 30 30 31 30 06 04 22 00 D0 A1 D0 BE D1 87 D0 BD D0 B8 D0 BA 20 44 43 20 D1 82 D0 B2 D0 BE D1 80 D0 BE D0 B3 20 37 35 20 D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 B8 0B 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 84 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 32 36 37 31 06 04 40 00 47 61 72 64 65 6E 20 D0 BD D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 81 D0 BE 20 D0 B2 D0 BA D1 83 D1 81 D0 BE D0 BC 20 D0 B3 D1 80 D0 B0 D0 BD D0 B0 D1 82 D0 B0 20 31 2C 32 30 20 D0 9F D0 AD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 4E 00 8A 04 08 00 34 38 37 34 34 35 33 39 06 04 0F 00 4C 44 20 43 6F 6D 70 61 63 74 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 34 00 00 00 00 13 04 06 00 58 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 1E 00 00 00 00 13 04 06 00 14 1E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 79 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 37 34 35 30 06 04 35 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 20 D1 87 D0 B0 D0 B9 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 62 00 8A 04 08 00 34 37 30 31 31 36 35 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 9F D1 88 D0 B5 D0 BD D0 B8 D1 87 D0 BD D0 B0 D1 8F 20 30 2C 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 58 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4F 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B6 3F 00 00 00 00 07 04 06 00 00 58 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 29 00 F4 66 0E 04 04 00 DA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 F3 C5 01 00 35 04 06 00 F9 8C A4 CB C6 EC D2 8D 28 AA 66 CB 60 79 [12:21:02]int [12:21:02]Write to MH i2c: 01 00 00 91 00 91 [12:21:02]Read from MH i2c: DD 05 00 [12:21:02]MH_I2C_Read... [12:21:02]Read from MH i2c: DD 05 00 91 00 00 1E 00 EA 07 81 [12:21:02]Write to MH i2c: DD 40 01 92 00 1E FC FB FB 3C 00 00 FF FF FF F0 00 0F FF 00 0F 0F FF FF F0 0F 00 0F 00 00 FF FF F0 0F 1E 00 00 00 00 1E 00 00 00 00 1E 00 00 00 00 1F F8 EB 5F 5E F0 00 0F 00 00 FF FF 00 FF 00 00 00 0F 0F F0 FF 0F F0 F0 F0 00 F0 1F 00 00 00 00 1F 00 00 00 00 1F 00 00 00 00 1C A4 3F D6 0F F0 F0 0F F0 0F 00 FF FF F0 00 F0 F0 F0 FF 00 FF 00 0F 1C 00 00 00 00 1C 00 00 00 00 1C 00 00 00 00 1F AC FE FF 7F FF 0F 00 00 F0 0F F0 0F FF 0F 0F 0F F0 0F 00 0F 00 0F 0F 0F 0F 0F FF 0F FF F0 1F 00 00 00 00 1F 00 00 00 00 1F 00 00 00 00 1F F8 B7 56 3F F0 F0 FF Write i2c OK [12:21:02]F0 MH_I2C_Read... [12:21:02]F0 Read from MH i2c: FF DD FF [12:21:02]00 MH_I2C_Read... [12:21:02]F0 F0 F0 0F Read from MH i2c: 00 DD F0 05 F0 00 F0 F0 [12:21:02]F0 0F FF F0 1F 00 00 00 00 1F 00 00 00 00 1F 00 00 answer for other command [DD] [12:21:02]00 MH Int Process stopped [12:21:02]00 1F BC 66 01 11 0F 00 00 00 FF 00 FF 0F 00 00 0F 0F 1F 00 00 00 00 1F 00 00 00 00 1F 00 00 00 00 1E EC FF Received data: AF 87 3F 95 00 F6 FF 70 FF 47 FF 2C 00 F0 01 F0 00 F0 30 FF 30 FF 30 00 30 F0 00 FF FF F0 FF FF FF FF 00 00 F0 F0 0F 1E 00 00 00 00 1E 00 00 00 00 1E 00 00 00 00 1F EC 5D FB 6D 0F F0 00 0F 0F FF 0F 00 0F FF 00 0F 00 FF F0 FF 0F 0F F0 FF 00 F0 1F 00 00 00 00 89 [12:21:02]30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 F5 30 47 00 3D 3A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 F3 C5 01 00 F4 03 04 00 68 A5 F3 66 B6 04 01 00 00 A2 DB 27 F1 E1 18 59 13 [12:21:02]CommunicateWithHost err = 0 [12:21:02]CheckOFDResponse [12:21:02]1017 (14) - 77093643461234 [12:21:02]1041 (16) - 0000000000871830 [12:21:02]1040 (4) - 116211 [12:21:02]1012 (4) - 25.09.2024 05:53 [12:21:02]1206 (1) - 0 [12:21:02]OFD Sender: Remove packet 116211 [12:21:02]ProducePacketName [12:21:02]name=ofd_packets/00116211 [12:21:02]NVStorageDeleteData [12:21:02]Write i2c OK [12:21:02]MH_I2C_Read... [12:21:02]Read from MH i2c: DD [12:21:02]MH_I2C_Read... [12:21:02]Read from MH i2c: DD 05 00 [12:21:02]MH_I2C_Read... [12:21:02]Read from MH i2c: DD 05 00 92 00 00 1E 00 CF 08 68 [12:21:02]answer with wrong packet_num 0092 - expected 0093 [12:21:02]process_action_free close_receipt [12:21:02]json_value_free [12:21:02]json_value_free done [12:21:02]process_json_proto returns [12:21:02]Send response to host [12:21:02]{"protocol":"kg_v1.0","response":{"error":1039,"error_desc":"CoCPU protocol format"}} [12:21:02]free response buf [12:21:02]execute_script done [12:21:02]execute_script returns [12:21:02]free content buf [12:21:02]Sock 6.Close socket [12:21:02]Sock 6.Thread stoped [12:21:03]OFD Sender: No OFD packet to send [12:21:08]OFD Sender: No OFD packet to send [12:21:13]OFD Sender: No OFD packet to send [12:21:13]accept exits with 9 [12:21:13]New connection [12:21:13]New thread 3066813796 created [12:21:13]Thread 3066957156 joined [12:21:13]Waiting for new connection... [12:21:13] Sock 9.Parse request [12:21:13]Sock 9.Check first char [12:21:13]Sock 9.First char is OK [12:21:13]request: POST /json_proto HTTP/1.0 [12:21:13]Method: POST [12:21:13]URL: /json_proto [12:21:13]Method is POST - this is cgi request [12:21:13]url: /json_proto [12:21:13]query_string will be loaded in cgi processing [12:21:13]execute_cgi json_proto POST (null) [12:21:13]execute_cgi path=json_proto method=POST [12:21:13]POST find Content-Length [12:21:13]Host: 172.17.41.136:8080 [12:21:13]Content-Length: 215 [12:21:13]Content-Type: application/json [12:21:13] [12:21:13]POST finish read [12:21:13]Found Content-Length = 215 [12:21:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:21:13]execute_script... [12:21:13]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:21:13]POST & json_proto [12:21:13]process_json_proto [12:21:13]json parsed OK: [12:21:13]protocol is kg_v1.0 [12:21:13]action value=get_value [12:21:13]process_action get_value [12:21:13]cmd_get_value [12:21:13]process_action get_value done [12:21:13]requested_data is exist [12:21:13]produce_requested_data [12:21:13]requested_item kkm.sn is exist - process it [12:21:13]requested_item kkm.ver is exist - process it [12:21:13]requested_item fm.sn is exist - process it [12:21:13]wFMCommunicate request_size=4 [12:21:13]MH_SAM_APDU [12:21:13]CAPDU: 80 11 00 00 [12:21:13]Write to MH i2c: E2 08 00 94 00 80 11 00 00 00 00 00 00 0E [12:21:13]Write i2c OK [12:21:13]MH_I2C_Read... [12:21:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:21:13]Read from MH i2c: E2 [12:21:13]MH_I2C_Read... [12:21:13]Read from MH i2c: E2 17 00 [12:21:13]MH_I2C_Read... [12:21:13]Read from MH i2c: E2 17 00 94 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 5C [12:21:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [12:21:13]wFMCommunicate OK [12:21:13]requested_item fd.num is exist - process it [12:21:13]SAM_PROTO_GetFieldsCounters [12:21:13]wFMCommunicate request_size=4 [12:21:13]MH_SAM_APDU [12:21:13]CAPDU: 80 13 00 00 [12:21:13]Write to MH i2c: E2 08 00 95 00 80 13 00 00 00 00 00 00 11 [12:21:13]Write i2c OK [12:21:13]MH_I2C_Read... [12:21:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:21:13]Read from MH i2c: E2 [12:21:13]MH_I2C_Read... [12:21:13]Read from MH i2c: E2 62 00 [12:21:13]MH_I2C_Read... [12:21:13]Read from MH i2c: E2 62 00 95 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 F3 C5 01 00 0E 04 04 00 DA 01 00 00 12 04 04 00 43 00 00 00 5E 04 04 00 43 00 00 00 57 04 04 00 44 00 00 00 19 04 04 00 00 00 00 00 90 00 87 [12:21:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 F3 C5 01 00 0E 04 04 00 DA 01 00 00 12 04 04 00 43 00 00 00 5E 04 04 00 43 00 00 00 57 04 04 00 44 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:21:13]wFMCommunicate OK [12:21:13]SAM_PROTO_GetFieldsCounters done [12:21:13]requested_item shift.num is exist - process it [12:21:13]requested_item shift.opened is exist - process it [12:21:13]req_shift_opened [12:21:13]FM_GetShiftState [12:21:13]SAM_PROTO_GetShiftState [12:21:13]wFMCommunicate request_size=4 [12:21:13]MH_SAM_APDU [12:21:13]CAPDU: 80 13 01 00 [12:21:13]Write to MH i2c: E2 08 00 96 00 80 13 01 00 00 00 00 00 13 [12:21:13]Write i2c OK [12:21:13]MH_I2C_Read... [12:21:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:21:13]Read from MH i2c: E2 [12:21:13]MH_I2C_Read... [12:21:13]Read from MH i2c: E2 0E 00 [12:21:13]MH_I2C_Read... [12:21:13]Read from MH i2c: E2 0E 00 96 00 00 09 00 01 63 60 F3 66 00 00 00 00 90 00 3B [12:21:13]RAPDU: 09 00 01 63 60 F3 66 00 00 00 00 90 00 [12:21:13]wFMCommunicate OK [12:21:13]SAM_PROTO_GetShiftState done [12:21:13]FM_GetShiftState done [12:21:13]req_shift_opened done [12:21:13]requested_item shift.open_date is exist - process it [12:21:13]req_shift_open_date [12:21:13]req_shift_open_date done [12:21:13]produce_requested_data done [12:21:13]produce_requested_data return {"kkm.sn":"0300000120","kkm.ver":"001","fm.sn":"0000000000871830","fd.num":116211,"shift.num":474,"shift.opened":1,"shift.open_date":1727225955} [12:21:13]process_action_free get_value [12:21:13]json_value_free [12:21:13]json_value_free done [12:21:13]process_json_proto returns [12:21:13]Send response to host [12:21:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000120","kkm.ver":"001","fm.sn":"0000000000871830","fd.num":116211,"shift.num":474,"shift.opened":1,"shift.open_date":1727225955}}} [12:21:13]free response buf [12:21:13]execute_script done [12:21:13]execute_script returns [12:21:13]free content buf [12:21:13]Sock 9.Close socket [12:21:13]Sock 9.Thread stoped [12:21:13]accept exits with 5 [12:21:13]New connection [12:21:13]New thread 3066957156 created [12:21:13]Thread 3066813796 joined [12:21:13]Waiting for new connection... [12:21:13] Sock 5.Parse request [12:21:13]Sock 5.Check first char [12:21:13]Sock 5.First char is OK [12:21:13]request: POST /json_proto HTTP/1.0 [12:21:13]Method: POST [12:21:13]URL: /json_proto [12:21:13]Method is POST - this is cgi request [12:21:13]url: /json_proto [12:21:13]query_string will be loaded in cgi processing [12:21:13]execute_cgi json_proto POST (null) [12:21:13]execute_cgi path=json_proto method=POST [12:21:13]POST find Content-Length [12:21:13]Host: 172.17.41.136:8080 [12:21:13]Content-Length: 331 [12:21:13]Content-Type: application/json [12:21:13] [12:21:13]POST finish read [12:21:13]Found Content-Length = 331 [12:21:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [12:21:13]execute_script... [12:21:13]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [12:21:13]POST & json_proto [12:21:13]process_json_proto [12:21:13]json parsed OK: [12:21:13]protocol is kg_v1.0 [12:21:13]action value=get_value [12:21:13]process_action get_value [12:21:13]cmd_get_value [12:21:13]process_action get_value done [12:21:13]requested_data is exist [12:21:13]produce_requested_data [12:21:13]requested_item fm.sale.total is exist - process it [12:21:13]SAM_PROTO_GetFMData [12:21:13]wFMCommunicate request_size=4 [12:21:13]MH_SAM_APDU [12:21:13]CAPDU: 80 13 03 00 [12:21:13]Write to MH i2c: E2 08 00 97 00 80 13 03 00 00 00 00 00 16 [12:21:13]Write i2c OK [12:21:13]MH_I2C_Read... [12:21:14]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [12:21:14]Read from MH i2c: E2 [12:21:14]MH_I2C_Read... [12:21:14]Read from MH i2c: E2 FD 00 [12:21:14]MH_I2C_Read... [12:21:14]Read from MH i2c: E2 FD 00 97 00 00 C5 04 85 04 C1 04 6E 04 04 00 3E C2 01 00 69 04 A3 00 6F 04 04 00 BE C0 01 00 B1 04 05 00 25 DB 5A 83 01 70 04 05 00 D1 83 FD 48 01 72 04 04 00 54 57 5D 3A 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 D2 74 24 29 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 B5 7D 6D 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 80 01 00 00 B1 04 04 00 CC 60 FF 0F 70 04 04 00 CC 60 FF 0F 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 16 ED B2 01 EF 03 09 90 00 54 [12:21:14]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 3E C2 01 00 69 04 A3 00 6F 04 04 00 BE C0 01 00 B1 04 05 00 25 DB 5A 83 01 70 04 05 00 D1 83 FD 48 01 72 04 04 00 54 57 5D 3A 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 D2 74 24 29 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 B5 7D 6D 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 80 01 00 00 B1 04 04 00 CC 60 FF 0F 70 04 04 00 CC 60 FF 0F 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 16 ED B2 01 EF 03 09 90 00 [12:21:14]wFMCommunicate OK [12:21:14]wFMCommunicate request_size=4 [12:21:14]MH_SAM_APDU [12:21:14]CAPDU: 80 17 00 00 [12:21:14]Write to MH i2c: E2 08 00 98 00 80 17 00 00 00 00 00 00 18 [12:21:14]Write i2c OK [12:21:14]MH_I2C_Read... [12:21:14]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [12:21:14]Read from MH i2c: E2 [12:21:14]MH_I2C_Read... [12:21:14]Read from MH i2c: E2 FD 00 [12:21:14]MH_I2C_Read... [12:21:14]Read from MH i2c: E2 FD 00 98 00 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 50 3E 24 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 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 80 [12:21:14]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 50 3E 24 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 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 [12:21:14]wFMCommunicate OK [12:21:14]wFMCommunicate request_size=4 [12:21:14]MH_SAM_APDU [12:21:14]CAPDU: 80 17 00 00 [12:21:14]Write to MH i2c: E2 08 00 99 00 80 17 00 00 00 00 00 00 19 [12:21:14]Write i2c OK [12:21:14]MH_I2C_Read... [12:21:15]Read from MH i2c: E2 [12:21:15]MH_I2C_Read... [12:21:15]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [12:21:15]Read from MH i2c: E2 FD 00 [12:21:15]MH_I2C_Read... [12:21:15]Read from MH i2c: E2 FD 00 99 00 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 2B [12:21:15]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 [12:21:15]wFMCommunicate OK [12:21:15]wFMCommunicate request_size=4 [12:21:15]MH_SAM_APDU [12:21:15]CAPDU: 80 17 00 00 [12:21:15]Write to MH i2c: E2 08 00 9A 00 80 17 00 00 00 00 00 00 1A [12:21:15]Write i2c OK [12:21:15]MH_I2C_Read... [12:21:15]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [12:21:15]Read from MH i2c: E2 [12:21:15]MH_I2C_Read... [12:21:15]Read from MH i2c: E2 FD 00 [12:21:15]MH_I2C_Read... [12:21:15]Read from MH i2c: E2 FD 00 9A 00 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 A6 [12:21:15]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 [12:21:15]wFMCommunicate OK [12:21:15]wFMCommunicate request_size=4 [12:21:15]MH_SAM_APDU [12:21:15]CAPDU: 80 17 00 00 [12:21:15]Write to MH i2c: E2 08 00 9B 00 80 17 00 00 00 00 00 00 1B [12:21:15]Write i2c OK [12:21:15]MH_I2C_Read... [12:21:15]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [12:21:15]Read from MH i2c: E2 [12:21:15]MH_I2C_Read... [12:21:15]Read from MH i2c: E2 E2 00 [12:21:15]MH_I2C_Read... [12:21:15]Read from MH i2c: E2 E2 00 9B 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 F9 [12:21:15]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 [12:21:16]wFMCommunicate OK [12:21:16]SAM_PROTO_GetFMData done [12:21:16]requested_item fm.sale_refund.total is exist - process it [12:21:16]requested_item fm.buy.total is exist - process it [12:21:16]requested_item shift.sale.total is exist - process it [12:21:16]SAM_PROTO_GetShiftData [12:21:16]wFMCommunicate request_size=4 [12:21:16]MH_SAM_APDU [12:21:16]CAPDU: 80 13 02 00 [12:21:16]Write to MH i2c: E2 08 00 9C 00 80 13 02 00 00 00 00 00 1A [12:21:16]Write i2c OK [12:21:16]MH_I2C_Read... [12:21:16]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [12:21:16]Read from MH i2c: E2 [12:21:16]MH_I2C_Read... [12:21:16]Read from MH i2c: E2 FD 00 [12:21:16]MH_I2C_Read... [12:21:16]Read from MH i2c: E2 FD 00 9C 00 00 B9 04 AA 04 B5 04 6E 04 04 00 43 00 00 00 69 04 9B 00 6F 04 04 00 41 00 00 00 B1 04 03 00 54 90 52 70 04 03 00 DC 76 4D 72 04 03 00 78 19 05 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 98 C4 08 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 01 BB EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 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 02 00 00 00 B1 04 03 00 90 D5 30 70 04 03 00 90 D5 30 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 99 2F 05 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 17 [12:21:16]RAPDU: B9 04 AA 04 B5 04 6E 04 04 00 43 00 00 00 69 04 9B 00 6F 04 04 00 41 00 00 00 B1 04 03 00 54 90 52 70 04 03 00 DC 76 4D 72 04 03 00 78 19 05 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 98 C4 08 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 01 BB EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 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 02 00 00 00 B1 04 03 00 90 D5 30 70 04 03 00 90 D5 30 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 99 2F 05 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 [12:21:16]wFMCommunicate OK [12:21:16]wFMCommunicate request_size=4 [12:21:16]MH_SAM_APDU [12:21:16]CAPDU: 80 17 00 00 [12:21:16]Write to MH i2c: E2 08 00 9D 00 80 17 00 00 00 00 00 00 1D [12:21:16]Write i2c OK [12:21:16]MH_I2C_Read... [12:21:17]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [12:21:17]Read from MH i2c: E2 [12:21:17]MH_I2C_Read... [12:21:17]Read from MH i2c: E2 FD 00 [12:21:17]MH_I2C_Read... [12:21:17]Read from MH i2c: E2 FD 00 9D 00 00 03 0B 00 F6 03 01 00 01 F7 03 02 00 A2 6E EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 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 90 00 EC [12:21:17]RAPDU: 03 0B 00 F6 03 01 00 01 F7 03 02 00 A2 6E EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 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 90 00 [12:21:17]wFMCommunicate OK [12:21:17]wFMCommunicate request_size=4 [12:21:17]MH_SAM_APDU [12:21:17]CAPDU: 80 17 00 00 [12:21:17]Write to MH i2c: E2 08 00 9E 00 80 17 00 00 00 00 00 00 1E [12:21:17]Write i2c OK [12:21:17]MH_I2C_Read... [12:21:17]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [12:21:17]Read from MH i2c: E2 [12:21:17]MH_I2C_Read... [12:21:17]Read from MH i2c: E2 FD 00 [12:21:17]MH_I2C_Read... [12:21:17]Read from MH i2c: E2 FD 00 9E 00 00 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 90 00 46 [12:21:17]RAPDU: 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 90 00 [12:21:17]wFMCommunicate OK [12:21:17]wFMCommunicate request_size=4 [12:21:17]MH_SAM_APDU [12:21:17]CAPDU: 80 17 00 00 [12:21:17]Write to MH i2c: E2 08 00 9F 00 80 17 00 00 00 00 00 00 1F [12:21:17]Write i2c OK [12:21:17]MH_I2C_Read... [12:21:17]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [12:21:17]Read from MH i2c: E2 [12:21:17]MH_I2C_Read... [12:21:17]Read from MH i2c: E2 FD 00 [12:21:17]MH_I2C_Read... [12:21:17]Read from MH i2c: E2 FD 00 9F 00 00 EF 03 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 90 00 97 [12:21:18]RAPDU: EF 03 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 OFD Sender: No OFD packet to send [12:21:18]00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 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:21:18]wFMCommunicate OK [12:21:18]wFMCommunicate request_size=4 [12:21:18]MH_SAM_APDU [12:21:18]CAPDU: 80 17 00 00 [12:21:18]Write to MH i2c: E2 08 00 A0 00 80 17 00 00 00 00 00 00 20 [12:21:18]Write i2c OK [12:21:18]MH_I2C_Read... [12:21:18]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 211! [12:21:18]Read from MH i2c: E2 [12:21:18]MH_I2C_Read... [12:21:18]Read from MH i2c: E2 D6 00 [12:21:18]MH_I2C_Read... [12:21:18]Read from MH i2c: E2 D6 00 A0 00 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 02 [12:21:18]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 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [12:21:18]wFMCommunicate OK [12:21:18]SAM_PROTO_GetShiftData done [12:21:18]requested_item shift.sale.total_cash is exist - process it [12:21:18]requested_item shift.sale_refund.total is exist - process it [12:21:18]requested_item shift.sale_refund.total_cash is exist - process it [12:21:18]requested_item shift.buy.total is exist - process it [12:21:18]requested_item shift.buy.total_cash is exist - process it [12:21:18]produce_requested_data done [12:21:18]produce_requested_data return {"fm.sale.total":64987369.33,"fm.sale_refund.total":2683947.00,"fm.buy.total":0.00,"shift.sale.total":54109.00,"shift.sale.total_cash":50767.00,"shift.sale_refund.total":32004.00,"shift.sale_refund.total_cash":32004.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [12:21:18]process_action_free get_value [12:21:18]json_value_free [12:21:18]json_value_free done [12:21:18]process_json_proto returns [12:21:18]Send response to host [12:21:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":64987369.33,"fm.sale_refund.total":2683947.00,"fm.buy.total":0.00,"shift.sale.total":54109.00,"shift.sale.total_cash":50767.00,"shift.sale_refund.total":32004.00,"shift.sale_refund.total_cash":32004.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [12:21:18]free response buf [12:21:18]execute_script done [12:21:18]execute_script returns [12:21:18]free content buf [12:21:18]Sock 5.Close socket [12:21:18]Sock 5.Thread stoped [12:21:19]accept exits with 6 [12:21:19]New connection [12:21:19]New thread 3066813796 created [12:21:19]Thread 3066957156 joined [12:21:19]Waiting for new connection... [12:21:19] Sock 6.Parse request [12:21:19]Sock 6.Check first char [12:21:19]Sock 6.First char is OK [12:21:19]request: POST /json_proto HTTP/1.0 [12:21:19]Method: POST [12:21:19]URL: /json_proto [12:21:19]Method is POST - this is cgi request [12:21:19]url: /json_proto [12:21:19]query_string will be loaded in cgi processing [12:21:19]execute_cgi json_proto POST (null) [12:21:19]execute_cgi path=json_proto method=POST [12:21:19]POST find Content-Length [12:21:19]Host: 172.17.41.136:8080 [12:21:19]Content-Length: 614 [12:21:19]Content-Type: application/json [12:21:19] [12:21:19]POST finish read [12:21:19]Found Content-Length = 614 [12:21:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)344381", "tax_sys" : 0, "items" : [ { "code": "4870001570071", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 1\u043B", "price" : 110.00, "quantity" : 1.000, "sum" : 110.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 110.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:21:19]execute_script... [12:21:19]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)344381", "tax_sys" : 0, "items" : [ { "code": "4870001570071", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 1\u043B", "price" : 110.00, "quantity" : 1.000, "sum" : 110.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 110.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:21:19]POST & json_proto [12:21:19]process_json_proto [12:21:19]json parsed OK: [12:21:19]protocol is kg_v1.0 [12:21:19]action value=close_receipt [12:21:19]process_action close_receipt [12:21:19]cmd_close_receipt [12:21:19]MH_GetDate [12:21:19]Write to MH i2c: F0 00 00 A1 00 90 [12:21:19]Write i2c OK [12:21:19]MH_I2C_Read... [12:21:19]Read from MH i2c: F0 [12:21:19]MH_I2C_Read... [12:21:19]Read from MH i2c: F0 09 00 [12:21:19]MH_I2C_Read... [12:21:19]Read from MH i2c: F0 09 00 A1 00 00 3F 00 F4 66 1B D0 5A 64 DB [12:21:19]GetLastDocTimeStamp 1727266857 [12:21:19]current date 1727266879 [12:21:19]FM_GetShiftState [12:21:19]SAM_PROTO_GetShiftState [12:21:19]wFMCommunicate request_size=4 [12:21:19]MH_SAM_APDU [12:21:19]CAPDU: 80 13 01 00 [12:21:19]Write to MH i2c: E2 08 00 A2 00 80 13 01 00 00 00 00 00 1F [12:21:19]Write i2c OK [12:21:19]MH_I2C_Read... [12:21:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:21:19]Read from MH i2c: E2 [12:21:19]MH_I2C_Read... [12:21:19]Read from MH i2c: E2 0E 00 [12:21:19]MH_I2C_Read... [12:21:19]Read from MH i2c: E2 0E 00 A2 00 00 09 00 01 63 60 F3 66 00 00 00 00 90 00 47 [12:21:19]RAPDU: 09 00 01 63 60 F3 66 00 00 00 00 90 00 [12:21:19]wFMCommunicate OK [12:21:19]SAM_PROTO_GetShiftState done [12:21:19]FM_GetShiftState done [12:21:19]opened in 1727225955 [12:21:19]opened+sec_in_day 1727312355 [12:21:19]quantity*price = 11000 [12:21:19]sum+1 = 11001 [12:21:19]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 110.00 НСП 1% : 0.97 НДС 12% : 11.68 Наличными: 110.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 68 25.09.2024 12:21 Смена: 474 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 116212 ФПД: 253824789500546 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240925T122120&type=1&operation_type=1&fn_number=0000000000871830&fd_number=116212&fm=253824789500546&tin=02508201610067®Number=0000000000091831&sum=11000 0 [12:21:21]StoreToDocumentArchive [12:21:21]shift 474 fd 116212 [12:21:21]save to /storage/0474/doc_00116212 [12:21:21]save last doc name /storage/0474/doc_00116212 to /storage/kkm_last_doc_name [12:21:21]save OK [12:21:21]Clear old archive folders... [12:21:21]ProcessDocumentItem done err = 0, tmpTLVsize=266 [12:21:21]tlvbuf is 013105D0 [12:21:21]SAM_PROTO_ClearQueue [12:21:21]wFMCommunicate request_size=4 [12:21:21]MH_SAM_APDU [12:21:21]CAPDU: 80 09 00 00 [12:21:21]Write to MH i2c: E2 08 00 AF 00 80 09 00 00 00 00 00 00 21 [12:21:21]Write i2c OK [12:21:21]MH_I2C_Read... [12:21:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:21:21]Read from MH i2c: E2 [12:21:21]MH_I2C_Read... [12:21:21]Read from MH i2c: E2 03 00 [12:21:21]MH_I2C_Read... [12:21:21]Read from MH i2c: E2 03 00 AF 00 00 90 00 23 [12:21:21]RAPDU: 90 00 [12:21:21]wFMCommunicate OK [12:21:21]SAM_PROTO_ClearQueue done [12:21:21]KKMCreateOFDPacket [12:21:21]OFDProtocolAddRootSTLVToBuf [12:21:21]FM_MakeSignedData [12:21:21]FM_MakeSignedData [12:21:21]SAM_PROTO_SignData [12:21:21]wFMCommunicate request_size=4 [12:21:21]MH_SAM_APDU [12:21:21]CAPDU: 80 0D 01 02 [12:21:21]Write to MH i2c: E2 08 00 B0 00 80 0D 01 02 00 00 00 00 29 [12:21:21]Write i2c OK [12:21:21]MH_I2C_Read... [12:21:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:21:21]Read from MH i2c: E2 [12:21:21]MH_I2C_Read... [12:21:21]Read from MH i2c: E2 03 00 [12:21:21]MH_I2C_Read... [12:21:21]Read from MH i2c: E2 03 00 B0 00 00 90 00 24 [12:21:21]RAPDU: 90 00 [12:21:21]wFMCommunicate OK [12:21:21]wFMCommunicate request_size=255 [12:21:21]MH_SAM_APDU [12:21:21]CAPDU: 80 0D 02 02 FA 03 00 0A 01 1E 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 2A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 61 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 90 04 00 00 00 00 07 04 06 00 F8 2A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 40 00 F4 66 0E 04 04 00 DA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 [12:21:21]Write to MH i2c: E2 02 01 B1 00 80 0D 02 02 FA 00 03 00 0A 01 1E 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 2A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 61 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 90 04 00 00 00 00 07 04 06 00 F8 2A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 40 00 F4 66 0E 04 04 00 DA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 00 00 56 [12:21:21]Write i2c OK [12:21:21]MH_I2C_Read... [12:21:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:21:22]Read from MH i2c: E2 [12:21:22]MH_I2C_Read... [12:21:22]Read from MH i2c: E2 03 00 [12:21:22]MH_I2C_Read... [12:21:22]Read from MH i2c: E2 03 00 B1 00 00 90 00 25 [12:21:22]RAPDU: 90 00 [12:21:22]wFMCommunicate OK [12:21:22]wFMCommunicate request_size=25 [12:21:22]MH_SAM_APDU [12:21:22]CAPDU: 80 0D 02 02 14 33 30 10 04 04 00 F4 C5 01 00 35 04 06 00 E6 DA 30 69 D2 82 [12:21:22]Write to MH i2c: E2 1C 00 B2 00 80 0D 02 02 14 00 33 30 10 04 04 00 F4 C5 01 00 35 04 06 00 E6 DA 30 69 D2 82 00 00 75 [12:21:22]Write i2c OK [12:21:22]MH_I2C_Read... [12:21:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:21:22]Read from MH i2c: E2 [12:21:22]MH_I2C_Read... [12:21:22]Read from MH i2c: E2 03 00 [12:21:22]MH_I2C_Read... [12:21:22]Read from MH i2c: E2 03 00 B2 00 00 90 00 26 [12:21:22]RAPDU: 90 00 [12:21:22]wFMCommunicate OK [12:21:22]wFMCommunicate request_size=4 [12:21:22]MH_SAM_APDU [12:21:22]CAPDU: 80 0D 03 02 [12:21:22]Write to MH i2c: E2 08 00 B3 00 80 0D 03 02 00 00 00 00 2E [12:21:22]Write i2c OK [12:21:22]MH_I2C_Read... [12:21:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:21:22]Read from MH i2c: E2 [12:21:22]MH_I2C_Read... [12:21:22]Read from MH i2c: E2 0B 00 [12:21:22]MH_I2C_Read... [12:21:22]Read from MH i2c: E2 0B 00 B3 00 00 B3 B9 8E 61 1E AB 4D DB 90 00 7B [12:21:22]RAPDU: B3 B9 8E 61 1E AB 4D DB 90 00 [12:21:22]wFMCommunicate OK [12:21:22]SAM_PROTO_SignData done [12:21:22]FM_MakeSignedData done [12:21:22]CreateOFDProtocolMessage [12:21:22]wFMCommunicate request_size=4 [12:21:22]MH_SAM_APDU [12:21:22]CAPDU: 80 11 00 00 [12:21:22]Write to MH i2c: E2 08 00 B4 00 80 11 00 00 00 00 00 00 2E [12:21:22]Write i2c OK [12:21:22]MH_I2C_Read... [12:21:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:21:22]Read from MH i2c: E2 [12:21:22]MH_I2C_Read... [12:21:22]Read from MH i2c: E2 17 00 [12:21:22]MH_I2C_Read... [12:21:22]Read from MH i2c: E2 17 00 B4 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 7C [12:21:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [12:21:22]wFMCommunicate OK [12:21:22]CreateOFDProtocolMessage done [12:21:22]OFDSenderStorePacket 116212 [12:21:22]StoreOFDPacket docnum=116212 [12:21:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 1E 01 00 00 03 9C 16 01 99 41 5A 03 01 00 03 00 0A 01 1E 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 2A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 61 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 90 04 00 00 00 00 07 04 06 00 F8 2A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 40 00 F4 66 0E 04 04 00 DA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 F4 C5 01 00 35 04 06 00 E6 DA 30 69 D2 82 B3 B9 8E 61 1E AB 4D DB [12:21:22]CheckFolder [12:21:22]dirname=/storage/ofd_packets [12:21:22]CheckFolder done [12:21:22]ProducePacketName [12:21:22]name=ofd_packets/00116212 [12:21:22]NVStorageSaveData ofd_packets/00116212 [12:21:22]File name is /storage/ofd_packets/00116212 [12:21:22]Write 316 bytes [12:21:22]NVStorageSaveData done [12:21:22]OFDSenderStorePacket done [12:21:22]KKMCreateOFDPacket done [12:21:22]NVStorageSaveData kkm_last_timestamp [12:21:22]File name is /storage/kkm_last_timestamp [12:21:22]Write 4 bytes [12:21:22]NVStorageSaveData done [12:21:22]ExternCall_PrintAddStr [12:21:22]wPrintStart [12:21:22]Write to MH i2c: 01 00 00 B5 00 B5 [12:21:22]Write i2c OK [12:21:22]MH_I2C_Read... [12:21:22]Read from MH i2c: 01 [12:21:22]MH_I2C_Read... [12:21:22]Read from MH i2c: 01 07 00 [12:21:22]MH_I2C_Read... [12:21:22]Read from MH i2c: 01 07 00 B5 00 00 00 00 00 00 FF 0F CA [12:21:22]RasterBufferAndPrint [12:21:22]line Счет N : (3)344381 [12:21:22]line ИНН: 02508201610067 [12:21:22]line Контрольно-Кассовый Чек [12:21:22]line ПРОДАЖА [12:21:22]line Товар: 4870001570071 [12:21:22]line Напиток Pepsi 1л [12:21:22]line 1.000 * 110.00 [12:21:22]line = 110.00 [12:21:22]line НДС 12% НСП 1% [12:21:22]line > о реализуемом товаре [12:21:22]line ИТОГО: 110.00 [12:21:22]line НСП 1% : 0.97 [12:21:22]line НДС 12% : 11.68 [12:21:22]line Наличными: 110.00 [12:21:22]line Безнал.: 0.00 [12:21:22]line Место: АЗС № 90 "Партнер Нефть" [12:21:22]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [12:21:22]line СНО: Общий режим [12:21:22]line Чек 68 25.09.2024 12:21 [12:21:22]line Смена: 474 ФФД: 1.0 [12:21:22]line ЗНМ: 0300000120 [12:21:22]line РНМ: 0000000000091831 [12:21:22]line Версия ККМ: 001 [12:21:22]line ФМ: 0000000000871830 [12:21:22]line ФД: 116212 [12:21:22]line ФПД: 253824789500546 [12:21:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240925T122120&type=1&operation_type=1&fn_number=0000000000871830&fd_number=116212&fm=253824789500546&tin=02508201610067®Number=0000000000091831&sum=11000 [12:21:22]line 0 [12:21:22]written 0, free lines is 4095 [12:21:22]OFD Sender: Processing packet 116212 [packets to send 482, broken 481] [12:21:22]ProducePacketName [12:21:22]name=ofd_packets/00116212 [12:21:22]OFD Sender: To server: pG, [12:21:22]CommunicateWithHost lk.salyk.kg:30040 [12:21:22]ConnectInit lk.salyk.kg [12:21:22]Connected sock=7 [12:21:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 1E 01 00 00 03 9C 16 01 99 41 5A 03 01 00 03 00 0A 01 1E 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 2A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 61 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 90 04 00 00 00 00 07 04 06 00 F8 2A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 40 00 F4 66 0E 04 04 00 DA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 F4 C5 01 00 35 04 06 00 E6 DA 30 69 D2 82 B3 B9 8E 61 1E AB 4D DB [12:21:22]Write to MH i2c: 01 00 00 DC 00 DC [12:21:22]Write i2c OK [12:21:22]MH_I2C_Read... [12:21:22]Read from MH i2c: 01 [12:21:22]MH_I2C_Read... [12:21:22]Read from MH i2c: 01 07 00 [12:21:22]MH_I2C_Read... [12:21:22]Read from MH i2c: 01 07 00 DC 00 00 00 00 00 00 D2 0C C1 [12:21:22]RasterBufferAndPrint [12:21:22]line [12:21:22]line [12:21:22]line [12:21:22]line [12:21:22]line [12:21:22]written 0, free lines is 3298 [12:21:23]MH_Cut [12:21:23]Write to MH i2c: D1 01 00 E3 00 01 B5 [12:21:23]Write i2c OK [12:21:23]MH_I2C_Read... [12:21:23]Read from MH i2c: D1 [12:21:23]MH_I2C_Read... [12:21:23]Read from MH i2c: D1 01 00 [12:21:23]MH_I2C_Read... [12:21:23]Read from MH i2c: D1 01 00 E3 00 00 B4 [12:21:23]Write to MH i2c: 01 00 00 E4 00 E4 [12:21:23]Write i2c OK [12:21:23]MH_I2C_Read... [12:21:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 9A A9 47 00 F0 9F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 F4 C5 01 00 F4 03 04 00 7D A5 F3 66 B6 04 01 00 00 A2 57 74 38 F1 99 0B 83 [12:21:23]CommunicateWithHost err = 0 [12:21:23]CheckOFDResponse [12:21:23]1017 (14) - 77093643461234 [12:21:23]1041 (16) - 0000000000871830 [12:21:23]1040 (4) - 116212 [12:21:23]1012 (4) - 25.09.2024 05:54 [12:21:23]1206 (1) - 0 [12:21:23]OFD Sender: Remove packet 116212 [12:21:23]ProducePacketName [12:21:23]name=ofd_packets/00116212 [12:21:23]NVStorageDeleteData [12:21:23]OFD Sender: No OFD packet to send [12:21:24]*** Cut start [12:21:24]*** Partial cut [12:21:24]*** CUTSNS_PIN = 1 [12:21:24]*** CUTSNS_PIN = 0 [12:21:24]*** Brake cut motor [12:21:24]Read from MH i2c: 01 [12:21:24]MH_I2C_Read... [12:21:24]*** Stop cut motor [12:21:24]*** Cut end [12:21:24]Read from MH i2c: 01 07 00 [12:21:24]MH_I2C_Read... [12:21:24]Read from MH i2c: 01 07 00 E4 00 00 00 00 00 00 FF 0F F9 [12:21:24]process_action close_receipt done [12:21:24]requested_data is exist [12:21:24]produce_requested_data [12:21:24]requested_item fm.sn is exist - process it [12:21:24]wFMCommunicate request_size=4 [12:21:24]MH_SAM_APDU [12:21:24]CAPDU: 80 11 00 00 [12:21:24]Write to MH i2c: E2 08 00 E5 00 80 11 00 00 00 00 00 00 5F [12:21:24]Write i2c OK [12:21:24]MH_I2C_Read... [12:21:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:21:24]Read from MH i2c: E2 [12:21:24]MH_I2C_Read... [12:21:24]Read from MH i2c: E2 17 00 [12:21:24]MH_I2C_Read... [12:21:24]Read from MH i2c: E2 17 00 E5 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 AD [12:21:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [12:21:24]wFMCommunicate OK [12:21:24]requested_item fd.num is exist - process it [12:21:24]SAM_PROTO_GetFieldsCounters [12:21:24]wFMCommunicate request_size=4 [12:21:24]MH_SAM_APDU [12:21:24]CAPDU: 80 13 00 00 [12:21:24]Write to MH i2c: E2 08 00 E6 00 80 13 00 00 00 00 00 00 62 [12:21:24]Write i2c OK [12:21:24]MH_I2C_Read... [12:21:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:21:25]Read from MH i2c: E2 [12:21:25]MH_I2C_Read... [12:21:25]Read from MH i2c: E2 62 00 [12:21:25]MH_I2C_Read... [12:21:25]Read from MH i2c: E2 62 00 E6 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 F4 C5 01 00 0E 04 04 00 DA 01 00 00 12 04 04 00 44 00 00 00 5E 04 04 00 44 00 00 00 57 04 04 00 45 00 00 00 19 04 04 00 00 00 00 00 90 00 DC [12:21:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 F4 C5 01 00 0E 04 04 00 DA 01 00 00 12 04 04 00 44 00 00 00 5E 04 04 00 44 00 00 00 57 04 04 00 45 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:21:25]wFMCommunicate OK [12:21:25]SAM_PROTO_GetFieldsCounters done [12:21:25]requested_item shift.num is exist - process it [12:21:25]requested_item shift.opened is exist - process it [12:21:25]req_shift_opened [12:21:25]FM_GetShiftState [12:21:25]SAM_PROTO_GetShiftState [12:21:25]wFMCommunicate request_size=4 [12:21:25]MH_SAM_APDU [12:21:25]CAPDU: 80 13 01 00 [12:21:25]Write to MH i2c: E2 08 00 E7 00 80 13 01 00 00 00 00 00 64 [12:21:25]Write i2c OK [12:21:25]MH_I2C_Read... [12:21:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:21:25]Read from MH i2c: E2 [12:21:25]MH_I2C_Read... [12:21:25]Read from MH i2c: E2 0E 00 [12:21:25]MH_I2C_Read... [12:21:25]Read from MH i2c: E2 0E 00 E7 00 00 09 00 01 63 60 F3 66 00 00 00 00 90 00 8C [12:21:25]RAPDU: 09 00 01 63 60 F3 66 00 00 00 00 90 00 [12:21:25]wFMCommunicate OK [12:21:25]SAM_PROTO_GetShiftState done [12:21:25]FM_GetShiftState done [12:21:25]req_shift_opened done [12:21:25]requested_item shift.open_date is exist - process it [12:21:25]req_shift_open_date [12:21:25]req_shift_open_date done [12:21:25]produce_requested_data done [12:21:25]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":116212,"shift.num":474,"shift.opened":1,"shift.open_date":1727225955} [12:21:25]process_action_free close_receipt [12:21:25]json_value_free [12:21:25]json_value_free done [12:21:25]process_json_proto returns [12:21:25]Send response to host [12:21:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":116212,"shift.num":474,"shift.opened":1,"shift.open_date":1727225955}}} [12:21:25]free response buf [12:21:25]execute_script done [12:21:25]execute_script returns [12:21:25]free content buf [12:21:25]Sock 6.Close socket [12:21:25]Sock 6.Thread stoped [12:21:28]accept exits with 5 [12:21:28]New connection [12:21:28]New thread 3066957156 created [12:21:28]Thread 3066813796 joined [12:21:28]Waiting for new connection... [12:21:28] Sock 5.Parse request [12:21:28]Sock 5.Check first char [12:21:28]Sock 5.First char is OK [12:21:28]request: POST /json_proto HTTP/1.0 [12:21:28]Method: POST [12:21:28]URL: /json_proto [12:21:28]Method is POST - this is cgi request [12:21:28]url: /json_proto [12:21:28]query_string will be loaded in cgi processing [12:21:28]execute_cgi json_proto POST (null) [12:21:28]execute_cgi path=json_proto method=POST [12:21:28]POST find Content-Length [12:21:28]Host: 172.17.41.136:8080 [12:21:28]Content-Length: 728 [12:21:28]Content-Type: application/json [12:21:28] [12:21:28]POST finish read [12:21:28]Found Content-Length = 728 [12:21:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)344382", "tax_sys" : 0, "items" : [ { "code": "5449000027474", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A FuzeTea \u0437\u0435\u043B \u0447\u0430\u0439 \u043C\u0430\u043D\u0433\u043E,\u0440\u043E\u043C\u0430\u0448\u043A\u0430 1\u043B", "price" : 105.00, "quantity" : 1.000, "sum" : 105.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 105.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:21:28]execute_script... [12:21:28]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)344382", "tax_sys" : 0, "items" : [ { "code": "5449000027474", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A FuzeTea \u0437\u0435\u043B \u0447\u0430\u0439 \u043C\u0430\u043D\u0433\u043E,\u0440\u043E\u043C\u0430\u0448\u043A\u0430 1\u043B", "price" : 105.00, "quantity" : 1.000, "sum" : 105.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 105.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:21:28]POST & json_proto [12:21:28]process_json_proto [12:21:28]json parsed OK: [12:21:28]protocol is kg_v1.0 [12:21:28]action value=close_receipt [12:21:28]process_action close_receipt [12:21:28]cmd_close_receipt [12:21:28]MH_GetDate [12:21:28]Write to MH i2c: F0 00 00 E8 00 D7 [12:21:28]Write i2c OK [12:21:28]MH_I2C_Read... [12:21:28]Read from MH i2c: F0 [12:21:28]MH_I2C_Read... [12:21:28]Read from MH i2c: F0 09 00 [12:21:28]MH_I2C_Read... [12:21:28]Read from MH i2c: F0 09 00 E8 00 00 48 00 F4 66 1B D0 5A 64 2B [12:21:28]GetLastDocTimeStamp 1727266880 [12:21:28]current date 1727266888 [12:21:28]FM_GetShiftState [12:21:28]SAM_PROTO_GetShiftState [12:21:28]wFMCommunicate request_size=4 [12:21:28]MH_SAM_APDU [12:21:28]CAPDU: 80 13 01 00 [12:21:28]Write to MH i2c: E2 08 00 E9 00 80 13 01 00 00 00 00 00 66 [12:21:28]Write i2c OK [12:21:28]MH_I2C_Read... [12:21:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:21:28]Read from MH i2c: E2 [12:21:28]MH_I2C_Read... [12:21:28]Read from MH i2c: E2 0E 00 [12:21:28]MH_I2C_Read... [12:21:28]Read from MH i2c: E2 0E 00 E9 00 00 09 00 01 63 60 F3 66 00 00 00 00 90 00 8E [12:21:28]RAPDU: 09 00 01 63 60 F3 66 00 00 00 00 90 00 [12:21:28]wFMCommunicate OK [12:21:28]SAM_PROTO_GetShiftState done [12:21:28]FM_GetShiftState done [12:21:28]opened in 1727225955 [12:21:28]opened+sec_in_day 1727312355 [12:21:28]quantity*price = 10500 [12:21:28]sum+1 = 10501 [12:21:28]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 105.00 НСП 1% : 0.93 НДС 12% : 11.15 Наличными: 105.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 69 25.09.2024 12:21 Смена: 474 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 116213 ФПД: 210832502057452 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240925T122129&type=1&operation_type=1&fn_number=0000000000871830&fd_number=116213&fm=210832502057452&tin=02508201610067®Number=0000000000091831&sum=10500 0 [12:21:30]StoreToDocumentArchive [12:21:30]shift 474 fd 116213 [12:21:30]save to /storage/0474/doc_00116213 [12:21:30]save last doc name /storage/0474/doc_00116213 to /storage/kkm_last_doc_name [12:21:30]save OK [12:21:30]Clear old archive folders... [12:21:30]ProcessDocumentItem done err = 0, tmpTLVsize=308 [12:21:30]tlvbuf is 0138F3F0 [12:21:30]SAM_PROTO_ClearQueue [12:21:30]wFMCommunicate request_size=4 [12:21:30]MH_SAM_APDU [12:21:30]CAPDU: 80 09 00 00 [12:21:30]Write to MH i2c: E2 08 00 F6 00 80 09 00 00 00 00 00 00 68 [12:21:30]Write i2c OK [12:21:30]MH_I2C_Read... [12:21:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:21:30]Read from MH i2c: E2 [12:21:30]MH_I2C_Read... [12:21:30]Read from MH i2c: E2 03 00 [12:21:30]MH_I2C_Read... [12:21:30]Read from MH i2c: E2 03 00 F6 00 00 90 00 6A [12:21:30]RAPDU: 90 00 [12:21:30]wFMCommunicate OK [12:21:30]SAM_PROTO_ClearQueue done [12:21:30]KKMCreateOFDPacket [12:21:30]OFDProtocolAddRootSTLVToBuf [12:21:30]FM_MakeSignedData [12:21:30]FM_MakeSignedData [12:21:30]SAM_PROTO_SignData [12:21:30]wFMCommunicate request_size=4 [12:21:30]MH_SAM_APDU [12:21:30]CAPDU: 80 0D 01 02 [12:21:30]Write to MH i2c: E2 08 00 F7 00 80 0D 01 02 00 00 00 00 70 [12:21:30]Write i2c OK [12:21:30]MH_I2C_Read... [12:21:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:21:30]Read from MH i2c: E2 [12:21:30]MH_I2C_Read... [12:21:30]Read from MH i2c: E2 03 00 [12:21:30]MH_I2C_Read... [12:21:30]Read from MH i2c: E2 03 00 F7 00 00 90 00 6B [12:21:30]RAPDU: 90 00 [12:21:30]wFMCommunicate OK [12:21:30]wFMCommunicate request_size=255 [12:21:30]MH_SAM_APDU [12:21:30]CAPDU: 80 0D 02 02 FA 03 00 34 01 1E 04 01 00 01 23 04 86 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 37 34 37 34 06 04 42 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 20 D0 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC D0 B0 D1 88 D0 BA D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 29 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5B 04 00 00 00 00 07 04 06 00 04 29 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 00 00 00 F4 03 04 00 49 00 F4 66 0E 04 04 00 DA 01 00 00 B9 [12:21:30]Write to MH i2c: E2 02 01 F8 00 80 0D 02 02 FA 00 03 00 34 01 1E 04 01 00 01 23 04 86 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 37 34 37 34 06 04 42 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 20 D0 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC D0 B0 D1 88 D0 BA D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 29 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5B 04 00 00 00 00 07 04 06 00 04 29 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 00 00 00 F4 03 04 00 49 00 F4 66 0E 04 04 00 DA 01 00 00 B9 00 00 33 [12:21:30]Write i2c OK [12:21:30]MH_I2C_Read... [12:21:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:21:31]Read from MH i2c: E2 [12:21:31]MH_I2C_Read... [12:21:31]Read from MH i2c: E2 03 00 [12:21:31]MH_I2C_Read... [12:21:31]Read from MH i2c: E2 03 00 F8 00 00 90 00 6C [12:21:31]RAPDU: 90 00 [12:21:31]wFMCommunicate OK [12:21:31]wFMCommunicate request_size=67 [12:21:31]MH_SAM_APDU [12:21:31]CAPDU: 80 0D 02 02 3E 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 F5 C5 01 00 35 04 06 00 BF C0 44 64 69 EC [12:21:31]Write to MH i2c: E2 46 00 F9 00 80 0D 02 02 3E 00 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 F5 C5 01 00 35 04 06 00 BF C0 44 64 69 EC 00 00 FA [12:21:31]Write i2c OK [12:21:31]MH_I2C_Read... [12:21:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:21:31]Read from MH i2c: E2 [12:21:31]MH_I2C_Read... [12:21:31]Read from MH i2c: E2 03 00 [12:21:31]MH_I2C_Read... [12:21:31]Read from MH i2c: E2 03 00 F9 00 00 90 00 6D [12:21:31]RAPDU: 90 00 [12:21:31]wFMCommunicate OK [12:21:31]wFMCommunicate request_size=4 [12:21:31]MH_SAM_APDU [12:21:31]CAPDU: 80 0D 03 02 [12:21:31]Write to MH i2c: E2 08 00 FA 00 80 0D 03 02 00 00 00 00 75 [12:21:31]Write i2c OK [12:21:31]MH_I2C_Read... [12:21:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:21:31]Read from MH i2c: E2 [12:21:31]MH_I2C_Read... [12:21:31]Read from MH i2c: E2 0B 00 [12:21:31]MH_I2C_Read... [12:21:31]Read from MH i2c: E2 0B 00 FA 00 00 75 9F 45 4C D3 EE DB 9E 90 00 55 [12:21:31]RAPDU: 75 9F 45 4C D3 EE DB 9E 90 00 [12:21:31]wFMCommunicate OK [12:21:31]SAM_PROTO_SignData done [12:21:31]FM_MakeSignedData done [12:21:31]CreateOFDProtocolMessage [12:21:31]wFMCommunicate request_size=4 [12:21:31]MH_SAM_APDU [12:21:31]CAPDU: 80 11 00 00 [12:21:31]Write to MH i2c: E2 08 00 FB 00 80 11 00 00 00 00 00 00 75 [12:21:31]Write i2c OK [12:21:31]MH_I2C_Read... [12:21:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:21:31]Read from MH i2c: E2 [12:21:31]MH_I2C_Read... [12:21:31]Read from MH i2c: E2 17 00 [12:21:31]MH_I2C_Read... [12:21:31]Read from MH i2c: E2 17 00 FB 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 C3 [12:21:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [12:21:31]wFMCommunicate OK [12:21:31]CreateOFDProtocolMessage done [12:21:31]OFDSenderStorePacket 116213 [12:21:31]StoreOFDPacket docnum=116213 [12:21:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 48 01 00 00 DF D6 40 01 51 F8 5A 03 01 00 03 00 34 01 1E 04 01 00 01 23 04 86 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 37 34 37 34 06 04 42 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 20 D0 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC D0 B0 D1 88 D0 BA D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 29 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5B 04 00 00 00 00 07 04 06 00 04 29 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 00 00 00 F4 03 04 00 49 00 F4 66 0E 04 04 00 DA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 F5 C5 01 00 35 04 06 00 BF C0 44 64 69 EC 75 9F 45 4C D3 EE DB 9E [12:21:31]CheckFolder [12:21:31]dirname=/storage/ofd_packets [12:21:31]CheckFolder done [12:21:31]ProducePacketName [12:21:31]name=ofd_packets/00116213 [12:21:31]NVStorageSaveData ofd_packets/00116213 [12:21:31]File name is /storage/ofd_packets/00116213 [12:21:31]Write 358 bytes [12:21:31]NVStorageSaveData done [12:21:31]OFDSenderStorePacket done [12:21:31]KKMCreateOFDPacket done [12:21:31]NVStorageSaveData kkm_last_timestamp [12:21:31]File name is /storage/kkm_last_timestamp [12:21:31]Write 4 bytes [12:21:31]NVStorageSaveData done [12:21:31]ExternCall_PrintAddStr [12:21:31]wPrintStart [12:21:31]Write to MH i2c: 01 00 00 FC 00 FC [12:21:31]Write i2c OK [12:21:31]MH_I2C_Read... [12:21:31]Read from MH i2c: 01 [12:21:31]MH_I2C_Read... [12:21:31]Read from MH i2c: 01 07 00 [12:21:31]MH_I2C_Read... [12:21:31]Read from MH i2c: 01 07 00 FC 00 00 00 00 00 00 FF 0F 11 [12:21:31]RasterBufferAndPrint [12:21:31]line Счет N : (3)344382 [12:21:31]line ИНН: 02508201610067 [12:21:31]line Контрольно-Кассовый Чек [12:21:31]line ПРОДАЖА [12:21:31]line Товар: 5449000027474 [12:21:31]line Напиток FuzeTea зел чай манго,ромашка 1л [12:21:31]line 1.000 * 105.00 [12:21:31]line = 105.00 [12:21:31]line НДС 12% НСП 1% [12:21:31]line > о реализуемом товаре [12:21:31]line ИТОГО: 105.00 [12:21:31]line НСП 1% : 0.93 [12:21:31]line НДС 12% : 11.15 [12:21:31]line Наличными: 105.00 [12:21:31]line Безнал.: 0.00 [12:21:31]line Место: АЗС № 90 "Партнер Нефть" [12:21:31]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [12:21:31]line СНО: Общий режим [12:21:31]line Чек 69 25.09.2024 12:21 [12:21:31]line Смена: 474 ФФД: 1.0 [12:21:31]line ЗНМ: 0300000120 [12:21:31]line РНМ: 0000000000091831 [12:21:31]line Версия ККМ: 001 [12:21:31]line ФМ: 0000000000871830 [12:21:31]line ФД: 116213 [12:21:31]line ФПД: 210832502057452 [12:21:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240925T122129&type=1&operation_type=1&fn_number=0000000000871830&fd_number=116213&fm=210832502057452&tin=02508201610067®Number=0000000000091831&sum=10500 [12:21:31]line 0 [12:21:31]written 0, free lines is 4095 [12:21:31]OFD Sender: Processing packet 116213 [packets to send 482, broken 481] [12:21:31]ProducePacketName [12:21:31]name=ofd_packets/00116213 [12:21:31]OFD Sender: To server: pG, [12:21:31]CommunicateWithHost lk.salyk.kg:30040 [12:21:31]ConnectInit lk.salyk.kg [12:21:31]Connected sock=9 [12:21:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 48 01 00 00 DF D6 40 01 51 F8 5A 03 01 00 03 00 34 01 1E 04 01 00 01 23 04 86 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 37 34 37 34 06 04 42 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 20 D0 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC D0 B0 D1 88 D0 BA D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 Write to MH i2c: 00 01 01 00 F6 00 03 24 01 01 00 25 01 [12:21:32]BC 04 01 00 01 FC 03 06 00 04 29 Write i2c OK [12:21:32]00 MH_I2C_Read... [12:21:32]00 Read from MH i2c: 00 01 00 [12:21:32]EB MH_I2C_Read... [12:21:32]03 26 00 EF 03 Read from MH i2c: 0F 01 00 07 F6 00 03 [12:21:32]01 MH_I2C_Read... [12:21:32]00 01 F7 03 06 00 5D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 Read from MH i2c: 06 01 00 07 5B 00 04 24 00 01 00 00 00 00 00 00 07 00 04 00 06 D1 00 0C 04 09 29 [12:21:32]00 RasterBufferAndPrint [12:21:32]00 line [12:21:32]00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 line [12:21:32]04 line [12:21:32]04 line [12:21:32]00 line [12:21:32]45 00 written 0, free lines is 3361 [12:21:32]00 00 F4 03 04 00 49 00 F4 66 0E 04 04 00 DA 01 MH_Cut [12:21:32]00 Write to MH i2c: 00 D1 B9 01 04 00 01 2B 00 01 01 01 0D FE 04 [12:21:32]10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 Write i2c OK [12:21:32]30 MH_I2C_Read... [12:21:32]30 Read from MH i2c: 30 D1 30 [12:21:32]30 MH_I2C_Read... [12:21:32]30 30 30 30 38 37 31 38 33 30 10 04 04 00 F5 C5 01 00 35 04 06 00 BF C0 44 64 69 EC 75 9F 45 4C D3 EE DB 9E [12:21:32]Read from MH i2c: D1 01 00 [12:21:32]MH_I2C_Read... [12:21:32]Read from MH i2c: D1 01 00 2B 01 00 FD [12:21:32]Write to MH i2c: 01 00 00 2C 01 2D [12:21:32]Write i2c OK [12:21:32]MH_I2C_Read... [12:21:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 B3 7C 47 00 C9 B3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 F5 C5 01 00 F4 03 04 00 86 A5 F3 66 B6 04 01 00 00 51 43 B6 B6 67 1E A2 3B [12:21:32]CommunicateWithHost err = 0 [12:21:32]CheckOFDResponse [12:21:32]1017 (14) - 77093643461234 [12:21:32]1041 (16) - 0000000000871830 [12:21:32]1040 (4) - 116213 [12:21:32]1012 (4) - 25.09.2024 05:54 [12:21:32]1206 (1) - 0 [12:21:32]OFD Sender: Remove packet 116213 [12:21:32]ProducePacketName [12:21:32]name=ofd_packets/00116213 [12:21:32]NVStorageDeleteData [12:21:33]OFD Sender: No OFD packet to send [12:21:33]*** Cut start [12:21:33]*** Partial cut [12:21:33]*** CUTSNS_PIN = 1 [12:21:33]*** CUTSNS_PIN = 0 [12:21:33]*** Brake cut motor [12:21:33]Read from MH i2c: *** Stop cut motor [12:21:33]01 *** Cut end [12:21:33] [12:21:33]MH_I2C_Read... [12:21:33]Read from MH i2c: 01 07 00 [12:21:33]MH_I2C_Read... [12:21:33]Read from MH i2c: 01 07 00 2C 01 00 00 00 00 00 FF 0F 42 [12:21:33]process_action close_receipt done [12:21:33]requested_data is exist [12:21:33]produce_requested_data [12:21:33]requested_item fm.sn is exist - process it [12:21:33]wFMCommunicate request_size=4 [12:21:33]MH_SAM_APDU [12:21:33]CAPDU: 80 11 00 00 [12:21:33]Write to MH i2c: E2 08 00 2D 01 80 11 00 00 00 00 00 00 A8 [12:21:33]Write i2c OK [12:21:33]MH_I2C_Read... [12:21:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:21:33]Read from MH i2c: E2 [12:21:33]MH_I2C_Read... [12:21:33]Read from MH i2c: E2 17 00 [12:21:33]MH_I2C_Read... [12:21:33]Read from MH i2c: E2 17 00 2D 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 F6 [12:21:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [12:21:33]wFMCommunicate OK [12:21:33]requested_item fd.num is exist - process it [12:21:33]SAM_PROTO_GetFieldsCounters [12:21:33]wFMCommunicate request_size=4 [12:21:33]MH_SAM_APDU [12:21:33]CAPDU: 80 13 00 00 [12:21:33]Write to MH i2c: E2 08 00 2E 01 80 13 00 00 00 00 00 00 AB [12:21:33]Write i2c OK [12:21:33]MH_I2C_Read... [12:21:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:21:34]Read from MH i2c: E2 [12:21:34]MH_I2C_Read... [12:21:34]Read from MH i2c: E2 62 00 [12:21:34]MH_I2C_Read... [12:21:34]Read from MH i2c: E2 62 00 2E 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 F5 C5 01 00 0E 04 04 00 DA 01 00 00 12 04 04 00 45 00 00 00 5E 04 04 00 45 00 00 00 57 04 04 00 46 00 00 00 19 04 04 00 00 00 00 00 90 00 29 [12:21:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 F5 C5 01 00 0E 04 04 00 DA 01 00 00 12 04 04 00 45 00 00 00 5E 04 04 00 45 00 00 00 57 04 04 00 46 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:21:34]wFMCommunicate OK [12:21:34]SAM_PROTO_GetFieldsCounters done [12:21:34]requested_item shift.num is exist - process it [12:21:34]requested_item shift.opened is exist - process it [12:21:34]req_shift_opened [12:21:34]FM_GetShiftState [12:21:34]SAM_PROTO_GetShiftState [12:21:34]wFMCommunicate request_size=4 [12:21:34]MH_SAM_APDU [12:21:34]CAPDU: 80 13 01 00 [12:21:34]Write to MH i2c: E2 08 00 2F 01 80 13 01 00 00 00 00 00 AD [12:21:34]Write i2c OK [12:21:34]MH_I2C_Read... [12:21:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:21:34]Read from MH i2c: E2 [12:21:34]MH_I2C_Read... [12:21:34]Read from MH i2c: E2 0E 00 [12:21:34]MH_I2C_Read... [12:21:34]Read from MH i2c: E2 0E 00 2F 01 00 09 00 01 63 60 F3 66 00 00 00 00 90 00 D5 [12:21:34]RAPDU: 09 00 01 63 60 F3 66 00 00 00 00 90 00 [12:21:34]wFMCommunicate OK [12:21:34]SAM_PROTO_GetShiftState done [12:21:34]FM_GetShiftState done [12:21:34]req_shift_opened done [12:21:34]requested_item shift.open_date is exist - process it [12:21:34]req_shift_open_date [12:21:34]req_shift_open_date done [12:21:34]produce_requested_data done [12:21:34]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":116213,"shift.num":474,"shift.opened":1,"shift.open_date":1727225955} [12:21:34]process_action_free close_receipt [12:21:34]json_value_free [12:21:34]json_value_free done [12:21:34]process_json_proto returns [12:21:34]Send response to host [12:21:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":116213,"shift.num":474,"shift.opened":1,"shift.open_date":1727225955}}} [12:21:34]free response buf [12:21:34]execute_script done [12:21:34]execute_script returns [12:21:34]free content buf [12:21:34]Sock 5.Close socket [12:21:34]Sock 5.Thread stoped [12:21:38]OFD Sender: No OFD packet to send [12:21:43]OFD Sender: No OFD packet to send [12:21:48]OFD Sender: No OFD packet to send [12:21:53]OFD Sender: No OFD packet to send [12:21:58]OFD Sender: No OFD packet to send [12:22:03]OFD Sender: No OFD packet to send [12:22:08]OFD Sender: No OFD packet to send [12:22:13]OFD Sender: No OFD packet to send [12:22:18]OFD Sender: No OFD packet to send [12:22:23]OFD Sender: No OFD packet to send [12:22:28]OFD Sender: No OFD packet to send [12:22:33]OFD Sender: No OFD packet to send [12:22:38]OFD Sender: No OFD packet to send [12:22:43]OFD Sender: No OFD packet to send [12:22:48]OFD Sender: No OFD packet to send [12:22:53]OFD Sender: No OFD packet to send [12:22:58]OFD Sender: No OFD packet to send [12:23:03]OFD Sender: No OFD packet to send [12:23:08]OFD Sender: No OFD packet to send [12:23:13]OFD Sender: No OFD packet to send [12:23:18]OFD Sender: No OFD packet to send [12:23:23]OFD Sender: No OFD packet to send [12:23:28]OFD Sender: No OFD packet to send [12:23:33]OFD Sender: No OFD packet to send [12:23:38]OFD Sender: No OFD packet to send [12:23:43]OFD Sender: No OFD packet to send [12:23:48]OFD Sender: No OFD packet to send [12:23:53]OFD Sender: No OFD packet to send [12:23:58]OFD Sender: No OFD packet to send [12:24:03]OFD Sender: No OFD packet to send [12:24:08]OFD Sender: No OFD packet to send [12:24:13]OFD Sender: No OFD packet to send [12:24:18]OFD Sender: No OFD packet to send [12:24:23]OFD Sender: No OFD packet to send [12:24:28]OFD Sender: No OFD packet to send [12:24:33]OFD Sender: No OFD packet to send [12:24:38]OFD Sender: No OFD packet to send [12:24:43]OFD Sender: No OFD packet to send [12:24:48]OFD Sender: No OFD packet to send [12:24:53]OFD Sender: No OFD packet to send [12:24:58]OFD Sender: No OFD packet to send [12:25:03]OFD Sender: No OFD packet to send [12:25:08]OFD Sender: No OFD packet to send [12:25:13]OFD Sender: No OFD packet to send [12:25:18]OFD Sender: No OFD packet to send [12:25:23]OFD Sender: No OFD packet to send [12:25:28]OFD Sender: No OFD packet to send [12:25:33]OFD Sender: No OFD packet to send [12:25:38]OFD Sender: No OFD packet to send [12:25:43]OFD Sender: No OFD packet to send [12:25:48]OFD Sender: No OFD packet to send [12:25:53]OFD Sender: No OFD packet to send [12:25:58]OFD Sender: No OFD packet to send [12:25:59]accept exits with 6 [12:25:59]New connection [12:25:59]New thread 3066813796 created [12:25:59]Thread 3066957156 joined [12:25:59]Waiting for new connection... [12:25:59] Sock 6.Parse request [12:25:59]Sock 6.Check first char [12:25:59]Sock 6.First char is OK [12:25:59]request: POST /json_proto HTTP/1.0 [12:25:59]Method: POST [12:25:59]URL: /json_proto [12:25:59]Method is POST - this is cgi request [12:25:59]url: /json_proto [12:25:59]query_string will be loaded in cgi processing [12:25:59]execute_cgi json_proto POST (null) [12:25:59]execute_cgi path=json_proto method=POST [12:25:59]POST find Content-Length [12:25:59]Host: 172.17.41.136:8080 [12:25:59]Content-Length: 756 [12:25:59]Content-Type: application/json [12:25:59] [12:25:59]POST finish read [12:25:59]Found Content-Length = 756 [12:25:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)24619252", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 0.00, "quantity" : 40.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30096178", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:25:59]execute_script... [12:25: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)24619252", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 0.00, "quantity" : 40.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30096178", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:25:59]POST & json_proto [12:25:59]process_json_proto [12:25:59]json parsed OK: [12:25:59]protocol is kg_v1.0 [12:25:59]action value=close_receipt [12:25:59]process_action close_receipt [12:25:59]cmd_close_receipt [12:25:59]MH_GetDate [12:25:59]Write to MH i2c: F0 00 00 30 01 20 [12:25:59]Write i2c OK [12:25:59]MH_I2C_Read... [12:25:59]Read from MH i2c: F0 [12:25:59]MH_I2C_Read... [12:25:59]Read from MH i2c: F0 09 00 [12:25:59]MH_I2C_Read... [12:25:59]Read from MH i2c: F0 09 00 30 01 00 58 01 F4 66 1B D0 5A 64 85 [12:25:59]GetLastDocTimeStamp 1727266889 [12:25:59]current date 1727267160 [12:25:59]FM_GetShiftState [12:25:59]SAM_PROTO_GetShiftState [12:25:59]wFMCommunicate request_size=4 [12:25:59]MH_SAM_APDU [12:25:59]CAPDU: 80 13 01 00 [12:25:59]Write to MH i2c: E2 08 00 31 01 80 13 01 00 00 00 00 00 AF [12:26:00]Write i2c OK [12:26:00]MH_I2C_Read... [12:26:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:26:00]Read from MH i2c: E2 [12:26:00]MH_I2C_Read... [12:26:00]Read from MH i2c: E2 0E 00 [12:26:00]MH_I2C_Read... [12:26:00]Read from MH i2c: E2 0E 00 31 01 00 09 00 01 63 60 F3 66 00 00 00 00 90 00 D7 [12:26:00]RAPDU: 09 00 01 63 60 F3 66 00 00 00 00 90 00 [12:26:00]wFMCommunicate OK [12:26:00]SAM_PROTO_GetShiftState done [12:26:00]FM_GetShiftState done [12:26:00]opened in 1727225955 [12:26:00]opened+sec_in_day 1727312355 [12:26:00]quantity*price = 0 [12:26:00]sum+1 = 1 [12:26:00]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 70 25.09.2024 12:26 Смена: 474 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 Талоны: ТК ГПНА Online 30096178 ФМ: 0000000000871830 ФД: 116214 ФПД: 4151407460837 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240925T122600&type=1&operation_type=1&fn_number=0000000000871830&fd_number=116214&fm=4151407460837&tin=02508201610067®Number=0000000000091831&sum=0 [12:26:01]StoreToDocumentArchive [12:26:01]shift 474 fd 116214 [12:26:01]save to /storage/0474/doc_00116214 [12:26:01]save last doc name /storage/0474/doc_00116214 to /storage/kkm_last_doc_name [12:26:01]save OK [12:26:01]Clear old archive folders... [12:26:01]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:26:01]tlvbuf is 0137C170 [12:26:01]SAM_PROTO_ClearQueue [12:26:01]wFMCommunicate request_size=4 [12:26:01]MH_SAM_APDU [12:26:01]CAPDU: 80 09 00 00 [12:26:01]Write to MH i2c: E2 08 00 3E 01 80 09 00 00 00 00 00 00 B1 [12:26:01]Write i2c OK [12:26:01]MH_I2C_Read... [12:26:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:26:01]Read from MH i2c: E2 [12:26:01]MH_I2C_Read... [12:26:01]Read from MH i2c: E2 03 00 [12:26:01]MH_I2C_Read... [12:26:01]Read from MH i2c: E2 03 00 3E 01 00 90 00 B3 [12:26:01]RAPDU: 90 00 [12:26:01]wFMCommunicate OK [12:26:01]SAM_PROTO_ClearQueue done [12:26:01]KKMCreateOFDPacket [12:26:01]OFDProtocolAddRootSTLVToBuf [12:26:01]FM_MakeSignedData [12:26:01]FM_MakeSignedData [12:26:01]SAM_PROTO_SignData [12:26:01]wFMCommunicate request_size=4 [12:26:01]MH_SAM_APDU [12:26:01]CAPDU: 80 0D 01 02 [12:26:01]Write to MH i2c: E2 08 00 3F 01 80 0D 01 02 00 00 00 00 B9 [12:26:01]Write i2c OK [12:26:01]MH_I2C_Read... [12:26:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:26:01]Read from MH i2c: E2 [12:26:01]MH_I2C_Read... [12:26:01]Read from MH i2c: E2 03 00 [12:26:01]MH_I2C_Read... [12:26:01]Read from MH i2c: E2 03 00 3F 01 00 90 00 B4 [12:26:01]RAPDU: 90 00 [12:26:01]wFMCommunicate OK [12:26:01]wFMCommunicate request_size=255 [12:26:01]MH_SAM_APDU [12:26:01]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 40 9C 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 00 00 00 F4 03 04 00 58 01 F4 66 0E 04 04 00 DA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 F6 C5 01 00 35 04 06 00 03 [12:26:01]Write to MH i2c: E2 02 01 40 01 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 40 9C 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 00 00 00 F4 03 04 00 58 01 F4 66 0E 04 04 00 DA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 F6 C5 01 00 35 04 06 00 03 00 00 2E [12:26:01]Write i2c OK [12:26:01]MH_I2C_Read... [12:26:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:26:01]Read from MH i2c: E2 [12:26:01]MH_I2C_Read... [12:26:01]Read from MH i2c: E2 03 00 [12:26:01]MH_I2C_Read... [12:26:01]Read from MH i2c: E2 03 00 40 01 00 90 00 B5 [12:26:01]RAPDU: 90 00 [12:26:01]wFMCommunicate OK [12:26:01]wFMCommunicate request_size=10 [12:26:01]MH_SAM_APDU [12:26:01]CAPDU: 80 0D 02 02 05 C6 93 2A C1 E5 [12:26:01]Write to MH i2c: E2 0D 00 41 01 80 0D 02 02 05 00 C6 93 2A C1 E5 00 00 EF [12:26:01]Write i2c OK [12:26:01]MH_I2C_Read... [12:26:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:26:01]Read from MH i2c: E2 [12:26:01]MH_I2C_Read... [12:26:01]Read from MH i2c: E2 03 00 [12:26:01]MH_I2C_Read... [12:26:01]Read from MH i2c: E2 03 00 41 01 00 90 00 B6 [12:26:01]RAPDU: 90 00 [12:26:01]wFMCommunicate OK [12:26:01]wFMCommunicate request_size=4 [12:26:01]MH_SAM_APDU [12:26:01]CAPDU: 80 0D 03 02 [12:26:01]Write to MH i2c: E2 08 00 42 01 80 0D 03 02 00 00 00 00 BE [12:26:01]Write i2c OK [12:26:01]MH_I2C_Read... [12:26:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:26:01]Read from MH i2c: E2 [12:26:01]MH_I2C_Read... [12:26:01]Read from MH i2c: E2 0B 00 [12:26:01]MH_I2C_Read... [12:26:01]Read from MH i2c: E2 0B 00 42 01 00 E9 AC 69 E0 73 79 18 CC 90 00 6D [12:26:01]RAPDU: E9 AC 69 E0 73 79 18 CC 90 00 [12:26:01]wFMCommunicate OK [12:26:01]SAM_PROTO_SignData done [12:26:01]FM_MakeSignedData done [12:26:01]CreateOFDProtocolMessage [12:26:01]wFMCommunicate request_size=4 [12:26:01]MH_SAM_APDU [12:26:01]CAPDU: 80 11 00 00 [12:26:01]Write to MH i2c: E2 08 00 43 01 80 11 00 00 00 00 00 00 BE [12:26:01]Write i2c OK [12:26:01]MH_I2C_Read... [12:26:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:26:01]Read from MH i2c: E2 [12:26:01]MH_I2C_Read... [12:26:01]Read from MH i2c: E2 17 00 [12:26:01]MH_I2C_Read... [12:26:01]Read from MH i2c: E2 17 00 43 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 0C [12:26:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [12:26:01]wFMCommunicate OK [12:26:01]CreateOFDProtocolMessage done [12:26:01]OFDSenderStorePacket 116214 [12:26:01]StoreOFDPacket docnum=116214 [12:26:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0F 01 00 00 18 71 07 01 D6 98 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 40 9C 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 00 00 00 F4 03 04 00 58 01 F4 66 0E 04 04 00 DA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 F6 C5 01 00 35 04 06 00 03 C6 93 2A C1 E5 E9 AC 69 E0 73 79 18 CC [12:26:01]CheckFolder [12:26:01]dirname=/storage/ofd_packets [12:26:01]CheckFolder done [12:26:01]ProducePacketName [12:26:01]name=ofd_packets/00116214 [12:26:01]NVStorageSaveData ofd_packets/00116214 [12:26:01]File name is /storage/ofd_packets/00116214 [12:26:01]Write 301 bytes [12:26:01]NVStorageSaveData done [12:26:01]OFDSenderStorePacket done [12:26:01]KKMCreateOFDPacket done [12:26:01]NVStorageSaveData kkm_last_timestamp [12:26:01]File name is /storage/kkm_last_timestamp [12:26:01]Write 4 bytes [12:26:01]NVStorageSaveData done [12:26:01]ExternCall_PrintAddStr [12:26:01]wPrintStart [12:26:01]Write to MH i2c: 01 00 00 44 01 45 [12:26:01]OFD Sender: Processing packet 116214 [packets to send 482, broken 481] [12:26:01]ProducePacketName [12:26:01]name=ofd_packets/00116214 [12:26:01]Write i2c OK [12:26:01]MH_I2C_Read... [12:26:01]Read from MH i2c: 01 [12:26:01]MH_I2C_Read... [12:26:01]Read from MH i2c: 01 07 00 [12:26:01]MH_I2C_Read... [12:26:01]OFD Sender: To server: pG, [12:26:01]CommunicateWithHost lk.salyk.kg:30040 [12:26:01]ConnectInit lk.salyk.kg [12:26:01]Read from MH i2c: 01 07 00 44 01 00 00 00 00 00 FF 0F 5A [12:26:01]RasterBufferAndPrint [12:26:01]line Счет N : (1)24619252 [12:26:01]line ИНН: 02508201610067 [12:26:01]line Контрольно-Кассовый Чек [12:26:01]line ПРОДАЖА [12:26:01]line ТРК (МРК, ГНК) : 42 [12:26:01]line Товар: 2710124500 [12:26:01]line Аи-95-К-5 [12:26:01]line 40.000 * 0.00 [12:26:01]line = 0.00 [12:26:01]line НДС 12% НСП 1% [12:26:01]line > о реализуемом товаре [12:26:01]line ИТОГО: 0.00 [12:26:01]line НСП 1% : 0.00 [12:26:01]line НДС 12% : 0.00 [12:26:01]line Наличными: 0.00 [12:26:01]line Безнал.: 0.00 [12:26:01]line Место: АЗС № 90 "Партнер Нефть" [12:26:01]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [12:26:01]line СНО: Общий режим [12:26:01]line Чек 70 25.09.2024 12:26 [12:26:01]line Смена: 474 ФФД: 1.0 [12:26:01]line ЗНМ: 0300000120 [12:26:01]line РНМ: 0000000000091831 [12:26:01]line Версия ККМ: 001 [12:26:01]line Талоны: ТК ГПНА Online [12:26:01]line 30096178 [12:26:01]line ФМ: 0000000000871830 [12:26:01]line ФД: 116214 [12:26:01]line ФПД: 4151407460837 [12:26:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240925T122600&type=1&operation_type=1&fn_number=0000000000871830&fd_number=116214&fm=4151407460837&tin=02508201610067®Number=0000000000091831&sum=0 [12:26:01]written 0, free lines is 4095 [12:26:02]Connected sock=7 [12:26:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0F 01 00 00 18 71 07 01 D6 98 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 40 9C 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 00 00 00 F4 03 04 00 58 01 F4 66 0E 04 04 00 DA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 F6 C5 01 00 35 04 06 00 03 C6 93 2A C1 E5 E9 AC 69 E0 73 79 18 CC [12:26:02]Write to MH i2c: 01 00 00 6D 01 6E [12:26:02]Write i2c OK [12:26:02]MH_I2C_Read... [12:26:02]Read from MH i2c: 01 [12:26:02]MH_I2C_Read... [12:26:02]Read from MH i2c: 01 07 00 [12:26:02]MH_I2C_Read... [12:26:02]Read from MH i2c: 01 07 00 6D 01 00 00 00 00 00 6D 0C EE [12:26:02]RasterBufferAndPrint [12:26:02]line [12:26:02]line [12:26:02]line [12:26:02]line [12:26:02]line [12:26:02]written 0, free lines is 3185 [12:26:02]MH_Cut [12:26:02]Write to MH i2c: D1 01 00 74 01 01 47 [12:26:02]Write i2c OK [12:26:02]MH_I2C_Read... [12:26:02]Read from MH i2c: D1 [12:26:02]MH_I2C_Read... [12:26:02]Read from MH i2c: D1 01 00 [12:26:02]MH_I2C_Read... [12:26:02]Read from MH i2c: D1 01 00 74 01 00 46 [12:26:02]Write to MH i2c: 01 00 00 75 01 76 [12:26:02]Write i2c OK [12:26:02]MH_I2C_Read... [12:26:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 22 9F 47 00 78 E2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 F6 C5 01 00 F4 03 04 00 94 A6 F3 66 B6 04 01 00 00 3A D7 4F F7 3F 86 43 4E [12:26:02]CommunicateWithHost err = 0 [12:26:02]CheckOFDResponse [12:26:02]1017 (14) - 77093643461234 [12:26:02]1041 (16) - 0000000000871830 [12:26:02]1040 (4) - 116214 [12:26:02]1012 (4) - 25.09.2024 05:58 [12:26:02]1206 (1) - 0 [12:26:02]OFD Sender: Remove packet 116214 [12:26:02]ProducePacketName [12:26:02]name=ofd_packets/00116214 [12:26:02]NVStorageDeleteData [12:26:02]OFD Sender: No OFD packet to send [12:26:03]*** Cut start [12:26:03]*** Partial cut [12:26:03]*** CUTSNS_PIN = 1 [12:26:03]*** CUTSNS_PIN = 0 [12:26:03]*** Brake cut motor [12:26:04]Read from MH i2c: 01 [12:26:04]MH_I2C_Read... [12:26:04]*** Stop cut motor [12:26:04]*** Cut end [12:26:04]Read from MH i2c: 01 07 00 [12:26:04]MH_I2C_Read... [12:26:04]Read from MH i2c: 01 07 00 75 01 00 00 00 00 00 FF 0F 8B [12:26:04]process_action close_receipt done [12:26:04]requested_data is exist [12:26:04]produce_requested_data [12:26:04]requested_item fm.sn is exist - process it [12:26:04]wFMCommunicate request_size=4 [12:26:04]MH_SAM_APDU [12:26:04]CAPDU: 80 11 00 00 [12:26:04]Write to MH i2c: E2 08 00 76 01 80 11 00 00 00 00 00 00 F1 [12:26:04]Write i2c OK [12:26:04]MH_I2C_Read... [12:26:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:26:04]Read from MH i2c: E2 [12:26:04]MH_I2C_Read... [12:26:04]Read from MH i2c: E2 17 00 [12:26:04]MH_I2C_Read... [12:26:04]Read from MH i2c: E2 17 00 76 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 3F [12:26:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [12:26:04]wFMCommunicate OK [12:26:04]requested_item fd.num is exist - process it [12:26:04]SAM_PROTO_GetFieldsCounters [12:26:04]wFMCommunicate request_size=4 [12:26:04]MH_SAM_APDU [12:26:04]CAPDU: 80 13 00 00 [12:26:04]Write to MH i2c: E2 08 00 77 01 80 13 00 00 00 00 00 00 F4 [12:26:04]Write i2c OK [12:26:04]MH_I2C_Read... [12:26:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:26:04]Read from MH i2c: E2 [12:26:04]MH_I2C_Read... [12:26:04]Read from MH i2c: E2 62 00 [12:26:04]MH_I2C_Read... [12:26:04]Read from MH i2c: E2 62 00 77 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 F6 C5 01 00 0E 04 04 00 DA 01 00 00 12 04 04 00 46 00 00 00 5E 04 04 00 46 00 00 00 57 04 04 00 47 00 00 00 19 04 04 00 00 00 00 00 90 00 76 [12:26:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 F6 C5 01 00 0E 04 04 00 DA 01 00 00 12 04 04 00 46 00 00 00 5E 04 04 00 46 00 00 00 57 04 04 00 47 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:26:04]wFMCommunicate OK [12:26:04]SAM_PROTO_GetFieldsCounters done [12:26:04]requested_item shift.num is exist - process it [12:26:04]requested_item shift.opened is exist - process it [12:26:04]req_shift_opened [12:26:04]FM_GetShiftState [12:26:04]SAM_PROTO_GetShiftState [12:26:04]wFMCommunicate request_size=4 [12:26:04]MH_SAM_APDU [12:26:04]CAPDU: 80 13 01 00 [12:26:04]Write to MH i2c: E2 08 00 78 01 80 13 01 00 00 00 00 00 F6 [12:26:04]Write i2c OK [12:26:04]MH_I2C_Read... [12:26:04]Read from MH i2c: E2 [12:26:04]MH_I2C_Read... [12:26:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:26:04]Read from MH i2c: E2 0E 00 [12:26:04]MH_I2C_Read... [12:26:04]Read from MH i2c: E2 0E 00 78 01 00 09 00 01 63 60 F3 66 00 00 00 00 90 00 1E [12:26:04]RAPDU: 09 00 01 63 60 F3 66 00 00 00 00 90 00 [12:26:04]wFMCommunicate OK [12:26:04]SAM_PROTO_GetShiftState done [12:26:04]FM_GetShiftState done [12:26:04]req_shift_opened done [12:26:04]requested_item shift.open_date is exist - process it [12:26:04]req_shift_open_date [12:26:04]req_shift_open_date done [12:26:04]produce_requested_data done [12:26:04]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":116214,"shift.num":474,"shift.opened":1,"shift.open_date":1727225955} [12:26:04]process_action_free close_receipt [12:26:04]json_value_free [12:26:04]json_value_free done [12:26:04]process_json_proto returns [12:26:04]Send response to host [12:26:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":116214,"shift.num":474,"shift.opened":1,"shift.open_date":1727225955}}} [12:26:04]free response buf [12:26:04]execute_script done [12:26:04]execute_script returns [12:26:04]free content buf [12:26:04]Sock 6.Close socket [12:26:04]Sock 6.Thread stoped [12:26:07]OFD Sender: No OFD packet to send [12:26:12]OFD Sender: No OFD packet to send [12:26:17]OFD Sender: No OFD packet to send [12:26:22]OFD Sender: No OFD packet to send [12:26:27]OFD Sender: No OFD packet to send [12:26:32]OFD Sender: No OFD packet to send [12:26:37]OFD Sender: No OFD packet to send [12:26:42]OFD Sender: No OFD packet to send [12:26:47]OFD Sender: No OFD packet to send [12:26:52]OFD Sender: No OFD packet to send [12:26:57]OFD Sender: No OFD packet to send [12:27:03]OFD Sender: No OFD packet to send [12:27:08]OFD Sender: No OFD packet to send [12:27:13]OFD Sender: No OFD packet to send [12:27:18]OFD Sender: No OFD packet to send [12:27:23]OFD Sender: No OFD packet to send [12:27:28]OFD Sender: No OFD packet to send [12:27:33]OFD Sender: No OFD packet to send [12:27:38]OFD Sender: No OFD packet to send [12:27:43]OFD Sender: No OFD packet to send [12:27:48]OFD Sender: No OFD packet to send [12:27:53]OFD Sender: No OFD packet to send [12:27:58]OFD Sender: No OFD packet to send [12:28:03]OFD Sender: No OFD packet to send [12:28:08]OFD Sender: No OFD packet to send [12:28:13]OFD Sender: No OFD packet to send [12:28:18]OFD Sender: No OFD packet to send [12:28:23]OFD Sender: No OFD packet to send [12:28:28]OFD Sender: No OFD packet to send [12:28:33]OFD Sender: No OFD packet to send [12:28:38]OFD Sender: No OFD packet to send [12:28:43]OFD Sender: No OFD packet to send [12:28:48]OFD Sender: No OFD packet to send [12:28:53]OFD Sender: No OFD packet to send [12:28:58]OFD Sender: No OFD packet to send [12:29:03]OFD Sender: No OFD packet to send [12:29:05]accept exits with 5 [12:29:05]New connection [12:29:05]New thread 3066957156 created [12:29:05]Thread 3066813796 joined [12:29:05]Waiting for new connection... [12:29:05] Sock 5.Parse request [12:29:05]Sock 5.Check first char [12:29:05]Sock 5.First char is OK [12:29:05]request: POST /json_proto HTTP/1.0 [12:29:05]Method: POST [12:29:05]URL: /json_proto [12:29:05]Method is POST - this is cgi request [12:29:05]url: /json_proto [12:29:05]query_string will be loaded in cgi processing [12:29:05]execute_cgi json_proto POST (null) [12:29:05]execute_cgi path=json_proto method=POST [12:29:05]POST find Content-Length [12:29:05]Host: 172.17.41.136:8080 [12:29:05]Content-Length: 938 [12:29:05]Content-Type: application/json [12:29:05] [12:29:05]POST finish read [12:29:05]Found Content-Length = 938 [12:29:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)344383", "tax_sys" : 0, "items" : [ { "code": "2000036210013", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E (GABB TRADE)", "price" : 115.00, "quantity" : 1.000, "sum" : 115.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000053020015", "name": "\u0411\u0443\u043C\u0430\u0436\u043D\u044B\u0435 \u0441\u0442\u0430\u043A\u0430\u043D\u044B 250\u043C\u043B 1\u0448\u0442", "price" : 7.00, "quantity" : 50.000, "sum" : 350.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 465.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:29:05]execute_script... [12:29: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 : (3)344383", "tax_sys" : 0, "items" : [ { "code": "2000036210013", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E (GABB TRADE)", "price" : 115.00, "quantity" : 1.000, "sum" : 115.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000053020015", "name": "\u0411\u0443\u043C\u0430\u0436\u043D\u044B\u0435 \u0441\u0442\u0430\u043A\u0430\u043D\u044B 250\u043C\u043B 1\u0448\u0442", "price" : 7.00, "quantity" : 50.000, "sum" : 350.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 465.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:29:05]POST & json_proto [12:29:05]process_json_proto [12:29:05]json parsed OK: [12:29:05]protocol is kg_v1.0 [12:29:05]action value=close_receipt [12:29:05]process_action close_receipt [12:29:05]cmd_close_receipt [12:29:05]MH_GetDate [12:29:05]Write to MH i2c: F0 00 00 79 01 69 [12:29:05]Write i2c OK [12:29:05]MH_I2C_Read... [12:29:05]Read from MH i2c: F0 [12:29:05]MH_I2C_Read... [12:29:05]Read from MH i2c: F0 09 00 [12:29:05]MH_I2C_Read... [12:29:05]Read from MH i2c: F0 09 00 79 01 00 12 02 F4 66 1B D0 5A 64 89 [12:29:05]GetLastDocTimeStamp 1727267160 [12:29:05]current date 1727267346 [12:29:05]FM_GetShiftState [12:29:05]SAM_PROTO_GetShiftState [12:29:05]wFMCommunicate request_size=4 [12:29:05]MH_SAM_APDU [12:29:05]CAPDU: 80 13 01 00 [12:29:05]Write to MH i2c: E2 08 00 7A 01 80 13 01 00 00 00 00 00 F8 [12:29:05]Write i2c OK [12:29:05]MH_I2C_Read... [12:29:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:29:05]Read from MH i2c: E2 [12:29:05]MH_I2C_Read... [12:29:05]Read from MH i2c: E2 0E 00 [12:29:05]MH_I2C_Read... [12:29:05]Read from MH i2c: E2 0E 00 7A 01 00 09 00 01 63 60 F3 66 00 00 00 00 90 00 20 [12:29:05]RAPDU: 09 00 01 63 60 F3 66 00 00 00 00 90 00 [12:29:05]wFMCommunicate OK [12:29:05]SAM_PROTO_GetShiftState done [12:29:05]FM_GetShiftState done [12:29:05]opened in 1727225955 [12:29:05]opened+sec_in_day 1727312355 [12:29:05]quantity*price = 11500 [12:29:05]sum+1 = 11501 [12:29:05]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 2000053020015 Бумажные стаканы 250мл 1шт 50.000 * 7.00 = 350.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 465.00 НСП 1% : 4.12 НДС 12% : 49.38 Наличными: 465.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 71 25.09.2024 12:29 Смена: 474 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 116215 ФПД: 43560870365941 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240925T122906&type=1&operation_type=1&fn_number=0000000000871830&fd_number=116215&fm=43560870365941&tin=02508201610067®Number=0000000000091831&sum=46500 0 [12:29:07]StoreToDocumentArchive [12:29:07]shift 474 fd 116215 [12:29:07]save to /storage/0474/doc_00116215 [12:29:07]save last doc name /storage/0474/doc_00116215 to /storage/kkm_last_doc_name [12:29:07]save OK [12:29:07]Clear old archive folders... [12:29:07]ProcessDocumentItem done err = 0, tmpTLVsize=397 [12:29:07]tlvbuf is 01383970 [12:29:07]SAM_PROTO_ClearQueue [12:29:07]wFMCommunicate request_size=4 [12:29:07]MH_SAM_APDU [12:29:07]CAPDU: 80 09 00 00 [12:29:07]Write to MH i2c: E2 08 00 87 01 80 09 00 00 00 00 00 00 FA [12:29:07]Write i2c OK [12:29:07]MH_I2C_Read... [12:29:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:29:07]Read from MH i2c: E2 [12:29:07]MH_I2C_Read... [12:29:07]Read from MH i2c: E2 03 00 [12:29:07]MH_I2C_Read... [12:29:07]Read from MH i2c: E2 03 00 87 01 00 90 00 FC [12:29:07]RAPDU: 90 00 [12:29:07]wFMCommunicate OK [12:29:07]SAM_PROTO_ClearQueue done [12:29:07]KKMCreateOFDPacket [12:29:07]OFDProtocolAddRootSTLVToBuf [12:29:07]FM_MakeSignedData [12:29:07]FM_MakeSignedData [12:29:07]SAM_PROTO_SignData [12:29:07]wFMCommunicate request_size=4 [12:29:07]MH_SAM_APDU [12:29:07]CAPDU: 80 0D 01 02 [12:29:07]Write to MH i2c: E2 08 00 88 01 80 0D 01 02 00 00 00 00 02 [12:29:07]Write i2c OK [12:29:07]MH_I2C_Read... [12:29:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:29:07]Read from MH i2c: E2 [12:29:07]MH_I2C_Read... [12:29:07]Read from MH i2c: E2 03 00 [12:29:07]MH_I2C_Read... [12:29:07]Read from MH i2c: E2 03 00 88 01 00 90 00 FD [12:29:07]RAPDU: 90 00 [12:29:07]wFMCommunicate OK [12:29:07]wFMCommunicate request_size=255 [12:29:07]MH_SAM_APDU [12:29:07]CAPDU: 80 0D 02 02 FA 03 00 8D 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 71 00 8A 04 0D 00 32 30 30 30 30 35 33 30 32 30 30 31 35 06 04 2D 00 D0 91 D1 83 D0 BC D0 B0 D0 B6 D0 BD D1 8B D0 B5 20 D1 81 D1 82 D0 B0 D0 BA D0 B0 D0 BD D1 8B 20 32 35 30 D0 BC D0 BB 20 31 D1 88 D1 82 FF 03 08 00 03 50 C3 00 00 00 00 00 37 04 06 00 BC 02 00 00 00 00 13 04 06 00 B8 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A4 B5 00 00 00 00 EB 03 26 00 [12:29:07]Write to MH i2c: E2 02 01 89 01 80 0D 02 02 FA 00 03 00 8D 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 71 00 8A 04 0D 00 32 30 30 30 30 35 33 30 32 30 30 31 35 06 04 2D 00 D0 91 D1 83 D0 BC D0 B0 D0 B6 D0 BD D1 8B D0 B5 20 D1 81 D1 82 D0 B0 D0 BA D0 B0 D0 BD D1 8B 20 32 35 30 D0 BC D0 BB 20 31 D1 88 D1 82 FF 03 08 00 03 50 C3 00 00 00 00 00 37 04 06 00 BC 02 00 00 00 00 13 04 06 00 B8 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A4 B5 00 00 00 00 EB 03 26 00 00 00 D3 [12:29:07]Write i2c OK [12:29:07]MH_I2C_Read... [12:29:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:29:07]Read from MH i2c: E2 [12:29:07]MH_I2C_Read... [12:29:07]Read from MH i2c: E2 03 00 [12:29:07]MH_I2C_Read... [12:29:07]Read from MH i2c: E2 03 00 89 01 00 90 00 FE [12:29:07]RAPDU: 90 00 [12:29:07]wFMCommunicate OK [12:29:07]wFMCommunicate request_size=156 [12:29:07]MH_SAM_APDU [12:29:07]CAPDU: 80 0D 02 02 97 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9C 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4A 13 00 00 00 00 07 04 06 00 A4 B5 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 00 00 00 F4 03 04 00 12 02 F4 66 0E 04 04 00 DA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 F7 C5 01 00 35 04 06 00 27 9E 4E 34 4A F5 [12:29:07]Write to MH i2c: E2 9F 00 8A 01 80 0D 02 02 97 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9C 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4A 13 00 00 00 00 07 04 06 00 A4 B5 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 00 00 00 F4 03 04 00 12 02 F4 66 0E 04 04 00 DA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 F7 C5 01 00 35 04 06 00 27 9E 4E 34 4A F5 00 00 7A [12:29:07]Write i2c OK [12:29:07]MH_I2C_Read... [12:29:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:29:07]Read from MH i2c: E2 [12:29:07]MH_I2C_Read... [12:29:07]Read from MH i2c: E2 03 00 [12:29:07]MH_I2C_Read... [12:29:07]Read from MH i2c: E2 03 00 8A 01 00 90 00 FF [12:29:07]RAPDU: 90 00 [12:29:07]wFMCommunicate OK [12:29:07]wFMCommunicate request_size=4 [12:29:07]MH_SAM_APDU [12:29:07]CAPDU: 80 0D 03 02 [12:29:07]Write to MH i2c: E2 08 00 8B 01 80 0D 03 02 00 00 00 00 07 [12:29:07]Write i2c OK [12:29:07]MH_I2C_Read... [12:29:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:29:07]Read from MH i2c: E2 [12:29:07]MH_I2C_Read... [12:29:07]Read from MH i2c: E2 0B 00 [12:29:07]MH_I2C_Read... [12:29:07]Read from MH i2c: E2 0B 00 8B 01 00 56 42 C8 FF F3 FA 15 90 90 00 F9 [12:29:07]RAPDU: 56 42 C8 FF F3 FA 15 90 90 00 [12:29:07]wFMCommunicate OK [12:29:07]SAM_PROTO_SignData done [12:29:07]FM_MakeSignedData done [12:29:07]CreateOFDProtocolMessage [12:29:07]wFMCommunicate request_size=4 [12:29:07]MH_SAM_APDU [12:29:07]CAPDU: 80 11 00 00 [12:29:07]Write to MH i2c: E2 08 00 8C 01 80 11 00 00 00 00 00 00 07 [12:29:07]Write i2c OK [12:29:07]MH_I2C_Read... [12:29:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:29:07]Read from MH i2c: E2 [12:29:07]MH_I2C_Read... [12:29:07]Read from MH i2c: E2 17 00 [12:29:07]MH_I2C_Read... [12:29:07]Read from MH i2c: E2 17 00 8C 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 55 [12:29:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [12:29:07]wFMCommunicate OK [12:29:07]CreateOFDProtocolMessage done [12:29:07]OFDSenderStorePacket 116215 [12:29:07]StoreOFDPacket docnum=116215 [12:29:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 A1 01 00 00 7B 6B 99 01 78 CE 5A 03 01 00 03 00 8D 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 71 00 8A 04 0D 00 32 30 30 30 30 35 33 30 32 30 30 31 35 06 04 2D 00 D0 91 D1 83 D0 BC D0 B0 D0 B6 D0 BD D1 8B D0 B5 20 D1 81 D1 82 D0 B0 D0 BA D0 B0 D0 BD D1 8B 20 32 35 30 D0 BC D0 BB 20 31 D1 88 D1 82 FF 03 08 00 03 50 C3 00 00 00 00 00 37 04 06 00 BC 02 00 00 00 00 13 04 06 00 B8 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A4 B5 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9C 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4A 13 00 00 00 00 07 04 06 00 A4 B5 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 00 00 00 F4 03 04 00 12 02 F4 66 0E 04 04 00 DA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 F7 C5 01 00 35 04 06 00 27 9E 4E 34 4A F5 56 42 C8 FF F3 FA 15 90 [12:29:07]CheckFolder [12:29:07]dirname=/storage/ofd_packets [12:29:07]CheckFolder done [12:29:07]ProducePacketName [12:29:07]name=ofd_packets/00116215 [12:29:07]NVStorageSaveData ofd_packets/00116215 [12:29:07]File name is /storage/ofd_packets/00116215 [12:29:07]Write 447 bytes [12:29:07]NVStorageSaveData done [12:29:07]OFDSenderStorePacket done [12:29:07]KKMCreateOFDPacket done [12:29:07]NVStorageSaveData kkm_last_timestamp [12:29:07]File name is /storage/kkm_last_timestamp [12:29:07]Write 4 bytes [12:29:07]NVStorageSaveData done [12:29:07]ExternCall_PrintAddStr [12:29:07]wPrintStart [12:29:07]Write to MH i2c: 01 00 00 8D 01 8E [12:29:07]Write i2c OK [12:29:07]MH_I2C_Read... [12:29:07]Read from MH i2c: 01 [12:29:07]MH_I2C_Read... [12:29:07]Read from MH i2c: 01 07 00 [12:29:07]MH_I2C_Read... [12:29:07]Read from MH i2c: 01 07 00 8D 01 00 00 00 00 00 FF 0F A3 [12:29:07]RasterBufferAndPrint [12:29:07]line Счет N : (3)344383 [12:29:07]line ИНН: 02508201610067 [12:29:08]line Контрольно-Кассовый Чек [12:29:08]line ПРОДАЖА [12:29:08]line Товар: 2000036210013 [12:29:08]line Кофе Капучино (GABB TRADE) [12:29:08]line 1.000 * 115.00 [12:29:08]line = 115.00 [12:29:08]line НДС 12% НСП 1% [12:29:08]line > о реализуемом товаре [12:29:08]line Товар: 2000053020015 [12:29:08]line Бумажные стаканы 250мл 1шт [12:29:08]line 50.000 * 7.00 [12:29:08]line = 350.00 [12:29:08]line НДС 12% НСП 1% [12:29:08]line > о реализуемом товаре [12:29:08]line ИТОГО: 465.00 [12:29:08]line НСП 1% : 4.12 [12:29:08]line НДС 12% : 49.38 [12:29:08]line Наличными: 465.00 [12:29:08]line Безнал.: 0.00 [12:29:08]line Место: АЗС № 90 "Партнер Нефть" [12:29:08]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [12:29:08]line СНО: Общий режим [12:29:08]line Чек 71 25.09.2024 12:29 [12:29:08]line Смена: 474 ФФД: 1.0 [12:29:08]line ЗНМ: 0300000120 [12:29:08]line РНМ: 0000000000091831 [12:29:08]line Версия ККМ: 001 [12:29:08]line ФМ: 0000000000871830 [12:29:08]line ФД: 116215 [12:29:08]line ФПД: 43560870365941 [12:29:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240925T122906&type=1&operation_type=1&fn_number=0000000000871830&fd_number=116215&fm=43560870365941&tin=02508201610067®Number=0000000000091831&sum=46500 [12:29:08]line 0 [12:29:08]OFD Sender: Processing packet 116215 [packets to send 482, broken 481] [12:29:08]ProducePacketName [12:29:08]name=ofd_packets/00116215 [12:29:08]OFD Sender: To server: pG, [12:29:08]CommunicateWithHost lk.salyk.kg:30040 [12:29:08]ConnectInit lk.salyk.kg [12:29:08]written 0, free lines is 4095 [12:29:08]Connected sock=7 [12:29:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 A1 01 00 00 7B 6B 99 01 78 CE 5A 03 01 00 03 00 8D 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 71 00 8A 04 0D 00 32 30 30 30 30 35 33 30 32 30 30 31 35 06 04 2D 00 D0 91 D1 83 D0 BC D0 B0 D0 B6 D0 BD D1 8B D0 B5 20 D1 81 D1 82 D0 B0 D0 BA D0 B0 D0 BD D1 8B 20 32 35 30 D0 BC D0 BB 20 31 D1 88 D1 82 FF 03 08 00 03 50 C3 00 00 00 00 00 37 04 06 00 BC 02 00 00 00 00 13 04 06 00 B8 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A4 B5 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9C 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4A 13 00 00 00 00 07 04 06 00 A4 B5 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 00 00 00 F4 03 04 00 12 02 F4 66 0E 04 04 00 DA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 F7 C5 01 00 35 04 06 00 27 9E 4E 34 4A F5 56 42 C8 FF F3 FA 15 90 [12:29:08]Write to MH i2c: 01 00 00 BB 01 BC [12:29:08]Write i2c OK [12:29:08]MH_I2C_Read... [12:29:08]Read from MH i2c: 01 [12:29:08]MH_I2C_Read... [12:29:08]Read from MH i2c: 01 07 00 [12:29:08]MH_I2C_Read... [12:29:08]Read from MH i2c: 01 07 00 BB 01 00 00 00 00 00 E5 0B B3 [12:29:08]RasterBufferAndPrint [12:29:08]line [12:29:08]line [12:29:08]line [12:29:08]line [12:29:08]line [12:29:08]written 0, free lines is 3048 [12:29:08]MH_Cut [12:29:08]Write to MH i2c: D1 01 00 C2 01 01 95 [12:29:08]Write i2c OK [12:29:08]MH_I2C_Read... [12:29:08]Read from MH i2c: D1 [12:29:08]MH_I2C_Read... [12:29:08]Read from MH i2c: D1 01 00 [12:29:08]MH_I2C_Read... [12:29:08]Read from MH i2c: D1 01 00 C2 01 00 94 [12:29:08]Write to MH i2c: 01 00 00 C3 01 C4 [12:29:08]Write i2c OK [12:29:08]MH_I2C_Read... [12:29:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 B3 57 47 00 44 0E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 F7 C5 01 00 F4 03 04 00 4E A7 F3 66 B6 04 01 00 00 4E FF 6A 5F 42 91 93 64 [12:29:08]CommunicateWithHost err = 0 [12:29:08]CheckOFDResponse [12:29:08]1017 (14) - 77093643461234 [12:29:08]1041 (16) - 0000000000871830 [12:29:08]1040 (4) - 116215 [12:29:08]1012 (4) - 25.09.2024 06:01 [12:29:08]1206 (1) - 0 [12:29:08]OFD Sender: Remove packet 116215 [12:29:08]ProducePacketName [12:29:08]name=ofd_packets/00116215 [12:29:08]NVStorageDeleteData [12:29:09]OFD Sender: No OFD packet to send [12:29:10]*** Cut start [12:29:10]*** Partial cut [12:29:10]*** CUTSNS_PIN = 1 [12:29:10]*** CUTSNS_PIN = 0 [12:29:10]*** Brake cut motor [12:29:10]Read from MH i2c: 01 [12:29:10]MH_I2C_Read... [12:29:10]*** Stop cut motor [12:29:10]*** Cut end [12:29:10]Read from MH i2c: 01 07 00 [12:29:10]MH_I2C_Read... [12:29:10]Read from MH i2c: 01 07 00 C3 01 00 00 00 00 00 FF 0F D9 [12:29:10]process_action close_receipt done [12:29:10]requested_data is exist [12:29:10]produce_requested_data [12:29:10]requested_item fm.sn is exist - process it [12:29:10]wFMCommunicate request_size=4 [12:29:10]MH_SAM_APDU [12:29:10]CAPDU: 80 11 00 00 [12:29:10]Write to MH i2c: E2 08 00 C4 01 80 11 00 00 00 00 00 00 3F [12:29:10]Write i2c OK [12:29:10]MH_I2C_Read... [12:29:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:29:10]Read from MH i2c: E2 [12:29:10]MH_I2C_Read... [12:29:10]Read from MH i2c: E2 17 00 [12:29:10]MH_I2C_Read... [12:29:10]Read from MH i2c: E2 17 00 C4 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 8D [12:29:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [12:29:10]wFMCommunicate OK [12:29:10]requested_item fd.num is exist - process it [12:29:10]SAM_PROTO_GetFieldsCounters [12:29:10]wFMCommunicate request_size=4 [12:29:10]MH_SAM_APDU [12:29:10]CAPDU: 80 13 00 00 [12:29:10]Write to MH i2c: E2 08 00 C5 01 80 13 00 00 00 00 00 00 42 [12:29:10]Write i2c OK [12:29:10]MH_I2C_Read... [12:29:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:29:10]Read from MH i2c: E2 [12:29:10]MH_I2C_Read... [12:29:10]Read from MH i2c: E2 62 00 [12:29:10]MH_I2C_Read... [12:29:10]Read from MH i2c: E2 62 00 C5 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 F7 C5 01 00 0E 04 04 00 DA 01 00 00 12 04 04 00 47 00 00 00 5E 04 04 00 47 00 00 00 57 04 04 00 48 00 00 00 19 04 04 00 00 00 00 00 90 00 C8 [12:29:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 F7 C5 01 00 0E 04 04 00 DA 01 00 00 12 04 04 00 47 00 00 00 5E 04 04 00 47 00 00 00 57 04 04 00 48 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:29:10]wFMCommunicate OK [12:29:10]SAM_PROTO_GetFieldsCounters done [12:29:10]requested_item shift.num is exist - process it [12:29:10]requested_item shift.opened is exist - process it [12:29:10]req_shift_opened [12:29:10]FM_GetShiftState [12:29:10]SAM_PROTO_GetShiftState [12:29:10]wFMCommunicate request_size=4 [12:29:10]MH_SAM_APDU [12:29:10]CAPDU: 80 13 01 00 [12:29:10]Write to MH i2c: E2 08 00 C6 01 80 13 01 00 00 00 00 00 44 [12:29:10]Write i2c OK [12:29:10]MH_I2C_Read... [12:29:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:29:10]Read from MH i2c: E2 [12:29:10]MH_I2C_Read... [12:29:10]Read from MH i2c: E2 0E 00 [12:29:10]MH_I2C_Read... [12:29:10]Read from MH i2c: E2 0E 00 C6 01 00 09 00 01 63 60 F3 66 00 00 00 00 90 00 6C [12:29:10]RAPDU: 09 00 01 63 60 F3 66 00 00 00 00 90 00 [12:29:10]wFMCommunicate OK [12:29:10]SAM_PROTO_GetShiftState done [12:29:10]FM_GetShiftState done [12:29:10]req_shift_opened done [12:29:10]requested_item shift.open_date is exist - process it [12:29:10]req_shift_open_date [12:29:10]req_shift_open_date done [12:29:10]produce_requested_data done [12:29:10]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":116215,"shift.num":474,"shift.opened":1,"shift.open_date":1727225955} [12:29:10]process_action_free close_receipt [12:29:10]json_value_free [12:29:10]json_value_free done [12:29:10]process_json_proto returns [12:29:10]Send response to host [12:29:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":116215,"shift.num":474,"shift.opened":1,"shift.open_date":1727225955}}} [12:29:10]free response buf [12:29:10]execute_script done [12:29:10]execute_script returns [12:29:10]free content buf [12:29:10]Sock 5.Close socket [12:29:10]Sock 5.Thread stoped [12:29:14]OFD Sender: No OFD packet to send [12:29:19]OFD Sender: No OFD packet to send [12:29:24]OFD Sender: No OFD packet to send [12:29:29]OFD Sender: No OFD packet to send [12:29:34]OFD Sender: No OFD packet to send [12:29:39]OFD Sender: No OFD packet to send [12:29:44]OFD Sender: No OFD packet to send [12:29:49]OFD Sender: No OFD packet to send [12:29:54]OFD Sender: No OFD packet to send [12:29:59]OFD Sender: No OFD packet to send [12:30:04]OFD Sender: No OFD packet to send [12:30:09]OFD Sender: No OFD packet to send [12:30:14]OFD Sender: No OFD packet to send [12:30:19]OFD Sender: No OFD packet to send [12:30:24]OFD Sender: No OFD packet to send [12:30:29]OFD Sender: No OFD packet to send [12:30:34]OFD Sender: No OFD packet to send [12:30:39]OFD Sender: No OFD packet to send [12:30:44]OFD Sender: No OFD packet to send [12:30:49]OFD Sender: No OFD packet to send [12:30:54]OFD Sender: No OFD packet to send [12:30:59]OFD Sender: No OFD packet to send [12:31:04]OFD Sender: No OFD packet to send [12:31:09]OFD Sender: No OFD packet to send [12:31:14]OFD Sender: No OFD packet to send [12:31:19]OFD Sender: No OFD packet to send [12:31:24]OFD Sender: No OFD packet to send [12:31:29]OFD Sender: No OFD packet to send [12:31:34]OFD Sender: No OFD packet to send [12:31:39]OFD Sender: No OFD packet to send [12:31:44]OFD Sender: No OFD packet to send [12:31:49]OFD Sender: No OFD packet to send [12:31:54]OFD Sender: No OFD packet to send [12:31:59]OFD Sender: No OFD packet to send [12:32:04]OFD Sender: No OFD packet to send [12:32:09]OFD Sender: No OFD packet to send [12:32:14]OFD Sender: No OFD packet to send [12:32:19]OFD Sender: No OFD packet to send [12:32:24]OFD Sender: No OFD packet to send [12:32:29]OFD Sender: No OFD packet to send [12:32:34]OFD Sender: No OFD packet to send [12:32:39]OFD Sender: No OFD packet to send [12:32:44]OFD Sender: No OFD packet to send [12:32:49]OFD Sender: No OFD packet to send [12:32:54]OFD Sender: No OFD packet to send [12:32:59]OFD Sender: No OFD packet to send [12:33:04]OFD Sender: No OFD packet to send [12:33:09]OFD Sender: No OFD packet to send [12:33:14]OFD Sender: No OFD packet to send [12:33:19]OFD Sender: No OFD packet to send [12:33:24]OFD Sender: No OFD packet to send [12:33:29]OFD Sender: No OFD packet to send [12:33:34]OFD Sender: No OFD packet to send [12:33:39]OFD Sender: No OFD packet to send [12:33:44]OFD Sender: No OFD packet to send [12:33:49]OFD Sender: No OFD packet to send [12:33:54]OFD Sender: No OFD packet to send [12:33:59]OFD Sender: No OFD packet to send [12:34:04]OFD Sender: No OFD packet to send [12:34:09]OFD Sender: No OFD packet to send [12:34:14]OFD Sender: No OFD packet to send [12:34:19]OFD Sender: No OFD packet to send [12:34:24]OFD Sender: No OFD packet to send [12:34:29]OFD Sender: No OFD packet to send [12:34:34]OFD Sender: No OFD packet to send [12:34:39]OFD Sender: No OFD packet to send [12:34:44]OFD Sender: No OFD packet to send [12:34:49]OFD Sender: No OFD packet to send [12:34:54]OFD Sender: No OFD packet to send [12:34:59]OFD Sender: No OFD packet to send [12:35:04]OFD Sender: No OFD packet to send [12:35:09]OFD Sender: No OFD packet to send [12:35:14]OFD Sender: No OFD packet to send [12:35:19]OFD Sender: No OFD packet to send [12:35:24]OFD Sender: No OFD packet to send [12:35:29]OFD Sender: No OFD packet to send [12:35:35]OFD Sender: No OFD packet to send [12:35:40]OFD Sender: No OFD packet to send [12:35:45]OFD Sender: No OFD packet to send [12:35:50]OFD Sender: No OFD packet to send [12:35:55]OFD Sender: No OFD packet to send [12:36:00]OFD Sender: No OFD packet to send [12:36:05]OFD Sender: No OFD packet to send [12:36:10]OFD Sender: No OFD packet to send [12:36:15]OFD Sender: No OFD packet to send [12:36:20]OFD Sender: No OFD packet to send [12:36:25]OFD Sender: No OFD packet to send [12:36:30]OFD Sender: No OFD packet to send [12:36:35]OFD Sender: No OFD packet to send [12:36:40]OFD Sender: No OFD packet to send [12:36:45]OFD Sender: No OFD packet to send [12:36:50]OFD Sender: No OFD packet to send [12:36:55]OFD Sender: No OFD packet to send [12:37:00]OFD Sender: No OFD packet to send [12:37:05]OFD Sender: No OFD packet to send [12:37:10]OFD Sender: No OFD packet to send [12:37:15]OFD Sender: No OFD packet to send [12:37:20]OFD Sender: No OFD packet to send [12:37:25]OFD Sender: No OFD packet to send [12:37:30]OFD Sender: No OFD packet to send [12:37:35]OFD Sender: No OFD packet to send [12:37:40]OFD Sender: No OFD packet to send [12:37:45]OFD Sender: No OFD packet to send [12:37:50]OFD Sender: No OFD packet to send [12:37:55]OFD Sender: No OFD packet to send [12:38:00]OFD Sender: No OFD packet to send [12:38:05]OFD Sender: No OFD packet to send [12:38:10]OFD Sender: No OFD packet to send [12:38:15]OFD Sender: No OFD packet to send [12:38:20]OFD Sender: No OFD packet to send [12:38:25]OFD Sender: No OFD packet to send [12:38:30]OFD Sender: No OFD packet to send [12:38:35]OFD Sender: No OFD packet to send [12:38:40]OFD Sender: No OFD packet to send [12:38:45]OFD Sender: No OFD packet to send [12:38:50]OFD Sender: No OFD packet to send [12:38:55]OFD Sender: No OFD packet to send [12:39:00]OFD Sender: No OFD packet to send [12:39:05]OFD Sender: No OFD packet to send [12:39:10]OFD Sender: No OFD packet to send [12:39:15]OFD Sender: No OFD packet to send [12:39:20]OFD Sender: No OFD packet to send [12:39:25]OFD Sender: No OFD packet to send [12:39:30]OFD Sender: No OFD packet to send [12:39:35]OFD Sender: No OFD packet to send [12:39:40]OFD Sender: No OFD packet to send [12:39:45]OFD Sender: No OFD packet to send [12:39:50]OFD Sender: No OFD packet to send [12:39:55]OFD Sender: No OFD packet to send [12:40:00]OFD Sender: No OFD packet to send [12:40:05]OFD Sender: No OFD packet to send [12:40:10]OFD Sender: No OFD packet to send [12:40:15]OFD Sender: No OFD packet to send [12:40:20]OFD Sender: No OFD packet to send [12:40:25]OFD Sender: No OFD packet to send [12:40:30]OFD Sender: No OFD packet to send [12:40:35]OFD Sender: No OFD packet to send [12:40:40]OFD Sender: No OFD packet to send [12:40:45]OFD Sender: No OFD packet to send [12:40:50]OFD Sender: No OFD packet to send [12:40:55]OFD Sender: No OFD packet to send [12:41:00]OFD Sender: No OFD packet to send [12:41:05]OFD Sender: No OFD packet to send [12:41:10]OFD Sender: No OFD packet to send [12:41:15]OFD Sender: No OFD packet to send [12:41:20]OFD Sender: No OFD packet to send [12:41:25]OFD Sender: No OFD packet to send [12:41:30]OFD Sender: No OFD packet to send [12:41:35]OFD Sender: No OFD packet to send [12:41:40]OFD Sender: No OFD packet to send [12:41:45]OFD Sender: No OFD packet to send [12:41:50]OFD Sender: No OFD packet to send [12:41:55]OFD Sender: No OFD packet to send [12:42:00]OFD Sender: No OFD packet to send [12:42:05]OFD Sender: No OFD packet to send [12:42:10]OFD Sender: No OFD packet to send [12:42:15]OFD Sender: No OFD packet to send [12:42:20]OFD Sender: No OFD packet to send [12:42:25]OFD Sender: No OFD packet to send [12:42:30]OFD Sender: No OFD packet to send [12:42:36]OFD Sender: No OFD packet to send [12:42:41]OFD Sender: No OFD packet to send [12:42:46]OFD Sender: No OFD packet to send [12:42:51]OFD Sender: No OFD packet to send [12:42:56]OFD Sender: No OFD packet to send [12:43:01]OFD Sender: No OFD packet to send [12:43:06]OFD Sender: No OFD packet to send [12:43:11]OFD Sender: No OFD packet to send [12:43:16]OFD Sender: No OFD packet to send [12:43:21]OFD Sender: No OFD packet to send [12:43:26]OFD Sender: No OFD packet to send [12:43:31]OFD Sender: No OFD packet to send [12:43:36]OFD Sender: No OFD packet to send [12:43:41]OFD Sender: No OFD packet to send [12:43:46]OFD Sender: No OFD packet to send [12:43:51]OFD Sender: No OFD packet to send [12:43:56]OFD Sender: No OFD packet to send [12:44:01]OFD Sender: No OFD packet to send [12:44:06]OFD Sender: No OFD packet to send [12:44:11]OFD Sender: No OFD packet to send [12:44:16]OFD Sender: No OFD packet to send [12:44:21]OFD Sender: No OFD packet to send [12:44:26]OFD Sender: No OFD packet to send [12:44:31]OFD Sender: No OFD packet to send [12:44:36]OFD Sender: No OFD packet to send [12:44:41]OFD Sender: No OFD packet to send [12:44:46]OFD Sender: No OFD packet to send [12:44:51]OFD Sender: No OFD packet to send [12:44:56]OFD Sender: No OFD packet to send [12:45:01]OFD Sender: No OFD packet to send [12:45:06]OFD Sender: No OFD packet to send [12:45:11]OFD Sender: No OFD packet to send [12:45:16]OFD Sender: No OFD packet to send [12:45:21]OFD Sender: No OFD packet to send [12:45:26]OFD Sender: No OFD packet to send [12:45:31]OFD Sender: No OFD packet to send [12:45:34]accept exits with 6 [12:45:34]New connection [12:45:34]New thread 3066813796 created [12:45:34]Thread 3066957156 joined [12:45:34]Waiting for new connection... [12:45:34] Sock 6.Parse request [12:45:34]Sock 6.Check first char [12:45:34]Sock 6.First char is OK [12:45:34]request: POST /json_proto HTTP/1.0 [12:45:34]Method: POST [12:45:34]URL: /json_proto [12:45:34]Method is POST - this is cgi request [12:45:34]url: /json_proto [12:45:34]query_string will be loaded in cgi processing [12:45:34]execute_cgi json_proto POST (null) [12:45:34]execute_cgi path=json_proto method=POST [12:45:34]POST find Content-Length [12:45:34]Host: 172.17.41.136:8080 [12:45:34]Content-Length: 1715 [12:45:34]Content-Type: application/json [12:45:34] [12:45:34]POST finish read [12:45:34]Found Content-Length = 1715 [12:45:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)344384", "tax_sys" : 0, "items" : [ { "code": "4870001571030", "name": "\u0412\u043E\u0434\u0430 ASU \u043F\u0438\u0442 \u043D.\u0433\u0430\u0437 \u043A\u043B\u0443\u0431\u043D,\u043A\u0438\u0432\u0438 \u041F\u042D\u0422 1\u043B", "price" : 70.00, "quantity" : 1.000, "sum" : 70.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000160211", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 0,5\u043B", "price" : 40.00, "quantity" : 1.000, "sum" : 40.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4640030091645", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B ESSE Exchange M", "price" : 150.00, "quantity" : 1.000, "sum" : 150.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000034250011", "name": "\u0413\u043E\u0440\u044F\u0447\u0438\u0439 \u0448\u043E\u043A\u043E\u043B\u0430\u0434 (GABB trade)", "price" : 120.00, "quantity" : 2.000, "sum" : 240.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000036230011", "name": "\u041A\u043E\u0444\u0435 \u041B\u0430\u0442\u0442\u0435 XL(GABB TRADE)", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 630.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:45:34]execute_script... [12:45:34]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)344384", "tax_sys" : 0, "items" : [ { "code": "4870001571030", "name": "\u0412\u043E\u0434\u0430 ASU \u043F\u0438\u0442 \u043D.\u0433\u0430\u0437 \u043A\u043B\u0443\u0431\u043D,\u043A\u0438\u0432\u0438 \u041F\u042D\u0422 1\u043B", "price" : 70.00, "quantity" : 1.000, "sum" : 70.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000160211", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 0,5\u043B", "price" : 40.00, "quantity" : 1.000, "sum" : 40.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4640030091645", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B ESSE Exchange M", "price" : 150.00, "quantity" : 1.000, "sum" : 150.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000034250011", "name": "\u0413\u043E\u0440\u044F\u0447\u0438\u0439 \u0448\u043E\u043A\u043E\u043B\u0430\u0434 (GABB trade)", "price" : 120.00, "quantity" : 2.000, "sum" : 240.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000036230011", "name": "\u041A\u043E\u0444\u0435 \u041B\u0430\u0442\u0442\u0435 XL(GABB TRADE)", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 630.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:45:34]POST & json_proto [12:45:34]process_json_proto [12:45:34]json parsed OK: [12:45:34]protocol is kg_v1.0 [12:45:34]action value=close_receipt [12:45:34]process_action close_receipt [12:45:34]cmd_close_receipt [12:45:34]MH_GetDate [12:45:34]Write to MH i2c: F0 00 00 C7 01 B7 [12:45:34]Write i2c OK [12:45:34]MH_I2C_Read... [12:45:34]Read from MH i2c: F0 [12:45:34]MH_I2C_Read... [12:45:34]Read from MH i2c: F0 09 00 [12:45:34]MH_I2C_Read... [12:45:34]Read from MH i2c: F0 09 00 C7 01 00 EF 05 F4 66 1B D0 5A 64 B7 [12:45:34]GetLastDocTimeStamp 1727267346 [12:45:34]current date 1727268335 [12:45:34]FM_GetShiftState [12:45:34]SAM_PROTO_GetShiftState [12:45:34]wFMCommunicate request_size=4 [12:45:34]MH_SAM_APDU [12:45:34]CAPDU: 80 13 01 00 [12:45:34]Write to MH i2c: E2 08 00 C8 01 80 13 01 00 00 00 00 00 46 [12:45:34]Write i2c OK [12:45:34]MH_I2C_Read... [12:45:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:45:34]Read from MH i2c: E2 [12:45:34]MH_I2C_Read... [12:45:34]Read from MH i2c: E2 0E 00 [12:45:34]MH_I2C_Read... [12:45:34]Read from MH i2c: E2 0E 00 C8 01 00 09 00 01 63 60 F3 66 00 00 00 00 90 00 6E [12:45:34]RAPDU: 09 00 01 63 60 F3 66 00 00 00 00 90 00 [12:45:34]wFMCommunicate OK [12:45:34]SAM_PROTO_GetShiftState done [12:45:34]FM_GetShiftState done [12:45:34]opened in 1727225955 [12:45:34]opened+sec_in_day 1727312355 [12:45:34]quantity*price = 7000 [12:45:34]sum+1 = 7001 [12:45:34]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700000160211 Вода Легенда 0,5л 1.000 * 40.00 = 40.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4640030091645 Сигареты ESSE Exchange M 1.000 * 150.00 = 150.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 2000034250011 Горячий шоколад (GABB trade) 2.000 * 120.00 = 240.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 2000036230011 Кофе Латте XL(GABB TRADE) 1.000 * 130.00 = 130.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 630.00 НСП 1% : 5.57 НДС 12% : 66.90 Наличными: 630.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 72 25.09.2024 12:45 Смена: 474 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 116216 ФПД: 162274550717817 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240925T124535&type=1&operation_type=1&fn_number=0000000000871830&fd_number=116216&fm=162274550717817&tin=02508201610067®Number=0000000000091831&sum=63000 0 [12:45:35]StoreToDocumentArchive [12:45:35]shift 474 fd 116216 [12:45:35]save to /storage/0474/doc_00116216 [12:45:35]save last doc name /storage/0474/doc_00116216 to /storage/kkm_last_doc_name [12:45:35]save OK [12:45:35]Clear old archive folders... [12:45:35]ProcessDocumentItem done err = 0, tmpTLVsize=727 [12:45:35]tlvbuf is 013A0420 [12:45:35]SAM_PROTO_ClearQueue [12:45:35]wFMCommunicate request_size=4 [12:45:35]MH_SAM_APDU [12:45:35]CAPDU: 80 09 00 00 [12:45:35]Write to MH i2c: E2 08 00 D5 01 80 09 00 00 00 00 00 00 48 [12:45:35]Write i2c OK [12:45:35]MH_I2C_Read... [12:45:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:45:36]Read from MH i2c: E2 [12:45:36]MH_I2C_Read... [12:45:36]Read from MH i2c: E2 03 00 [12:45:36]MH_I2C_Read... [12:45:36]Read from MH i2c: E2 03 00 D5 01 00 90 00 4A [12:45:36]RAPDU: 90 00 [12:45:36]wFMCommunicate OK [12:45:36]SAM_PROTO_ClearQueue done [12:45:36]KKMCreateOFDPacket [12:45:36]OFDProtocolAddRootSTLVToBuf [12:45:36]FM_MakeSignedData [12:45:36]FM_MakeSignedData [12:45:36]SAM_PROTO_SignData [12:45:36]wFMCommunicate request_size=4 [12:45:36]MH_SAM_APDU [12:45:36]CAPDU: 80 0D 01 02 [12:45:36]Write to MH i2c: E2 08 00 D6 01 80 0D 01 02 00 00 00 00 50 [12:45:36]Write i2c OK [12:45:36]MH_I2C_Read... [12:45:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:45:36]Read from MH i2c: E2 [12:45:36]MH_I2C_Read... [12:45:36]Read from MH i2c: E2 03 00 [12:45:36]MH_I2C_Read... [12:45:36]Read from MH i2c: E2 03 00 D6 01 00 90 00 4B [12:45:36]RAPDU: 90 00 [12:45:36]wFMCommunicate OK [12:45:36]wFMCommunicate request_size=255 [12:45:36]MH_SAM_APDU [12:45:36]CAPDU: 80 0D 02 02 FA 03 00 D7 02 1E 04 01 00 01 23 04 80 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 31 30 33 30 06 04 3C 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BA D0 BB D1 83 D0 B1 D0 BD 2C D0 BA D0 B8 D0 B2 D0 B8 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 64 00 8A 04 0D 00 [12:45:36]Write to MH i2c: E2 02 01 D7 01 80 0D 02 02 FA 00 03 00 D7 02 1E 04 01 00 01 23 04 80 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 31 30 33 30 06 04 3C 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BA D0 BB D1 83 D0 B1 D0 BD 2C D0 BA D0 B8 D0 B2 D0 B8 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 64 00 8A 04 0D 00 00 00 AF [12:45:36]Write i2c OK [12:45:36]MH_I2C_Read... [12:45:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:45:36]Read from MH i2c: E2 [12:45:36]MH_I2C_Read... [12:45:36]Read from MH i2c: E2 03 00 [12:45:36]MH_I2C_Read... [12:45:36]Read from MH i2c: E2 03 00 D7 01 00 90 00 4C [12:45:36]RAPDU: 90 00 [12:45:36]wFMCommunicate OK [12:45:36]wFMCommunicate request_size=255 [12:45:36]MH_SAM_APDU [12:45:36]CAPDU: 80 0D 02 02 FA 34 36 34 30 30 33 30 30 39 31 36 34 35 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 20 4D FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6E 00 8A 04 0D 00 32 30 30 30 30 33 34 32 35 30 30 31 31 06 04 2A 00 D0 93 D0 BE D1 80 D1 8F D1 87 D0 B8 D0 B9 20 D1 88 D0 BE D0 BA D0 BE D0 BB D0 B0 D0 B4 20 28 47 41 42 42 20 74 72 61 64 65 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 E0 2E 00 00 00 00 13 04 06 00 C0 5D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 66 00 8A 04 0D 00 32 30 30 30 30 33 36 32 33 30 30 31 31 06 04 22 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 [12:45:36]Write to MH i2c: E2 02 01 D8 01 80 0D 02 02 FA 00 34 36 34 30 30 33 30 30 39 31 36 34 35 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 20 4D FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6E 00 8A 04 0D 00 32 30 30 30 30 33 34 32 35 30 30 31 31 06 04 2A 00 D0 93 D0 BE D1 80 D1 8F D1 87 D0 B8 D0 B9 20 D1 88 D0 BE D0 BA D0 BE D0 BB D0 B0 D0 B4 20 28 47 41 42 42 20 74 72 61 64 65 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 E0 2E 00 00 00 00 13 04 06 00 C0 5D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 66 00 8A 04 0D 00 32 30 30 30 30 33 36 32 33 30 30 31 31 06 04 22 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 00 00 AE [12:45:36]Write i2c OK [12:45:36]MH_I2C_Read... [12:45:36]OFD Sender: No OFD packet to send [12:45:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:45:36]Read from MH i2c: E2 [12:45:36]MH_I2C_Read... [12:45:36]Read from MH i2c: E2 03 00 [12:45:36]MH_I2C_Read... [12:45:36]Read from MH i2c: E2 03 00 D8 01 00 90 00 4D [12:45:36]RAPDU: 90 00 [12:45:36]wFMCommunicate OK [12:45:36]wFMCommunicate request_size=236 [12:45:36]MH_SAM_APDU [12:45:36]CAPDU: 80 0D 02 02 E7 D1 82 D0 B5 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 F6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2D 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 22 1A 00 00 00 00 07 04 06 00 18 F6 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 00 00 00 F4 03 04 00 EF 05 F4 66 0E 04 04 00 DA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 F8 C5 01 00 35 04 06 00 93 96 7C F3 9D 79 [12:45:36]Write to MH i2c: E2 EF 00 D9 01 80 0D 02 02 E7 00 D1 82 D0 B5 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 F6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2D 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 22 1A 00 00 00 00 07 04 06 00 18 F6 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 00 00 00 F4 03 04 00 EF 05 F4 66 0E 04 04 00 DA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 F8 C5 01 00 35 04 06 00 93 96 7C F3 9D 79 00 00 47 [12:45:36]Write i2c OK [12:45:36]MH_I2C_Read... [12:45:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:45:36]Read from MH i2c: E2 [12:45:36]MH_I2C_Read... [12:45:36]Read from MH i2c: E2 03 00 [12:45:36]MH_I2C_Read... [12:45:36]Read from MH i2c: E2 03 00 D9 01 00 90 00 4E [12:45:36]RAPDU: 90 00 [12:45:36]wFMCommunicate OK [12:45:36]wFMCommunicate request_size=4 [12:45:36]MH_SAM_APDU [12:45:36]CAPDU: 80 0D 03 02 [12:45:36]Write to MH i2c: E2 08 00 DA 01 80 0D 03 02 00 00 00 00 56 [12:45:36]Write i2c OK [12:45:36]MH_I2C_Read... [12:45:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:45:36]Read from MH i2c: E2 [12:45:36]MH_I2C_Read... [12:45:36]Read from MH i2c: E2 0B 00 [12:45:36]MH_I2C_Read... [12:45:36]Read from MH i2c: E2 0B 00 DA 01 00 0B 4B 0C 20 FC 03 7F 63 90 00 BA [12:45:36]RAPDU: 0B 4B 0C 20 FC 03 7F 63 90 00 [12:45:36]wFMCommunicate OK [12:45:36]SAM_PROTO_SignData done [12:45:36]FM_MakeSignedData done [12:45:36]CreateOFDProtocolMessage [12:45:36]wFMCommunicate request_size=4 [12:45:36]MH_SAM_APDU [12:45:36]CAPDU: 80 11 00 00 [12:45:36]Write to MH i2c: E2 08 00 DB 01 80 11 00 00 00 00 00 00 56 [12:45:36]Write i2c OK [12:45:36]MH_I2C_Read... [12:45:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:45:36]Read from MH i2c: E2 [12:45:36]MH_I2C_Read... [12:45:36]Read from MH i2c: E2 17 00 [12:45:36]MH_I2C_Read... [12:45:36]Read from MH i2c: E2 17 00 DB 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 A4 [12:45:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [12:45:36]wFMCommunicate OK [12:45:36]CreateOFDProtocolMessage done [12:45:36]OFDSenderStorePacket 116216 [12:45:36]StoreOFDPacket docnum=116216 [12:45:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 EB 02 00 00 89 97 E3 02 6F F6 5A 03 01 00 03 00 D7 02 1E 04 01 00 01 23 04 80 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 31 30 33 30 06 04 3C 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BA D0 BB D1 83 D0 B1 D0 BD 2C D0 BA D0 B8 D0 B2 D0 B8 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 34 35 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 20 4D FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6E 00 8A 04 0D 00 32 30 30 30 30 33 34 32 35 30 30 31 31 06 04 2A 00 D0 93 D0 BE D1 80 D1 8F D1 87 D0 B8 D0 B9 20 D1 88 D0 BE D0 BA D0 BE D0 BB D0 B0 D0 B4 20 28 47 41 42 42 20 74 72 61 64 65 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 E0 2E 00 00 00 00 13 04 06 00 C0 5D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 66 00 8A 04 0D 00 32 30 30 30 30 33 36 32 33 30 30 31 31 06 04 22 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 F6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2D 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 22 1A 00 00 00 00 07 04 06 00 18 F6 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 00 00 00 F4 03 04 00 EF 05 F4 66 0E 04 04 00 DA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 F8 C5 01 00 35 04 06 00 93 96 7C F3 9D 79 0B 4B 0C 20 FC 03 7F 63 [12:45:37]CheckFolder [12:45:37]dirname=/storage/ofd_packets [12:45:37]CheckFolder done [12:45:37]ProducePacketName [12:45:37]name=ofd_packets/00116216 [12:45:37]NVStorageSaveData ofd_packets/00116216 [12:45:37]File name is /storage/ofd_packets/00116216 [12:45:37]Write 777 bytes [12:45:37]NVStorageSaveData done [12:45:37]OFDSenderStorePacket done [12:45:37]KKMCreateOFDPacket done [12:45:37]NVStorageSaveData kkm_last_timestamp [12:45:37]File name is /storage/kkm_last_timestamp [12:45:37]Write 4 bytes [12:45:37]NVStorageSaveData done [12:45:37]ExternCall_PrintAddStr [12:45:37]wPrintStart [12:45:37]Write to MH i2c: 01 00 00 DC 01 DD [12:45:37]Write i2c OK [12:45:37]MH_I2C_Read... [12:45:37]Read from MH i2c: 01 [12:45:37]MH_I2C_Read... [12:45:37]Read from MH i2c: 01 07 00 [12:45:37]MH_I2C_Read... [12:45:37]Read from MH i2c: 01 07 00 DC 01 00 00 00 00 00 FF 0F F2 [12:45:37]RasterBufferAndPrint [12:45:37]line Счет N : (3)344384 [12:45:37]line ИНН: 02508201610067 [12:45:37]line Контрольно-Кассовый Чек [12:45:37]line ПРОДАЖА [12:45:37]line Товар: 4870001571030 [12:45:37]line Вода ASU пит н.газ клубн,киви ПЭТ 1л [12:45:37]line 1.000 * 70.00 [12:45:37]line = 70.00 [12:45:37]line НДС 12% НСП 1% [12:45:37]line > о реализуемом товаре [12:45:37]line Товар: 4700000160211 [12:45:37]line Вода Легенда 0,5л [12:45:37]line 1.000 * 40.00 [12:45:37]line = 40.00 [12:45:37]line НДС 12% НСП 1% [12:45:37]line > о реализуемом товаре [12:45:37]line Товар: 4640030091645 [12:45:37]line Сигареты ESSE Exchange M [12:45:37]line 1.000 * 150.00 [12:45:37]line = 150.00 [12:45:37]line НДС 12% НСП 1% [12:45:37]line > о реализуемом товаре [12:45:37]line Товар: 2000034250011 [12:45:37]line Горячий шоколад (GABB trade) [12:45:37]line 2.000 * 120.00 [12:45:37]line = 240.00 [12:45:37]line НДС 12% НСП 1% [12:45:37]line > о реализуемом товаре [12:45:37]line Товар: 2000036230011 [12:45:37]line Кофе Латте XL(GABB TRADE) [12:45:37]line 1.000 * 130.00 [12:45:37]line = 130.00 [12:45:37]line НДС 12% НСП 1% [12:45:37]line > о реализуемом товаре [12:45:37]line ИТОГО: 630.00 [12:45:37]line НСП 1% : 5.57 [12:45:37]line НДС 12% : 66.90 [12:45:37]line Наличными: 630.00 [12:45:37]line Безнал.: 0.00 [12:45:37]line Место: АЗС № 90 "Партнер Нефть" [12:45:37]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [12:45:37]line СНО: Общий режим [12:45:37]line Чек 72 25.09.2024 12:45 [12:45:37]line Смена: 474 ФФД: 1.0 [12:45:37]line ЗНМ: 0300000120 [12:45:37]line РНМ: 0000000000091831 [12:45:37]line Версия ККМ: 001 [12:45:37]line ФМ: 0000000000871830 [12:45:37]line ФД: 116216 [12:45:37]line ФПД: 162274550717817 [12:45:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240925T124535&type=1&operation_type=1&fn_number=0000000000871830&fd_number=116216&fm=162274550717817&tin=02508201610067®Number=0000000000091831&sum=63000 [12:45:37]line 0 [12:45:37]written 0, free lines is 4095 [12:45:37]OFD Sender: Processing packet 116216 [packets to send 482, broken 481] [12:45:37]ProducePacketName [12:45:37]name=ofd_packets/00116216 [12:45:37]OFD Sender: To server: pG, [12:45:37]CommunicateWithHost lk.salyk.kg:30040 [12:45:37]ConnectInit lk.salyk.kg [12:45:37]Connected sock=7 [12:45:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 EB 02 00 00 89 97 E3 02 6F F6 5A 03 01 00 03 00 D7 02 1E 04 01 00 01 23 04 80 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 31 30 33 30 06 04 3C 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BA D0 BB D1 83 D0 B1 D0 BD 2C D0 BA D0 B8 D0 B2 D0 B8 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 34 35 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 20 4D FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6E 00 8A 04 0D 00 32 30 30 30 30 33 34 32 35 30 30 31 31 06 04 2A 00 D0 93 D0 BE D1 80 D1 8F D1 87 D0 B8 D0 B9 20 D1 88 D0 BE D0 BA D0 BE D0 BB D0 B0 D0 B4 20 28 47 41 42 42 20 74 72 61 64 65 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 E0 2E 00 00 00 00 13 04 06 00 C0 5D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 66 00 8A 04 0D 00 32 30 30 30 30 33 36 32 33 30 30 31 31 06 04 22 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 F6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2D 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 22 1A 00 00 00 00 07 04 06 00 18 F6 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 00 00 00 F4 03 04 00 EF 05 F4 66 0E 04 04 00 DA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 F8 C5 01 00 35 04 06 00 93 96 7C F3 9D 79 0B 4B 0C 20 FC 03 7F 63 [12:45:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 E4 30 47 00 EF 0B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 F8 C5 01 00 F4 03 04 00 2B AB F3 66 B6 04 01 00 00 3B CB B5 4D 7F C9 60 7F [12:45:38]CommunicateWithHost err = 0 [12:45:38]CheckOFDResponse [12:45:38]1017 (14) - 77093643461234 [12:45:38]1041 (16) - 0000000000871830 [12:45:38]1040 (4) - 116216 [12:45:38]1012 (4) - 25.09.2024 06:18 [12:45:38]1206 (1) - 0 [12:45:38]OFD Sender: Remove packet 116216 [12:45:38]ProducePacketName [12:45:38]name=ofd_packets/00116216 [12:45:38]NVStorageDeleteData [12:45:38]Write to MH i2c: 01 00 00 1D 02 1F [12:45:38]Write i2c OK [12:45:38]MH_I2C_Read... [12:45:38]Read from MH i2c: 01 [12:45:38]MH_I2C_Read... [12:45:38]Read from MH i2c: 01 07 00 [12:45:38]MH_I2C_Read... [12:45:38]Read from MH i2c: 01 07 00 1D 02 00 00 00 00 00 4F 0A 7F [12:45:38]RasterBufferAndPrint [12:45:38]line [12:45:38]line [12:45:38]line [12:45:38]line [12:45:38]line [12:45:38]written 0, free lines is 2645 [12:45:38]MH_Cut [12:45:38]Write to MH i2c: D1 01 00 24 02 01 F8 [12:45:38]Write i2c OK [12:45:38]MH_I2C_Read... [12:45:38]Read from MH i2c: D1 [12:45:38]MH_I2C_Read... [12:45:38]Read from MH i2c: D1 01 00 [12:45:38]MH_I2C_Read... [12:45:38]Read from MH i2c: D1 01 00 24 02 00 F7 [12:45:38]Write to MH i2c: 01 00 00 25 02 27 [12:45:38]Write i2c OK [12:45:38]MH_I2C_Read... [12:45:38]OFD Sender: No OFD packet to send [12:45:40]*** Cut start [12:45:40]*** Partial cut [12:45:40]*** CUTSNS_PIN = 1 [12:45:40]*** CUTSNS_PIN = 0 [12:45:40]*** Brake cut motor [12:45:40]Read from MH i2c: 01 [12:45:40]MH_I2C_Read... [12:45:40]*** Stop cut motor [12:45:40]*** Cut end [12:45:40]Read from MH i2c: 01 07 00 [12:45:40]MH_I2C_Read... [12:45:40]Read from MH i2c: 01 07 00 25 02 00 00 00 00 00 FF 0F 3C [12:45:40]process_action close_receipt done [12:45:40]requested_data is exist [12:45:40]produce_requested_data [12:45:40]requested_item fm.sn is exist - process it [12:45:40]wFMCommunicate request_size=4 [12:45:40]MH_SAM_APDU [12:45:40]CAPDU: 80 11 00 00 [12:45:40]Write to MH i2c: E2 08 00 26 02 80 11 00 00 00 00 00 00 A2 [12:45:40]Write i2c OK [12:45:40]MH_I2C_Read... [12:45:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:45:40]Read from MH i2c: E2 [12:45:40]MH_I2C_Read... [12:45:40]Read from MH i2c: E2 17 00 [12:45:40]MH_I2C_Read... [12:45:40]Read from MH i2c: E2 17 00 26 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 F0 [12:45:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [12:45:40]wFMCommunicate OK [12:45:40]requested_item fd.num is exist - process it [12:45:40]SAM_PROTO_GetFieldsCounters [12:45:40]wFMCommunicate request_size=4 [12:45:40]MH_SAM_APDU [12:45:40]CAPDU: 80 13 00 00 [12:45:40]Write to MH i2c: E2 08 00 27 02 80 13 00 00 00 00 00 00 A5 [12:45:40]Write i2c OK [12:45:40]MH_I2C_Read... [12:45:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:45:40]Read from MH i2c: E2 [12:45:40]MH_I2C_Read... [12:45:40]Read from MH i2c: E2 62 00 [12:45:40]MH_I2C_Read... [12:45:40]Read from MH i2c: E2 62 00 27 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 F8 C5 01 00 0E 04 04 00 DA 01 00 00 12 04 04 00 48 00 00 00 5E 04 04 00 48 00 00 00 57 04 04 00 49 00 00 00 19 04 04 00 00 00 00 00 90 00 2F [12:45:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 F8 C5 01 00 0E 04 04 00 DA 01 00 00 12 04 04 00 48 00 00 00 5E 04 04 00 48 00 00 00 57 04 04 00 49 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:45:40]wFMCommunicate OK [12:45:40]SAM_PROTO_GetFieldsCounters done [12:45:40]requested_item shift.num is exist - process it [12:45:40]requested_item shift.opened is exist - process it [12:45:40]req_shift_opened [12:45:40]FM_GetShiftState [12:45:40]SAM_PROTO_GetShiftState [12:45:40]wFMCommunicate request_size=4 [12:45:40]MH_SAM_APDU [12:45:40]CAPDU: 80 13 01 00 [12:45:40]Write to MH i2c: E2 08 00 28 02 80 13 01 00 00 00 00 00 A7 [12:45:40]Write i2c OK [12:45:40]MH_I2C_Read... [12:45:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:45:40]Read from MH i2c: E2 [12:45:40]MH_I2C_Read... [12:45:40]Read from MH i2c: E2 0E 00 [12:45:40]MH_I2C_Read... [12:45:40]Read from MH i2c: E2 0E 00 28 02 00 09 00 01 63 60 F3 66 00 00 00 00 90 00 CF [12:45:40]RAPDU: 09 00 01 63 60 F3 66 00 00 00 00 90 00 [12:45:40]wFMCommunicate OK [12:45:40]SAM_PROTO_GetShiftState done [12:45:40]FM_GetShiftState done [12:45:40]req_shift_opened done [12:45:40]requested_item shift.open_date is exist - process it [12:45:40]req_shift_open_date [12:45:40]req_shift_open_date done [12:45:40]produce_requested_data done [12:45:40]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":116216,"shift.num":474,"shift.opened":1,"shift.open_date":1727225955} [12:45:40]process_action_free close_receipt [12:45:40]json_value_free [12:45:40]json_value_free done [12:45:40]process_json_proto returns [12:45:40]Send response to host [12:45:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":116216,"shift.num":474,"shift.opened":1,"shift.open_date":1727225955}}} [12:45:40]free response buf [12:45:40]execute_script done [12:45:40]execute_script returns [12:45:40]free content buf [12:45:40]Sock 6.Close socket [12:45:40]Sock 6.Thread stoped [12:45:43]OFD Sender: No OFD packet to send [12:45:48]OFD Sender: No OFD packet to send [12:45:53]OFD Sender: No OFD packet to send [12:45:58]OFD Sender: No OFD packet to send [12:46:03]OFD Sender: No OFD packet to send [12:46:08]OFD Sender: No OFD packet to send [12:46:13]OFD Sender: No OFD packet to send [12:46:18]OFD Sender: No OFD packet to send [12:46:23]OFD Sender: No OFD packet to send [12:46:28]OFD Sender: No OFD packet to send [12:46:33]OFD Sender: No OFD packet to send [12:46:38]OFD Sender: No OFD packet to send [12:46:43]OFD Sender: No OFD packet to send [12:46:48]OFD Sender: No OFD packet to send [12:46:53]OFD Sender: No OFD packet to send [12:46:58]OFD Sender: No OFD packet to send [12:47:03]OFD Sender: No OFD packet to send [12:47:08]OFD Sender: No OFD packet to send [12:47:13]OFD Sender: No OFD packet to send [12:47:18]OFD Sender: No OFD packet to send [12:47:23]OFD Sender: No OFD packet to send [12:47:28]OFD Sender: No OFD packet to send [12:47:33]OFD Sender: No OFD packet to send [12:47:38]OFD Sender: No OFD packet to send [12:47:43]OFD Sender: No OFD packet to send [12:47:48]OFD Sender: No OFD packet to send [12:47:53]OFD Sender: No OFD packet to send [12:47:58]OFD Sender: No OFD packet to send [12:48:03]OFD Sender: No OFD packet to send [12:48:08]OFD Sender: No OFD packet to send [12:48:13]OFD Sender: No OFD packet to send [12:48:18]OFD Sender: No OFD packet to send [12:48:23]OFD Sender: No OFD packet to send [12:48:28]OFD Sender: No OFD packet to send [12:48:33]OFD Sender: No OFD packet to send [12:48:38]OFD Sender: No OFD packet to send [12:48:43]OFD Sender: No OFD packet to send [12:48:48]OFD Sender: No OFD packet to send [12:48:53]OFD Sender: No OFD packet to send [12:48:59]OFD Sender: No OFD packet to send [12:49:04]OFD Sender: No OFD packet to send [12:49:09]OFD Sender: No OFD packet to send [12:49:14]OFD Sender: No OFD packet to send [12:49:19]OFD Sender: No OFD packet to send [12:49:24]OFD Sender: No OFD packet to send [12:49:29]OFD Sender: No OFD packet to send [12:49:34]accept exits with 5 [12:49:34]New connection [12:49:34]New thread 3066957156 created [12:49:34]Thread 3066813796 joined [12:49:34]Waiting for new connection... [12:49:34] Sock 5.Parse request [12:49:34]Sock 5.Check first char [12:49:34]Sock 5.First char is OK [12:49:34]request: POST /json_proto HTTP/1.0 [12:49:34]Method: POST [12:49:34]URL: /json_proto [12:49:34]Method is POST - this is cgi request [12:49:34]url: /json_proto [12:49:34]query_string will be loaded in cgi processing [12:49:34]execute_cgi json_proto POST (null) [12:49:34]execute_cgi path=json_proto method=POST [12:49:34]POST find Content-Length [12:49:34]Host: 172.17.41.136:8080 [12:49:34]Content-Length: 1166 [12:49:34]Content-Type: application/json [12:49:34] [12:49:34]POST finish read [12:49:34]Found Content-Length = 1166 [12:49:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)344385", "tax_sys" : 0, "items" : [ { "code": "4700000160204", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1,5\u043B", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700040114137", "name": "\u0421\u0443\u043B\u0442\u0430\u043D \u0447\u0430\u0439 1\u043B. \u0437\u0435\u043B \u043B\u0438\u043C\u043E\u043D", "price" : 65.00, "quantity" : 1.000, "sum" : 65.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 175.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:49:34]execute_script... [12:49:34]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)344385", "tax_sys" : 0, "items" : [ { "code": "4700000160204", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1,5\u043B", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700040114137", "name": "\u0421\u0443\u043B\u0442\u0430\u043D \u0447\u0430\u0439 1\u043B. \u0437\u0435\u043B \u043B\u0438\u043C\u043E\u043D", "price" : 65.00, "quantity" : 1.000, "sum" : 65.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 175.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:49:34]POST & json_proto [12:49:34]process_json_proto [12:49:34]json parsed OK: [12:49:34]protocol is kg_v1.0 [12:49:34]action value=close_receipt [12:49:34]process_action close_receipt [12:49:34]cmd_close_receipt [12:49:34]MH_GetDate [12:49:34]Write to MH i2c: F0 00 00 29 02 1A [12:49:34]Write i2c OK [12:49:34]MH_I2C_Read... [12:49:34]Read from MH i2c: F0 [12:49:34]MH_I2C_Read... [12:49:34]Read from MH i2c: F0 09 00 [12:49:34]MH_I2C_Read... [12:49:34]Read from MH i2c: F0 09 00 29 02 00 DE 06 F4 66 1B D0 5A 64 0A [12:49:34]GetLastDocTimeStamp 1727268335 [12:49:34]current date 1727268574 [12:49:34]FM_GetShiftState [12:49:34]SAM_PROTO_GetShiftState [12:49:34]wFMCommunicate request_size=4 [12:49:34]MH_SAM_APDU [12:49:34]CAPDU: 80 13 01 00 [12:49:34]Write to MH i2c: E2 08 00 2A 02 80 13 01 00 00 00 00 00 A9 [12:49:34]Write i2c OK [12:49:34]MH_I2C_Read... [12:49:34]OFD Sender: No OFD packet to send [12:49:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:49:34]Read from MH i2c: E2 [12:49:34]MH_I2C_Read... [12:49:34]Read from MH i2c: E2 0E 00 [12:49:34]MH_I2C_Read... [12:49:34]Read from MH i2c: E2 0E 00 2A 02 00 09 00 01 63 60 F3 66 00 00 00 00 90 00 D1 [12:49:34]RAPDU: 09 00 01 63 60 F3 66 00 00 00 00 90 00 [12:49:34]wFMCommunicate OK [12:49:34]SAM_PROTO_GetShiftState done [12:49:34]FM_GetShiftState done [12:49:34]opened in 1727225955 [12:49:34]opened+sec_in_day 1727312355 [12:49:34]quantity*price = 6000 [12:49:34]sum+1 = 6001 [12:49:34]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700000160358 Вода Легенда 1л 1.000 * 50.00 = 50.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4700040114137 Султан чай 1л. зел лимон 1.000 * 65.00 = 65.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 175.00 НСП 1% : 1.54 НДС 12% : 18.58 Наличными: 175.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 73 25.09.2024 12:49 Смена: 474 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 116217 ФПД: 49504316299382 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240925T124934&type=1&operation_type=1&fn_number=0000000000871830&fd_number=116217&fm=49504316299382&tin=02508201610067®Number=0000000000091831&sum=17500 0 [12:49:35]StoreToDocumentArchive [12:49:35]shift 474 fd 116217 [12:49:35]save to /storage/0474/doc_00116217 [12:49:35]save last doc name /storage/0474/doc_00116217 to /storage/kkm_last_doc_name [12:49:35]save OK [12:49:35]Clear old archive folders... [12:49:35]ProcessDocumentItem done err = 0, tmpTLVsize=484 [12:49:35]tlvbuf is 01398750 [12:49:35]SAM_PROTO_ClearQueue [12:49:35]wFMCommunicate request_size=4 [12:49:35]MH_SAM_APDU [12:49:35]CAPDU: 80 09 00 00 [12:49:35]Write to MH i2c: E2 08 00 37 02 80 09 00 00 00 00 00 00 AB [12:49:35]Write i2c OK [12:49:35]MH_I2C_Read... [12:49:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:49:35]Read from MH i2c: E2 [12:49:35]MH_I2C_Read... [12:49:35]Read from MH i2c: E2 03 00 [12:49:35]MH_I2C_Read... [12:49:35]Read from MH i2c: E2 03 00 37 02 00 90 00 AD [12:49:35]RAPDU: 90 00 [12:49:35]wFMCommunicate OK [12:49:35]SAM_PROTO_ClearQueue done [12:49:35]KKMCreateOFDPacket [12:49:35]OFDProtocolAddRootSTLVToBuf [12:49:35]FM_MakeSignedData [12:49:35]FM_MakeSignedData [12:49:35]SAM_PROTO_SignData [12:49:35]wFMCommunicate request_size=4 [12:49:35]MH_SAM_APDU [12:49:35]CAPDU: 80 0D 01 02 [12:49:35]Write to MH i2c: E2 08 00 38 02 80 0D 01 02 00 00 00 00 B3 [12:49:35]Write i2c OK [12:49:35]MH_I2C_Read... [12:49:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:49:35]Read from MH i2c: E2 [12:49:35]MH_I2C_Read... [12:49:35]Read from MH i2c: E2 03 00 [12:49:35]MH_I2C_Read... [12:49:35]Read from MH i2c: E2 03 00 38 02 00 90 00 AE [12:49:35]RAPDU: 90 00 [12:49:35]wFMCommunicate OK [12:49:35]wFMCommunicate request_size=255 [12:49:35]MH_SAM_APDU [12:49:35]CAPDU: 80 0D 02 02 FA 03 00 E4 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 30 34 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6E 00 8A 04 0D 00 34 37 30 30 30 34 30 31 31 34 31 33 37 06 04 2A 00 D0 A1 D1 83 D0 BB D1 82 D0 B0 D0 BD 20 D1 87 D0 [12:49:35]Write to MH i2c: E2 02 01 39 02 80 0D 02 02 FA 00 03 00 E4 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 30 34 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6E 00 8A 04 0D 00 34 37 30 30 30 34 30 31 31 34 31 33 37 06 04 2A 00 D0 A1 D1 83 D0 BB D1 82 D0 B0 D0 BD 20 D1 87 D0 00 00 F7 [12:49:35]Write i2c OK [12:49:35]MH_I2C_Read... [12:49:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:49:35]Read from MH i2c: E2 [12:49:35]MH_I2C_Read... [12:49:35]Read from MH i2c: E2 03 00 [12:49:35]MH_I2C_Read... [12:49:35]Read from MH i2c: E2 03 00 39 02 00 90 00 AF [12:49:35]RAPDU: 90 00 [12:49:35]wFMCommunicate OK [12:49:35]wFMCommunicate request_size=243 [12:49:35]MH_SAM_APDU [12:49:35]CAPDU: 80 0D 02 02 EE B0 D0 B9 20 31 D0 BB 2E 20 D0 B7 D0 B5 D0 BB 20 D0 BB D0 B8 D0 BC D0 BE D0 BD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 44 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 42 07 00 00 00 00 07 04 06 00 5C 44 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 00 00 00 F4 03 04 00 DE 06 F4 66 0E 04 04 00 DA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 F9 C5 01 00 35 04 06 00 2D 06 1F 30 18 76 [12:49:35]Write to MH i2c: E2 F6 00 3A 02 80 0D 02 02 EE 00 B0 D0 B9 20 31 D0 BB 2E 20 D0 B7 D0 B5 D0 BB 20 D0 BB D0 B8 D0 BC D0 BE D0 BD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 44 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 42 07 00 00 00 00 07 04 06 00 5C 44 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 00 00 00 F4 03 04 00 DE 06 F4 66 0E 04 04 00 DA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 F9 C5 01 00 35 04 06 00 2D 06 1F 30 18 76 00 00 F8 [12:49:35]Write i2c OK [12:49:35]MH_I2C_Read... [12:49:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:49:36]Read from MH i2c: E2 [12:49:36]MH_I2C_Read... [12:49:36]Read from MH i2c: E2 03 00 [12:49:36]MH_I2C_Read... [12:49:36]Read from MH i2c: E2 03 00 3A 02 00 90 00 B0 [12:49:36]RAPDU: 90 00 [12:49:36]wFMCommunicate OK [12:49:36]wFMCommunicate request_size=4 [12:49:36]MH_SAM_APDU [12:49:36]CAPDU: 80 0D 03 02 [12:49:36]Write to MH i2c: E2 08 00 3B 02 80 0D 03 02 00 00 00 00 B8 [12:49:36]Write i2c OK [12:49:36]MH_I2C_Read... [12:49:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:49:36]Read from MH i2c: E2 [12:49:36]MH_I2C_Read... [12:49:36]Read from MH i2c: E2 0B 00 [12:49:36]MH_I2C_Read... [12:49:36]Read from MH i2c: E2 0B 00 3B 02 00 E6 6F DB C8 BD 85 FD 77 90 00 67 [12:49:36]RAPDU: E6 6F DB C8 BD 85 FD 77 90 00 [12:49:36]wFMCommunicate OK [12:49:36]SAM_PROTO_SignData done [12:49:36]FM_MakeSignedData done [12:49:36]CreateOFDProtocolMessage [12:49:36]wFMCommunicate request_size=4 [12:49:36]MH_SAM_APDU [12:49:36]CAPDU: 80 11 00 00 [12:49:36]Write to MH i2c: E2 08 00 3C 02 80 11 00 00 00 00 00 00 B8 [12:49:36]Write i2c OK [12:49:36]MH_I2C_Read... [12:49:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:49:36]Read from MH i2c: E2 [12:49:36]MH_I2C_Read... [12:49:36]Read from MH i2c: E2 17 00 [12:49:36]MH_I2C_Read... [12:49:36]Read from MH i2c: E2 17 00 3C 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 06 [12:49:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [12:49:36]wFMCommunicate OK [12:49:36]CreateOFDProtocolMessage done [12:49:36]OFDSenderStorePacket 116217 [12:49:36]StoreOFDPacket docnum=116217 [12:49:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 F8 01 00 00 B7 15 F0 01 9F E1 5A 03 01 00 03 00 E4 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 30 34 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6E 00 8A 04 0D 00 34 37 30 30 30 34 30 31 31 34 31 33 37 06 04 2A 00 D0 A1 D1 83 D0 BB D1 82 D0 B0 D0 BD 20 D1 87 D0 B0 D0 B9 20 31 D0 BB 2E 20 D0 B7 D0 B5 D0 BB 20 D0 BB D0 B8 D0 BC D0 BE D0 BD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 44 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 42 07 00 00 00 00 07 04 06 00 5C 44 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 00 00 00 F4 03 04 00 DE 06 F4 66 0E 04 04 00 DA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 F9 C5 01 00 35 04 06 00 2D 06 1F 30 18 76 E6 6F DB C8 BD 85 FD 77 [12:49:36]CheckFolder [12:49:36]dirname=/storage/ofd_packets [12:49:36]CheckFolder done [12:49:36]ProducePacketName [12:49:36]name=ofd_packets/00116217 [12:49:36]NVStorageSaveData ofd_packets/00116217 [12:49:36]File name is /storage/ofd_packets/00116217 [12:49:36]Write 534 bytes [12:49:36]NVStorageSaveData done [12:49:36]OFDSenderStorePacket done [12:49:36]KKMCreateOFDPacket done [12:49:36]NVStorageSaveData kkm_last_timestamp [12:49:36]File name is /storage/kkm_last_timestamp [12:49:36]Write 4 bytes [12:49:36]NVStorageSaveData done [12:49:36]ExternCall_PrintAddStr [12:49:36]wPrintStart [12:49:36]Write to MH i2c: 01 00 00 3D 02 3F [12:49:36]OFD Sender: Processing packet 116217 [packets to send 482, broken 481] [12:49:36]ProducePacketName [12:49:36]name=ofd_packets/00116217 [12:49:36]OFD Sender: To server: pG, [12:49:36]CommunicateWithHost lk.salyk.kg:30040 [12:49:36]ConnectInit lk.salyk.kg [12:49:36]Write i2c OK [12:49:36]MH_I2C_Read... [12:49:36]Read from MH i2c: 01 [12:49:36]MH_I2C_Read... [12:49:36]Read from MH i2c: 01 07 00 [12:49:36]MH_I2C_Read... [12:49:36]Read from MH i2c: 01 07 00 3D 02 00 00 00 00 00 FF 0F 54 [12:49:36]RasterBufferAndPrint [12:49:36]line Счет N : (3)344385 [12:49:36]line ИНН: 02508201610067 [12:49:36]line Контрольно-Кассовый Чек [12:49:36]line ПРОДАЖА [12:49:36]line Товар: 4700000160204 [12:49:36]line Вода Легенда 1,5л [12:49:36]line 1.000 * 60.00 [12:49:36]line = 60.00 [12:49:36]line НДС 12% НСП 1% [12:49:36]line > о реализуемом товаре [12:49:36]line Товар: 4700000160358 [12:49:36]line Вода Легенда 1л [12:49:36]line 1.000 * 50.00 [12:49:36]line = 50.00 [12:49:36]line НДС 12% НСП 1% [12:49:36]line > о реализуемом товаре [12:49:36]line Товар: 4700040114137 [12:49:36]line Султан чай 1л. зел лимон [12:49:36]line 1.000 * 65.00 [12:49:36]line = 65.00 [12:49:36]line НДС 12% НСП 1% [12:49:36]line > о реализуемом товаре [12:49:36]line ИТОГО: 175.00 [12:49:36]line НСП 1% : 1.54 [12:49:36]line НДС 12% : 18.58 [12:49:36]line Наличными: 175.00 [12:49:36]line Безнал.: 0.00 [12:49:36]line Место: АЗС № 90 "Партнер Нефть" [12:49:36]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [12:49:36]line СНО: Общий режим [12:49:36]line Чек 73 25.09.2024 12:49 [12:49:36]line Смена: 474 ФФД: 1.0 [12:49:36]line ЗНМ: 0300000120 [12:49:36]line РНМ: 0000000000091831 [12:49:36]line Версия ККМ: 001 [12:49:36]line ФМ: 0000000000871830 [12:49:36]line ФД: 116217 [12:49:36]line ФПД: 49504316299382 [12:49:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240925T124934&type=1&operation_type=1&fn_number=0000000000871830&fd_number=116217&fm=49504316299382&tin=02508201610067®Number=0000000000091831&sum=17500 [12:49:36]line 0 [12:49:36]written 0, free lines is 4095 [12:49:36]Write to MH i2c: 01 00 00 70 02 72 [12:49:36]Write i2c OK [12:49:36]MH_I2C_Read... [12:49:36]Read from MH i2c: 01 [12:49:36]MH_I2C_Read... [12:49:36]Read from MH i2c: 01 07 00 [12:49:36]MH_I2C_Read... [12:49:36]Read from MH i2c: 01 07 00 70 02 00 00 00 00 00 7B 0B FF [12:49:36]RasterBufferAndPrint [12:49:36]line [12:49:36]line [12:49:36]line [12:49:36]line [12:49:36]line [12:49:36]written 0, free lines is 2942 [12:49:36]MH_Cut [12:49:36]Write to MH i2c: D1 01 00 77 02 01 4B [12:49:36]Write i2c OK [12:49:36]MH_I2C_Read... [12:49:36]Read from MH i2c: D1 [12:49:36]MH_I2C_Read... [12:49:36]Read from MH i2c: D1 01 00 [12:49:36]MH_I2C_Read... [12:49:36]Read from MH i2c: D1 01 00 77 02 00 4A [12:49:36]Write to MH i2c: 01 00 00 78 02 7A [12:49:36]Write i2c OK [12:49:36]MH_I2C_Read... [12:49:37]Connected sock=7 [12:49:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 F8 01 00 00 B7 15 F0 01 9F E1 5A 03 01 00 03 00 E4 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 30 34 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6E 00 8A 04 0D 00 34 37 30 30 30 34 30 31 31 34 31 33 37 06 04 2A 00 D0 A1 D1 83 D0 BB D1 82 D0 B0 D0 BD 20 D1 87 D0 B0 D0 B9 20 31 D0 BB 2E 20 D0 B7 D0 B5 D0 BB 20 D0 BB D0 B8 D0 BC D0 BE D0 BD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 44 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 42 07 00 00 00 00 07 04 06 00 5C 44 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 00 00 00 F4 03 04 00 DE 06 F4 66 0E 04 04 00 DA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 F9 C5 01 00 35 04 06 00 2D 06 1F 30 18 76 E6 6F DB C8 BD 85 FD 77 [12:49:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 33 EB 47 00 3A E4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 F9 C5 01 00 F4 03 04 00 1B AC F3 66 B6 04 01 00 00 72 B0 17 E9 6E 85 32 5F [12:49:37]CommunicateWithHost err = 0 [12:49:37]CheckOFDResponse [12:49:37]1017 (14) - 77093643461234 [12:49:37]1041 (16) - 0000000000871830 [12:49:37]1040 (4) - 116217 [12:49:37]1012 (4) - 25.09.2024 06:22 [12:49:37]1206 (1) - 0 [12:49:37]OFD Sender: Remove packet 116217 [12:49:37]ProducePacketName [12:49:37]name=ofd_packets/00116217 [12:49:37]NVStorageDeleteData [12:49:37]OFD Sender: No OFD packet to send [12:49:38]*** Cut start [12:49:38]*** Partial cut [12:49:38]*** CUTSNS_PIN = 1 [12:49:38]*** CUTSNS_PIN = 0 [12:49:38]*** Brake cut motor [12:49:39]Read from MH i2c: 01 [12:49:39]MH_I2C_Read... [12:49:39]*** Stop cut motor [12:49:39]*** Cut end [12:49:39]Read from MH i2c: 01 07 00 [12:49:39]MH_I2C_Read... [12:49:39]Read from MH i2c: 01 07 00 78 02 00 00 00 00 00 FF 0F 8F [12:49:39]process_action close_receipt done [12:49:39]requested_data is exist [12:49:39]produce_requested_data [12:49:39]requested_item fm.sn is exist - process it [12:49:39]wFMCommunicate request_size=4 [12:49:39]MH_SAM_APDU [12:49:39]CAPDU: 80 11 00 00 [12:49:39]Write to MH i2c: E2 08 00 79 02 80 11 00 00 00 00 00 00 F5 [12:49:39]Write i2c OK [12:49:39]MH_I2C_Read... [12:49:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:49:39]Read from MH i2c: E2 [12:49:39]MH_I2C_Read... [12:49:39]Read from MH i2c: E2 17 00 [12:49:39]MH_I2C_Read... [12:49:39]Read from MH i2c: E2 17 00 79 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 43 [12:49:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [12:49:39]wFMCommunicate OK [12:49:39]requested_item fd.num is exist - process it [12:49:39]SAM_PROTO_GetFieldsCounters [12:49:39]wFMCommunicate request_size=4 [12:49:39]MH_SAM_APDU [12:49:39]CAPDU: 80 13 00 00 [12:49:39]Write to MH i2c: E2 08 00 7A 02 80 13 00 00 00 00 00 00 F8 [12:49:39]Write i2c OK [12:49:39]MH_I2C_Read... [12:49:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:49:39]Read from MH i2c: E2 [12:49:39]MH_I2C_Read... [12:49:39]Read from MH i2c: E2 62 00 [12:49:39]MH_I2C_Read... [12:49:39]Read from MH i2c: E2 62 00 7A 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 F9 C5 01 00 0E 04 04 00 DA 01 00 00 12 04 04 00 49 00 00 00 5E 04 04 00 49 00 00 00 57 04 04 00 4A 00 00 00 19 04 04 00 00 00 00 00 90 00 86 [12:49:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 F9 C5 01 00 0E 04 04 00 DA 01 00 00 12 04 04 00 49 00 00 00 5E 04 04 00 49 00 00 00 57 04 04 00 4A 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:49:39]wFMCommunicate OK [12:49:39]SAM_PROTO_GetFieldsCounters done [12:49:39]requested_item shift.num is exist - process it [12:49:39]requested_item shift.opened is exist - process it [12:49:39]req_shift_opened [12:49:39]FM_GetShiftState [12:49:39]SAM_PROTO_GetShiftState [12:49:39]wFMCommunicate request_size=4 [12:49:39]MH_SAM_APDU [12:49:39]CAPDU: 80 13 01 00 [12:49:39]Write to MH i2c: E2 08 00 7B 02 80 13 01 00 00 00 00 00 FA [12:49:39]Write i2c OK [12:49:39]MH_I2C_Read... [12:49:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:49:39]Read from MH i2c: E2 [12:49:39]MH_I2C_Read... [12:49:39]Read from MH i2c: E2 0E 00 [12:49:39]MH_I2C_Read... [12:49:39]Read from MH i2c: E2 0E 00 7B 02 00 09 00 01 63 60 F3 66 00 00 00 00 90 00 22 [12:49:39]RAPDU: 09 00 01 63 60 F3 66 00 00 00 00 90 00 [12:49:39]wFMCommunicate OK [12:49:39]SAM_PROTO_GetShiftState done [12:49:39]FM_GetShiftState done [12:49:39]req_shift_opened done [12:49:39]requested_item shift.open_date is exist - process it [12:49:39]req_shift_open_date [12:49:39]req_shift_open_date done [12:49:39]produce_requested_data done [12:49:39]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":116217,"shift.num":474,"shift.opened":1,"shift.open_date":1727225955} [12:49:39]process_action_free close_receipt [12:49:39]json_value_free [12:49:39]json_value_free done [12:49:39]process_json_proto returns [12:49:39]Send response to host [12:49:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":116217,"shift.num":474,"shift.opened":1,"shift.open_date":1727225955}}} [12:49:39]free response buf [12:49:39]execute_script done [12:49:39]execute_script returns [12:49:39]free content buf [12:49:39]Sock 5.Close socket [12:49:39]Sock 5.Thread stoped [12:49:42]OFD Sender: No OFD packet to send [12:49:47]OFD Sender: No OFD packet to send [12:49:52]OFD Sender: No OFD packet to send [12:49:58]OFD Sender: No OFD packet to send [12:50:03]OFD Sender: No OFD packet to send [12:50:08]OFD Sender: No OFD packet to send [12:50:13]OFD Sender: No OFD packet to send [12:50:18]OFD Sender: No OFD packet to send [12:50:23]OFD Sender: No OFD packet to send [12:50:28]OFD Sender: No OFD packet to send [12:50:33]OFD Sender: No OFD packet to send [12:50:38]OFD Sender: No OFD packet to send [12:50:43]OFD Sender: No OFD packet to send [12:50:48]OFD Sender: No OFD packet to send [12:50:53]OFD Sender: No OFD packet to send [12:50:58]OFD Sender: No OFD packet to send [12:51:03]OFD Sender: No OFD packet to send [12:51:08]OFD Sender: No OFD packet to send [12:51:13]OFD Sender: No OFD packet to send [12:51:18]OFD Sender: No OFD packet to send [12:51:23]OFD Sender: No OFD packet to send [12:51:28]OFD Sender: No OFD packet to send [12:51:33]OFD Sender: No OFD packet to send [12:51:38]OFD Sender: No OFD packet to send [12:51:43]OFD Sender: No OFD packet to send [12:51:48]OFD Sender: No OFD packet to send [12:51:53]OFD Sender: No OFD packet to send [12:51:58]OFD Sender: No OFD packet to send [12:52:03]OFD Sender: No OFD packet to send [12:52:08]OFD Sender: No OFD packet to send [12:52:13]OFD Sender: No OFD packet to send [12:52:18]OFD Sender: No OFD packet to send [12:52:23]OFD Sender: No OFD packet to send [12:52:28]OFD Sender: No OFD packet to send [12:52:33]OFD Sender: No OFD packet to send [12:52:38]OFD Sender: No OFD packet to send [12:52:43]OFD Sender: No OFD packet to send [12:52:48]OFD Sender: No OFD packet to send [12:52:53]OFD Sender: No OFD packet to send [12:52:58]OFD Sender: No OFD packet to send [12:53:03]OFD Sender: No OFD packet to send [12:53:08]OFD Sender: No OFD packet to send [12:53:13]OFD Sender: No OFD packet to send [12:53:18]OFD Sender: No OFD packet to send [12:53:23]OFD Sender: No OFD packet to send [12:53:28]OFD Sender: No OFD packet to send [12:53:33]OFD Sender: No OFD packet to send [12:53:38]OFD Sender: No OFD packet to send [12:53:43]OFD Sender: No OFD packet to send [12:53:48]OFD Sender: No OFD packet to send [12:53:53]OFD Sender: No OFD packet to send [12:53:58]OFD Sender: No OFD packet to send [12:54:03]accept exits with 6 [12:54:03]New connection [12:54:03]New thread 3066813796 created [12:54:03]Thread 3066957156 joined [12:54:03]Waiting for new connection... [12:54:03] Sock 6.Parse request [12:54:03]Sock 6.Check first char [12:54:03]Sock 6.First char is OK [12:54:03]request: POST /json_proto HTTP/1.0 [12:54:03]Method: POST [12:54:03]URL: /json_proto [12:54:03]Method is POST - this is cgi request [12:54:03]url: /json_proto [12:54:03]query_string will be loaded in cgi processing [12:54:03]execute_cgi json_proto POST (null) [12:54:03]execute_cgi path=json_proto method=POST [12:54:03]POST find Content-Length [12:54:03]Host: 172.17.41.136:8080 [12:54:03]Content-Length: 1438 [12:54:03]Content-Type: application/json [12:54:03] [12:54:03]POST finish read [12:54:03]Found Content-Length = 1438 [12:54:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)344386", "tax_sys" : 0, "items" : [ { "code": "4700007690018", "name": "\u041D\u0435\u0433\u0430\u0437 \u0432\u043E\u0434\u0430 Pamir 0,5 \u043B", "price" : 30.00, "quantity" : 1.000, "sum" : 30.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4860019001353", "name": "\u0412\u043E\u0434\u0430 \u0411\u043E\u0440\u0436\u043E\u043C\u0438 0,5\u043B \u041F\u042D\u0422", "price" : 87.00, "quantity" : 1.000, "sum" : 87.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870001157913", "name": "\u0412\u043E\u0434\u0430 ASU 0,5\u043B c \u0431\u0435\u0437 \u0433\u0430\u0437\u0430", "price" : 40.00, "quantity" : 1.000, "sum" : 40.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700040114137", "name": "\u0421\u0443\u043B\u0442\u0430\u043D \u0447\u0430\u0439 1\u043B. \u0437\u0435\u043B \u043B\u0438\u043C\u043E\u043D", "price" : 65.00, "quantity" : 1.000, "sum" : 65.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 222.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:54:03]execute_script... [12:54:03]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)344386", "tax_sys" : 0, "items" : [ { "code": "4700007690018", "name": "\u041D\u0435\u0433\u0430\u0437 \u0432\u043E\u0434\u0430 Pamir 0,5 \u043B", "price" : 30.00, "quantity" : 1.000, "sum" : 30.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4860019001353", "name": "\u0412\u043E\u0434\u0430 \u0411\u043E\u0440\u0436\u043E\u043C\u0438 0,5\u043B \u041F\u042D\u0422", "price" : 87.00, "quantity" : 1.000, "sum" : 87.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870001157913", "name": "\u0412\u043E\u0434\u0430 ASU 0,5\u043B c \u0431\u0435\u0437 \u0433\u0430\u0437\u0430", "price" : 40.00, "quantity" : 1.000, "sum" : 40.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700040114137", "name": "\u0421\u0443\u043B\u0442\u0430\u043D \u0447\u0430\u0439 1\u043B. \u0437\u0435\u043B \u043B\u0438\u043C\u043E\u043D", "price" : 65.00, "quantity" : 1.000, "sum" : 65.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 222.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:54:03]POST & json_proto [12:54:03]process_json_proto [12:54:03]json parsed OK: [12:54:03]protocol is kg_v1.0 [12:54:03]action value=close_receipt [12:54:03]process_action close_receipt [12:54:03]cmd_close_receipt [12:54:03]MH_GetDate [12:54:03]Write to MH i2c: F0 00 00 7C 02 6D [12:54:03]Write i2c OK [12:54:03]MH_I2C_Read... [12:54:03]Read from MH i2c: F0 [12:54:03]MH_I2C_Read... [12:54:03]Read from MH i2c: F0 09 00 [12:54:03]MH_I2C_Read... [12:54:03]Read from MH i2c: F0 09 00 7C 02 00 EB 07 F4 66 1B D0 5A 64 6B [12:54:03]GetLastDocTimeStamp 1727268574 [12:54:03]current date 1727268843 [12:54:03]FM_GetShiftState [12:54:03]SAM_PROTO_GetShiftState [12:54:03]wFMCommunicate request_size=4 [12:54:03]MH_SAM_APDU [12:54:03]CAPDU: 80 13 01 00 [12:54:03]Write to MH i2c: E2 08 00 7D 02 80 13 01 00 00 00 00 00 FC [12:54:03]OFD Sender: No OFD packet to send [12:54:03]Write i2c OK [12:54:03]MH_I2C_Read... [12:54:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:54:03]Read from MH i2c: E2 [12:54:03]MH_I2C_Read... [12:54:03]Read from MH i2c: E2 0E 00 [12:54:03]MH_I2C_Read... [12:54:03]Read from MH i2c: E2 0E 00 7D 02 00 09 00 01 63 60 F3 66 00 00 00 00 90 00 24 [12:54:03]RAPDU: 09 00 01 63 60 F3 66 00 00 00 00 90 00 [12:54:03]wFMCommunicate OK [12:54:03]SAM_PROTO_GetShiftState done [12:54:03]FM_GetShiftState done [12:54:03]opened in 1727225955 [12:54:03]opened+sec_in_day 1727312355 [12:54:03]quantity*price = 3000 [12:54:03]sum+1 = 3001 [12:54:03]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4860019001353 Вода Боржоми 0,5л ПЭТ 1.000 * 87.00 = 87.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4870001157913 Вода ASU 0,5л c без газа 1.000 * 40.00 = 40.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4700040114137 Султан чай 1л. зел лимон 1.000 * 65.00 = 65.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 222.00 НСП 1% : 1.95 НДС 12% : 23.58 Наличными: 222.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 74 25.09.2024 12:54 Смена: 474 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 116218 ФПД: 79027556048053 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240925T125403&type=1&operation_type=1&fn_number=0000000000871830&fd_number=116218&fm=79027556048053&tin=02508201610067®Number=0000000000091831&sum=22200 0 [12:54:04]StoreToDocumentArchive [12:54:04]shift 474 fd 116218 [12:54:04]save to /storage/0474/doc_00116218 [12:54:04]save last doc name /storage/0474/doc_00116218 to /storage/kkm_last_doc_name [12:54:04]save OK [12:54:04]Clear old archive folders... [12:54:04]ProcessDocumentItem done err = 0, tmpTLVsize=604 [12:54:04]tlvbuf is 01398260 [12:54:04]SAM_PROTO_ClearQueue [12:54:04]wFMCommunicate request_size=4 [12:54:04]MH_SAM_APDU [12:54:04]CAPDU: 80 09 00 00 [12:54:04]Write to MH i2c: E2 08 00 8A 02 80 09 00 00 00 00 00 00 FE [12:54:04]Write i2c OK [12:54:04]MH_I2C_Read... [12:54:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:54:04]Read from MH i2c: E2 [12:54:04]MH_I2C_Read... [12:54:04]Read from MH i2c: E2 03 00 [12:54:04]MH_I2C_Read... [12:54:04]Read from MH i2c: E2 03 00 8A 02 00 90 00 00 [12:54:04]RAPDU: 90 00 [12:54:04]wFMCommunicate OK [12:54:04]SAM_PROTO_ClearQueue done [12:54:04]KKMCreateOFDPacket [12:54:04]OFDProtocolAddRootSTLVToBuf [12:54:04]FM_MakeSignedData [12:54:04]FM_MakeSignedData [12:54:04]SAM_PROTO_SignData [12:54:04]wFMCommunicate request_size=4 [12:54:04]MH_SAM_APDU [12:54:04]CAPDU: 80 0D 01 02 [12:54:04]Write to MH i2c: E2 08 00 8B 02 80 0D 01 02 00 00 00 00 06 [12:54:04]Write i2c OK [12:54:04]MH_I2C_Read... [12:54:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:54:04]Read from MH i2c: E2 [12:54:04]MH_I2C_Read... [12:54:04]Read from MH i2c: E2 03 00 [12:54:04]MH_I2C_Read... [12:54:04]Read from MH i2c: E2 03 00 8B 02 00 90 00 01 [12:54:04]RAPDU: 90 00 [12:54:04]wFMCommunicate OK [12:54:04]wFMCommunicate request_size=255 [12:54:04]MH_SAM_APDU [12:54:04]CAPDU: 80 0D 02 02 FA 03 00 5C 02 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 34 37 30 30 30 30 37 36 39 30 30 31 38 06 04 20 00 D0 9D D0 B5 D0 B3 D0 B0 D0 B7 20 D0 B2 D0 BE D0 B4 D0 B0 20 50 61 6D 69 72 20 30 2C 35 20 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B8 0B 00 00 00 00 13 04 06 00 B8 0B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 34 38 36 30 30 31 39 30 30 31 33 35 33 06 04 24 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D1 80 D0 B6 D0 BE D0 BC D0 B8 20 30 2C 35 D0 BB 20 D0 9F D0 AD D0 A2 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 FC 21 00 00 00 00 13 04 06 00 FC 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 34 38 37 30 30 30 31 31 35 37 39 31 33 06 04 24 00 D0 92 D0 BE [12:54:04]Write to MH i2c: E2 02 01 8C 02 80 0D 02 02 FA 00 03 00 5C 02 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 34 37 30 30 30 30 37 36 39 30 30 31 38 06 04 20 00 D0 9D D0 B5 D0 B3 D0 B0 D0 B7 20 D0 B2 D0 BE D0 B4 D0 B0 20 50 61 6D 69 72 20 30 2C 35 20 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B8 0B 00 00 00 00 13 04 06 00 B8 0B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 34 38 36 30 30 31 39 30 30 31 33 35 33 06 04 24 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D1 80 D0 B6 D0 BE D0 BC D0 B8 20 30 2C 35 D0 BB 20 D0 9F D0 AD D0 A2 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 FC 21 00 00 00 00 13 04 06 00 FC 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 34 38 37 30 30 30 31 31 35 37 39 31 33 06 04 24 00 D0 92 D0 BE 00 00 71 [12:54:04]Write i2c OK [12:54:04]MH_I2C_Read... [12:54:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:54:05]Read from MH i2c: E2 [12:54:05]MH_I2C_Read... [12:54:05]Read from MH i2c: E2 03 00 [12:54:05]MH_I2C_Read... [12:54:05]Read from MH i2c: E2 03 00 8C 02 00 90 00 02 [12:54:05]RAPDU: 90 00 [12:54:05]wFMCommunicate OK [12:54:05]wFMCommunicate request_size=255 [12:54:05]MH_SAM_APDU [12:54:05]CAPDU: 80 0D 02 02 FA D0 B4 D0 B0 20 41 53 55 20 30 2C 35 D0 BB 20 63 20 D0 B1 D0 B5 D0 B7 20 D0 B3 D0 B0 D0 B7 D0 B0 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6E 00 8A 04 0D 00 34 37 30 30 30 34 30 31 31 34 31 33 37 06 04 2A 00 D0 A1 D1 83 D0 BB D1 82 D0 B0 D0 BD 20 D1 87 D0 B0 D0 B9 20 31 D0 BB 2E 20 D0 B7 D0 B5 D0 BB 20 D0 BB D0 B8 D0 BC D0 BE D0 BD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 56 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 36 09 00 00 00 00 07 04 06 00 B8 [12:54:05]Write to MH i2c: E2 02 01 8D 02 80 0D 02 02 FA 00 D0 B4 D0 B0 20 41 53 55 20 30 2C 35 D0 BB 20 63 20 D0 B1 D0 B5 D0 B7 20 D0 B3 D0 B0 D0 B7 D0 B0 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6E 00 8A 04 0D 00 34 37 30 30 30 34 30 31 31 34 31 33 37 06 04 2A 00 D0 A1 D1 83 D0 BB D1 82 D0 B0 D0 BD 20 D1 87 D0 B0 D0 B9 20 31 D0 BB 2E 20 D0 B7 D0 B5 D0 BB 20 D0 BB D0 B8 D0 BC D0 BE D0 BD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 56 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 36 09 00 00 00 00 07 04 06 00 B8 00 00 AE [12:54:05]Write i2c OK [12:54:05]MH_I2C_Read... [12:54:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:54:05]Read from MH i2c: E2 [12:54:05]MH_I2C_Read... [12:54:05]Read from MH i2c: E2 03 00 [12:54:05]MH_I2C_Read... [12:54:05]Read from MH i2c: E2 03 00 8D 02 00 90 00 03 [12:54:05]RAPDU: 90 00 [12:54:05]wFMCommunicate OK [12:54:05]wFMCommunicate request_size=113 [12:54:05]MH_SAM_APDU [12:54:05]CAPDU: 80 0D 02 02 6C 56 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 00 00 00 F4 03 04 00 EB 07 F4 66 0E 04 04 00 DA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 FA C5 01 00 35 04 06 00 47 E0 09 67 DC B5 [12:54:05]Write to MH i2c: E2 74 00 8E 02 80 0D 02 02 6C 00 56 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 00 00 00 F4 03 04 00 EB 07 F4 66 0E 04 04 00 DA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 FA C5 01 00 35 04 06 00 47 E0 09 67 DC B5 00 00 B2 [12:54:05]Write i2c OK [12:54:05]MH_I2C_Read... [12:54:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:54:05]Read from MH i2c: E2 [12:54:05]MH_I2C_Read... [12:54:05]Read from MH i2c: E2 03 00 [12:54:05]MH_I2C_Read... [12:54:05]Read from MH i2c: E2 03 00 8E 02 00 90 00 04 [12:54:05]RAPDU: 90 00 [12:54:05]wFMCommunicate OK [12:54:05]wFMCommunicate request_size=4 [12:54:05]MH_SAM_APDU [12:54:05]CAPDU: 80 0D 03 02 [12:54:05]Write to MH i2c: E2 08 00 8F 02 80 0D 03 02 00 00 00 00 0C [12:54:05]Write i2c OK [12:54:05]MH_I2C_Read... [12:54:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:54:05]Read from MH i2c: E2 [12:54:05]MH_I2C_Read... [12:54:05]Read from MH i2c: E2 0B 00 [12:54:05]MH_I2C_Read... [12:54:05]Read from MH i2c: E2 0B 00 8F 02 00 B3 54 87 5E A2 7B 72 2D 90 00 B5 [12:54:05]RAPDU: B3 54 87 5E A2 7B 72 2D 90 00 [12:54:05]wFMCommunicate OK [12:54:05]SAM_PROTO_SignData done [12:54:05]FM_MakeSignedData done [12:54:05]CreateOFDProtocolMessage [12:54:05]wFMCommunicate request_size=4 [12:54:05]MH_SAM_APDU [12:54:05]CAPDU: 80 11 00 00 [12:54:05]Write to MH i2c: E2 08 00 90 02 80 11 00 00 00 00 00 00 0C [12:54:05]Write i2c OK [12:54:05]MH_I2C_Read... [12:54:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:54:05]Read from MH i2c: E2 [12:54:05]MH_I2C_Read... [12:54:05]Read from MH i2c: E2 17 00 [12:54:05]MH_I2C_Read... [12:54:05]Read from MH i2c: E2 17 00 90 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 5A [12:54:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [12:54:05]wFMCommunicate OK [12:54:05]CreateOFDProtocolMessage done [12:54:05]OFDSenderStorePacket 116218 [12:54:05]StoreOFDPacket docnum=116218 [12:54:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 70 02 00 00 40 3A 68 02 C8 FE 5A 03 01 00 03 00 5C 02 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 34 37 30 30 30 30 37 36 39 30 30 31 38 06 04 20 00 D0 9D D0 B5 D0 B3 D0 B0 D0 B7 20 D0 B2 D0 BE D0 B4 D0 B0 20 50 61 6D 69 72 20 30 2C 35 20 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B8 0B 00 00 00 00 13 04 06 00 B8 0B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 34 38 36 30 30 31 39 30 30 31 33 35 33 06 04 24 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D1 80 D0 B6 D0 BE D0 BC D0 B8 20 30 2C 35 D0 BB 20 D0 9F D0 AD D0 A2 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 FC 21 00 00 00 00 13 04 06 00 FC 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 34 38 37 30 30 30 31 31 35 37 39 31 33 06 04 24 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 30 2C 35 D0 BB 20 63 20 D0 B1 D0 B5 D0 B7 20 D0 B3 D0 B0 D0 B7 D0 B0 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6E 00 8A 04 0D 00 34 37 30 30 30 34 30 31 31 34 31 33 37 06 04 2A 00 D0 A1 D1 83 D0 BB D1 82 D0 B0 D0 BD 20 D1 87 D0 B0 D0 B9 20 31 D0 BB 2E 20 D0 B7 D0 B5 D0 BB 20 D0 BB D0 B8 D0 BC D0 BE D0 BD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 56 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 36 09 00 00 00 00 07 04 06 00 B8 56 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 00 00 00 F4 03 04 00 EB 07 F4 66 0E 04 04 00 DA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 FA C5 01 00 35 04 06 00 47 E0 09 67 DC B5 B3 54 87 5E A2 7B 72 2D [12:54:05]CheckFolder [12:54:05]dirname=/storage/ofd_packets [12:54:05]CheckFolder done [12:54:05]ProducePacketName [12:54:05]name=ofd_packets/00116218 [12:54:05]NVStorageSaveData ofd_packets/00116218 [12:54:05]File name is /storage/ofd_packets/00116218 [12:54:05]Write 654 bytes [12:54:05]NVStorageSaveData done [12:54:05]OFDSenderStorePacket done [12:54:05]KKMCreateOFDPacket done [12:54:05]NVStorageSaveData kkm_last_timestamp [12:54:05]File name is /storage/kkm_last_timestamp [12:54:05]Write 4 bytes [12:54:05]NVStorageSaveData done [12:54:05]ExternCall_PrintAddStr [12:54:05]wPrintStart [12:54:05]Write to MH i2c: 01 00 00 91 02 93 [12:54:05]Write i2c OK [12:54:05]MH_I2C_Read... [12:54:05]Read from MH i2c: 01 [12:54:05]MH_I2C_Read... [12:54:05]Read from MH i2c: 01 07 00 [12:54:05]MH_I2C_Read... [12:54:05]Read from MH i2c: 01 07 00 91 02 00 00 00 00 00 FF 0F A8 [12:54:05]RasterBufferAndPrint [12:54:05]line Счет N : (3)344386 [12:54:05]line ИНН: 02508201610067 [12:54:05]line Контрольно-Кассовый Чек [12:54:05]line ПРОДАЖА [12:54:05]line Товар: 4700007690018 [12:54:05]line Негаз вода Pamir 0,5 л [12:54:05]line 1.000 * 30.00 [12:54:05]line = 30.00 [12:54:05]line НДС 12% НСП 1% [12:54:05]line > о реализуемом товаре [12:54:05]line Товар: 4860019001353 [12:54:05]line Вода Боржоми 0,5л ПЭТ [12:54:05]line 1.000 * 87.00 [12:54:05]line = 87.00 [12:54:05]line НДС 12% НСП 1% [12:54:05]line > о реализуемом товаре [12:54:05]line Товар: 4870001157913 [12:54:05]line Вода ASU 0,5л c без газа [12:54:05]line 1.000 * 40.00 [12:54:05]line = 40.00 [12:54:05]line НДС 12% НСП 1% [12:54:05]line > о реализуемом товаре [12:54:06]line Товар: 4700040114137 [12:54:06]line Султан чай 1л. зел лимон [12:54:06]line 1.000 * 65.00 [12:54:06]line = 65.00 [12:54:06]line НДС 12% НСП 1% [12:54:06]line > о реализуемом товаре [12:54:06]line ИТОГО: 222.00 [12:54:06]line НСП 1% : 1.95 [12:54:06]line НДС 12% : 23.58 [12:54:06]line Наличными: 222.00 [12:54:06]line Безнал.: 0.00 [12:54:06]line Место: АЗС № 90 "Партнер Нефть" [12:54:06]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [12:54:06]line СНО: Общий режим [12:54:06]line Чек 74 25.09.2024 12:54 [12:54:06]line Смена: 474 ФФД: 1.0 [12:54:06]line ЗНМ: 0300000120 [12:54:06]line РНМ: 0000000000091831 [12:54:06]line Версия ККМ: 001 [12:54:06]line ФМ: 0000000000871830 [12:54:06]line ФД: 116218 [12:54:06]line ФПД: 79027556048053 [12:54:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240925T125403&type=1&operation_type=1&fn_number=0000000000871830&fd_number=116218&fm=79027556048053&tin=02508201610067®Number=0000000000091831&sum=22200 [12:54:06]line 0 [12:54:06]OFD Sender: Processing packet 116218 [packets to send 482, broken 481] [12:54:06]ProducePacketName [12:54:06]name=ofd_packets/00116218 [12:54:06]OFD Sender: To server: pG, [12:54:06]CommunicateWithHost lk.salyk.kg:30040 [12:54:06]ConnectInit lk.salyk.kg [12:54:06]written 0, free lines is 4095 [12:54:06]Connected sock=7 [12:54:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 70 02 00 00 40 3A 68 02 C8 FE 5A 03 01 00 03 00 5C 02 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 34 37 30 30 30 30 37 36 39 30 30 31 38 06 04 20 00 D0 9D D0 B5 D0 B3 D0 B0 D0 B7 20 D0 B2 D0 BE D0 B4 D0 B0 20 50 61 6D 69 72 20 30 2C 35 20 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B8 0B 00 00 00 00 13 04 06 00 B8 0B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 34 38 36 30 30 31 39 30 30 31 33 35 33 06 04 24 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D1 80 D0 B6 D0 BE D0 BC D0 B8 20 30 2C 35 D0 BB 20 D0 9F D0 AD D0 A2 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 FC 21 00 00 00 00 13 04 06 00 FC 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 34 38 37 30 30 30 31 31 35 37 39 31 33 06 04 24 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 30 2C 35 D0 BB 20 63 20 D0 B1 D0 B5 D0 B7 20 D0 B3 D0 B0 D0 B7 D0 B0 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6E 00 8A 04 0D 00 34 37 30 30 30 34 30 31 31 34 31 33 37 06 04 2A 00 D0 A1 D1 83 D0 BB D1 82 D0 B0 D0 BD 20 D1 87 D0 B0 D0 B9 20 31 D0 BB 2E 20 D0 B7 D0 B5 D0 BB 20 D0 BB D0 B8 D0 BC D0 BE D0 BD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 56 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 36 09 00 00 00 00 07 04 06 00 B8 56 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 00 00 00 F4 03 04 00 EB 07 F4 66 0E 04 04 00 DA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 FA C5 01 00 35 04 06 00 47 E0 09 67 DC B5 B3 54 87 5E A2 7B 72 2D [12:54:06]Write to MH i2c: 01 00 00 CA 02 CC [12:54:06]Write i2c OK [12:54:06]MH_I2C_Read... [12:54:06]Read from MH i2c: 01 [12:54:06]MH_I2C_Read... [12:54:06]Read from MH i2c: 01 07 00 [12:54:06]MH_I2C_Read... [12:54:06]Read from MH i2c: 01 07 00 CA 02 00 00 00 00 00 06 0B E4 [12:54:06]RasterBufferAndPrint [12:54:06]line [12:54:06]line [12:54:06]line [12:54:06]line [12:54:06]line [12:54:06]written 0, free lines is 2826 [12:54:06]MH_Cut [12:54:06]Write to MH i2c: D1 01 00 D1 02 01 A5 [12:54:06]Write i2c OK [12:54:06]MH_I2C_Read... [12:54:06]Read from MH i2c: D1 [12:54:06]MH_I2C_Read... [12:54:06]Read from MH i2c: D1 01 00 [12:54:06]MH_I2C_Read... [12:54:06]Read from MH i2c: D1 01 00 D1 02 00 A4 [12:54:06]Write to MH i2c: 01 00 00 D2 02 D4 [12:54:06]Write i2c OK [12:54:06]MH_I2C_Read... [12:54:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 AE 32 47 00 C3 2D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 FA C5 01 00 F4 03 04 00 28 AD F3 66 B6 04 01 00 00 5D E4 F3 EB A7 3C 02 16 [12:54:06]CommunicateWithHost err = 0 [12:54:06]CheckOFDResponse [12:54:06]1017 (14) - 77093643461234 [12:54:06]1041 (16) - 0000000000871830 [12:54:06]1040 (4) - 116218 [12:54:06]1012 (4) - 25.09.2024 06:26 [12:54:06]1206 (1) - 0 [12:54:06]OFD Sender: Remove packet 116218 [12:54:06]ProducePacketName [12:54:06]name=ofd_packets/00116218 [12:54:06]NVStorageDeleteData [12:54:07]OFD Sender: No OFD packet to send [12:54:08]*** Cut start [12:54:08]*** Partial cut [12:54:08]*** CUTSNS_PIN = 1 [12:54:08]*** CUTSNS_PIN = 0 [12:54:08]*** Brake cut motor [12:54:08]Read from MH i2c: 01 [12:54:09]MH_I2C_Read... [12:54:09]*** Stop cut motor [12:54:09]*** Cut end [12:54:09]Read from MH i2c: 01 07 00 [12:54:09]MH_I2C_Read... [12:54:09]Read from MH i2c: 01 07 00 D2 02 00 00 00 00 00 FF 0F E9 [12:54:09]process_action close_receipt done [12:54:09]requested_data is exist [12:54:09]produce_requested_data [12:54:09]requested_item fm.sn is exist - process it [12:54:09]wFMCommunicate request_size=4 [12:54:09]MH_SAM_APDU [12:54:09]CAPDU: 80 11 00 00 [12:54:09]Write to MH i2c: E2 08 00 D3 02 80 11 00 00 00 00 00 00 4F [12:54:09]Write i2c OK [12:54:09]MH_I2C_Read... [12:54:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:54:09]Read from MH i2c: E2 [12:54:09]MH_I2C_Read... [12:54:09]Read from MH i2c: E2 17 00 [12:54:09]MH_I2C_Read... [12:54:09]Read from MH i2c: E2 17 00 D3 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 9D [12:54:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [12:54:09]wFMCommunicate OK [12:54:09]requested_item fd.num is exist - process it [12:54:09]SAM_PROTO_GetFieldsCounters [12:54:09]wFMCommunicate request_size=4 [12:54:09]MH_SAM_APDU [12:54:09]CAPDU: 80 13 00 00 [12:54:09]Write to MH i2c: E2 08 00 D4 02 80 13 00 00 00 00 00 00 52 [12:54:09]Write i2c OK [12:54:09]MH_I2C_Read... [12:54:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:54:09]Read from MH i2c: E2 [12:54:09]MH_I2C_Read... [12:54:09]Read from MH i2c: E2 62 00 [12:54:09]MH_I2C_Read... [12:54:09]Read from MH i2c: E2 62 00 D4 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 FA C5 01 00 0E 04 04 00 DA 01 00 00 12 04 04 00 4A 00 00 00 5E 04 04 00 4A 00 00 00 57 04 04 00 4B 00 00 00 19 04 04 00 00 00 00 00 90 00 E4 [12:54:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 FA C5 01 00 0E 04 04 00 DA 01 00 00 12 04 04 00 4A 00 00 00 5E 04 04 00 4A 00 00 00 57 04 04 00 4B 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:54:09]wFMCommunicate OK [12:54:09]SAM_PROTO_GetFieldsCounters done [12:54:09]requested_item shift.num is exist - process it [12:54:09]requested_item shift.opened is exist - process it [12:54:09]req_shift_opened [12:54:09]FM_GetShiftState [12:54:09]SAM_PROTO_GetShiftState [12:54:09]wFMCommunicate request_size=4 [12:54:09]MH_SAM_APDU [12:54:09]CAPDU: 80 13 01 00 [12:54:09]Write to MH i2c: E2 08 00 D5 02 80 13 01 00 00 00 00 00 54 [12:54:09]Write i2c OK [12:54:09]MH_I2C_Read... [12:54:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:54:09]Read from MH i2c: E2 [12:54:09]MH_I2C_Read... [12:54:09]Read from MH i2c: E2 0E 00 [12:54:09]MH_I2C_Read... [12:54:09]Read from MH i2c: E2 0E 00 D5 02 00 09 00 01 63 60 F3 66 00 00 00 00 90 00 7C [12:54:09]RAPDU: 09 00 01 63 60 F3 66 00 00 00 00 90 00 [12:54:09]wFMCommunicate OK [12:54:09]SAM_PROTO_GetShiftState done [12:54:09]FM_GetShiftState done [12:54:09]req_shift_opened done [12:54:09]requested_item shift.open_date is exist - process it [12:54:09]req_shift_open_date [12:54:09]req_shift_open_date done [12:54:09]produce_requested_data done [12:54:09]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":116218,"shift.num":474,"shift.opened":1,"shift.open_date":1727225955} [12:54:09]process_action_free close_receipt [12:54:09]json_value_free [12:54:09]json_value_free done [12:54:09]process_json_proto returns [12:54:09]Send response to host [12:54:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":116218,"shift.num":474,"shift.opened":1,"shift.open_date":1727225955}}} [12:54:09]free response buf [12:54:09]execute_script done [12:54:09]execute_script returns [12:54:09]free content buf [12:54:09]Sock 6.Close socket [12:54:09]Sock 6.Thread stoped [12:54:12]OFD Sender: No OFD packet to send [12:54:17]OFD Sender: No OFD packet to send [12:54:22]OFD Sender: No OFD packet to send [12:54:27]OFD Sender: No OFD packet to send [12:54:28]accept exits with 5 [12:54:28]New connection [12:54:28]New thread 3066957156 created [12:54:28]Thread 3066813796 joined [12:54:28]Waiting for new connection... [12:54:28] Sock 5.Parse request [12:54:28]Sock 5.Check first char [12:54:28]Sock 5.First char is OK [12:54:28]request: POST /json_proto HTTP/1.0 [12:54:28]Method: POST [12:54:28]URL: /json_proto [12:54:28]Method is POST - this is cgi request [12:54:28]url: /json_proto [12:54:28]query_string will be loaded in cgi processing [12:54:28]execute_cgi json_proto POST (null) [12:54:28]execute_cgi path=json_proto method=POST [12:54:28]POST find Content-Length [12:54:28]Host: 172.17.41.136:8080 [12:54:28]Content-Length: 975 [12:54:28]Content-Type: application/json [12:54:28] [12:54:28]POST finish read [12:54:28]Found Content-Length = 975 [12:54:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)344387", "tax_sys" : 0, "items" : [ { "code": "4700003010018", "name": "\u0427\u0430\u0439 \u0445\u043E\u043B Let`s Go! \u0437\u0435\u043B \u043B\u0438\u043C \u041F\u042D\u0422 0,5\u043B", "price" : 50.00, "quantity" : 2.000, "sum" : 100.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700003010032", "name": "\u0427\u0430\u0439 \u0445\u043E\u043B Let`s Go! \u0447\u0435\u0440 \u043F\u0435\u0440\u0441\u0438\u043A \u041F\u042D\u0422 0,5\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 150.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:54:28]execute_script... [12:54:28]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)344387", "tax_sys" : 0, "items" : [ { "code": "4700003010018", "name": "\u0427\u0430\u0439 \u0445\u043E\u043B Let`s Go! \u0437\u0435\u043B \u043B\u0438\u043C \u041F\u042D\u0422 0,5\u043B", "price" : 50.00, "quantity" : 2.000, "sum" : 100.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700003010032", "name": "\u0427\u0430\u0439 \u0445\u043E\u043B Let`s Go! \u0447\u0435\u0440 \u043F\u0435\u0440\u0441\u0438\u043A \u041F\u042D\u0422 0,5\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 150.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:54:28]POST & json_proto [12:54:28]process_json_proto [12:54:28]json parsed OK: [12:54:28]protocol is kg_v1.0 [12:54:28]action value=close_receipt [12:54:28]process_action close_receipt [12:54:28]cmd_close_receipt [12:54:28]MH_GetDate [12:54:28]Write to MH i2c: F0 00 00 D6 02 C7 [12:54:28]Write i2c OK [12:54:28]MH_I2C_Read... [12:54:28]Read from MH i2c: F0 [12:54:28]MH_I2C_Read... [12:54:28]Read from MH i2c: F0 09 00 [12:54:28]MH_I2C_Read... [12:54:28]Read from MH i2c: F0 09 00 D6 02 00 05 08 F4 66 1B D0 5A 64 E0 [12:54:28]GetLastDocTimeStamp 1727268843 [12:54:28]current date 1727268869 [12:54:28]FM_GetShiftState [12:54:28]SAM_PROTO_GetShiftState [12:54:28]wFMCommunicate request_size=4 [12:54:28]MH_SAM_APDU [12:54:28]CAPDU: 80 13 01 00 [12:54:28]Write to MH i2c: E2 08 00 D7 02 80 13 01 00 00 00 00 00 56 [12:54:28]Write i2c OK [12:54:28]MH_I2C_Read... [12:54:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:54:28]Read from MH i2c: E2 [12:54:28]MH_I2C_Read... [12:54:28]Read from MH i2c: E2 0E 00 [12:54:28]MH_I2C_Read... [12:54:28]Read from MH i2c: E2 0E 00 D7 02 00 09 00 01 63 60 F3 66 00 00 00 00 90 00 7E [12:54:28]RAPDU: 09 00 01 63 60 F3 66 00 00 00 00 90 00 [12:54:28]wFMCommunicate OK [12:54:28]SAM_PROTO_GetShiftState done [12:54:28]FM_GetShiftState done [12:54:28]opened in 1727225955 [12:54:28]opened+sec_in_day 1727312355 [12:54:28]quantity*price = 10000 [12:54:28]sum+1 = 10001 [12:54:28]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700003010032 Чай хол Let`s Go! чер персик ПЭТ 0,5л 1.000 * 50.00 = 50.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 150.00 НСП 1% : 1.32 НДС 12% : 15.93 Наличными: 150.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 75 25.09.2024 12:54 Смена: 474 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 116219 ФПД: 199131829458194 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240925T125429&type=1&operation_type=1&fn_number=0000000000871830&fd_number=116219&fm=199131829458194&tin=02508201610067®Number=0000000000091831&sum=15000 0 [12:54:30]StoreToDocumentArchive [12:54:30]shift 474 fd 116219 [12:54:30]save to /storage/0474/doc_00116219 [12:54:30]save last doc name /storage/0474/doc_00116219 to /storage/kkm_last_doc_name [12:54:30]save OK [12:54:30]Clear old archive folders... [12:54:30]ProcessDocumentItem done err = 0, tmpTLVsize=420 [12:54:30]tlvbuf is 013A1800 [12:54:30]SAM_PROTO_ClearQueue [12:54:30]wFMCommunicate request_size=4 [12:54:30]MH_SAM_APDU [12:54:30]CAPDU: 80 09 00 00 [12:54:30]Write to MH i2c: E2 08 00 E4 02 80 09 00 00 00 00 00 00 58 [12:54:30]Write i2c OK [12:54:30]MH_I2C_Read... [12:54:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:54:30]Read from MH i2c: E2 [12:54:30]MH_I2C_Read... [12:54:30]Read from MH i2c: E2 03 00 [12:54:30]MH_I2C_Read... [12:54:30]Read from MH i2c: E2 03 00 E4 02 00 90 00 5A [12:54:30]RAPDU: 90 00 [12:54:30]wFMCommunicate OK [12:54:30]SAM_PROTO_ClearQueue done [12:54:30]KKMCreateOFDPacket [12:54:30]OFDProtocolAddRootSTLVToBuf [12:54:30]FM_MakeSignedData [12:54:30]FM_MakeSignedData [12:54:30]SAM_PROTO_SignData [12:54:30]wFMCommunicate request_size=4 [12:54:30]MH_SAM_APDU [12:54:30]CAPDU: 80 0D 01 02 [12:54:30]Write to MH i2c: E2 08 00 E5 02 80 0D 01 02 00 00 00 00 60 [12:54:30]Write i2c OK [12:54:30]MH_I2C_Read... [12:54:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:54:30]Read from MH i2c: E2 [12:54:30]MH_I2C_Read... [12:54:30]Read from MH i2c: E2 03 00 [12:54:30]MH_I2C_Read... [12:54:30]Read from MH i2c: E2 03 00 E5 02 00 90 00 5B [12:54:30]RAPDU: 90 00 [12:54:30]wFMCommunicate OK [12:54:30]wFMCommunicate request_size=255 [12:54:30]MH_SAM_APDU [12:54:30]CAPDU: 80 0D 02 02 FA 03 00 A4 01 1E 04 01 00 01 23 04 76 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 30 31 38 06 04 32 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB 20 4C 65 74 60 73 20 47 6F 21 20 D0 B7 D0 B5 D0 BB 20 D0 BB D0 B8 D0 BC 20 D0 9F D0 AD D0 A2 20 30 2C 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7C 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 30 33 32 06 04 38 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB 20 4C 65 74 60 73 20 47 6F 21 20 D1 87 D0 B5 D1 80 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 D0 9F D0 AD D0 A2 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 [12:54:30]Write to MH i2c: E2 02 01 E6 02 80 0D 02 02 FA 00 03 00 A4 01 1E 04 01 00 01 23 04 76 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 30 31 38 06 04 32 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB 20 4C 65 74 60 73 20 47 6F 21 20 D0 B7 D0 B5 D0 BB 20 D0 BB D0 B8 D0 BC 20 D0 9F D0 AD D0 A2 20 30 2C 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7C 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 30 33 32 06 04 38 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB 20 4C 65 74 60 73 20 47 6F 21 20 D1 87 D0 B5 D1 80 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 D0 9F D0 AD D0 A2 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 00 00 C1 [12:54:30]Write i2c OK [12:54:30]MH_I2C_Read... [12:54:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:54:30]Read from MH i2c: E2 [12:54:30]MH_I2C_Read... [12:54:30]Read from MH i2c: E2 03 00 [12:54:30]MH_I2C_Read... [12:54:30]Read from MH i2c: E2 03 00 E6 02 00 90 00 5C [12:54:30]RAPDU: 90 00 [12:54:30]wFMCommunicate OK [12:54:30]wFMCommunicate request_size=179 [12:54:30]MH_SAM_APDU [12:54:30]CAPDU: 80 0D 02 02 AE 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 84 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 05 08 F4 66 0E 04 04 00 DA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 FB C5 01 00 35 04 06 00 B5 1B FD F5 55 12 [12:54:30]Write to MH i2c: E2 B6 00 E7 02 80 0D 02 02 AE 00 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 84 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 05 08 F4 66 0E 04 04 00 DA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 FB C5 01 00 35 04 06 00 B5 1B FD F5 55 12 00 00 9E [12:54:30]Write i2c OK [12:54:30]MH_I2C_Read... [12:54:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:54:30]Read from MH i2c: E2 [12:54:30]MH_I2C_Read... [12:54:30]Read from MH i2c: E2 03 00 [12:54:30]MH_I2C_Read... [12:54:30]Read from MH i2c: E2 03 00 E7 02 00 90 00 5D [12:54:30]RAPDU: 90 00 [12:54:30]wFMCommunicate OK [12:54:30]wFMCommunicate request_size=4 [12:54:30]MH_SAM_APDU [12:54:30]CAPDU: 80 0D 03 02 [12:54:30]Write to MH i2c: E2 08 00 E8 02 80 0D 03 02 00 00 00 00 65 [12:54:30]Write i2c OK [12:54:30]MH_I2C_Read... [12:54:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:54:30]Read from MH i2c: E2 [12:54:30]MH_I2C_Read... [12:54:30]Read from MH i2c: E2 0B 00 [12:54:30]MH_I2C_Read... [12:54:30]Read from MH i2c: E2 0B 00 E8 02 00 C0 5F 6B 95 88 FB B4 E1 90 00 9D [12:54:30]RAPDU: C0 5F 6B 95 88 FB B4 E1 90 00 [12:54:30]wFMCommunicate OK [12:54:30]SAM_PROTO_SignData done [12:54:30]FM_MakeSignedData done [12:54:30]CreateOFDProtocolMessage [12:54:30]wFMCommunicate request_size=4 [12:54:30]MH_SAM_APDU [12:54:30]CAPDU: 80 11 00 00 [12:54:30]Write to MH i2c: E2 08 00 E9 02 80 11 00 00 00 00 00 00 65 [12:54:30]Write i2c OK [12:54:30]MH_I2C_Read... [12:54:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:54:30]Read from MH i2c: E2 [12:54:30]MH_I2C_Read... [12:54:30]Read from MH i2c: E2 17 00 [12:54:30]MH_I2C_Read... [12:54:30]Read from MH i2c: E2 17 00 E9 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 B3 [12:54:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [12:54:30]wFMCommunicate OK [12:54:30]CreateOFDProtocolMessage done [12:54:30]OFDSenderStorePacket 116219 [12:54:30]StoreOFDPacket docnum=116219 [12:54:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 B8 01 00 00 6C D8 B0 01 96 90 5A 03 01 00 03 00 A4 01 1E 04 01 00 01 23 04 76 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 30 31 38 06 04 32 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB 20 4C 65 74 60 73 20 47 6F 21 20 D0 B7 D0 B5 D0 BB 20 D0 BB D0 B8 D0 BC 20 D0 9F D0 AD D0 A2 20 30 2C 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7C 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 30 33 32 06 04 38 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB 20 4C 65 74 60 73 20 47 6F 21 20 D1 87 D0 B5 D1 80 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 D0 9F D0 AD D0 A2 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 84 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 05 08 F4 66 0E 04 04 00 DA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 FB C5 01 00 35 04 06 00 B5 1B FD F5 55 12 C0 5F 6B 95 88 FB B4 E1 [12:54:30]CheckFolder [12:54:30]dirname=/storage/ofd_packets [12:54:30]CheckFolder done [12:54:30]ProducePacketName [12:54:30]name=ofd_packets/00116219 [12:54:30]NVStorageSaveData ofd_packets/00116219 [12:54:30]File name is /storage/ofd_packets/00116219 [12:54:30]Write 470 bytes [12:54:30]NVStorageSaveData done [12:54:30]OFDSenderStorePacket done [12:54:30]KKMCreateOFDPacket done [12:54:30]NVStorageSaveData kkm_last_timestamp [12:54:30]File name is /storage/kkm_last_timestamp [12:54:30]Write 4 bytes [12:54:30]NVStorageSaveData done [12:54:30]ExternCall_PrintAddStr [12:54:30]wPrintStart [12:54:30]Write to MH i2c: 01 00 00 EA 02 EC [12:54:30]Write i2c OK [12:54:30]MH_I2C_Read... [12:54:30]Read from MH i2c: 01 [12:54:30]MH_I2C_Read... [12:54:30]Read from MH i2c: 01 07 00 [12:54:30]MH_I2C_Read... [12:54:30]Read from MH i2c: 01 07 00 EA 02 00 00 00 00 00 FF 0F 01 [12:54:31]RasterBufferAndPrint [12:54:31]line Счет N : (3)344387 [12:54:31]line ИНН: 02508201610067 [12:54:31]line Контрольно-Кассовый Чек [12:54:31]line ПРОДАЖА [12:54:31]line Товар: 4700003010018 [12:54:31]line Чай хол Let`s Go! зел лим ПЭТ 0,5л [12:54:31]line 2.000 * 50.00 [12:54:31]line = 100.00 [12:54:31]line НДС 12% НСП 1% [12:54:31]line > о реализуемом товаре [12:54:31]line Товар: 4700003010032 [12:54:31]line Чай хол Let`s Go! чер персик ПЭТ 0,5л [12:54:31]line 1.000 * 50.00 [12:54:31]line = 50.00 [12:54:31]line НДС 12% НСП 1% [12:54:31]line > о реализуемом товаре [12:54:31]line ИТОГО: 150.00 [12:54:31]line НСП 1% : 1.32 [12:54:31]line НДС 12% : 15.93 [12:54:31]line Наличными: 150.00 [12:54:31]line Безнал.: 0.00 [12:54:31]line Место: АЗС № 90 "Партнер Нефть" [12:54:31]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [12:54:31]line СНО: Общий режим [12:54:31]line Чек 75 25.09.2024 12:54 [12:54:31]line Смена: 474 ФФД: 1.0 [12:54:31]line ЗНМ: 0300000120 [12:54:31]line РНМ: 0000000000091831 [12:54:31]line Версия ККМ: 001 [12:54:31]line ФМ: 0000000000871830 [12:54:31]line ФД: 116219 [12:54:31]line ФПД: 199131829458194 [12:54:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240925T125429&type=1&operation_type=1&fn_number=0000000000871830&fd_number=116219&fm=199131829458194&tin=02508201610067®Number=0000000000091831&sum=15000 [12:54:31]line 0 [12:54:31]OFD Sender: Processing packet 116219 [packets to send 482, broken 481] [12:54:31]ProducePacketName [12:54:31]name=ofd_packets/00116219 [12:54:31]OFD Sender: To server: pG, [12:54:31]CommunicateWithHost lk.salyk.kg:30040 [12:54:31]ConnectInit lk.salyk.kg [12:54:31]written 0, free lines is 4095 [12:54:31]Connected sock=7 [12:54:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 B8 01 00 00 6C D8 B0 01 96 90 5A 03 01 00 03 00 A4 01 1E 04 01 00 01 23 04 76 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 30 31 38 06 04 32 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB 20 4C 65 74 60 73 20 47 6F 21 20 D0 B7 D0 B5 D0 BB 20 D0 BB D0 B8 D0 BC 20 D0 9F D0 AD D0 A2 20 30 2C 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7C 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 30 33 32 06 04 38 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB 20 4C 65 74 60 73 20 47 6F 21 20 D1 87 D0 B5 D1 80 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 D0 9F D0 AD D0 A2 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 84 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 05 08 F4 66 0E 04 04 00 DA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 FB C5 01 00 35 04 06 00 B5 1B FD F5 55 12 C0 5F 6B 95 88 FB B4 E1 [12:54:31]Write to MH i2c: 01 00 00 19 03 1C [12:54:31]Write i2c OK [12:54:31]MH_I2C_Read... [12:54:31]Read from MH i2c: 01 [12:54:31]MH_I2C_Read... [12:54:31]Read from MH i2c: 01 07 00 [12:54:31]MH_I2C_Read... [12:54:31]Read from MH i2c: 01 07 00 19 03 00 00 00 00 00 E4 0B 12 [12:54:31]RasterBufferAndPrint [12:54:31]line [12:54:31]line [12:54:31]line [12:54:31]line [12:54:31]line [12:54:31]written 0, free lines is 3048 [12:54:31]MH_Cut [12:54:31]Write to MH i2c: D1 01 00 20 03 01 F5 [12:54:31]Write i2c OK [12:54:31]MH_I2C_Read... [12:54:31]Read from MH i2c: D1 [12:54:31]MH_I2C_Read... [12:54:31]Read from MH i2c: D1 01 00 [12:54:31]MH_I2C_Read... [12:54:31]Read from MH i2c: D1 01 00 20 03 00 F4 [12:54:31]Write to MH i2c: 01 00 00 21 03 24 [12:54:31]Write i2c OK [12:54:31]MH_I2C_Read... [12:54:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 D3 46 47 00 C8 78 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 FB C5 01 00 F4 03 04 00 41 AD F3 66 B6 04 01 00 00 54 34 1A 2B BE 71 B1 A1 [12:54:31]CommunicateWithHost err = 0 [12:54:31]CheckOFDResponse [12:54:31]1017 (14) - 77093643461234 [12:54:31]1041 (16) - 0000000000871830 [12:54:31]1040 (4) - 116219 [12:54:31]1012 (4) - 25.09.2024 06:27 [12:54:31]1206 (1) - 0 [12:54:31]OFD Sender: Remove packet 116219 [12:54:31]ProducePacketName [12:54:31]name=ofd_packets/00116219 [12:54:31]NVStorageDeleteData [12:54:32]OFD Sender: No OFD packet to send [12:54:33]*** Cut start [12:54:33]*** Partial cut [12:54:33]*** CUTSNS_PIN = 1 [12:54:33]*** CUTSNS_PIN = 0 [12:54:33]*** Brake cut motor [12:54:33]Read from MH i2c: 01 [12:54:33]MH_I2C_Read... [12:54:33]*** Stop cut motor [12:54:33]*** Cut end [12:54:33]Read from MH i2c: 01 07 00 [12:54:33]MH_I2C_Read... [12:54:33]Read from MH i2c: 01 07 00 21 03 00 00 00 00 00 FF 0F 39 [12:54:33]process_action close_receipt done [12:54:33]requested_data is exist [12:54:33]produce_requested_data [12:54:33]requested_item fm.sn is exist - process it [12:54:33]wFMCommunicate request_size=4 [12:54:33]MH_SAM_APDU [12:54:33]CAPDU: 80 11 00 00 [12:54:33]Write to MH i2c: E2 08 00 22 03 80 11 00 00 00 00 00 00 9F [12:54:33]Write i2c OK [12:54:33]MH_I2C_Read... [12:54:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:54:33]Read from MH i2c: E2 [12:54:33]MH_I2C_Read... [12:54:33]Read from MH i2c: E2 17 00 [12:54:33]MH_I2C_Read... [12:54:33]Read from MH i2c: E2 17 00 22 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 ED [12:54:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [12:54:33]wFMCommunicate OK [12:54:33]requested_item fd.num is exist - process it [12:54:33]SAM_PROTO_GetFieldsCounters [12:54:33]wFMCommunicate request_size=4 [12:54:33]MH_SAM_APDU [12:54:33]CAPDU: 80 13 00 00 [12:54:33]Write to MH i2c: E2 08 00 23 03 80 13 00 00 00 00 00 00 A2 [12:54:33]Write i2c OK [12:54:33]MH_I2C_Read... [12:54:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:54:33]Read from MH i2c: E2 [12:54:33]MH_I2C_Read... [12:54:33]Read from MH i2c: E2 62 00 [12:54:33]MH_I2C_Read... [12:54:33]Read from MH i2c: E2 62 00 23 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 FB C5 01 00 0E 04 04 00 DA 01 00 00 12 04 04 00 4B 00 00 00 5E 04 04 00 4B 00 00 00 57 04 04 00 4C 00 00 00 19 04 04 00 00 00 00 00 90 00 38 [12:54:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 FB C5 01 00 0E 04 04 00 DA 01 00 00 12 04 04 00 4B 00 00 00 5E 04 04 00 4B 00 00 00 57 04 04 00 4C 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:54:33]wFMCommunicate OK [12:54:33]SAM_PROTO_GetFieldsCounters done [12:54:33]requested_item shift.num is exist - process it [12:54:33]requested_item shift.opened is exist - process it [12:54:33]req_shift_opened [12:54:33]FM_GetShiftState [12:54:33]SAM_PROTO_GetShiftState [12:54:33]wFMCommunicate request_size=4 [12:54:33]MH_SAM_APDU [12:54:33]CAPDU: 80 13 01 00 [12:54:33]Write to MH i2c: E2 08 00 24 03 80 13 01 00 00 00 00 00 A4 [12:54:33]Write i2c OK [12:54:33]MH_I2C_Read... [12:54:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:54:33]Read from MH i2c: E2 [12:54:33]MH_I2C_Read... [12:54:33]Read from MH i2c: E2 0E 00 [12:54:33]MH_I2C_Read... [12:54:33]Read from MH i2c: E2 0E 00 24 03 00 09 00 01 63 60 F3 66 00 00 00 00 90 00 CC [12:54:33]RAPDU: 09 00 01 63 60 F3 66 00 00 00 00 90 00 [12:54:33]wFMCommunicate OK [12:54:33]SAM_PROTO_GetShiftState done [12:54:33]FM_GetShiftState done [12:54:33]req_shift_opened done [12:54:33]requested_item shift.open_date is exist - process it [12:54:33]req_shift_open_date [12:54:33]req_shift_open_date done [12:54:33]produce_requested_data done [12:54:33]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":116219,"shift.num":474,"shift.opened":1,"shift.open_date":1727225955} [12:54:33]process_action_free close_receipt [12:54:33]json_value_free [12:54:33]json_value_free done [12:54:33]process_json_proto returns [12:54:33]Send response to host [12:54:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":116219,"shift.num":474,"shift.opened":1,"shift.open_date":1727225955}}} [12:54:33]free response buf [12:54:33]execute_script done [12:54:33]execute_script returns [12:54:33]free content buf [12:54:33]Sock 5.Close socket [12:54:33]Sock 5.Thread stoped [12:54:37]OFD Sender: No OFD packet to send [12:54:42]OFD Sender: No OFD packet to send [12:54:47]OFD Sender: No OFD packet to send [12:54:52]OFD Sender: No OFD packet to send [12:54:57]OFD Sender: No OFD packet to send [12:55:02]OFD Sender: No OFD packet to send [12:55:07]OFD Sender: No OFD packet to send [12:55:12]OFD Sender: No OFD packet to send [12:55:17]OFD Sender: No OFD packet to send [12:55:22]OFD Sender: No OFD packet to send [12:55:27]OFD Sender: No OFD packet to send [12:55:32]OFD Sender: No OFD packet to send [12:55:37]OFD Sender: No OFD packet to send [12:55:42]OFD Sender: No OFD packet to send [12:55:47]OFD Sender: No OFD packet to send [12:55:52]OFD Sender: No OFD packet to send [12:55:57]OFD Sender: No OFD packet to send [12:56:02]OFD Sender: No OFD packet to send [12:56:07]OFD Sender: No OFD packet to send [12:56:12]OFD Sender: No OFD packet to send [12:56:17]OFD Sender: No OFD packet to send [12:56:22]OFD Sender: No OFD packet to send [12:56:27]OFD Sender: No OFD packet to send [12:56:32]OFD Sender: No OFD packet to send [12:56:37]OFD Sender: No OFD packet to send [12:56:42]OFD Sender: No OFD packet to send [12:56:47]OFD Sender: No OFD packet to send [12:56:52]OFD Sender: No OFD packet to send [12:56:57]OFD Sender: No OFD packet to send [12:57:02]OFD Sender: No OFD packet to send [12:57:07]OFD Sender: No OFD packet to send [12:57:12]OFD Sender: No OFD packet to send [12:57:17]OFD Sender: No OFD packet to send [12:57:22]OFD Sender: No OFD packet to send [12:57:27]OFD Sender: No OFD packet to send [12:57:32]OFD Sender: No OFD packet to send [12:57:37]OFD Sender: No OFD packet to send [12:57:42]OFD Sender: No OFD packet to send [12:57:47]OFD Sender: No OFD packet to send [12:57:52]OFD Sender: No OFD packet to send [12:57:57]OFD Sender: No OFD packet to send [12:58:02]OFD Sender: No OFD packet to send [12:58:07]OFD Sender: No OFD packet to send [12:58:12]OFD Sender: No OFD packet to send [12:58:17]OFD Sender: No OFD packet to send [12:58:22]OFD Sender: No OFD packet to send [12:58:27]OFD Sender: No OFD packet to send [12:58:32]OFD Sender: No OFD packet to send [12:58:37]OFD Sender: No OFD packet to send [12:58:42]OFD Sender: No OFD packet to send [12:58:47]OFD Sender: No OFD packet to send [12:58:52]OFD Sender: No OFD packet to send [12:58:57]OFD Sender: No OFD packet to send [12:59:02]OFD Sender: No OFD packet to send [12:59:07]OFD Sender: No OFD packet to send [12:59:12]OFD Sender: No OFD packet to send [12:59:17]OFD Sender: No OFD packet to send [12:59:22]OFD Sender: No OFD packet to send [12:59:27]OFD Sender: No OFD packet to send [12:59:32]OFD Sender: No OFD packet to send [12:59:37]OFD Sender: No OFD packet to send [12:59:42]OFD Sender: No OFD packet to send [12:59:47]OFD Sender: No OFD packet to send [12:59:52]OFD Sender: No OFD packet to send [12:59:57]OFD Sender: No OFD packet to send [13:00:02]OFD Sender: No OFD packet to send [13:00:05]accept exits with 6 [13:00:05]New connection [13:00:05]New thread 3066813796 created [13:00:05]Thread 3066957156 joined [13:00:05]Waiting for new connection... [13:00:05] Sock 6.Parse request [13:00:05]Sock 6.Check first char [13:00:05]Sock 6.First char is OK [13:00:05]request: POST /json_proto HTTP/1.0 [13:00:05]Method: POST [13:00:05]URL: /json_proto [13:00:05]Method is POST - this is cgi request [13:00:05]url: /json_proto [13:00:05]query_string will be loaded in cgi processing [13:00:05]execute_cgi json_proto POST (null) [13:00:05]execute_cgi path=json_proto method=POST [13:00:05]POST find Content-Length [13:00:05]Host: 172.17.41.136:8080 [13:00:05]Content-Length: 1191 [13:00:05]Content-Type: application/json [13:00:05] [13:00:05]POST finish read [13:00:05]Found Content-Length = 1191 [13:00:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)344388", "tax_sys" : 0, "items" : [ { "code": "4870001570057", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 0,5\u043B", "price" : 80.00, "quantity" : 1.000, "sum" : 80.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48746717", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Caster + Dream M", "price" : 147.00, "quantity" : 1.000, "sum" : 147.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870001571030", "name": "\u0412\u043E\u0434\u0430 ASU \u043F\u0438\u0442 \u043D.\u0433\u0430\u0437 \u043A\u043B\u0443\u0431\u043D,\u043A\u0438\u0432\u0438 \u041F\u042D\u0422 1\u043B", "price" : 70.00, "quantity" : 1.000, "sum" : 70.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 297.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:00:05]execute_script... [13:00:05]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)344388", "tax_sys" : 0, "items" : [ { "code": "4870001570057", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 0,5\u043B", "price" : 80.00, "quantity" : 1.000, "sum" : 80.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48746717", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Caster + Dream M", "price" : 147.00, "quantity" : 1.000, "sum" : 147.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870001571030", "name": "\u0412\u043E\u0434\u0430 ASU \u043F\u0438\u0442 \u043D.\u0433\u0430\u0437 \u043A\u043B\u0443\u0431\u043D,\u043A\u0438\u0432\u0438 \u041F\u042D\u0422 1\u043B", "price" : 70.00, "quantity" : 1.000, "sum" : 70.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 297.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:00:05]POST & json_proto [13:00:05]process_json_proto [13:00:05]json parsed OK: [13:00:05]protocol is kg_v1.0 [13:00:05]action value=close_receipt [13:00:05]process_action close_receipt [13:00:05]cmd_close_receipt [13:00:05]MH_GetDate [13:00:05]Write to MH i2c: F0 00 00 25 03 17 [13:00:05]Write i2c OK [13:00:05]MH_I2C_Read... [13:00:05]Read from MH i2c: F0 [13:00:05]MH_I2C_Read... [13:00:05]Read from MH i2c: F0 09 00 [13:00:05]MH_I2C_Read... [13:00:05]Read from MH i2c: F0 09 00 25 03 00 55 09 F4 66 1B D0 5A 64 81 [13:00:05]GetLastDocTimeStamp 1727268869 [13:00:05]current date 1727269205 [13:00:05]FM_GetShiftState [13:00:05]SAM_PROTO_GetShiftState [13:00:05]wFMCommunicate request_size=4 [13:00:05]MH_SAM_APDU [13:00:05]CAPDU: 80 13 01 00 [13:00:05]Write to MH i2c: E2 08 00 26 03 80 13 01 00 00 00 00 00 A6 [13:00:05]Write i2c OK [13:00:05]MH_I2C_Read... [13:00:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:00:05]Read from MH i2c: E2 [13:00:05]MH_I2C_Read... [13:00:05]Read from MH i2c: E2 0E 00 [13:00:05]MH_I2C_Read... [13:00:05]Read from MH i2c: E2 0E 00 26 03 00 09 00 01 63 60 F3 66 00 00 00 00 90 00 CE [13:00:05]RAPDU: 09 00 01 63 60 F3 66 00 00 00 00 90 00 [13:00:05]wFMCommunicate OK [13:00:05]SAM_PROTO_GetShiftState done [13:00:05]FM_GetShiftState done [13:00:05]opened in 1727225955 [13:00:05]opened+sec_in_day 1727312355 [13:00:05]quantity*price = 8000 [13:00:05]sum+1 = 8001 [13:00:05]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 48746717 Сигареты Winston XStyle Caster + Dream M 1.000 * 147.00 = 147.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4870001571030 Вода ASU пит н.газ клубн,киви ПЭТ 1л 1.000 * 70.00 = 70.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 297.00 НСП 1% : 2.63 НДС 12% : 31.54 Наличными: 297.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 76 25.09.2024 13:00 Смена: 474 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 116220 ФПД: 99677827237700 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240925T130005&type=1&operation_type=1&fn_number=0000000000871830&fd_number=116220&fm=99677827237700&tin=02508201610067®Number=0000000000091831&sum=29700 0 [13:00:06]StoreToDocumentArchive [13:00:06]shift 474 fd 116220 [13:00:06]save to /storage/0474/doc_00116220 [13:00:06]save last doc name /storage/0474/doc_00116220 to /storage/kkm_last_doc_name [13:00:06]save OK [13:00:06]Clear old archive folders... [13:00:06]ProcessDocumentItem done err = 0, tmpTLVsize=515 [13:00:06]tlvbuf is 013A1370 [13:00:06]SAM_PROTO_ClearQueue [13:00:06]wFMCommunicate request_size=4 [13:00:06]MH_SAM_APDU [13:00:06]CAPDU: 80 09 00 00 [13:00:06]Write to MH i2c: E2 08 00 33 03 80 09 00 00 00 00 00 00 A8 [13:00:06]Write i2c OK [13:00:06]MH_I2C_Read... [13:00:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:00:06]Read from MH i2c: E2 [13:00:06]MH_I2C_Read... [13:00:06]Read from MH i2c: E2 03 00 [13:00:06]MH_I2C_Read... [13:00:06]Read from MH i2c: E2 03 00 33 03 00 90 00 AA [13:00:06]RAPDU: 90 00 [13:00:06]wFMCommunicate OK [13:00:06]SAM_PROTO_ClearQueue done [13:00:06]KKMCreateOFDPacket [13:00:06]OFDProtocolAddRootSTLVToBuf [13:00:06]FM_MakeSignedData [13:00:06]FM_MakeSignedData [13:00:06]SAM_PROTO_SignData [13:00:06]wFMCommunicate request_size=4 [13:00:06]MH_SAM_APDU [13:00:06]CAPDU: 80 0D 01 02 [13:00:06]Write to MH i2c: E2 08 00 34 03 80 0D 01 02 00 00 00 00 B0 [13:00:06]Write i2c OK [13:00:06]MH_I2C_Read... [13:00:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:00:06]Read from MH i2c: E2 [13:00:06]MH_I2C_Read... [13:00:06]Read from MH i2c: E2 03 00 [13:00:06]MH_I2C_Read... [13:00:06]Read from MH i2c: E2 03 00 34 03 00 90 00 AB [13:00:06]RAPDU: 90 00 [13:00:06]wFMCommunicate OK [13:00:06]wFMCommunicate request_size=255 [13:00:06]MH_SAM_APDU [13:00:06]CAPDU: 80 0D 02 02 FA 03 00 03 02 1E 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 35 37 06 04 1A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6F 00 8A 04 08 00 34 38 37 34 36 37 31 37 06 04 30 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 43 61 73 74 65 72 20 2B 20 44 72 65 61 6D 20 4D FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 6C 39 00 00 00 00 13 04 06 00 6C 39 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 80 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 31 30 33 30 06 04 3C 00 D0 92 D0 [13:00:06]Write to MH i2c: E2 02 01 35 03 80 0D 02 02 FA 00 03 00 03 02 1E 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 35 37 06 04 1A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6F 00 8A 04 08 00 34 38 37 34 36 37 31 37 06 04 30 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 43 61 73 74 65 72 20 2B 20 44 72 65 61 6D 20 4D FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 6C 39 00 00 00 00 13 04 06 00 6C 39 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 80 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 31 30 33 30 06 04 3C 00 D0 92 D0 00 00 5A [13:00:06]Write i2c OK [13:00:06]MH_I2C_Read... [13:00:06]Read from MH i2c: E2 [13:00:06]MH_I2C_Read... [13:00:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:00:06]Read from MH i2c: E2 03 00 [13:00:06]MH_I2C_Read... [13:00:06]Read from MH i2c: E2 03 00 35 03 00 90 00 AC [13:00:06]RAPDU: 90 00 [13:00:06]wFMCommunicate OK [13:00:06]wFMCommunicate request_size=255 [13:00:06]MH_SAM_APDU [13:00:06]CAPDU: 80 0D 02 02 FA BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BA D0 BB D1 83 D0 B1 D0 BD 2C D0 BA D0 B8 D0 B2 D0 B8 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 74 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 07 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 52 0C 00 00 00 00 07 04 06 00 04 74 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 00 00 00 F4 03 04 00 55 09 F4 66 0E 04 04 00 DA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 [13:00:06]Write to MH i2c: E2 02 01 36 03 80 0D 02 02 FA 00 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BA D0 BB D1 83 D0 B1 D0 BD 2C D0 BA D0 B8 D0 B2 D0 B8 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 74 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 07 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 52 0C 00 00 00 00 07 04 06 00 04 74 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 00 00 00 F4 03 04 00 55 09 F4 66 0E 04 04 00 DA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 00 00 73 [13:00:06]Write i2c OK [13:00:06]MH_I2C_Read... [13:00:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:00:07]Read from MH i2c: E2 [13:00:07]MH_I2C_Read... [13:00:07]Read from MH i2c: E2 03 00 [13:00:07]MH_I2C_Read... [13:00:07]Read from MH i2c: E2 03 00 36 03 00 90 00 AD [13:00:07]RAPDU: 90 00 [13:00:07]wFMCommunicate OK [13:00:07]wFMCommunicate request_size=24 [13:00:07]MH_SAM_APDU [13:00:07]CAPDU: 80 0D 02 02 13 30 10 04 04 00 FC C5 01 00 35 04 06 00 5A A8 0D 7C 07 44 [13:00:07]Write to MH i2c: E2 1B 00 37 03 80 0D 02 02 13 00 30 10 04 04 00 FC C5 01 00 35 04 06 00 5A A8 0D 7C 07 44 00 00 F9 [13:00:07]Write i2c OK [13:00:07]MH_I2C_Read... [13:00:07]Read from MH i2c: E2 [13:00:07]MH_I2C_Read... [13:00:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:00:07]Read from MH i2c: E2 03 00 [13:00:07]MH_I2C_Read... [13:00:07]Read from MH i2c: E2 03 00 37 03 00 90 00 AE [13:00:07]RAPDU: 90 00 [13:00:07]wFMCommunicate OK [13:00:07]wFMCommunicate request_size=4 [13:00:07]MH_SAM_APDU [13:00:07]CAPDU: 80 0D 03 02 [13:00:07]Write to MH i2c: E2 08 00 38 03 80 0D 03 02 00 00 00 00 B6 [13:00:07]Write i2c OK [13:00:07]MH_I2C_Read... [13:00:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:00:07]Read from MH i2c: E2 [13:00:07]MH_I2C_Read... [13:00:07]Read from MH i2c: E2 0B 00 [13:00:07]MH_I2C_Read... [13:00:07]Read from MH i2c: E2 0B 00 38 03 00 90 0B 47 EE 82 E9 04 8B 90 00 81 [13:00:07]RAPDU: 90 0B 47 EE 82 E9 04 8B 90 00 [13:00:07]wFMCommunicate OK [13:00:07]SAM_PROTO_SignData done [13:00:07]FM_MakeSignedData done [13:00:07]CreateOFDProtocolMessage [13:00:07]wFMCommunicate request_size=4 [13:00:07]MH_SAM_APDU [13:00:07]CAPDU: 80 11 00 00 [13:00:07]Write to MH i2c: E2 08 00 39 03 80 11 00 00 00 00 00 00 B6 [13:00:07]Write i2c OK [13:00:07]MH_I2C_Read... [13:00:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:00:07]Read from MH i2c: E2 [13:00:07]MH_I2C_Read... [13:00:07]Read from MH i2c: E2 17 00 [13:00:07]MH_I2C_Read... [13:00:07]Read from MH i2c: E2 17 00 39 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 04 [13:00:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [13:00:07]wFMCommunicate OK [13:00:07]CreateOFDProtocolMessage done [13:00:07]OFDSenderStorePacket 116220 [13:00:07]StoreOFDPacket docnum=116220 [13:00:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 17 02 00 00 DA 91 0F 02 36 E1 5A 03 01 00 03 00 03 02 1E 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 35 37 06 04 1A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6F 00 8A 04 08 00 34 38 37 34 36 37 31 37 06 04 30 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 43 61 73 74 65 72 20 2B 20 44 72 65 61 6D 20 4D FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 6C 39 00 00 00 00 13 04 06 00 6C 39 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 80 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 31 30 33 30 06 04 3C 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BA D0 BB D1 83 D0 B1 D0 BD 2C D0 BA D0 B8 D0 B2 D0 B8 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 74 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 07 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 52 0C 00 00 00 00 07 04 06 00 04 74 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 00 00 00 F4 03 04 00 55 09 F4 66 0E 04 04 00 DA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 FC C5 01 00 35 04 06 00 5A A8 0D 7C 07 44 90 0B 47 EE 82 E9 04 8B [13:00:07]CheckFolder [13:00:07]dirname=/storage/ofd_packets [13:00:07]CheckFolder done [13:00:07]ProducePacketName [13:00:07]name=ofd_packets/00116220 [13:00:07]NVStorageSaveData ofd_packets/00116220 [13:00:07]File name is /storage/ofd_packets/00116220 [13:00:07]Write 565 bytes [13:00:07]NVStorageSaveData done [13:00:07]OFDSenderStorePacket done [13:00:07]KKMCreateOFDPacket done [13:00:07]NVStorageSaveData kkm_last_timestamp [13:00:07]File name is /storage/kkm_last_timestamp [13:00:07]Write 4 bytes [13:00:07]NVStorageSaveData done [13:00:07]ExternCall_PrintAddStr [13:00:07]wPrintStart [13:00:07]Write to MH i2c: 01 00 00 3A 03 3D [13:00:07]Write i2c OK [13:00:07]MH_I2C_Read... [13:00:07]Read from MH i2c: 01 [13:00:07]MH_I2C_Read... [13:00:07]Read from MH i2c: 01 07 00 [13:00:07]MH_I2C_Read... [13:00:07]Read from MH i2c: 01 07 00 3A 03 00 00 00 00 00 FF 0F 52 [13:00:07]RasterBufferAndPrint [13:00:07]line Счет N : (3)344388 [13:00:07]line ИНН: 02508201610067 [13:00:07]line Контрольно-Кассовый Чек [13:00:07]line ПРОДАЖА [13:00:07]line Товар: 4870001570057 [13:00:07]line Напиток Pepsi 0,5л [13:00:07]line 1.000 * 80.00 [13:00:07]line = 80.00 [13:00:07]line НДС 12% НСП 1% [13:00:07]line > о реализуемом товаре [13:00:07]line Товар: 48746717 [13:00:07]line Сигареты Winston XStyle Caster + Dream M [13:00:07]line 1.000 * 147.00 [13:00:07]line = 147.00 [13:00:07]line НДС 12% НСП 1% [13:00:07]line > о реализуемом товаре [13:00:07]line Товар: 4870001571030 [13:00:07]line Вода ASU пит н.газ клубн,киви ПЭТ 1л [13:00:07]line 1.000 * 70.00 [13:00:07]line = 70.00 [13:00:07]line НДС 12% НСП 1% [13:00:07]line > о реализуемом товаре [13:00:07]line ИТОГО: 297.00 [13:00:07]line НСП 1% : 2.63 [13:00:07]line НДС 12% : 31.54 [13:00:07]line Наличными: 297.00 [13:00:07]line Безнал.: 0.00 [13:00:07]line Место: АЗС № 90 "Партнер Нефть" [13:00:07]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [13:00:07]line СНО: Общий режим [13:00:07]line Чек 76 25.09.2024 13:00 [13:00:07]line Смена: 474 ФФД: 1.0 [13:00:07]line ЗНМ: 0300000120 [13:00:07]line РНМ: 0000000000091831 [13:00:07]line Версия ККМ: 001 [13:00:07]line ФМ: 0000000000871830 [13:00:07]line ФД: 116220 [13:00:07]line ФПД: 99677827237700 [13:00:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240925T130005&type=1&operation_type=1&fn_number=0000000000871830&fd_number=116220&fm=99677827237700&tin=02508201610067®Number=0000000000091831&sum=29700 [13:00:07]line 0 [13:00:07]written 0, free lines is 4095 [13:00:07]OFD Sender: Processing packet 116220 [packets to send 482, broken 481] [13:00:07]ProducePacketName [13:00:07]name=ofd_packets/00116220 [13:00:07]OFD Sender: To server: pG, [13:00:07]CommunicateWithHost lk.salyk.kg:30040 [13:00:07]ConnectInit lk.salyk.kg [13:00:07]Connected sock=7 [13:00:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 17 02 00 00 DA 91 0F 02 36 E1 5A 03 01 00 03 00 03 02 1E 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 35 37 06 04 1A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6F 00 8A 04 08 00 34 38 37 34 36 37 31 37 06 04 30 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 43 61 73 74 65 72 20 2B 20 44 72 65 61 6D 20 4D FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 6C 39 00 00 00 00 13 04 06 00 6C 39 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 80 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 31 30 33 30 06 04 3C 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BA D0 BB D1 83 D0 B1 D0 BD 2C D0 BA D0 B8 D0 B2 D0 B8 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 74 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 07 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 52 0C 00 00 00 00 07 04 06 00 04 74 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 00 00 00 F4 03 04 00 55 09 F4 66 0E 04 04 00 DA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 FC C5 01 00 35 04 06 00 5A A8 0D 7C 07 44 90 0B 47 EE 82 E9 04 8B [13:00:07]Write to MH i2c: 01 00 00 6F 03 72 [13:00:07]Write i2c OK [13:00:07]MH_I2C_Read... [13:00:07]Read from MH i2c: 01 [13:00:07]MH_I2C_Read... [13:00:07]Read from MH i2c: 01 07 00 [13:00:07]MH_I2C_Read... [13:00:07]Read from MH i2c: 01 07 00 6F 03 00 00 00 00 00 64 0B E8 [13:00:08]RasterBufferAndPrint [13:00:08]line [13:00:08]line [13:00:08]line [13:00:08]line [13:00:08]line [13:00:08]written 0, free lines is 2918 [13:00:08]MH_Cut [13:00:08]Write to MH i2c: D1 01 00 76 03 01 4B [13:00:08]Write i2c OK [13:00:08]MH_I2C_Read... [13:00:08]Read from MH i2c: D1 [13:00:08]MH_I2C_Read... [13:00:08]Read from MH i2c: D1 01 00 [13:00:08]MH_I2C_Read... [13:00:08]Read from MH i2c: D1 01 00 76 03 00 4A [13:00:08]Write to MH i2c: 01 00 00 77 03 7A [13:00:08]Write i2c OK [13:00:08]MH_I2C_Read... [13:00:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 9F FF 47 00 25 55 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 FC C5 01 00 F4 03 04 00 92 AE F3 66 B6 04 01 00 00 78 1C 26 2A 53 59 14 BC [13:00:08]CommunicateWithHost err = 0 [13:00:08]CheckOFDResponse [13:00:08]1017 (14) - 77093643461234 [13:00:08]1041 (16) - 0000000000871830 [13:00:08]1040 (4) - 116220 [13:00:08]1012 (4) - 25.09.2024 06:32 [13:00:08]1206 (1) - 0 [13:00:08]OFD Sender: Remove packet 116220 [13:00:08]ProducePacketName [13:00:08]name=ofd_packets/00116220 [13:00:08]NVStorageDeleteData [13:00:08]OFD Sender: No OFD packet to send [13:00:09]*** Cut start [13:00:09]*** Partial cut [13:00:09]*** CUTSNS_PIN = 1 [13:00:09]*** CUTSNS_PIN = 0 [13:00:09]*** Brake cut motor [13:00:10]Read from MH i2c: 01 [13:00:10]MH_I2C_Read... [13:00:10]*** Stop cut motor [13:00:10]*** Cut end [13:00:10]Read from MH i2c: 01 07 00 [13:00:10]MH_I2C_Read... [13:00:10]Read from MH i2c: 01 07 00 77 03 00 00 00 00 00 FF 0F 8F [13:00:10]process_action close_receipt done [13:00:10]requested_data is exist [13:00:10]produce_requested_data [13:00:10]requested_item fm.sn is exist - process it [13:00:10]wFMCommunicate request_size=4 [13:00:10]MH_SAM_APDU [13:00:10]CAPDU: 80 11 00 00 [13:00:10]Write to MH i2c: E2 08 00 78 03 80 11 00 00 00 00 00 00 F5 [13:00:10]Write i2c OK [13:00:10]MH_I2C_Read... [13:00:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:00:10]Read from MH i2c: E2 [13:00:10]MH_I2C_Read... [13:00:10]Read from MH i2c: E2 17 00 [13:00:10]MH_I2C_Read... [13:00:10]Read from MH i2c: E2 17 00 78 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 43 [13:00:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [13:00:10]wFMCommunicate OK [13:00:10]requested_item fd.num is exist - process it [13:00:10]SAM_PROTO_GetFieldsCounters [13:00:10]wFMCommunicate request_size=4 [13:00:10]MH_SAM_APDU [13:00:10]CAPDU: 80 13 00 00 [13:00:10]Write to MH i2c: E2 08 00 79 03 80 13 00 00 00 00 00 00 F8 [13:00:10]Write i2c OK [13:00:10]MH_I2C_Read... [13:00:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:00:10]Read from MH i2c: E2 [13:00:10]MH_I2C_Read... [13:00:10]Read from MH i2c: E2 62 00 [13:00:10]MH_I2C_Read... [13:00:10]Read from MH i2c: E2 62 00 79 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 FC C5 01 00 0E 04 04 00 DA 01 00 00 12 04 04 00 4C 00 00 00 5E 04 04 00 4C 00 00 00 57 04 04 00 4D 00 00 00 19 04 04 00 00 00 00 00 90 00 92 [13:00:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 FC C5 01 00 0E 04 04 00 DA 01 00 00 12 04 04 00 4C 00 00 00 5E 04 04 00 4C 00 00 00 57 04 04 00 4D 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:00:10]wFMCommunicate OK [13:00:10]SAM_PROTO_GetFieldsCounters done [13:00:10]requested_item shift.num is exist - process it [13:00:10]requested_item shift.opened is exist - process it [13:00:10]req_shift_opened [13:00:10]FM_GetShiftState [13:00:10]SAM_PROTO_GetShiftState [13:00:10]wFMCommunicate request_size=4 [13:00:10]MH_SAM_APDU [13:00:10]CAPDU: 80 13 01 00 [13:00:10]Write to MH i2c: E2 08 00 7A 03 80 13 01 00 00 00 00 00 FA [13:00:10]Write i2c OK [13:00:10]MH_I2C_Read... [13:00:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:00:10]Read from MH i2c: E2 [13:00:10]MH_I2C_Read... [13:00:10]Read from MH i2c: E2 0E 00 [13:00:10]MH_I2C_Read... [13:00:10]Read from MH i2c: E2 0E 00 7A 03 00 09 00 01 63 60 F3 66 00 00 00 00 90 00 22 [13:00:10]RAPDU: 09 00 01 63 60 F3 66 00 00 00 00 90 00 [13:00:10]wFMCommunicate OK [13:00:10]SAM_PROTO_GetShiftState done [13:00:10]FM_GetShiftState done [13:00:10]req_shift_opened done [13:00:10]requested_item shift.open_date is exist - process it [13:00:10]req_shift_open_date [13:00:10]req_shift_open_date done [13:00:10]produce_requested_data done [13:00:10]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":116220,"shift.num":474,"shift.opened":1,"shift.open_date":1727225955} [13:00:10]process_action_free close_receipt [13:00:10]json_value_free [13:00:10]json_value_free done [13:00:10]process_json_proto returns [13:00:10]Send response to host [13:00:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":116220,"shift.num":474,"shift.opened":1,"shift.open_date":1727225955}}} [13:00:10]free response buf [13:00:10]execute_script done [13:00:10]execute_script returns [13:00:10]free content buf [13:00:10]Sock 6.Close socket [13:00:10]Sock 6.Thread stoped [13:00:13]OFD Sender: No OFD packet to send [13:00:18]OFD Sender: No OFD packet to send [13:00:23]OFD Sender: No OFD packet to send [13:00:28]OFD Sender: No OFD packet to send [13:00:33]OFD Sender: No OFD packet to send [13:00:38]OFD Sender: No OFD packet to send [13:00:43]OFD Sender: No OFD packet to send [13:00:48]OFD Sender: No OFD packet to send [13:00:50]accept exits with 5 [13:00:50]New connection [13:00:50]New thread 3066957156 created [13:00:50]Thread 3066813796 joined [13:00:50]Waiting for new connection... [13:00:50] Sock 5.Parse request [13:00:50]Sock 5.Check first char [13:00:50]Sock 5.First char is OK [13:00:50]request: POST /json_proto HTTP/1.0 [13:00:50]Method: POST [13:00:50]URL: /json_proto [13:00:50]Method is POST - this is cgi request [13:00:50]url: /json_proto [13:00:50]query_string will be loaded in cgi processing [13:00:50]execute_cgi json_proto POST (null) [13:00:50]execute_cgi path=json_proto method=POST [13:00:50]POST find Content-Length [13:00:50]Host: 172.17.41.136:8080 [13:00:50]Content-Length: 965 [13:00:50]Content-Type: application/json [13:00:50] [13:00:50]POST finish read [13:00:50]Found Content-Length = 965 [13:00:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)344389", "tax_sys" : 0, "items" : [ { "code": "4870202522671", "name": "Garden \u043D\u0430\u043F\u0438\u0442\u043E\u043A \u0441\u043E \u0432\u043A\u0443\u0441\u043E\u043C \u0433\u0440\u0430\u043D\u0430\u0442\u0430 1,20 \u041F\u042D", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 175.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:00:50]execute_script... [13:00:50]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)344389", "tax_sys" : 0, "items" : [ { "code": "4870202522671", "name": "Garden \u043D\u0430\u043F\u0438\u0442\u043E\u043A \u0441\u043E \u0432\u043A\u0443\u0441\u043E\u043C \u0433\u0440\u0430\u043D\u0430\u0442\u0430 1,20 \u041F\u042D", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 175.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:00:50]POST & json_proto [13:00:50]process_json_proto [13:00:50]json parsed OK: [13:00:50]protocol is kg_v1.0 [13:00:50]action value=close_receipt [13:00:50]process_action close_receipt [13:00:50]cmd_close_receipt [13:00:50]MH_GetDate [13:00:50]Write to MH i2c: F0 00 00 7B 03 6D [13:00:50]Write i2c OK [13:00:50]MH_I2C_Read... [13:00:50]Read from MH i2c: F0 [13:00:50]MH_I2C_Read... [13:00:50]Read from MH i2c: F0 09 00 [13:00:50]MH_I2C_Read... [13:00:50]Read from MH i2c: F0 09 00 7B 03 00 83 09 F4 66 1B D0 5A 64 05 [13:00:50]GetLastDocTimeStamp 1727269205 [13:00:50]current date 1727269251 [13:00:50]FM_GetShiftState [13:00:50]SAM_PROTO_GetShiftState [13:00:50]wFMCommunicate request_size=4 [13:00:50]MH_SAM_APDU [13:00:50]CAPDU: 80 13 01 00 [13:00:50]Write to MH i2c: E2 08 00 7C 03 80 13 01 00 00 00 00 00 FC [13:00:50]Write i2c OK [13:00:50]MH_I2C_Read... [13:00:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:00:50]Read from MH i2c: E2 [13:00:50]MH_I2C_Read... [13:00:50]Read from MH i2c: E2 0E 00 [13:00:50]MH_I2C_Read... [13:00:50]Read from MH i2c: E2 0E 00 7C 03 00 09 00 01 63 60 F3 66 00 00 00 00 90 00 24 [13:00:50]RAPDU: 09 00 01 63 60 F3 66 00 00 00 00 90 00 [13:00:50]wFMCommunicate OK [13:00:50]SAM_PROTO_GetShiftState done [13:00:50]FM_GetShiftState done [13:00:50]opened in 1727225955 [13:00:50]opened+sec_in_day 1727312355 [13:00:50]quantity*price = 12500 [13:00:50]sum+1 = 12501 [13:00:50]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700000160358 Вода Легенда 1л 1.000 * 50.00 = 50.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 175.00 НСП 1% : 1.55 НДС 12% : 18.58 Наличными: 175.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 77 25.09.2024 13:00 Смена: 474 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 116221 ФПД: 7506953446904 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240925T130051&type=1&operation_type=1&fn_number=0000000000871830&fd_number=116221&fm=7506953446904&tin=02508201610067®Number=0000000000091831&sum=17500 0 [13:00:52]StoreToDocumentArchive [13:00:52]shift 474 fd 116221 [13:00:52]save to /storage/0474/doc_00116221 [13:00:52]save last doc name /storage/0474/doc_00116221 to /storage/kkm_last_doc_name [13:00:52]save OK [13:00:52]Clear old archive folders... [13:00:52]ProcessDocumentItem done err = 0, tmpTLVsize=405 [13:00:52]tlvbuf is 0139A560 [13:00:52]SAM_PROTO_ClearQueue [13:00:52]wFMCommunicate request_size=4 [13:00:52]MH_SAM_APDU [13:00:52]CAPDU: 80 09 00 00 [13:00:52]Write to MH i2c: E2 08 00 89 03 80 09 00 00 00 00 00 00 FE [13:00:52]Write i2c OK [13:00:52]MH_I2C_Read... [13:00:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:00:52]Read from MH i2c: E2 [13:00:52]MH_I2C_Read... [13:00:52]Read from MH i2c: E2 03 00 [13:00:52]MH_I2C_Read... [13:00:52]Read from MH i2c: E2 03 00 89 03 00 90 00 00 [13:00:52]RAPDU: 90 00 [13:00:52]wFMCommunicate OK [13:00:52]SAM_PROTO_ClearQueue done [13:00:52]KKMCreateOFDPacket [13:00:52]OFDProtocolAddRootSTLVToBuf [13:00:52]FM_MakeSignedData [13:00:52]FM_MakeSignedData [13:00:52]SAM_PROTO_SignData [13:00:52]wFMCommunicate request_size=4 [13:00:52]MH_SAM_APDU [13:00:52]CAPDU: 80 0D 01 02 [13:00:52]Write to MH i2c: E2 08 00 8A 03 80 0D 01 02 00 00 00 00 06 [13:00:52]Write i2c OK [13:00:52]MH_I2C_Read... [13:00:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:00:52]Read from MH i2c: E2 [13:00:52]MH_I2C_Read... [13:00:52]Read from MH i2c: E2 03 00 [13:00:52]MH_I2C_Read... [13:00:52]Read from MH i2c: E2 03 00 8A 03 00 90 00 01 [13:00:52]RAPDU: 90 00 [13:00:52]wFMCommunicate OK [13:00:52]wFMCommunicate request_size=255 [13:00:52]MH_SAM_APDU [13:00:52]CAPDU: 80 0D 02 02 FA 03 00 95 01 1E 04 01 00 01 23 04 84 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 32 36 37 31 06 04 40 00 47 61 72 64 65 6E 20 D0 BD D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 81 D0 BE 20 D0 B2 D0 BA D1 83 D1 81 D0 BE D0 BC 20 D0 B3 D1 80 D0 B0 D0 BD D0 B0 D1 82 D0 B0 20 31 2C 32 30 20 D0 9F D0 AD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 44 [13:00:52]Write to MH i2c: E2 02 01 8B 03 80 0D 02 02 FA 00 03 00 95 01 1E 04 01 00 01 23 04 84 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 32 36 37 31 06 04 40 00 47 61 72 64 65 6E 20 D0 BD D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 81 D0 BE 20 D0 B2 D0 BA D1 83 D1 81 D0 BE D0 BC 20 D0 B3 D1 80 D0 B0 D0 BD D0 B0 D1 82 D0 B0 20 31 2C 32 30 20 D0 9F D0 AD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 44 00 00 5B [13:00:52]Write i2c OK [13:00:52]MH_I2C_Read... [13:00:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:00:52]Read from MH i2c: E2 [13:00:52]MH_I2C_Read... [13:00:52]Read from MH i2c: E2 03 00 [13:00:52]MH_I2C_Read... [13:00:52]Read from MH i2c: E2 03 00 8B 03 00 90 00 02 [13:00:52]RAPDU: 90 00 [13:00:52]wFMCommunicate OK [13:00:52]wFMCommunicate request_size=164 [13:00:52]MH_SAM_APDU [13:00:52]CAPDU: 80 0D 02 02 9F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 42 07 00 00 00 00 07 04 06 00 5C 44 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 83 09 F4 66 0E 04 04 00 DA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 FD C5 01 00 35 04 06 00 06 D3 D9 4B 25 F8 [13:00:52]Write to MH i2c: E2 A7 00 8C 03 80 0D 02 02 9F 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 42 07 00 00 00 00 07 04 06 00 5C 44 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 83 09 F4 66 0E 04 04 00 DA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 FD C5 01 00 35 04 06 00 06 D3 D9 4B 25 F8 00 00 EB [13:00:52]Write i2c OK [13:00:52]MH_I2C_Read... [13:00:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:00:52]Read from MH i2c: E2 [13:00:52]MH_I2C_Read... [13:00:52]Read from MH i2c: E2 03 00 [13:00:52]MH_I2C_Read... [13:00:52]Read from MH i2c: E2 03 00 8C 03 00 90 00 03 [13:00:52]RAPDU: 90 00 [13:00:52]wFMCommunicate OK [13:00:52]wFMCommunicate request_size=4 [13:00:52]MH_SAM_APDU [13:00:52]CAPDU: 80 0D 03 02 [13:00:52]Write to MH i2c: E2 08 00 8D 03 80 0D 03 02 00 00 00 00 0B [13:00:52]Write i2c OK [13:00:52]MH_I2C_Read... [13:00:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:00:52]Read from MH i2c: E2 [13:00:52]MH_I2C_Read... [13:00:52]Read from MH i2c: E2 0B 00 [13:00:52]MH_I2C_Read... [13:00:52]Read from MH i2c: E2 0B 00 8D 03 00 CB 70 C7 32 59 6E FA D7 90 00 D8 [13:00:52]RAPDU: CB 70 C7 32 59 6E FA D7 90 00 [13:00:52]wFMCommunicate OK [13:00:52]SAM_PROTO_SignData done [13:00:52]FM_MakeSignedData done [13:00:52]CreateOFDProtocolMessage [13:00:52]wFMCommunicate request_size=4 [13:00:52]MH_SAM_APDU [13:00:52]CAPDU: 80 11 00 00 [13:00:52]Write to MH i2c: E2 08 00 8E 03 80 11 00 00 00 00 00 00 0B [13:00:52]Write i2c OK [13:00:52]MH_I2C_Read... [13:00:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:00:52]Read from MH i2c: E2 [13:00:52]MH_I2C_Read... [13:00:52]Read from MH i2c: E2 17 00 [13:00:52]MH_I2C_Read... [13:00:52]Read from MH i2c: E2 17 00 8E 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 59 [13:00:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [13:00:52]wFMCommunicate OK [13:00:52]CreateOFDProtocolMessage done [13:00:52]OFDSenderStorePacket 116221 [13:00:52]StoreOFDPacket docnum=116221 [13:00:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 A9 01 00 00 5A 6A A1 01 D8 84 5A 03 01 00 03 00 95 01 1E 04 01 00 01 23 04 84 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 32 36 37 31 06 04 40 00 47 61 72 64 65 6E 20 D0 BD D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 81 D0 BE 20 D0 B2 D0 BA D1 83 D1 81 D0 BE D0 BC 20 D0 B3 D1 80 D0 B0 D0 BD D0 B0 D1 82 D0 B0 20 31 2C 32 30 20 D0 9F D0 AD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 44 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 42 07 00 00 00 00 07 04 06 00 5C 44 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 83 09 F4 66 0E 04 04 00 DA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 FD C5 01 00 35 04 06 00 06 D3 D9 4B 25 F8 CB 70 C7 32 59 6E FA D7 [13:00:52]CheckFolder [13:00:52]dirname=/storage/ofd_packets [13:00:52]CheckFolder done [13:00:52]ProducePacketName [13:00:52]name=ofd_packets/00116221 [13:00:52]NVStorageSaveData ofd_packets/00116221 [13:00:52]File name is /storage/ofd_packets/00116221 [13:00:52]Write 455 bytes [13:00:52]NVStorageSaveData done [13:00:52]OFDSenderStorePacket done [13:00:52]KKMCreateOFDPacket done [13:00:52]NVStorageSaveData kkm_last_timestamp [13:00:52]File name is /storage/kkm_last_timestamp [13:00:52]Write 4 bytes [13:00:52]NVStorageSaveData done [13:00:52]ExternCall_PrintAddStr [13:00:52]wPrintStart [13:00:52]Write to MH i2c: 01 00 00 8F 03 92 [13:00:52]Write i2c OK [13:00:52]MH_I2C_Read... [13:00:52]Read from MH i2c: 01 [13:00:52]MH_I2C_Read... [13:00:52]Read from MH i2c: 01 07 00 [13:00:52]MH_I2C_Read... [13:00:52]Read from MH i2c: 01 07 00 8F 03 00 00 00 00 00 FF 0F A7 [13:00:52]RasterBufferAndPrint [13:00:52]line Счет N : (3)344389 [13:00:52]line ИНН: 02508201610067 [13:00:53]line Контрольно-Кассовый Чек [13:00:53]line ПРОДАЖА [13:00:53]line Товар: 4870202522671 [13:00:53]line Garden напиток со вкусом граната 1,20 ПЭ [13:00:53]line 1.000 * 125.00 [13:00:53]line = 125.00 [13:00:53]line НДС 12% НСП 1% [13:00:53]line > о реализуемом товаре [13:00:53]line Товар: 4700000160358 [13:00:53]line Вода Легенда 1л [13:00:53]line 1.000 * 50.00 [13:00:53]line = 50.00 [13:00:53]line НДС 12% НСП 1% [13:00:53]line > о реализуемом товаре [13:00:53]line ИТОГО: 175.00 [13:00:53]line НСП 1% : 1.55 [13:00:53]line НДС 12% : 18.58 [13:00:53]line Наличными: 175.00 [13:00:53]line Безнал.: 0.00 [13:00:53]line Место: АЗС № 90 "Партнер Нефть" [13:00:53]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [13:00:53]line СНО: Общий режим [13:00:53]line Чек 77 25.09.2024 13:00 [13:00:53]line Смена: 474 ФФД: 1.0 [13:00:53]line ЗНМ: 0300000120 [13:00:53]line РНМ: 0000000000091831 [13:00:53]line Версия ККМ: 001 [13:00:53]line ФМ: 0000000000871830 [13:00:53]line ФД: 116221 [13:00:53]line ФПД: 7506953446904 [13:00:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240925T130051&type=1&operation_type=1&fn_number=0000000000871830&fd_number=116221&fm=7506953446904&tin=02508201610067®Number=0000000000091831&sum=17500 [13:00:53]line 0 [13:00:53]OFD Sender: Processing packet 116221 [packets to send 482, broken 481] [13:00:53]ProducePacketName [13:00:53]name=ofd_packets/00116221 [13:00:53]OFD Sender: To server: pG, [13:00:53]CommunicateWithHost lk.salyk.kg:30040 [13:00:53]ConnectInit lk.salyk.kg [13:00:53]written 0, free lines is 4095 [13:00:53]Connected sock=7 [13:00:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 A9 01 00 00 5A 6A A1 01 D8 84 5A 03 01 00 03 00 95 01 1E 04 01 00 01 23 04 84 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 32 36 37 31 06 04 40 00 47 61 72 64 65 6E 20 D0 BD D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 81 D0 BE 20 D0 B2 D0 BA D1 83 D1 81 D0 BE D0 BC 20 D0 B3 D1 80 D0 B0 D0 BD D0 B0 D1 82 D0 B0 20 31 2C 32 30 20 D0 9F D0 AD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 44 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 42 07 00 00 00 00 07 04 06 00 5C 44 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 83 09 F4 66 0E 04 04 00 DA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 FD C5 01 00 35 04 06 00 06 D3 D9 4B 25 F8 CB 70 C7 32 59 6E FA D7 [13:00:53]Write to MH i2c: 01 00 00 BD 03 C0 [13:00:53]Write i2c OK [13:00:53]MH_I2C_Read... [13:00:53]Read from MH i2c: 01 [13:00:53]MH_I2C_Read... [13:00:53]Read from MH i2c: 01 07 00 [13:00:53]MH_I2C_Read... [13:00:53]Read from MH i2c: 01 07 00 BD 03 00 00 00 00 00 F0 0B C2 [13:00:53]RasterBufferAndPrint [13:00:53]line [13:00:53]line [13:00:53]line [13:00:53]line [13:00:53]line [13:00:53]written 0, free lines is 3060 [13:00:53]MH_Cut [13:00:53]Write to MH i2c: D1 01 00 C4 03 01 99 [13:00:53]Write i2c OK [13:00:53]MH_I2C_Read... [13:00:53]Read from MH i2c: D1 [13:00:53]MH_I2C_Read... [13:00:53]Read from MH i2c: D1 01 00 [13:00:53]MH_I2C_Read... [13:00:53]Read from MH i2c: D1 01 00 C4 03 00 98 [13:00:53]Write to MH i2c: 01 00 00 C5 03 C8 [13:00:53]Write i2c OK [13:00:53]MH_I2C_Read... [13:00:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 6D D3 47 00 F1 D4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 FD C5 01 00 F4 03 04 00 BF AE F3 66 B6 04 01 00 00 3E D4 66 A3 CD 1D 71 CB [13:00:53]CommunicateWithHost err = 0 [13:00:53]CheckOFDResponse [13:00:53]1017 (14) - 77093643461234 [13:00:53]1041 (16) - 0000000000871830 [13:00:53]1040 (4) - 116221 [13:00:53]1012 (4) - 25.09.2024 06:33 [13:00:53]1206 (1) - 0 [13:00:53]OFD Sender: Remove packet 116221 [13:00:53]ProducePacketName [13:00:53]name=ofd_packets/00116221 [13:00:53]NVStorageDeleteData [13:00:54]OFD Sender: No OFD packet to send [13:00:54]*** Cut start [13:00:54]*** Partial cut [13:00:54]*** CUTSNS_PIN = 1 [13:00:55]*** CUTSNS_PIN = 0 [13:00:55]*** Brake cut motor [13:00:55]Read from MH i2c: 01 [13:00:55]MH_I2C_Read... [13:00:55]*** Stop cut motor [13:00:55]*** Cut end [13:00:55]Read from MH i2c: 01 07 00 [13:00:55]MH_I2C_Read... [13:00:55]Read from MH i2c: 01 07 00 C5 03 00 00 00 00 00 FF 0F DD [13:00:55]process_action close_receipt done [13:00:55]requested_data is exist [13:00:55]produce_requested_data [13:00:55]requested_item fm.sn is exist - process it [13:00:55]wFMCommunicate request_size=4 [13:00:55]MH_SAM_APDU [13:00:55]CAPDU: 80 11 00 00 [13:00:55]Write to MH i2c: E2 08 00 C6 03 80 11 00 00 00 00 00 00 43 [13:00:55]Write i2c OK [13:00:55]MH_I2C_Read... [13:00:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:00:55]Read from MH i2c: E2 [13:00:55]MH_I2C_Read... [13:00:55]Read from MH i2c: E2 17 00 [13:00:55]MH_I2C_Read... [13:00:55]Read from MH i2c: E2 17 00 C6 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 91 [13:00:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [13:00:55]wFMCommunicate OK [13:00:55]requested_item fd.num is exist - process it [13:00:55]SAM_PROTO_GetFieldsCounters [13:00:55]wFMCommunicate request_size=4 [13:00:55]MH_SAM_APDU [13:00:55]CAPDU: 80 13 00 00 [13:00:55]Write to MH i2c: E2 08 00 C7 03 80 13 00 00 00 00 00 00 46 [13:00:55]Write i2c OK [13:00:55]MH_I2C_Read... [13:00:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:00:55]Read from MH i2c: E2 [13:00:55]MH_I2C_Read... [13:00:55]Read from MH i2c: E2 62 00 [13:00:55]MH_I2C_Read... [13:00:55]Read from MH i2c: E2 62 00 C7 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 FD C5 01 00 0E 04 04 00 DA 01 00 00 12 04 04 00 4D 00 00 00 5E 04 04 00 4D 00 00 00 57 04 04 00 4E 00 00 00 19 04 04 00 00 00 00 00 90 00 E4 [13:00:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 FD C5 01 00 0E 04 04 00 DA 01 00 00 12 04 04 00 4D 00 00 00 5E 04 04 00 4D 00 00 00 57 04 04 00 4E 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:00:55]wFMCommunicate OK [13:00:55]SAM_PROTO_GetFieldsCounters done [13:00:55]requested_item shift.num is exist - process it [13:00:55]requested_item shift.opened is exist - process it [13:00:55]req_shift_opened [13:00:55]FM_GetShiftState [13:00:55]SAM_PROTO_GetShiftState [13:00:55]wFMCommunicate request_size=4 [13:00:55]MH_SAM_APDU [13:00:55]CAPDU: 80 13 01 00 [13:00:55]Write to MH i2c: E2 08 00 C8 03 80 13 01 00 00 00 00 00 48 [13:00:55]Write i2c OK [13:00:55]MH_I2C_Read... [13:00:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:00:55]Read from MH i2c: E2 [13:00:55]MH_I2C_Read... [13:00:55]Read from MH i2c: E2 0E 00 [13:00:55]MH_I2C_Read... [13:00:55]Read from MH i2c: E2 0E 00 C8 03 00 09 00 01 63 60 F3 66 00 00 00 00 90 00 70 [13:00:55]RAPDU: 09 00 01 63 60 F3 66 00 00 00 00 90 00 [13:00:55]wFMCommunicate OK [13:00:55]SAM_PROTO_GetShiftState done [13:00:55]FM_GetShiftState done [13:00:55]req_shift_opened done [13:00:55]requested_item shift.open_date is exist - process it [13:00:55]req_shift_open_date [13:00:55]req_shift_open_date done [13:00:55]produce_requested_data done [13:00:55]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":116221,"shift.num":474,"shift.opened":1,"shift.open_date":1727225955} [13:00:55]process_action_free close_receipt [13:00:55]json_value_free [13:00:55]json_value_free done [13:00:55]process_json_proto returns [13:00:55]Send response to host [13:00:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":116221,"shift.num":474,"shift.opened":1,"shift.open_date":1727225955}}} [13:00:55]free response buf [13:00:55]execute_script done [13:00:55]execute_script returns [13:00:55]free content buf [13:00:55]Sock 5.Close socket [13:00:55]Sock 5.Thread stoped [13:00:59]OFD Sender: No OFD packet to send [13:01:04]OFD Sender: No OFD packet to send [13:01:09]OFD Sender: No OFD packet to send [13:01:09]accept exits with 6 [13:01:09]New connection [13:01:09]New thread 3066813796 created [13:01:09]Thread 3066957156 joined [13:01:09]Waiting for new connection... [13:01:09] Sock 6.Parse request [13:01:09]Sock 6.Check first char [13:01:09]Sock 6.First char is OK [13:01:09]request: POST /json_proto HTTP/1.0 [13:01:09]Method: POST [13:01:09]URL: /json_proto [13:01:09]Method is POST - this is cgi request [13:01:09]url: /json_proto [13:01:09]query_string will be loaded in cgi processing [13:01:09]execute_cgi json_proto POST (null) [13:01:09]execute_cgi path=json_proto method=POST [13:01:09]POST find Content-Length [13:01:09]Host: 172.17.41.136:8080 [13:01:09]Content-Length: 895 [13:01:09]Content-Type: application/json [13:01:09] [13:01:09]POST finish read [13:01:09]Found Content-Length = 895 [13:01:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)344390", "tax_sys" : 0, "items" : [ { "code": "4870202522671", "name": "Garden \u043D\u0430\u043F\u0438\u0442\u043E\u043A \u0441\u043E \u0432\u043A\u0443\u0441\u043E\u043C \u0433\u0440\u0430\u043D\u0430\u0442\u0430 1,20 \u041F\u042D", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 125.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:01:09]execute_script... [13:01:09]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)344390", "tax_sys" : 0, "items" : [ { "code": "4870202522671", "name": "Garden \u043D\u0430\u043F\u0438\u0442\u043E\u043A \u0441\u043E \u0432\u043A\u0443\u0441\u043E\u043C \u0433\u0440\u0430\u043D\u0430\u0442\u0430 1,20 \u041F\u042D", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 125.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:01:09]POST & json_proto [13:01:09]process_json_proto [13:01:09]json parsed OK: [13:01:09]protocol is kg_v1.0 [13:01:09]action value=close_receipt [13:01:09]process_action close_receipt [13:01:09]cmd_close_receipt [13:01:09]MH_GetDate [13:01:09]Write to MH i2c: F0 00 00 C9 03 BB [13:01:09]Write i2c OK [13:01:09]MH_I2C_Read... [13:01:09]Read from MH i2c: F0 [13:01:09]MH_I2C_Read... [13:01:09]Read from MH i2c: F0 09 00 [13:01:09]MH_I2C_Read... [13:01:09]Read from MH i2c: F0 09 00 C9 03 00 95 09 F4 66 1B D0 5A 64 65 [13:01:09]GetLastDocTimeStamp 1727269251 [13:01:09]current date 1727269269 [13:01:09]FM_GetShiftState [13:01:09]SAM_PROTO_GetShiftState [13:01:09]wFMCommunicate request_size=4 [13:01:09]MH_SAM_APDU [13:01:09]CAPDU: 80 13 01 00 [13:01:09]Write to MH i2c: E2 08 00 CA 03 80 13 01 00 00 00 00 00 4A [13:01:09]Write i2c OK [13:01:09]MH_I2C_Read... [13:01:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:01:09]Read from MH i2c: E2 [13:01:09]MH_I2C_Read... [13:01:09]Read from MH i2c: E2 0E 00 [13:01:09]MH_I2C_Read... [13:01:09]Read from MH i2c: E2 0E 00 CA 03 00 09 00 01 63 60 F3 66 00 00 00 00 90 00 72 [13:01:09]RAPDU: 09 00 01 63 60 F3 66 00 00 00 00 90 00 [13:01:09]wFMCommunicate OK [13:01:09]SAM_PROTO_GetShiftState done [13:01:09]FM_GetShiftState done [13:01:09]opened in 1727225955 [13:01:09]opened+sec_in_day 1727312355 [13:01:09]quantity*price = 12500 [13:01:09]sum+1 = 12501 [13:01:09]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 125.00 НСП 1% : 1.11 НДС 12% : 13.27 Наличными: 0.00 Безнал.: 125.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 78 25.09.2024 13:01 Смена: 474 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000871830 ФД: 116222 ФПД: 114897350840607 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240925T130109&type=1&operation_type=1&fn_number=0000000000871830&fd_number=116222&fm=114897350840607&tin=02508201610067®Number=0000000000091831&sum=12500 0 [13:01:10]StoreToDocumentArchive [13:01:10]shift 474 fd 116222 [13:01:10]save to /storage/0474/doc_00116222 [13:01:10]save last doc name /storage/0474/doc_00116222 to /storage/kkm_last_doc_name [13:01:10]save OK [13:01:10]Clear old archive folders... [13:01:10]ProcessDocumentItem done err = 0, tmpTLVsize=306 [13:01:10]tlvbuf is 0139A560 [13:01:10]SAM_PROTO_ClearQueue [13:01:10]wFMCommunicate request_size=4 [13:01:10]MH_SAM_APDU [13:01:10]CAPDU: 80 09 00 00 [13:01:10]Write to MH i2c: E2 08 00 D7 03 80 09 00 00 00 00 00 00 4C [13:01:10]Write i2c OK [13:01:10]MH_I2C_Read... [13:01:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:01:10]Read from MH i2c: E2 [13:01:10]MH_I2C_Read... [13:01:10]Read from MH i2c: E2 03 00 [13:01:10]MH_I2C_Read... [13:01:10]Read from MH i2c: E2 03 00 D7 03 00 90 00 4E [13:01:10]RAPDU: 90 00 [13:01:10]wFMCommunicate OK [13:01:10]SAM_PROTO_ClearQueue done [13:01:10]KKMCreateOFDPacket [13:01:10]OFDProtocolAddRootSTLVToBuf [13:01:10]FM_MakeSignedData [13:01:10]FM_MakeSignedData [13:01:10]SAM_PROTO_SignData [13:01:10]wFMCommunicate request_size=4 [13:01:10]MH_SAM_APDU [13:01:10]CAPDU: 80 0D 01 02 [13:01:10]Write to MH i2c: E2 08 00 D8 03 80 0D 01 02 00 00 00 00 54 [13:01:10]Write i2c OK [13:01:10]MH_I2C_Read... [13:01:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:01:10]Read from MH i2c: E2 [13:01:10]MH_I2C_Read... [13:01:10]Read from MH i2c: E2 03 00 [13:01:10]MH_I2C_Read... [13:01:10]Read from MH i2c: E2 03 00 D8 03 00 90 00 4F [13:01:10]RAPDU: 90 00 [13:01:10]wFMCommunicate OK [13:01:10]wFMCommunicate request_size=255 [13:01:10]MH_SAM_APDU [13:01:10]CAPDU: 80 0D 02 02 FA 03 00 32 01 1E 04 01 00 01 23 04 84 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 32 36 37 31 06 04 40 00 47 61 72 64 65 6E 20 D0 BD D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 81 D0 BE 20 D0 B2 D0 BA D1 83 D1 81 D0 BE D0 BC 20 D0 B3 D1 80 D0 B0 D0 BD D0 B0 D1 82 D0 B0 20 31 2C 32 30 20 D0 9F D0 AD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D4 30 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 00 00 00 F4 03 04 00 95 09 F4 66 0E 04 04 00 DA 01 00 00 B9 04 01 [13:01:10]Write to MH i2c: E2 02 01 D9 03 80 0D 02 02 FA 00 03 00 32 01 1E 04 01 00 01 23 04 84 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 32 36 37 31 06 04 40 00 47 61 72 64 65 6E 20 D0 BD D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 81 D0 BE 20 D0 B2 D0 BA D1 83 D1 81 D0 BE D0 BC 20 D0 B3 D1 80 D0 B0 D0 BD D0 B0 D1 82 D0 B0 20 31 2C 32 30 20 D0 9F D0 AD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D4 30 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 00 00 00 F4 03 04 00 95 09 F4 66 0E 04 04 00 DA 01 00 00 B9 04 01 00 00 47 [13:01:10]Write i2c OK [13:01:10]MH_I2C_Read... [13:01:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:01:11]Read from MH i2c: E2 [13:01:11]MH_I2C_Read... [13:01:11]Read from MH i2c: E2 03 00 [13:01:11]MH_I2C_Read... [13:01:11]Read from MH i2c: E2 03 00 D9 03 00 90 00 50 [13:01:11]RAPDU: 90 00 [13:01:11]wFMCommunicate OK [13:01:11]wFMCommunicate request_size=65 [13:01:11]MH_SAM_APDU [13:01:11]CAPDU: 80 0D 02 02 3C 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 FE C5 01 00 35 04 06 00 68 7F 9F C8 51 1F [13:01:11]Write to MH i2c: E2 44 00 DA 03 80 0D 02 02 3C 00 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 FE C5 01 00 35 04 06 00 68 7F 9F C8 51 1F 00 00 20 [13:01:11]Write i2c OK [13:01:11]MH_I2C_Read... [13:01:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:01:11]Read from MH i2c: E2 [13:01:11]MH_I2C_Read... [13:01:11]Read from MH i2c: E2 03 00 [13:01:11]MH_I2C_Read... [13:01:11]Read from MH i2c: E2 03 00 DA 03 00 90 00 51 [13:01:11]RAPDU: 90 00 [13:01:11]wFMCommunicate OK [13:01:11]wFMCommunicate request_size=4 [13:01:11]MH_SAM_APDU [13:01:11]CAPDU: 80 0D 03 02 [13:01:11]Write to MH i2c: E2 08 00 DB 03 80 0D 03 02 00 00 00 00 59 [13:01:11]Write i2c OK [13:01:11]MH_I2C_Read... [13:01:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:01:11]Read from MH i2c: E2 [13:01:11]MH_I2C_Read... [13:01:11]Read from MH i2c: E2 0B 00 [13:01:11]MH_I2C_Read... [13:01:11]Read from MH i2c: E2 0B 00 DB 03 00 AB 77 40 BF 4E 1F EA F8 90 00 CA [13:01:11]RAPDU: AB 77 40 BF 4E 1F EA F8 90 00 [13:01:11]wFMCommunicate OK [13:01:11]SAM_PROTO_SignData done [13:01:11]FM_MakeSignedData done [13:01:11]CreateOFDProtocolMessage [13:01:11]wFMCommunicate request_size=4 [13:01:11]MH_SAM_APDU [13:01:11]CAPDU: 80 11 00 00 [13:01:11]Write to MH i2c: E2 08 00 DC 03 80 11 00 00 00 00 00 00 59 [13:01:11]Write i2c OK [13:01:11]MH_I2C_Read... [13:01:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:01:11]Read from MH i2c: E2 [13:01:11]MH_I2C_Read... [13:01:11]Read from MH i2c: E2 17 00 [13:01:11]MH_I2C_Read... [13:01:11]Read from MH i2c: E2 17 00 DC 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 A7 [13:01:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [13:01:11]wFMCommunicate OK [13:01:11]CreateOFDProtocolMessage done [13:01:11]OFDSenderStorePacket 116222 [13:01:11]StoreOFDPacket docnum=116222 [13:01:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 46 01 00 00 3D 87 3E 01 E9 D7 5A 03 01 00 03 00 32 01 1E 04 01 00 01 23 04 84 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 32 36 37 31 06 04 40 00 47 61 72 64 65 6E 20 D0 BD D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 81 D0 BE 20 D0 B2 D0 BA D1 83 D1 81 D0 BE D0 BC 20 D0 B3 D1 80 D0 B0 D0 BD D0 B0 D1 82 D0 B0 20 31 2C 32 30 20 D0 9F D0 AD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D4 30 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 00 00 00 F4 03 04 00 95 09 F4 66 0E 04 04 00 DA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 FE C5 01 00 35 04 06 00 68 7F 9F C8 51 1F AB 77 40 BF 4E 1F EA F8 [13:01:11]CheckFolder [13:01:11]dirname=/storage/ofd_packets [13:01:11]CheckFolder done [13:01:11]ProducePacketName [13:01:11]name=ofd_packets/00116222 [13:01:11]NVStorageSaveData ofd_packets/00116222 [13:01:11]File name is /storage/ofd_packets/00116222 [13:01:11]Write 356 bytes [13:01:11]NVStorageSaveData done [13:01:11]OFDSenderStorePacket done [13:01:11]KKMCreateOFDPacket done [13:01:11]NVStorageSaveData kkm_last_timestamp [13:01:11]File name is /storage/kkm_last_timestamp [13:01:11]Write 4 bytes [13:01:11]NVStorageSaveData done [13:01:11]ExternCall_PrintAddStr [13:01:11]wPrintStart [13:01:11]Write to MH i2c: 01 00 00 DD 03 E0 [13:01:11]Write i2c OK [13:01:11]MH_I2C_Read... [13:01:11]Read from MH i2c: 01 [13:01:11]MH_I2C_Read... [13:01:11]Read from MH i2c: 01 07 00 [13:01:11]MH_I2C_Read... [13:01:11]Read from MH i2c: 01 07 00 DD 03 00 00 00 00 00 FF 0F F5 [13:01:11]RasterBufferAndPrint [13:01:11]line Счет N : (3)344390 [13:01:11]line ИНН: 02508201610067 [13:01:11]line Контрольно-Кассовый Чек [13:01:11]line ПРОДАЖА [13:01:11]line Товар: 4870202522671 [13:01:11]line Garden напиток со вкусом граната 1,20 ПЭ [13:01:11]line 1.000 * 125.00 [13:01:11]line = 125.00 [13:01:11]line НДС 12% НСП 1% [13:01:11]line > о реализуемом товаре [13:01:11]line ИТОГО: 125.00 [13:01:11]line НСП 1% : 1.11 [13:01:11]line НДС 12% : 13.27 [13:01:11]line Наличными: 0.00 [13:01:11]line Безнал.: 125.00 [13:01:11]line Место: АЗС № 90 "Партнер Нефть" [13:01:11]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [13:01:11]line СНО: Общий режим [13:01:11]line Чек 78 25.09.2024 13:01 [13:01:11]line Смена: 474 ФФД: 1.0 [13:01:11]line ЗНМ: 0300000120 [13:01:11]line РНМ: 0000000000091831 [13:01:11]line Версия ККМ: 001 [13:01:11]line Платежная система: Бакай Банк [13:01:11]line ФМ: 0000000000871830 [13:01:11]line ФД: 116222 [13:01:11]line ФПД: 114897350840607 [13:01:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240925T130109&type=1&operation_type=1&fn_number=0000000000871830&fd_number=116222&fm=114897350840607&tin=02508201610067®Number=0000000000091831&sum=12500 [13:01:11]line 0 [13:01:11]OFD Sender: Processing packet 116222 [packets to send 482, broken 481] [13:01:11]ProducePacketName [13:01:11]name=ofd_packets/00116222 [13:01:11]OFD Sender: To server: pG, [13:01:11]CommunicateWithHost lk.salyk.kg:30040 [13:01:11]ConnectInit lk.salyk.kg [13:01:11]written 0, free lines is 4095 [13:01:11]Connected sock=7 [13:01:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 46 01 00 00 3D 87 3E 01 E9 D7 5A 03 01 00 03 00 32 01 1E 04 01 00 01 23 04 84 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 32 36 37 31 06 04 40 00 47 61 72 64 65 6E 20 D0 BD D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 81 D0 BE 20 D0 B2 D0 BA D1 83 D1 81 D0 BE D0 BC 20 D0 B3 D1 80 D0 B0 D0 BD D0 B0 D1 82 D0 B0 20 31 2C 32 30 20 D0 9F D0 AD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D4 30 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 00 00 00 F4 03 04 00 95 09 F4 66 0E 04 04 00 DA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 FE C5 01 00 35 04 06 00 68 7F 9F C8 51 1F AB 77 40 BF 4E 1F EA F8 [13:01:12]Write to MH i2c: 01 00 00 07 04 0B [13:01:12]Write i2c OK [13:01:12]MH_I2C_Read... [13:01:12]Read from MH i2c: 01 [13:01:12]MH_I2C_Read... [13:01:12]Read from MH i2c: 01 07 00 [13:01:12]MH_I2C_Read... [13:01:12]Read from MH i2c: 01 07 00 07 04 00 00 00 00 00 43 0C 61 [13:01:12]RasterBufferAndPrint [13:01:12]line [13:01:12]line [13:01:12]line [13:01:12]line [13:01:12]line [13:01:12]written 0, free lines is 3144 [13:01:12]MH_Cut [13:01:12]Write to MH i2c: D1 01 00 0E 04 01 E4 [13:01:12]Write i2c OK [13:01:12]MH_I2C_Read... [13:01:12]Read from MH i2c: D1 [13:01:12]MH_I2C_Read... [13:01:12]Read from MH i2c: D1 01 00 [13:01:12]MH_I2C_Read... [13:01:12]Read from MH i2c: D1 01 00 0E 04 00 E3 [13:01:12]Write to MH i2c: 01 00 00 0F 04 13 [13:01:12]Write i2c OK [13:01:12]MH_I2C_Read... [13:01:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 E5 3D 47 00 C4 12 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 FE C5 01 00 F4 03 04 00 D2 AE F3 66 B6 04 01 00 00 8C BF 1C A7 38 EE 3F 85 [13:01:12]CommunicateWithHost err = 0 [13:01:12]CheckOFDResponse [13:01:12]1017 (14) - 77093643461234 [13:01:12]1041 (16) - 0000000000871830 [13:01:12]1040 (4) - 116222 [13:01:12]1012 (4) - 25.09.2024 06:33 [13:01:12]1206 (1) - 0 [13:01:12]OFD Sender: Remove packet 116222 [13:01:12]ProducePacketName [13:01:12]name=ofd_packets/00116222 [13:01:12]NVStorageDeleteData [13:01:12]OFD Sender: No OFD packet to send [13:01:13]*** Cut start [13:01:13]*** Partial cut [13:01:13]*** CUTSNS_PIN = 1 [13:01:13]*** CUTSNS_PIN = 0 [13:01:13]*** Brake cut motor [13:01:14]Read from MH i2c: 01 [13:01:14]MH_I2C_Read... [13:01:14]*** Stop cut motor [13:01:14]*** Cut end [13:01:14]Read from MH i2c: 01 07 00 [13:01:14]MH_I2C_Read... [13:01:14]Read from MH i2c: 01 07 00 0F 04 00 00 00 00 00 FF 0F 28 [13:01:14]process_action close_receipt done [13:01:14]requested_data is exist [13:01:14]produce_requested_data [13:01:14]requested_item fm.sn is exist - process it [13:01:14]wFMCommunicate request_size=4 [13:01:14]MH_SAM_APDU [13:01:14]CAPDU: 80 11 00 00 [13:01:14]Write to MH i2c: E2 08 00 10 04 80 11 00 00 00 00 00 00 8E [13:01:14]Write i2c OK [13:01:14]MH_I2C_Read... [13:01:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:01:14]Read from MH i2c: E2 [13:01:14]MH_I2C_Read... [13:01:14]Read from MH i2c: E2 17 00 [13:01:14]MH_I2C_Read... [13:01:14]Read from MH i2c: E2 17 00 10 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 DC [13:01:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [13:01:14]wFMCommunicate OK [13:01:14]requested_item fd.num is exist - process it [13:01:14]SAM_PROTO_GetFieldsCounters [13:01:14]wFMCommunicate request_size=4 [13:01:14]MH_SAM_APDU [13:01:14]CAPDU: 80 13 00 00 [13:01:14]Write to MH i2c: E2 08 00 11 04 80 13 00 00 00 00 00 00 91 [13:01:14]Write i2c OK [13:01:14]MH_I2C_Read... [13:01:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:01:14]Read from MH i2c: E2 [13:01:14]MH_I2C_Read... [13:01:14]Read from MH i2c: E2 62 00 [13:01:14]MH_I2C_Read... [13:01:14]Read from MH i2c: E2 62 00 11 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 FE C5 01 00 0E 04 04 00 DA 01 00 00 12 04 04 00 4E 00 00 00 5E 04 04 00 4E 00 00 00 57 04 04 00 4F 00 00 00 19 04 04 00 00 00 00 00 90 00 33 [13:01:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 FE C5 01 00 0E 04 04 00 DA 01 00 00 12 04 04 00 4E 00 00 00 5E 04 04 00 4E 00 00 00 57 04 04 00 4F 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:01:14]wFMCommunicate OK [13:01:14]SAM_PROTO_GetFieldsCounters done [13:01:14]requested_item shift.num is exist - process it [13:01:14]requested_item shift.opened is exist - process it [13:01:14]req_shift_opened [13:01:14]FM_GetShiftState [13:01:14]SAM_PROTO_GetShiftState [13:01:14]wFMCommunicate request_size=4 [13:01:14]MH_SAM_APDU [13:01:14]CAPDU: 80 13 01 00 [13:01:14]Write to MH i2c: E2 08 00 12 04 80 13 01 00 00 00 00 00 93 [13:01:14]Write i2c OK [13:01:14]MH_I2C_Read... [13:01:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:01:14]Read from MH i2c: E2 [13:01:14]MH_I2C_Read... [13:01:14]Read from MH i2c: E2 0E 00 [13:01:14]MH_I2C_Read... [13:01:14]Read from MH i2c: E2 0E 00 12 04 00 09 00 01 63 60 F3 66 00 00 00 00 90 00 BB [13:01:14]RAPDU: 09 00 01 63 60 F3 66 00 00 00 00 90 00 [13:01:14]wFMCommunicate OK [13:01:14]SAM_PROTO_GetShiftState done [13:01:14]FM_GetShiftState done [13:01:14]req_shift_opened done [13:01:14]requested_item shift.open_date is exist - process it [13:01:14]req_shift_open_date [13:01:14]req_shift_open_date done [13:01:14]produce_requested_data done [13:01:14]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":116222,"shift.num":474,"shift.opened":1,"shift.open_date":1727225955} [13:01:14]process_action_free close_receipt [13:01:14]json_value_free [13:01:14]json_value_free done [13:01:14]process_json_proto returns [13:01:14]Send response to host [13:01:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":116222,"shift.num":474,"shift.opened":1,"shift.open_date":1727225955}}} [13:01:14]free response buf [13:01:14]execute_script done [13:01:14]execute_script returns [13:01:14]free content buf [13:01:14]Sock 6.Close socket [13:01:14]Sock 6.Thread stoped [13:01:17]OFD Sender: No OFD packet to send [13:01:22]OFD Sender: No OFD packet to send [13:01:27]OFD Sender: No OFD packet to send [13:01:32]OFD Sender: No OFD packet to send [13:01:37]OFD Sender: No OFD packet to send [13:01:42]OFD Sender: No OFD packet to send [13:01:47]OFD Sender: No OFD packet to send [13:01:52]OFD Sender: No OFD packet to send [13:01:57]OFD Sender: No OFD packet to send [13:02:02]OFD Sender: No OFD packet to send [13:02:07]OFD Sender: No OFD packet to send [13:02:12]OFD Sender: No OFD packet to send [13:02:17]OFD Sender: No OFD packet to send [13:02:22]OFD Sender: No OFD packet to send [13:02:27]OFD Sender: No OFD packet to send [13:02:32]OFD Sender: No OFD packet to send [13:02:37]OFD Sender: No OFD packet to send [13:02:42]OFD Sender: No OFD packet to send [13:02:43]accept exits with 5 [13:02:43]New connection [13:02:43]New thread 3066957156 created [13:02:43]Thread 3066813796 joined [13:02:43]Waiting for new connection... [13:02:43] Sock 5.Parse request [13:02:43]Sock 5.Check first char [13:02:43]Sock 5.First char is OK [13:02:43]request: POST /json_proto HTTP/1.0 [13:02:43]Method: POST [13:02:43]URL: /json_proto [13:02:43]Method is POST - this is cgi request [13:02:43]url: /json_proto [13:02:43]query_string will be loaded in cgi processing [13:02:43]execute_cgi json_proto POST (null) [13:02:43]execute_cgi path=json_proto method=POST [13:02:43]POST find Content-Length [13:02:43]Host: 172.17.41.136:8080 [13:02:43]Content-Length: 649 [13:02:43]Content-Type: application/json [13:02:43] [13:02:43]POST finish read [13:02:43]Found Content-Length = 649 [13:02:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)344391", "tax_sys" : 0, "items" : [ { "code": "8901086040008", "name": "\u0416\u0438\u0434/\u0441\u0442 \u041F\u041D \u043B\u0435\u0442\u043D\u044F\u044F 4,5\u043B", "price" : 170.00, "quantity" : 1.000, "sum" : 170.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 170.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:02:43]execute_script... [13:02:43]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)344391", "tax_sys" : 0, "items" : [ { "code": "8901086040008", "name": "\u0416\u0438\u0434/\u0441\u0442 \u041F\u041D \u043B\u0435\u0442\u043D\u044F\u044F 4,5\u043B", "price" : 170.00, "quantity" : 1.000, "sum" : 170.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 170.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:02:43]POST & json_proto [13:02:43]process_json_proto [13:02:43]json parsed OK: [13:02:43]protocol is kg_v1.0 [13:02:43]action value=close_receipt [13:02:43]process_action close_receipt [13:02:43]cmd_close_receipt [13:02:43]MH_GetDate [13:02:43]Write to MH i2c: F0 00 00 13 04 06 [13:02:43]Write i2c OK [13:02:43]MH_I2C_Read... [13:02:43]Read from MH i2c: F0 [13:02:43]MH_I2C_Read... [13:02:43]Read from MH i2c: F0 09 00 [13:02:43]MH_I2C_Read... [13:02:43]Read from MH i2c: F0 09 00 13 04 00 F3 09 F4 66 1B D0 5A 64 0E [13:02:43]GetLastDocTimeStamp 1727269269 [13:02:43]current date 1727269363 [13:02:43]FM_GetShiftState [13:02:43]SAM_PROTO_GetShiftState [13:02:43]wFMCommunicate request_size=4 [13:02:43]MH_SAM_APDU [13:02:43]CAPDU: 80 13 01 00 [13:02:43]Write to MH i2c: E2 08 00 14 04 80 13 01 00 00 00 00 00 95 [13:02:43]Write i2c OK [13:02:43]MH_I2C_Read... [13:02:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:02:43]Read from MH i2c: E2 [13:02:43]MH_I2C_Read... [13:02:43]Read from MH i2c: E2 0E 00 [13:02:43]MH_I2C_Read... [13:02:43]Read from MH i2c: E2 0E 00 14 04 00 09 00 01 63 60 F3 66 00 00 00 00 90 00 BD [13:02:43]RAPDU: 09 00 01 63 60 F3 66 00 00 00 00 90 00 [13:02:43]wFMCommunicate OK [13:02:43]SAM_PROTO_GetShiftState done [13:02:43]FM_GetShiftState done [13:02:43]opened in 1727225955 [13:02:43]opened+sec_in_day 1727312355 [13:02:43]quantity*price = 17000 [13:02:43]sum+1 = 17001 [13:02:43]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 170.00 НСП 1% : 1.50 НДС 12% : 18.05 Наличными: 170.00 Безнал.: 0.00 Место: АЗС № 90 "Партнер Нефть" Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 СНО: Общий режим Чек 79 25.09.2024 13:02 Смена: 474 ФФД: 1.0 ЗНМ: 0300000120 РНМ: 0000000000091831 Версия ККМ: 001 ФМ: 0000000000871830 ФД: 116223 ФПД: 6429239529209 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240925T130243&type=1&operation_type=1&fn_number=0000000000871830&fd_number=116223&fm=6429239529209&tin=02508201610067®Number=0000000000091831&sum=17000 0 [13:02:44]StoreToDocumentArchive [13:02:44]shift 474 fd 116223 [13:02:44]save to /storage/0474/doc_00116223 [13:02:44]save last doc name /storage/0474/doc_00116223 to /storage/kkm_last_doc_name [13:02:44]save OK [13:02:44]Clear old archive folders... [13:02:44]ProcessDocumentItem done err = 0, tmpTLVsize=277 [13:02:44]tlvbuf is 012C0A30 [13:02:44]SAM_PROTO_ClearQueue [13:02:44]wFMCommunicate request_size=4 [13:02:44]MH_SAM_APDU [13:02:44]CAPDU: 80 09 00 00 [13:02:44]Write to MH i2c: E2 08 00 21 04 80 09 00 00 00 00 00 00 97 [13:02:44]Write i2c OK [13:02:44]MH_I2C_Read... [13:02:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:02:44]Read from MH i2c: E2 [13:02:44]MH_I2C_Read... [13:02:44]Read from MH i2c: E2 03 00 [13:02:44]MH_I2C_Read... [13:02:44]Read from MH i2c: E2 03 00 21 04 00 90 00 99 [13:02:44]RAPDU: 90 00 [13:02:44]wFMCommunicate OK [13:02:44]SAM_PROTO_ClearQueue done [13:02:44]KKMCreateOFDPacket [13:02:44]OFDProtocolAddRootSTLVToBuf [13:02:44]FM_MakeSignedData [13:02:44]FM_MakeSignedData [13:02:44]SAM_PROTO_SignData [13:02:44]wFMCommunicate request_size=4 [13:02:44]MH_SAM_APDU [13:02:44]CAPDU: 80 0D 01 02 [13:02:44]Write to MH i2c: E2 08 00 22 04 80 0D 01 02 00 00 00 00 9F [13:02:44]Write i2c OK [13:02:44]MH_I2C_Read... [13:02:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:02:44]Read from MH i2c: E2 [13:02:44]MH_I2C_Read... [13:02:44]Read from MH i2c: E2 03 00 [13:02:44]MH_I2C_Read... [13:02:44]Read from MH i2c: E2 03 00 22 04 00 90 00 9A [13:02:44]RAPDU: 90 00 [13:02:44]wFMCommunicate OK [13:02:44]wFMCommunicate request_size=255 [13:02:44]MH_SAM_APDU [13:02:44]CAPDU: 80 0D 02 02 FA 03 00 15 01 1E 04 01 00 01 23 04 67 00 8A 04 0D 00 38 39 30 31 30 38 36 30 34 30 30 30 38 06 04 23 00 D0 96 D0 B8 D0 B4 2F D1 81 D1 82 20 D0 9F D0 9D 20 D0 BB D0 B5 D1 82 D0 BD D1 8F D1 8F 20 34 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 68 42 00 00 00 00 13 04 06 00 68 42 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 42 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 96 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 07 00 00 00 00 07 04 06 00 68 42 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 F3 09 F4 66 0E 04 04 00 DA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 [13:02:44]Write to MH i2c: E2 02 01 23 04 80 0D 02 02 FA 00 03 00 15 01 1E 04 01 00 01 23 04 67 00 8A 04 0D 00 38 39 30 31 30 38 36 30 34 30 30 30 38 06 04 23 00 D0 96 D0 B8 D0 B4 2F D1 81 D1 82 20 D0 9F D0 9D 20 D0 BB D0 B5 D1 82 D0 BD D1 8F D1 8F 20 34 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 68 42 00 00 00 00 13 04 06 00 68 42 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 42 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 96 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 07 00 00 00 00 07 04 06 00 68 42 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 F3 09 F4 66 0E 04 04 00 DA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 00 00 4B [13:02:44]Write i2c OK [13:02:44]MH_I2C_Read... [13:02:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:02:44]Read from MH i2c: E2 [13:02:44]MH_I2C_Read... [13:02:44]Read from MH i2c: E2 03 00 [13:02:44]MH_I2C_Read... [13:02:44]Read from MH i2c: E2 03 00 23 04 00 90 00 9B [13:02:44]RAPDU: 90 00 [13:02:44]wFMCommunicate OK [13:02:44]wFMCommunicate request_size=36 [13:02:44]MH_SAM_APDU [13:02:44]CAPDU: 80 0D 02 02 1F 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 FF C5 01 00 35 04 06 00 05 D8 EC 89 CE F9 [13:02:44]Write to MH i2c: E2 27 00 24 04 80 0D 02 02 1F 00 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 FF C5 01 00 35 04 06 00 05 D8 EC 89 CE F9 00 00 A0 [13:02:44]Write i2c OK [13:02:44]MH_I2C_Read... [13:02:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:02:44]Read from MH i2c: E2 [13:02:44]MH_I2C_Read... [13:02:44]Read from MH i2c: E2 03 00 [13:02:44]MH_I2C_Read... [13:02:44]Read from MH i2c: E2 03 00 24 04 00 90 00 9C [13:02:44]RAPDU: 90 00 [13:02:44]wFMCommunicate OK [13:02:44]wFMCommunicate request_size=4 [13:02:44]MH_SAM_APDU [13:02:44]CAPDU: 80 0D 03 02 [13:02:44]Write to MH i2c: E2 08 00 25 04 80 0D 03 02 00 00 00 00 A4 [13:02:44]Write i2c OK [13:02:44]MH_I2C_Read... [13:02:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:02:44]Read from MH i2c: E2 [13:02:44]MH_I2C_Read... [13:02:44]Read from MH i2c: E2 0B 00 [13:02:44]MH_I2C_Read... [13:02:44]Read from MH i2c: E2 0B 00 25 04 00 9A 6C 0C 38 23 18 2A 8C 90 00 E0 [13:02:44]RAPDU: 9A 6C 0C 38 23 18 2A 8C 90 00 [13:02:44]wFMCommunicate OK [13:02:44]SAM_PROTO_SignData done [13:02:44]FM_MakeSignedData done [13:02:44]CreateOFDProtocolMessage [13:02:44]wFMCommunicate request_size=4 [13:02:44]MH_SAM_APDU [13:02:44]CAPDU: 80 11 00 00 [13:02:44]Write to MH i2c: E2 08 00 26 04 80 11 00 00 00 00 00 00 A4 [13:02:44]Write i2c OK [13:02:44]MH_I2C_Read... [13:02:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:02:44]Read from MH i2c: E2 [13:02:44]MH_I2C_Read... [13:02:44]Read from MH i2c: E2 17 00 [13:02:44]MH_I2C_Read... [13:02:44]Read from MH i2c: E2 17 00 26 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 F2 [13:02:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [13:02:44]wFMCommunicate OK [13:02:44]CreateOFDProtocolMessage done [13:02:44]OFDSenderStorePacket 116223 [13:02:44]StoreOFDPacket docnum=116223 [13:02:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 29 01 00 00 7F 30 21 01 C9 0D 5A 03 01 00 03 00 15 01 1E 04 01 00 01 23 04 67 00 8A 04 0D 00 38 39 30 31 30 38 36 30 34 30 30 30 38 06 04 23 00 D0 96 D0 B8 D0 B4 2F D1 81 D1 82 20 D0 9F D0 9D 20 D0 BB D0 B5 D1 82 D0 BD D1 8F D1 8F 20 34 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 68 42 00 00 00 00 13 04 06 00 68 42 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 42 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 96 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 07 00 00 00 00 07 04 06 00 68 42 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 F3 09 F4 66 0E 04 04 00 DA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 FF C5 01 00 35 04 06 00 05 D8 EC 89 CE F9 9A 6C 0C 38 23 18 2A 8C [13:02:44]CheckFolder [13:02:44]dirname=/storage/ofd_packets [13:02:44]CheckFolder done [13:02:44]ProducePacketName [13:02:44]name=ofd_packets/00116223 [13:02:44]NVStorageSaveData ofd_packets/00116223 [13:02:44]File name is /storage/ofd_packets/00116223 [13:02:44]Write 327 bytes [13:02:44]NVStorageSaveData done [13:02:44]OFDSenderStorePacket done [13:02:44]KKMCreateOFDPacket done [13:02:44]NVStorageSaveData kkm_last_timestamp [13:02:44]File name is /storage/kkm_last_timestamp [13:02:44]Write 4 bytes [13:02:44]NVStorageSaveData done [13:02:44]ExternCall_PrintAddStr [13:02:44]wPrintStart [13:02:44]Write to MH i2c: 01 00 00 27 04 2B [13:02:44]Write i2c OK [13:02:44]MH_I2C_Read... [13:02:44]Read from MH i2c: 01 [13:02:44]MH_I2C_Read... [13:02:44]Read from MH i2c: 01 07 00 [13:02:44]MH_I2C_Read... [13:02:44]Read from MH i2c: 01 07 00 27 04 00 00 00 00 00 FF 0F 40 [13:02:44]RasterBufferAndPrint [13:02:44]line Счет N : (3)344391 [13:02:44]line ИНН: 02508201610067 [13:02:44]line Контрольно-Кассовый Чек [13:02:44]line ПРОДАЖА [13:02:44]line Товар: 8901086040008 [13:02:44]line Жид/ст ПН летняя 4,5л [13:02:44]line 1.000 * 170.00 [13:02:44]line = 170.00 [13:02:44]line НДС 12% НСП 1% [13:02:44]line > о реализуемом товаре [13:02:44]line ИТОГО: 170.00 [13:02:44]line НСП 1% : 1.50 [13:02:44]line НДС 12% : 18.05 [13:02:44]line Наличными: 170.00 [13:02:44]line Безнал.: 0.00 [13:02:44]line Место: АЗС № 90 "Партнер Нефть" [13:02:44]line Адрес: 720001, с. Жаны-Арык, 40.658523, 73.125336 [13:02:44]line СНО: Общий режим [13:02:44]line Чек 79 25.09.2024 13:02 [13:02:44]line Смена: 474 ФФД: 1.0 [13:02:44]line ЗНМ: 0300000120 [13:02:44]line РНМ: 0000000000091831 [13:02:44]line Версия ККМ: 001 [13:02:44]line ФМ: 0000000000871830 [13:02:44]line ФД: 116223 [13:02:44]line ФПД: 6429239529209 [13:02:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240925T130243&type=1&operation_type=1&fn_number=0000000000871830&fd_number=116223&fm=6429239529209&tin=02508201610067®Number=0000000000091831&sum=17000 [13:02:45]line 0 [13:02:45]OFD Sender: Processing packet 116223 [packets to send 482, broken 481] [13:02:45]ProducePacketName [13:02:45]name=ofd_packets/00116223 [13:02:45]OFD Sender: To server: pG, [13:02:45]CommunicateWithHost lk.salyk.kg:30040 [13:02:45]ConnectInit lk.salyk.kg [13:02:45]written 0, free lines is 4095 [13:02:45]Write to MH i2c: 01 00 00 4E 04 52 [13:02:45]Write i2c OK [13:02:45]MH_I2C_Read... [13:02:45]Read from MH i2c: 01 [13:02:45]MH_I2C_Read... [13:02:45]Read from MH i2c: 01 07 00 [13:02:45]MH_I2C_Read... [13:02:45]Read from MH i2c: 01 07 00 4E 04 00 00 00 00 00 80 0C E5 [13:02:45]RasterBufferAndPrint [13:02:45]line [13:02:45]line [13:02:45]line [13:02:45]line [13:02:45]line [13:02:45]written 0, free lines is 3205 [13:02:45]MH_Cut [13:02:45]Write to MH i2c: D1 01 00 55 04 01 2B [13:02:45]Write i2c OK [13:02:45]MH_I2C_Read... [13:02:45]Read from MH i2c: D1 [13:02:45]MH_I2C_Read... [13:02:45]Read from MH i2c: D1 01 00 [13:02:45]MH_I2C_Read... [13:02:45]Read from MH i2c: D1 01 00 55 04 00 2A [13:02:45]Write to MH i2c: 01 00 00 56 04 5A [13:02:45]Connected sock=7 [13:02:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 29 01 00 00 7F 30 21 01 C9 0D 5A 03 01 00 03 00 15 01 1E 04 01 00 01 23 04 67 00 8A 04 0D 00 38 39 30 31 30 38 36 30 34 30 30 30 38 06 04 23 00 D0 96 D0 B8 D0 B4 2F D1 81 D1 82 20 D0 9F D0 9D 20 D0 BB D0 B5 D1 82 D0 BD D1 8F D1 8F 20 34 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 68 42 00 00 00 00 13 04 06 00 68 42 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 42 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 96 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 07 00 00 00 00 07 04 06 00 68 42 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 F3 09 F4 66 0E 04 04 00 DA 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 FF C5 01 00 35 04 06 00 05 D8 EC 89 CE F9 9A 6C 0C 38 23 18 2A 8C [13:02:45]Write i2c OK [13:02:45]MH_I2C_Read... [13:02:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 94 3B 47 00 05 3F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 FF C5 01 00 F4 03 04 00 30 AF F3 66 B6 04 01 00 00 99 8C F7 EF D5 D5 FA 50 [13:02:46]CommunicateWithHost err = 0 [13:02:46]CheckOFDResponse [13:02:46]1017 (14) - 77093643461234 [13:02:46]1041 (16) - 0000000000871830 [13:02:46]1040 (4) - 116223 [13:02:46]1012 (4) - 25.09.2024 06:35 [13:02:46]1206 (1) - 0 [13:02:46]OFD Sender: Remove packet 116223 [13:02:46]ProducePacketName [13:02:46]name=ofd_packets/00116223 [13:02:46]NVStorageDeleteData [13:02:46]OFD Sender: No OFD packet to send [13:02:46]*** Cut start [13:02:46]*** Partial cut [13:02:46]*** CUTSNS_PIN = 1 [13:02:47]*** CUTSNS_PIN = 0 [13:02:47]*** Brake cut motor [13:02:47]Read from MH i2c: 01 [13:02:47]MH_I2C_Read... [13:02:47]*** Stop cut motor [13:02:47]*** Cut end [13:02:47]Read from MH i2c: 01 07 00 [13:02:47]MH_I2C_Read... [13:02:47]Read from MH i2c: 01 07 00 56 04 00 00 00 00 00 FF 0F 6F [13:02:47]process_action close_receipt done [13:02:47]requested_data is exist [13:02:47]produce_requested_data [13:02:47]requested_item fm.sn is exist - process it [13:02:47]wFMCommunicate request_size=4 [13:02:47]MH_SAM_APDU [13:02:47]CAPDU: 80 11 00 00 [13:02:47]Write to MH i2c: E2 08 00 57 04 80 11 00 00 00 00 00 00 D5 [13:02:47]Write i2c OK [13:02:47]MH_I2C_Read... [13:02:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:02:47]Read from MH i2c: E2 [13:02:47]MH_I2C_Read... [13:02:47]Read from MH i2c: E2 17 00 [13:02:47]MH_I2C_Read... [13:02:47]Read from MH i2c: E2 17 00 57 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 23 [13:02:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [13:02:47]wFMCommunicate OK [13:02:47]requested_item fd.num is exist - process it [13:02:47]SAM_PROTO_GetFieldsCounters [13:02:47]wFMCommunicate request_size=4 [13:02:47]MH_SAM_APDU [13:02:47]CAPDU: 80 13 00 00 [13:02:47]Write to MH i2c: E2 08 00 58 04 80 13 00 00 00 00 00 00 D8 [13:02:47]Write i2c OK [13:02:47]MH_I2C_Read... [13:02:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:02:47]Read from MH i2c: E2 [13:02:47]MH_I2C_Read... [13:02:47]Read from MH i2c: E2 62 00 [13:02:47]MH_I2C_Read... [13:02:47]Read from MH i2c: E2 62 00 58 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 FF C5 01 00 0E 04 04 00 DA 01 00 00 12 04 04 00 4F 00 00 00 5E 04 04 00 4F 00 00 00 57 04 04 00 50 00 00 00 19 04 04 00 00 00 00 00 90 00 7E [13:02:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 FF C5 01 00 0E 04 04 00 DA 01 00 00 12 04 04 00 4F 00 00 00 5E 04 04 00 4F 00 00 00 57 04 04 00 50 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:02:47]wFMCommunicate OK [13:02:47]SAM_PROTO_GetFieldsCounters done [13:02:47]requested_item shift.num is exist - process it [13:02:47]requested_item shift.opened is exist - process it [13:02:47]req_shift_opened [13:02:47]FM_GetShiftState [13:02:47]SAM_PROTO_GetShiftState [13:02:47]wFMCommunicate request_size=4 [13:02:47]MH_SAM_APDU [13:02:47]CAPDU: 80 13 01 00 [13:02:47]Write to MH i2c: E2 08 00 59 04 80 13 01 00 00 00 00 00 DA [13:02:47]Write i2c OK [13:02:47]MH_I2C_Read... [13:02:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:02:47]Read from MH i2c: E2 [13:02:47]MH_I2C_Read... [13:02:47]Read from MH i2c: E2 0E 00 [13:02:47]MH_I2C_Read... [13:02:47]Read from MH i2c: E2 0E 00 59 04 00 09 00 01 63 60 F3 66 00 00 00 00 90 00 02 [13:02:47]RAPDU: 09 00 01 63 60 F3 66 00 00 00 00 90 00 [13:02:47]wFMCommunicate OK [13:02:47]SAM_PROTO_GetShiftState done [13:02:47]FM_GetShiftState done [13:02:47]req_shift_opened done [13:02:47]requested_item shift.open_date is exist - process it [13:02:47]req_shift_open_date [13:02:47]req_shift_open_date done [13:02:47]produce_requested_data done [13:02:47]produce_requested_data return {"fm.sn":"0000000000871830","fd.num":116223,"shift.num":474,"shift.opened":1,"shift.open_date":1727225955} [13:02:47]process_action_free close_receipt [13:02:47]json_value_free [13:02:47]json_value_free done [13:02:47]process_json_proto returns [13:02:47]Send response to host [13:02:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871830","fd.num":116223,"shift.num":474,"shift.opened":1,"shift.open_date":1727225955}}} [13:02:47]free response buf [13:02:47]execute_script done [13:02:47]execute_script returns [13:02:47]free content buf [13:02:47]Sock 5.Close socket [13:02:47]Sock 5.Thread stoped [13:02:51]OFD Sender: No OFD packet to send [13:02:56]OFD Sender: No OFD packet to send [13:03:01]OFD Sender: No OFD packet to send [13:03:06]OFD Sender: No OFD packet to send [13:03:11]OFD Sender: No OFD packet to send [13:03:16]OFD Sender: No OFD packet to send [13:03:21]OFD Sender: No OFD packet to send [13:03:26]OFD Sender: No OFD packet to send [13:03:31]OFD Sender: No OFD packet to send [13:03:36]OFD Sender: No OFD packet to send [13:03:41]OFD Sender: No OFD packet to send [13:03:46]OFD Sender: No OFD packet to send [13:03:51]OFD Sender: No OFD packet to send [13:03:56]OFD Sender: No OFD packet to send [13:04:01]OFD Sender: No OFD packet to send [13:04:06]OFD Sender: No OFD packet to send [13:04:11]OFD Sender: No OFD packet to send [13:04:16]OFD Sender: No OFD packet to send [13:04:21]OFD Sender: No OFD packet to send [13:04:26]OFD Sender: No OFD packet to send [13:04:31]OFD Sender: No OFD packet to send [13:04:36]OFD Sender: No OFD packet to send [13:04:41]OFD Sender: No OFD packet to send [13:04:46]OFD Sender: No OFD packet to send [13:04:51]OFD Sender: No OFD packet to send [13:04:56]OFD Sender: No OFD packet to send [13:05:01]OFD Sender: No OFD packet to send [13:05:06]OFD Sender: No OFD packet to send [13:05:11]OFD Sender: No OFD packet to send [13:05:16]OFD Sender: No OFD packet to send [13:05:21]OFD Sender: No OFD packet to send [13:05:26]OFD Sender: No OFD packet to send [13:05:31]OFD Sender: No OFD packet to send [13:05:36]OFD Sender: No OFD packet to send [13:05:41]OFD Sender: No OFD packet to send [13:05:47]OFD Sender: No OFD packet to send [13:05:52]OFD Sender: No OFD packet to send [13:05:57]OFD Sender: No OFD packet to send [13:06:02]OFD Sender: No OFD packet to send [13:06:07]OFD Sender: No OFD packet to send [13:06:12]OFD Sender: No OFD packet to send [13:06:17]OFD Sender: No OFD packet to send [13:06:22]OFD Sender: No OFD packet to send [13:06:27]OFD Sender: No OFD packet to send [13:06:32]OFD Sender: No OFD packet to send [13:06:37]OFD Sender: No OFD packet to send [13:06:42]OFD Sender: No OFD packet to send [13:06:47]OFD Sender: No OFD packet to send [13:06:52]OFD Sender: No OFD packet to send [13:06:57]OFD Sender: No OFD packet to send [13:07:02]OFD Sender: No OFD packet to send [13:07:07]OFD Sender: No OFD packet to send [13:07:12]OFD Sender: No OFD packet to send [13:07:17]OFD Sender: No OFD packet to send [13:07:22]OFD Sender: No OFD packet to send [13:07:27]OFD Sender: No OFD packet to send [13:07:32]OFD Sender: No OFD packet to send [13:07:37]OFD Sender: No OFD packet to send [13:07:42]OFD Sender: No OFD packet to send [13:07:47]OFD Sender: No OFD packet to send [13:07:52]OFD Sender: No OFD packet to send [13:07:57]OFD Sender: No OFD packet to send [13:08:02]OFD Sender: No OFD packet to send [13:08:07]OFD Sender: No OFD packet to send [13:08:12]OFD Sender: No OFD packet to send [13:08:17]OFD Sender: No OFD packet to send [13:08:22]OFD Sender: No OFD packet to send [00:00:10] *** EcrCore started. Build 196 *** [00:00:10]MH_InterfaceInit /dev/i2c-1 [00:00:10]/dev/ttyS4 opened [00:00:10]Malloc ok [00:00:10]MH_GetMetrics [00:00:10]Write to MH i2c: 00 00 00 01 00 00 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 29 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 29 00 01 00 00 03 9C 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 B9 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 01 03 00 5E [00:00:10]Are we in boot? [00:00:10]We are in boot - try to switch [00:00:10]Write to MH i2c: A0 00 00 02 00 A1 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: A0 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: A0 01 00 *** Check firmware version 30620, crc_r 49A1A6DB, crc_c: 49A1A6DB, size: 53248 [00:00:10] [00:00:10]*** [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: A0 01 00 02 00 00 A2 [00:00:10]*** Starting fw at address 01020100 (2007E328 010249C5) [00:00:10]*** Waiting for read because exit forced [00:00:10]*** 10 ms more... [00:00:10]*** MH1903S init start (LINUX_LIGHT) [00:00:10]*** Compilation Date Jun 20 2023 Time 12:36:20 [00:00:10]*** Serial: 3139303353513838 54000000005725B9 (1903SQ88T) [00:00:10]*** User serial: FFFFFFFFFFFFFFFF FFFFFFFFFFFFFFFF () [00:00:10]*** step 0: 5000 (2650, 2350 REF) [00:00:10]*** step 1: 4835 (2500, 2335 REF) [00:00:10]*** step 2: 4676 (2440, 2236 REF) [00:00:10]*** step 3: 4523 (2280, 2243 REF) [00:00:10]*** step 4: 4376 (2160, 2216 REF) [00:00:10]*** step 5: 4235 (2050, 2185 REF) [00:00:10]*** step 6: 4098 (1950, 2148 REF) [00:00:10]*** step 7: 3967 (1870, 2097 REF) [00:00:10]*** step 8: 3840 (1828, 2012 REF) [00:00:10]*** step 9: 3719 (1728, 1991 REF) [00:00:10]*** step 10: 3601 (1675, 1926 REF) [00:00:10]*** step 11: 3488 (1635, 1853 REF) [00:00:10]*** step 12: 3379 (1595, 1784 REF) [00:00:10]*** step 13: 3275 (1565, 1710 REF) [00:00:10]*** step 14: 3174 (1543, 1631 REF) [00:00:10]*** step 15: 3077 (1523, 1554 REF) [00:00:10]*** step 16: 2983 (1503, 1480 REF) [00:00:10]*** step 17: 2893 (1486, 1407 REF) [00:00:10]*** step 18: 2806 (1466, 1340 REF) [00:00:10]*** step 19: 2723 (1426, 1297 REF) [00:00:10]*** step 20: 2642 (1406, 1236 REF) [00:00:10]*** step 21: 2565 (1384, 1181 REF) [00:00:10]*** step 22: 2490 (1364, 1126 REF) [00:00:10]*** step 23: 2418 (1344, 1074 REF) [00:00:10]*** step 24: 2349 (1322, 1027 REF) [00:00:10]*** step 25: 2283 (1302, 981 REF) [00:00:10]*** step 26: 2218 (1282, 936 REF) [00:00:10]*** step 27: 2157 (1262, 895 REF) [00:00:10]*** step 28: 2097 (1242, 855 REF) [00:00:10]*** step 29: 2040 (1222, 818 REF) [00:00:10]*** step 30: 1985 (1202, 783 REF) [00:00:10]*** step 31: 1932 (1191, 741 REF) [00:00:10]*** step 32: 1880 (1181, 699 REF) [00:00:10]*** step 33: 1831 (1171, 660 REF) [00:00:10]*** step 34: 1784 (1161, 623 REF) [00:00:10]*** step 35: 1738 (1151, 587 REF) [00:00:10]*** step 36: 1694 (1141, 553 REF) [00:00:10]*** step 37: 1652 (1131, 521 REF) [00:00:10]*** step 38: 1611 (1121, 490 REF) [00:00:10]*** step 39: 1572 (1111, 461 REF) [00:00:10]*** step 40: 1534 (1103, 431 REF) [00:00:10]*** step 41: 1497 (1093, 404 REF) [00:00:10]*** step 42: 1462 (1083, 379 REF) [00:00:10]*** step 43: 1428 (1073, 355 REF) [00:00:10]*** step 44: 1396 (1063, 333 REF) [00:00:10]*** step 45: 1365 (1053, 312 REF) [00:00:10]*** step 46: 1334 (1043, 291 REF) [00:00:10]*** step 47: 1305 (1033, 272 REF) [00:00:10]*** step 48: 1277 (1023, 254 REF) [00:00:10]*** step 49: 1250 (1013, 237 REF) [00:00:10]*** step 50: 1224 (990, 234 REF) [00:00:10]*** step 51: 1199 (980, 219 REF) [00:00:10]*** step 52: 1175 (970, 205 REF) [00:00:10]*** step 53: 1152 (960, 192 REF) [00:00:10]*** step 54: 1130 (950, 180 REF) [00:00:10]*** step 55: 1108 (940, 168 REF) [00:00:10]*** step 56: 1088 (930, 158 REF) [00:00:10]*** step 57: 1068 (920, 148 REF) [00:00:10]*** step 58: 1049 (910, 139 REF) [00:00:10]*** step 59: 1030 (900, 130 REF) [00:00:10]*** step 60: 1012 (890, 122 REF) [00:00:10]*** step 61: 995 (880, 115 REF) [00:00:10]*** step 62: 979 (870, 109 REF) [00:00:10]*** step 63: 963 (860, 103 REF) [00:00:10]*** step 64: 948 (850, 98 REF) [00:00:10]*** step 65: 933 (840, 93 REF) [00:00:10]*** step 66: 919 (830, 89 REF) [00:00:10]*** step 67: 905 (820, 85 REF) [00:00:10]*** step 68: 892 (810, 82 REF) [00:00:10]*** step 69: 879 (800, 79 REF) [00:00:10]*** step 70: 867 (790, 77 REF) [00:00:10]*** step 71: 855 (780, 75 REF) [00:00:10]*** step 72: 844 (770, 74 REF) [00:00:10]*** step 73: 833 (760, 73 REF) [00:00:10]*** step 74: 822 (750, 72 REF) [00:00:10]*** step 75: 812 (740, 72 REF) [00:00:10]*** step 76: 803 (730, 73 REF) [00:00:10]*** step 77: 793 (720, 73 REF) [00:00:10]*** step 78: 784 (710, 74 REF) [00:00:10]*** step 79: 776 (700, 76 REF) [00:00:10]*** step 80: 767 (690, 77 REF) [00:00:10]*** step 81: 759 (680, 79 REF) [00:00:10]*** step 82: 751 (670, 81 REF) [00:00:10]*** step 83: 744 (660, 84 REF) [00:00:10]*** step 84: 737 (650, 87 REF) [00:00:10]*** step 85: 730 (640, 90 REF) [00:00:10]*** step 86: 723 (630, 93 REF) [00:00:10]*** step 87: 717 (620, 97 REF) [00:00:10]*** step 88: 710 (610, 100 REF) [00:00:10]*** step 89: 705 (600, 105 REF) [00:00:10]*** step 90: 699 [00:00:10]*** step 91: 693 [00:00:10]*** step 92: 688 [00:00:10]*** step 93: 683 [00:00:10]*** step 94: 678 [00:00:10]*** step 95: 673 [00:00:10]*** step 96: 669 [00:00:10]*** step 97: 664 [00:00:10]*** step 98: 660 [00:00:10]*** step 99: 656 [00:00:10]*** step 100: 652 [00:00:10]*** step 101: 648 [00:00:10]*** step 102: 644 [00:00:10]*** step 103: 641 [00:00:10]*** step 104: 638 [00:00:10]*** step 105: 634 [00:00:10]*** step 106: 631 [00:00:10]*** step 107: 628 [00:00:10]*** step 108: 625 [00:00:10]*** step 109: 622 [00:00:10]*** step 110: 620 [00:00:10]*** step 111: 617 [00:00:10]*** step 112: 615 [00:00:10]*** step 113: 612 [00:00:10]*** step 114: 610 [00:00:10]*** step 115: 608 [00:00:10]*** step 116: 605 [00:00:10]*** step 117: 603 [00:00:10]*** step 118: 601 [00:00:10]*** step 119: 599 [00:00:10]*** printer: Printer HW initialized [00:00:10]*** initSamCard finished [00:00:10]*** RTC: 43596611+1683673115=1727269726 [00:00:10]*** BPK Status Register BPK_RDY = 0x0 [00:00:10]*** SEN State Register SEN_STATE = 0x200ff [00:00:10]*** 32K Frequency Sensor Enable SEN_XTAL32_EN = 0x80000055 [00:00:10]*** Analog Control Register 0 SEN_ANA0 = 0x334f0623 [00:00:10]*** Is cutter blocked? [00:00:11]MH_GetMetrics [00:00:11]Write to MH i2c: 00 00 00 03 00 02 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 29 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 29 00 03 00 00 03 9C 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 B9 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 00 03 00 5F [00:00:11]Are we in boot? [00:00:11]We are not in boot now [00:00:11]Write to MH i2c: 01 00 00 04 00 04 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 07 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 07 00 04 00 00 00 00 00 00 FF 0F 19 [00:00:11]Model is 3 [00:00:11]MH firmware is 30620 [00:00:11]MH boot firmware is 3 [00:00:11]MH_SetPrinterDots 448 [00:00:11]HeadWidthInBytes 56 [00:00:11]maxmasksize 7 [00:00:11]Write to MH i2c: D6 06 00 05 00 78 00 38 00 FF FF 8E [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 01 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 01 00 05 00 00 DB [00:00:11]Write to MH i2c: D5 00 00 06 00 DA [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 01 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 01 00 06 00 00 DB [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]ExternCall_SetCallbacks [00:00:11]NVStorageInit [00:00:11]MH_GetDate [00:00:11]Write to MH i2c: F0 00 00 07 00 F6 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 09 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 09 00 07 00 00 5F 0B F4 66 1B D0 5A 64 6C [13:08:47]Current date/time: 25.09.2024 13:08 [13:08:47]FM_Init [13:08:47]wFMConnect [13:08:47]MH_SAM_On [13:08:47]Write to MH i2c: E0 00 00 08 00 E7 [13:08:47]Write i2c OK [13:08:47]MH_I2C_Read... [13:08:47]*** iso7816_init finished! [13:08:47]*** atr: [13:08:47]*** 0F 3B D5 18 FF 81 91 FE [13:08:47]*** 1F C3 80 73 C8 21 10 0A [13:08:47]*** 00 00 00 00 00 00 00 00 [13:08:47]*** 00 00 00 00 00 00 00 00 [13:08:47]*** 00 00 00 00 00 00 00 00 [13:08:47]*** 00 00 00 00 00 00 00 00 [13:08:47]*** 00 00 00 00 00 00 00 00 [13:08:47]*** 00 00 00 00 00 00 00 00 [13:08:47]Read from MH i2c: E0 [13:08:47]MH_I2C_Read... [13:08:47]Read from MH i2c: E0 10 00 [13:08:47]MH_I2C_Read... [13:08:47]Read from MH i2c: E0 10 00 08 00 00 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A 06 [13:08:47]ATR: 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A [13:08:47]wFMCommunicate request_size=10 [13:08:47]MH_SAM_APDU [13:08:47]CAPDU: 00 A4 04 00 05 01 02 03 04 05 [13:08:47]Write to MH i2c: E2 0D 00 09 00 00 A4 04 00 05 00 01 02 03 04 05 00 00 B3 [13:08:47]Write i2c OK [13:08:47]MH_I2C_Read... [13:08:47]*** iso7816_exchange 00 A4 04 00... Resp OK rsp.len_out = 0! [13:08:47]Read from MH i2c: E2 [13:08:47]MH_I2C_Read... [13:08:47]Read from MH i2c: E2 03 00 [13:08:47]MH_I2C_Read... [13:08:47]Read from MH i2c: E2 03 00 09 00 00 90 00 7D [13:08:47]RAPDU: 90 00 [13:08:47]wFMCommunicate OK [13:08:47]wFMCommunicate request_size=4 [13:08:47]MH_SAM_APDU [13:08:47]CAPDU: 80 11 00 00 [13:08:47]Write to MH i2c: E2 08 00 0A 00 80 11 00 00 00 00 00 00 84 [13:08:47]Write i2c OK [13:08:47]MH_I2C_Read... [13:08:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:08:47]Read from MH i2c: E2 [13:08:47]MH_I2C_Read... [13:08:47]Read from MH i2c: E2 17 00 [13:08:47]MH_I2C_Read... [13:08:47]Read from MH i2c: E2 17 00 0A 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 D2 [13:08:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [13:08:47]wFMCommunicate OK [13:08:47]Detected FM SN is 0000000000871830 [13:08:47]Stored FM SN is 0000000000871830 [13:08:47]wFMCommunicate request_size=9 [13:08:47]MH_SAM_APDU [13:08:47]CAPDU: 80 16 00 00 04 2B 08 01 00 [13:08:47]Write to MH i2c: E2 0C 00 0B 00 80 16 00 00 04 00 2B 08 01 00 00 00 C6 [13:08:47]Write i2c OK [13:08:47]MH_I2C_Read... [13:08:47]*** iso7816_exchange 80 16 00 00... Resp OK rsp.len_out = 0! [13:08:47]Read from MH i2c: E2 [13:08:47]MH_I2C_Read... [13:08:47]Read from MH i2c: E2 03 00 [13:08:47]MH_I2C_Read... [13:08:47]Read from MH i2c: E2 03 00 0B 00 00 90 00 7F [13:08:47]RAPDU: 90 00 [13:08:47]wFMCommunicate OK [13:08:47]FM PIN OK [13:08:47]wFMCommunicate request_size=8 [13:08:47]MH_SAM_APDU [13:08:47]CAPDU: 80 14 04 00 03 02 00 01 [13:08:47]Write to MH i2c: E2 0B 00 0C 00 80 14 04 00 03 00 02 00 01 00 00 96 [13:08:47]Write i2c OK [13:08:47]MH_I2C_Read... [13:08:47]*** iso7816_exchange 80 14 04 00... Resp OK rsp.len_out = 0! [13:08:47]Read from MH i2c: E2 [13:08:47]MH_I2C_Read... [13:08:47]Read from MH i2c: E2 03 00 [13:08:47]MH_I2C_Read... [13:08:47]Read from MH i2c: E2 03 00 0C 00 00 90 00 80 [13:08:47]RAPDU: 90 00 [13:08:47]wFMCommunicate OK [13:08:47]wFMCommunicate request_size=13 [13:08:47]MH_SAM_APDU [13:08:47]CAPDU: 80 14 04 01 08 07 00 01 02 03 04 05 06 [13:08:47]Write to MH i2c: E2 10 00 0D 00 80 14 04 01 08 00 07 00 01 02 03 04 05 06 00 00 BB [13:08:47]Write i2c OK [13:08:47]MH_I2C_Read... [13:08:47]*** iso7816_exchange 80 14 04 01... Resp OK rsp.len_out = 0! [13:08:47]Read from MH i2c: E2 [13:08:47]MH_I2C_Read... [13:08:47]Read from MH i2c: E2 03 00 [13:08:47]MH_I2C_Read... [13:08:47]Read from MH i2c: E2 03 00 0D 00 00 90 00 81 [13:08:47]RAPDU: 90 00 [13:08:47]wFMCommunicate OK [13:08:47]wFMCommunicate request_size=4 [13:08:47]MH_SAM_APDU [13:08:47]CAPDU: 80 11 00 00 [13:08:47]Write to MH i2c: E2 08 00 0E 00 80 11 00 00 00 00 00 00 88 [13:08:47]Write i2c OK [13:08:47]MH_I2C_Read... [13:08:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:08:47]Read from MH i2c: E2 [13:08:47]MH_I2C_Read... [13:08:47]Read from MH i2c: E2 17 00 [13:08:47]MH_I2C_Read... [13:08:47]Read from MH i2c: E2 17 00 0E 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 D6 [13:08:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [13:08:47]wFMCommunicate OK [13:08:47]DocumentArchiveInit [13:08:47]Start Httpd... [13:08:47]Httpd thread 3067120996 created [13:08:47]Write to MH i2c: 01 00 00 0F 00 0F [13:08:47]Write i2c OK [13:08:47]MH_I2C_Read... [13:08:47]Read from MH i2c: 01 [13:08:47]MH_I2C_Read... [13:08:47]Read from MH i2c: 01 07 00 [13:08:47]MH_I2C_Read... [13:08:47]Read from MH i2c: 01 07 00 0F 00 00 00 00 00 00 FF 0F 24 [13:08:47]Allocated Socket 6 [13:08:47]Bind OK [13:08:47]Listen OK [13:08:47]httpd running on port 8080 [13:08:47]Waiting for new connection... [13:08:47]MH Int Process started [13:08:48]OFD Sender: No OFD packet to send [13:08:53]OFD Sender: No OFD packet to send [13:08:53]accept exits with 5 [13:08:53]New connection [13:08:53]New thread 3066834276 created [13:08:53]Waiting for new connection... [13:08:53] Sock 5.Parse request [13:08:53]Sock 5.Check first char [13:08:53]Sock 5.First char is OK [13:08:53]request: POST /json_proto HTTP/1.0 [13:08:53]Method: POST [13:08:53]URL: /json_proto [13:08:53]Method is POST - this is cgi request [13:08:53]url: /json_proto [13:08:53]query_string will be loaded in cgi processing [13:08:53]execute_cgi json_proto POST (null) [13:08:53]execute_cgi path=json_proto method=POST [13:08:53]POST find Content-Length [13:08:53]Host: 172.17.41.136:8080 [13:08:53]Content-Length: 215 [13:08:53]Content-Type: application/json [13:08:53] [13:08:53]POST finish read [13:08:53]Found Content-Length = 215 [13:08:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:08:53]execute_script... [13:08:53]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:08:53]POST & json_proto [13:08:53]process_json_proto [13:08:53]json parsed OK: [13:08:53]protocol is kg_v1.0 [13:08:53]action value=get_value [13:08:53]process_action get_value [13:08:53]cmd_get_value [13:08:53]process_action get_value done [13:08:53]requested_data is exist [13:08:53]produce_requested_data [13:08:53]requested_item kkm.sn is exist - process it [13:08:53]requested_item kkm.ver is exist - process it [13:08:53]requested_item fm.sn is exist - process it [13:08:53]wFMCommunicate request_size=4 [13:08:53]MH_SAM_APDU [13:08:53]CAPDU: 80 11 00 00 [13:08:53]Write to MH i2c: E2 08 00 10 00 80 11 00 00 00 00 00 00 8A [13:08:53]Write i2c OK [13:08:53]MH_I2C_Read... [13:08:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:08:53]Read from MH i2c: E2 [13:08:53]MH_I2C_Read... [13:08:53]Read from MH i2c: E2 17 00 [13:08:53]MH_I2C_Read... [13:08:53]Read from MH i2c: E2 17 00 10 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 D8 [13:08:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [13:08:53]wFMCommunicate OK [13:08:53]requested_item fd.num is exist - process it [13:08:53]SAM_PROTO_GetFieldsCounters [13:08:53]wFMCommunicate request_size=4 [13:08:53]MH_SAM_APDU [13:08:53]CAPDU: 80 13 00 00 [13:08:53]Write to MH i2c: E2 08 00 11 00 80 13 00 00 00 00 00 00 8D [13:08:53]Write i2c OK [13:08:53]MH_I2C_Read... [13:08:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:08:53]Read from MH i2c: E2 [13:08:53]MH_I2C_Read... [13:08:53]Read from MH i2c: E2 62 00 [13:08:53]MH_I2C_Read... [13:08:53]Read from MH i2c: E2 62 00 11 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 FF C5 01 00 0E 04 04 00 DA 01 00 00 12 04 04 00 4F 00 00 00 5E 04 04 00 4F 00 00 00 57 04 04 00 50 00 00 00 19 04 04 00 00 00 00 00 90 00 33 [13:08:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 FF C5 01 00 0E 04 04 00 DA 01 00 00 12 04 04 00 4F 00 00 00 5E 04 04 00 4F 00 00 00 57 04 04 00 50 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:08:53]wFMCommunicate OK [13:08:53]SAM_PROTO_GetFieldsCounters done [13:08:53]requested_item shift.num is exist - process it [13:08:53]requested_item shift.opened is exist - process it [13:08:53]req_shift_opened [13:08:53]FM_GetShiftState [13:08:53]SAM_PROTO_GetShiftState [13:08:53]wFMCommunicate request_size=4 [13:08:53]MH_SAM_APDU [13:08:53]CAPDU: 80 13 01 00 [13:08:53]Write to MH i2c: E2 08 00 12 00 80 13 01 00 00 00 00 00 8F [13:08:53]Write i2c OK [13:08:53]MH_I2C_Read... [13:08:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:08:53]Read from MH i2c: E2 [13:08:53]MH_I2C_Read... [13:08:53]Read from MH i2c: E2 0E 00 [13:08:53]MH_I2C_Read... [13:08:53]Read from MH i2c: E2 0E 00 12 00 00 09 00 01 63 60 F3 66 00 00 00 00 90 00 B7 [13:08:53]RAPDU: 09 00 01 63 60 F3 66 00 00 00 00 90 00 [13:08:53]wFMCommunicate OK [13:08:53]SAM_PROTO_GetShiftState done [13:08:53]FM_GetShiftState done [13:08:53]req_shift_opened done [13:08:53]requested_item shift.open_date is exist - process it [13:08:53]req_shift_open_date [13:08:53]req_shift_open_date done [13:08:53]produce_requested_data done [13:08:53]produce_requested_data return {"kkm.sn":"0300000120","kkm.ver":"001","fm.sn":"0000000000871830","fd.num":116223,"shift.num":474,"shift.opened":1,"shift.open_date":1727225955} [13:08:53]process_action_free get_value [13:08:53]json_value_free [13:08:53]json_value_free done [13:08:53]process_json_proto returns [13:08:53]Send response to host [13:08:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000120","kkm.ver":"001","fm.sn":"0000000000871830","fd.num":116223,"shift.num":474,"shift.opened":1,"shift.open_date":1727225955}}} [13:08:53]free response buf [13:08:53]execute_script done [13:08:53]execute_script returns [13:08:53]free content buf [13:08:53]Sock 5.Close socket [13:08:53]Sock 5.Thread stoped [13:08:53]accept exits with 9 [13:08:53]New connection [13:08:53]New thread 3066690916 created [13:08:53]Thread 3066834276 joined [13:08:53]Waiting for new connection... [13:08:53] Sock 9.Parse request [13:08:53]Sock 9.Check first char [13:08:53]Sock 9.First char is OK [13:08:53]request: POST /json_proto HTTP/1.0 [13:08:53]Method: POST [13:08:53]URL: /json_proto [13:08:53]Method is POST - this is cgi request [13:08:53]url: /json_proto [13:08:53]query_string will be loaded in cgi processing [13:08:53]execute_cgi json_proto POST (null) [13:08:53]execute_cgi path=json_proto method=POST [13:08:53]POST find Content-Length [13:08:53]Host: 172.17.41.136:8080 [13:08:53]Content-Length: 331 [13:08:53]Content-Type: application/json [13:08:53] [13:08:53]POST finish read [13:08:53]Found Content-Length = 331 [13:08:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [13:08:53]execute_script... [13:08:53]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [13:08:53]POST & json_proto [13:08:53]process_json_proto [13:08:53]json parsed OK: [13:08:54]protocol is kg_v1.0 [13:08:54]action value=get_value [13:08:54]process_action get_value [13:08:54]cmd_get_value [13:08:54]process_action get_value done [13:08:54]requested_data is exist [13:08:54]produce_requested_data [13:08:54]requested_item fm.sale.total is exist - process it [13:08:54]SAM_PROTO_GetFMData [13:08:54]wFMCommunicate request_size=4 [13:08:54]MH_SAM_APDU [13:08:54]CAPDU: 80 13 03 00 [13:08:54]Write to MH i2c: E2 08 00 13 00 80 13 03 00 00 00 00 00 92 [13:08:54]Write i2c OK [13:08:54]MH_I2C_Read... [13:08:54]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [13:08:54]Read from MH i2c: E2 [13:08:54]MH_I2C_Read... [13:08:54]Read from MH i2c: E2 FD 00 [13:08:54]MH_I2C_Read... [13:08:54]Read from MH i2c: E2 FD 00 13 00 00 C5 04 85 04 C1 04 6E 04 04 00 4A C2 01 00 69 04 A3 00 6F 04 04 00 CA C0 01 00 B1 04 05 00 25 DC 5E 83 01 70 04 05 00 FD 53 01 49 01 72 04 04 00 28 88 5D 3A 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 AA E1 24 29 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 C4 86 6D 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 80 01 00 00 B1 04 04 00 CC 60 FF 0F 70 04 04 00 CC 60 FF 0F 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 16 ED B2 01 EF 03 09 90 00 50 [13:08:54]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 4A C2 01 00 69 04 A3 00 6F 04 04 00 CA C0 01 00 B1 04 05 00 25 DC 5E 83 01 70 04 05 00 FD 53 01 49 01 72 04 04 00 28 88 5D 3A 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 AA E1 24 29 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 C4 86 6D 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 80 01 00 00 B1 04 04 00 CC 60 FF 0F 70 04 04 00 CC 60 FF 0F 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 16 ED B2 01 EF 03 09 90 00 [13:08:54]wFMCommunicate OK [13:08:54]wFMCommunicate request_size=4 [13:08:54]MH_SAM_APDU [13:08:54]CAPDU: 80 17 00 00 [13:08:54]Write to MH i2c: E2 08 00 14 00 80 17 00 00 00 00 00 00 94 [13:08:54]Write i2c OK [13:08:54]MH_I2C_Read... [13:08:54]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [13:08:54]Read from MH i2c: E2 [13:08:54]MH_I2C_Read... [13:08:54]Read from MH i2c: E2 FD 00 [13:08:54]MH_I2C_Read... [13:08:54]Read from MH i2c: E2 FD 00 14 00 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 50 3E 24 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 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 FC [13:08:54]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 50 3E 24 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 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 [13:08:54]wFMCommunicate OK [13:08:54]wFMCommunicate request_size=4 [13:08:54]MH_SAM_APDU [13:08:54]CAPDU: 80 17 00 00 [13:08:54]Write to MH i2c: E2 08 00 15 00 80 17 00 00 00 00 00 00 95 [13:08:54]Write i2c OK [13:08:54]MH_I2C_Read... [13:08:55]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [13:08:55]Read from MH i2c: E2 [13:08:55]MH_I2C_Read... [13:08:55]Read from MH i2c: E2 FD 00 [13:08:55]MH_I2C_Read... [13:08:55]Read from MH i2c: E2 FD 00 15 00 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 A7 [13:08:55]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 [13:08:55]wFMCommunicate OK [13:08:55]wFMCommunicate request_size=4 [13:08:55]MH_SAM_APDU [13:08:55]CAPDU: 80 17 00 00 [13:08:55]Write to MH i2c: E2 08 00 16 00 80 17 00 00 00 00 00 00 96 [13:08:55]Write i2c OK [13:08:55]MH_I2C_Read... [13:08:55]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [13:08:55]Read from MH i2c: E2 [13:08:55]MH_I2C_Read... [13:08:55]Read from MH i2c: E2 FD 00 [13:08:55]MH_I2C_Read... [13:08:55]Read from MH i2c: E2 FD 00 16 00 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 22 [13:08:55]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 [13:08:55]wFMCommunicate OK [13:08:55]wFMCommunicate request_size=4 [13:08:55]MH_SAM_APDU [13:08:55]CAPDU: 80 17 00 00 [13:08:55]Write to MH i2c: E2 08 00 17 00 80 17 00 00 00 00 00 00 97 [13:08:55]Write i2c OK [13:08:55]MH_I2C_Read... [13:08:55]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [13:08:55]Read from MH i2c: E2 [13:08:55]MH_I2C_Read... [13:08:55]Read from MH i2c: E2 E2 00 [13:08:55]MH_I2C_Read... [13:08:55]Read from MH i2c: E2 E2 00 17 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 75 [13:08:55]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 [13:08:55]wFMCommunicate OK [13:08:55]SAM_PROTO_GetFMData done [13:08:55]requested_item fm.sale_refund.total is exist - process it [13:08:55]requested_item fm.buy.total is exist - process it [13:08:55]requested_item shift.sale.total is exist - process it [13:08:55]SAM_PROTO_GetShiftData [13:08:55]wFMCommunicate request_size=4 [13:08:55]MH_SAM_APDU [13:08:55]CAPDU: 80 13 02 00 [13:08:55]Write to MH i2c: E2 08 00 18 00 80 13 02 00 00 00 00 00 96 [13:08:55]Write i2c OK [13:08:55]MH_I2C_Read... [13:08:56]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [13:08:56]Read from MH i2c: E2 [13:08:56]MH_I2C_Read... [13:08:56]Read from MH i2c: E2 FD 00 [13:08:56]MH_I2C_Read... [13:08:56]Read from MH i2c: E2 FD 00 18 00 00 B9 04 AA 04 B5 04 6E 04 04 00 4F 00 00 00 69 04 9B 00 6F 04 04 00 4D 00 00 00 B1 04 03 00 54 91 56 70 04 03 00 08 47 51 72 04 03 00 4C 4A 05 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 70 31 09 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 10 C4 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 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 02 00 00 00 B1 04 03 00 90 D5 30 70 04 03 00 90 D5 30 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 99 2F 05 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 14 [13:08:56]RAPDU: B9 04 AA 04 B5 04 6E 04 04 00 4F 00 00 00 69 04 9B 00 6F 04 04 00 4D 00 00 00 B1 04 03 00 54 91 56 70 04 03 00 08 47 51 72 04 03 00 4C 4A 05 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 70 31 09 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 10 C4 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 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 02 00 00 00 B1 04 03 00 90 D5 30 70 04 03 00 90 D5 30 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 99 2F 05 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 [13:08:56]wFMCommunicate OK [13:08:56]wFMCommunicate request_size=4 [13:08:56]MH_SAM_APDU [13:08:56]CAPDU: 80 17 00 00 [13:08:56]Write to MH i2c: E2 08 00 19 00 80 17 00 00 00 00 00 00 99 [13:08:56]Write i2c OK [13:08:56]MH_I2C_Read... [13:08:56]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [13:08:56]Read from MH i2c: E2 [13:08:56]MH_I2C_Read... [13:08:56]Read from MH i2c: E2 FD 00 [13:08:56]MH_I2C_Read... [13:08:56]Read from MH i2c: E2 FD 00 19 00 00 03 0B 00 F6 03 01 00 01 F7 03 02 00 A2 6E EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 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 90 00 68 [13:08:56]RAPDU: 03 0B 00 F6 03 01 00 01 F7 03 02 00 A2 6E EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 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 90 00 [13:08:56]wFMCommunicate OK [13:08:56]wFMCommunicate request_size=4 [13:08:56]MH_SAM_APDU [13:08:56]CAPDU: 80 17 00 00 [13:08:56]Write to MH i2c: E2 08 00 1A 00 80 17 00 00 00 00 00 00 9A [13:08:56]Write i2c OK [13:08:56]MH_I2C_Read... [13:08:56]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [13:08:56]Read from MH i2c: E2 [13:08:56]MH_I2C_Read... [13:08:56]Read from MH i2c: E2 FD 00 [13:08:56]MH_I2C_Read... [13:08:56]Read from MH i2c: E2 FD 00 1A 00 00 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 90 00 C2 [13:08:56]RAPDU: 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 90 00 [13:08:56]wFMCommunicate OK [13:08:56]wFMCommunicate request_size=4 [13:08:56]MH_SAM_APDU [13:08:56]CAPDU: 80 17 00 00 [13:08:56]Write to MH i2c: E2 08 00 1B 00 80 17 00 00 00 00 00 00 9B [13:08:56]Write i2c OK [13:08:56]MH_I2C_Read... [13:08:57]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [13:08:57]Read from MH i2c: E2 [13:08:57]MH_I2C_Read... [13:08:57]Read from MH i2c: E2 FD 00 [13:08:57]MH_I2C_Read... [13:08:57]Read from MH i2c: E2 FD 00 1B 00 00 EF 03 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 90 00 13 [13:08:57]RAPDU: EF 03 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 90 00 [13:08:57]wFMCommunicate OK [13:08:57]wFMCommunicate request_size=4 [13:08:57]MH_SAM_APDU [13:08:57]CAPDU: 80 17 00 00 [13:08:57]Write to MH i2c: E2 08 00 1C 00 80 17 00 00 00 00 00 00 9C [13:08:57]Write i2c OK [13:08:57]MH_I2C_Read... [13:08:57]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 211! [13:08:57]Read from MH i2c: E2 [13:08:57]MH_I2C_Read... [13:08:57]Read from MH i2c: E2 D6 00 [13:08:57]MH_I2C_Read... [13:08:57]Read from MH i2c: E2 D6 00 1C 00 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 7E [13:08:57]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 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [13:08:57]wFMCommunicate OK [13:08:57]SAM_PROTO_GetShiftData done [13:08:57]requested_item shift.sale.total_cash is exist - process it [13:08:57]requested_item shift.sale_refund.total is exist - process it [13:08:57]requested_item shift.sale_refund.total_cash is exist - process it [13:08:57]requested_item shift.buy.total is exist - process it [13:08:57]requested_item shift.buy.total_cash is exist - process it [13:08:57]produce_requested_data done [13:08:57]produce_requested_data return {"fm.sale.total":64989993.33,"fm.sale_refund.total":2683947.00,"fm.buy.total":0.00,"shift.sale.total":56733.00,"shift.sale.total_cash":53266.00,"shift.sale_refund.total":32004.00,"shift.sale_refund.total_cash":32004.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [13:08:57]process_action_free get_value [13:08:57]json_value_free [13:08:57]json_value_free done [13:08:57]process_json_proto returns [13:08:57]Send response to host [13:08:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":64989993.33,"fm.sale_refund.total":2683947.00,"fm.buy.total":0.00,"shift.sale.total":56733.00,"shift.sale.total_cash":53266.00,"shift.sale_refund.total":32004.00,"shift.sale_refund.total_cash":32004.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [13:08:57]free response buf [13:08:57]execute_script done [13:08:57]execute_script returns [13:08:57]free content buf [13:08:57]Sock 9.Close socket [13:08:57]Sock 9.Thread stoped [13:08:58]OFD Sender: No OFD packet to send [13:09:03]OFD Sender: No OFD packet to send [13:09:04]accept exits with 5 [13:09:04]New connection [13:09:04]New thread 3066834276 created [13:09:04]Thread 3066690916 joined [13:09:04]Waiting for new connection... [13:09:04] Sock 5.Parse request [13:09:04]Sock 5.Check first char [13:09:04]Sock 5.First char is OK [13:09:04]request: POST /json_proto HTTP/1.0 [13:09:04]Method: POST [13:09:04]URL: /json_proto [13:09:04]Method is POST - this is cgi request [13:09:04]url: /json_proto [13:09:04]query_string will be loaded in cgi processing [13:09:04]execute_cgi json_proto POST (null) [13:09:04]execute_cgi path=json_proto method=POST [13:09:04]POST find Content-Length [13:09:04]Host: 172.17.41.136:8080 [13:09:04]Content-Length: 215 [13:09:04]Content-Type: application/json [13:09:04] [13:09:04]POST finish read [13:09:04]Found Content-Length = 215 [13:09:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:09:04]execute_script... [13:09:04]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:09:04]POST & json_proto [13:09:04]process_json_proto [13:09:04]json parsed OK: [13:09:04]protocol is kg_v1.0 [13:09:04]action value=get_value [13:09:04]process_action get_value [13:09:04]cmd_get_value [13:09:04]process_action get_value done [13:09:04]requested_data is exist [13:09:04]produce_requested_data [13:09:04]requested_item kkm.sn is exist - process it [13:09:04]requested_item kkm.ver is exist - process it [13:09:04]requested_item fm.sn is exist - process it [13:09:04]wFMCommunicate request_size=4 [13:09:04]MH_SAM_APDU [13:09:04]CAPDU: 80 11 00 00 [13:09:04]Write to MH i2c: E2 08 00 1D 00 80 11 00 00 00 00 00 00 97 [13:09:04]Write i2c OK [13:09:04]MH_I2C_Read... [13:09:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:09:04]Read from MH i2c: E2 [13:09:04]MH_I2C_Read... [13:09:04]Read from MH i2c: E2 17 00 [13:09:04]MH_I2C_Read... [13:09:04]Read from MH i2c: E2 17 00 1D 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 E5 [13:09:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [13:09:04]wFMCommunicate OK [13:09:04]requested_item fd.num is exist - process it [13:09:04]SAM_PROTO_GetFieldsCounters [13:09:04]wFMCommunicate request_size=4 [13:09:04]MH_SAM_APDU [13:09:04]CAPDU: 80 13 00 00 [13:09:04]Write to MH i2c: E2 08 00 1E 00 80 13 00 00 00 00 00 00 9A [13:09:04]Write i2c OK [13:09:04]MH_I2C_Read... [13:09:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:09:04]Read from MH i2c: E2 [13:09:04]MH_I2C_Read... [13:09:04]Read from MH i2c: E2 62 00 [13:09:04]MH_I2C_Read... [13:09:04]Read from MH i2c: E2 62 00 1E 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 FF C5 01 00 0E 04 04 00 DA 01 00 00 12 04 04 00 4F 00 00 00 5E 04 04 00 4F 00 00 00 57 04 04 00 50 00 00 00 19 04 04 00 00 00 00 00 90 00 40 [13:09:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 FF C5 01 00 0E 04 04 00 DA 01 00 00 12 04 04 00 4F 00 00 00 5E 04 04 00 4F 00 00 00 57 04 04 00 50 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:09:04]wFMCommunicate OK [13:09:04]SAM_PROTO_GetFieldsCounters done [13:09:04]requested_item shift.num is exist - process it [13:09:04]requested_item shift.opened is exist - process it [13:09:04]req_shift_opened [13:09:04]FM_GetShiftState [13:09:04]SAM_PROTO_GetShiftState [13:09:04]wFMCommunicate request_size=4 [13:09:04]MH_SAM_APDU [13:09:04]CAPDU: 80 13 01 00 [13:09:04]Write to MH i2c: E2 08 00 1F 00 80 13 01 00 00 00 00 00 9C [13:09:04]Write i2c OK [13:09:04]MH_I2C_Read... [13:09:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:09:05]Read from MH i2c: E2 [13:09:05]MH_I2C_Read... [13:09:05]Read from MH i2c: E2 0E 00 [13:09:05]MH_I2C_Read... [13:09:05]Read from MH i2c: E2 0E 00 1F 00 00 09 00 01 63 60 F3 66 00 00 00 00 90 00 C4 [13:09:05]RAPDU: 09 00 01 63 60 F3 66 00 00 00 00 90 00 [13:09:05]wFMCommunicate OK [13:09:05]SAM_PROTO_GetShiftState done [13:09:05]FM_GetShiftState done [13:09:05]req_shift_opened done [13:09:05]requested_item shift.open_date is exist - process it [13:09:05]req_shift_open_date [13:09:05]req_shift_open_date done [13:09:05]produce_requested_data done [13:09:05]produce_requested_data return {"kkm.sn":"0300000120","kkm.ver":"001","fm.sn":"0000000000871830","fd.num":116223,"shift.num":474,"shift.opened":1,"shift.open_date":1727225955} [13:09:05]process_action_free get_value [13:09:05]json_value_free [13:09:05]json_value_free done [13:09:05]process_json_proto returns [13:09:05]Send response to host [13:09:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000120","kkm.ver":"001","fm.sn":"0000000000871830","fd.num":116223,"shift.num":474,"shift.opened":1,"shift.open_date":1727225955}}} [13:09:05]free response buf [13:09:05]execute_script done [13:09:05]execute_script returns [13:09:05]free content buf [13:09:05]Sock 5.Close socket [13:09:05]Sock 5.Thread stoped [13:09:05]accept exits with 9 [13:09:05]New connection [13:09:05]New thread 3066690916 created [13:09:05]Thread 3066834276 joined [13:09:05]Waiting for new connection... [13:09:05] Sock 9.Parse request [13:09:05]Sock 9.Check first char [13:09:05]Sock 9.First char is OK [13:09:05]request: POST /json_proto HTTP/1.0 [13:09:05]Method: POST [13:09:05]URL: /json_proto [13:09:05]Method is POST - this is cgi request [13:09:05]url: /json_proto [13:09:05]query_string will be loaded in cgi processing [13:09:05]execute_cgi json_proto POST (null) [13:09:05]execute_cgi path=json_proto method=POST [13:09:05]POST find Content-Length [13:09:05]Host: 172.17.41.136:8080 [13:09:05]Content-Length: 331 [13:09:05]Content-Type: application/json [13:09:05] [13:09:05]POST finish read [13:09:05]Found Content-Length = 331 [13:09:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [13:09:05]execute_script... [13:09:05]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [13:09:05]POST & json_proto [13:09:05]process_json_proto [13:09:05]json parsed OK: [13:09:05]protocol is kg_v1.0 [13:09:05]action value=get_value [13:09:05]process_action get_value [13:09:05]cmd_get_value [13:09:05]process_action get_value done [13:09:05]requested_data is exist [13:09:05]produce_requested_data [13:09:05]requested_item fm.sale.total is exist - process it [13:09:05]SAM_PROTO_GetFMData [13:09:05]wFMCommunicate request_size=4 [13:09:05]MH_SAM_APDU [13:09:05]CAPDU: 80 13 03 00 [13:09:05]Write to MH i2c: E2 08 00 20 00 80 13 03 00 00 00 00 00 9F [13:09:05]Write i2c OK [13:09:05]MH_I2C_Read... [13:09:05]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [13:09:05]Read from MH i2c: E2 [13:09:05]MH_I2C_Read... [13:09:05]Read from MH i2c: E2 FD 00 [13:09:05]MH_I2C_Read... [13:09:05]Read from MH i2c: E2 FD 00 20 00 00 C5 04 85 04 C1 04 6E 04 04 00 4A C2 01 00 69 04 A3 00 6F 04 04 00 CA C0 01 00 B1 04 05 00 25 DC 5E 83 01 70 04 05 00 FD 53 01 49 01 72 04 04 00 28 88 5D 3A 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 AA E1 24 29 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 C4 86 6D 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 80 01 00 00 B1 04 04 00 CC 60 FF 0F 70 04 04 00 CC 60 FF 0F 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 16 ED B2 01 EF 03 09 90 00 5D [13:09:05]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 4A C2 01 00 69 04 A3 00 6F 04 04 00 CA C0 01 00 B1 04 05 00 25 DC 5E 83 01 70 04 05 00 FD 53 01 49 01 72 04 04 00 28 88 5D 3A 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 AA E1 24 29 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 C4 86 6D 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 80 01 00 00 B1 04 04 00 CC 60 FF 0F 70 04 04 00 CC 60 FF 0F 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 16 ED B2 01 EF 03 09 90 00 [13:09:05]wFMCommunicate OK [13:09:05]wFMCommunicate request_size=4 [13:09:05]MH_SAM_APDU [13:09:05]CAPDU: 80 17 00 00 [13:09:05]Write to MH i2c: E2 08 00 21 00 80 17 00 00 00 00 00 00 A1 [13:09:05]Write i2c OK [13:09:05]MH_I2C_Read... [13:09:06]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [13:09:06]Read from MH i2c: E2 [13:09:06]MH_I2C_Read... [13:09:06]Read from MH i2c: E2 FD 00 [13:09:06]MH_I2C_Read... [13:09:06]Read from MH i2c: E2 FD 00 21 00 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 50 3E 24 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 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 09 [13:09:06]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 50 3E 24 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 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 [13:09:06]wFMCommunicate OK [13:09:06]wFMCommunicate request_size=4 [13:09:06]MH_SAM_APDU [13:09:06]CAPDU: 80 17 00 00 [13:09:06]Write to MH i2c: E2 08 00 22 00 80 17 00 00 00 00 00 00 A2 [13:09:06]Write i2c OK [13:09:06]MH_I2C_Read... [13:09:06]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [13:09:06]Read from MH i2c: E2 [13:09:06]MH_I2C_Read... [13:09:06]Read from MH i2c: E2 FD 00 [13:09:06]MH_I2C_Read... [13:09:06]Read from MH i2c: E2 FD 00 22 00 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 B4 [13:09:06]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 [13:09:06]wFMCommunicate OK [13:09:06]wFMCommunicate request_size=4 [13:09:06]MH_SAM_APDU [13:09:06]CAPDU: 80 17 00 00 [13:09:06]Write to MH i2c: E2 08 00 23 00 80 17 00 00 00 00 00 00 A3 [13:09:06]Write i2c OK [13:09:06]MH_I2C_Read... [13:09:06]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [13:09:06]Read from MH i2c: E2 [13:09:06]MH_I2C_Read... [13:09:06]Read from MH i2c: E2 FD 00 [13:09:06]MH_I2C_Read... [13:09:06]Read from MH i2c: E2 FD 00 23 00 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 2F [13:09:06]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 [13:09:06]wFMCommunicate OK [13:09:06]wFMCommunicate request_size=4 [13:09:06]MH_SAM_APDU [13:09:06]CAPDU: 80 17 00 00 [13:09:06]Write to MH i2c: E2 08 00 24 00 80 17 00 00 00 00 00 00 A4 [13:09:06]Write i2c OK [13:09:06]MH_I2C_Read... [13:09:06]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [13:09:06]Read from MH i2c: E2 [13:09:06]MH_I2C_Read... [13:09:06]Read from MH i2c: E2 E2 00 [13:09:06]MH_I2C_Read... [13:09:06]Read from MH i2c: E2 E2 00 24 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 82 [13:09:07]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 [13:09:07]wFMCommunicate OK [13:09:07]SAM_PROTO_GetFMData done [13:09:07]requested_item fm.sale_refund.total is exist - process it [13:09:07]requested_item fm.buy.total is exist - process it [13:09:07]requested_item shift.sale.total is exist - process it [13:09:07]SAM_PROTO_GetShiftData [13:09:07]wFMCommunicate request_size=4 [13:09:07]MH_SAM_APDU [13:09:07]CAPDU: 80 13 02 00 [13:09:07]Write to MH i2c: E2 08 00 25 00 80 13 02 00 00 00 00 00 A3 [13:09:07]Write i2c OK [13:09:07]MH_I2C_Read... [13:09:07]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [13:09:07]Read from MH i2c: E2 [13:09:07]MH_I2C_Read... [13:09:07]Read from MH i2c: E2 FD 00 [13:09:07]MH_I2C_Read... [13:09:07]Read from MH i2c: E2 FD 00 25 00 00 B9 04 AA 04 B5 04 6E 04 04 00 4F 00 00 00 69 04 9B 00 6F 04 04 00 4D 00 00 00 B1 04 03 00 54 91 56 70 04 03 00 08 47 51 72 04 03 00 4C 4A 05 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 70 31 09 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 10 C4 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 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 02 00 00 00 B1 04 03 00 90 D5 30 70 04 03 00 90 D5 30 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 99 2F 05 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 21 [13:09:07]RAPDU: B9 04 AA 04 B5 04 6E 04 04 00 4F 00 00 00 69 04 9B 00 6F 04 04 00 4D 00 00 00 B1 04 03 00 54 91 56 70 04 03 00 08 47 51 72 04 03 00 4C 4A 05 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 70 31 09 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 10 C4 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 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 02 00 00 00 B1 04 03 00 90 D5 30 70 04 03 00 90 D5 30 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 99 2F 05 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 [13:09:07]wFMCommunicate OK [13:09:07]wFMCommunicate request_size=4 [13:09:07]MH_SAM_APDU [13:09:07]CAPDU: 80 17 00 00 [13:09:07]Write to MH i2c: E2 08 00 26 00 80 17 00 00 00 00 00 00 A6 [13:09:07]Write i2c OK [13:09:07]MH_I2C_Read... [13:09:07]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [13:09:07]Read from MH i2c: E2 [13:09:07]MH_I2C_Read... [13:09:07]Read from MH i2c: E2 FD 00 [13:09:07]MH_I2C_Read... [13:09:07]Read from MH i2c: E2 FD 00 26 00 00 03 0B 00 F6 03 01 00 01 F7 03 02 00 A2 6E EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 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 90 00 75 [13:09:07]RAPDU: 03 0B 00 F6 03 01 00 01 F7 03 02 00 A2 6E EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 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 90 00 [13:09:07]wFMCommunicate OK [13:09:07]wFMCommunicate request_size=4 [13:09:07]MH_SAM_APDU [13:09:07]CAPDU: 80 17 00 00 [13:09:07]Write to MH i2c: E2 08 00 27 00 80 17 00 00 00 00 00 00 A7 [13:09:07]Write i2c OK [13:09:07]MH_I2C_Read... [13:09:08]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [13:09:08]Read from MH i2c: E2 [13:09:08]MH_I2C_Read... [13:09:08]Read from MH i2c: E2 FD 00 [13:09:08]MH_I2C_Read... [13:09:08]Read from MH i2c: E2 FD 00 27 00 00 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 90 00 CF [13:09:08]RAPDU: 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 90 00 [13:09:08]wFMCommunicate OK [13:09:08]wFMCommunicate request_size=4 [13:09:08]MH_SAM_APDU [13:09:08]CAPDU: 80 17 00 00 [13:09:08]Write to MH i2c: E2 08 00 28 00 80 17 00 00 00 00 00 00 A8 [13:09:08]OFD Sender: No OFD packet to send [13:09:08]Write i2c OK [13:09:08]MH_I2C_Read... [13:09:08]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [13:09:08]Read from MH i2c: E2 [13:09:08]MH_I2C_Read... [13:09:08]Read from MH i2c: E2 FD 00 [13:09:08]MH_I2C_Read... [13:09:08]Read from MH i2c: E2 FD 00 28 00 00 EF 03 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 90 00 20 [13:09:08]RAPDU: EF 03 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 90 00 [13:09:08]wFMCommunicate OK [13:09:08]wFMCommunicate request_size=4 [13:09:08]MH_SAM_APDU [13:09:08]CAPDU: 80 17 00 00 [13:09:08]Write to MH i2c: E2 08 00 29 00 80 17 00 00 00 00 00 00 A9 [13:09:08]Write i2c OK [13:09:08]MH_I2C_Read... [13:09:08]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 211! [13:09:08]Read from MH i2c: E2 [13:09:08]MH_I2C_Read... [13:09:08]Read from MH i2c: E2 D6 00 [13:09:08]MH_I2C_Read... [13:09:08]Read from MH i2c: E2 D6 00 29 00 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 8B [13:09:08]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 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [13:09:08]wFMCommunicate OK [13:09:08]SAM_PROTO_GetShiftData done [13:09:08]requested_item shift.sale.total_cash is exist - process it [13:09:08]requested_item shift.sale_refund.total is exist - process it [13:09:08]requested_item shift.sale_refund.total_cash is exist - process it [13:09:08]requested_item shift.buy.total is exist - process it [13:09:08]requested_item shift.buy.total_cash is exist - process it [13:09:08]produce_requested_data done [13:09:08]produce_requested_data return {"fm.sale.total":64989993.33,"fm.sale_refund.total":2683947.00,"fm.buy.total":0.00,"shift.sale.total":56733.00,"shift.sale.total_cash":53266.00,"shift.sale_refund.total":32004.00,"shift.sale_refund.total_cash":32004.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [13:09:08]process_action_free get_value [13:09:08]json_value_free [13:09:08]json_value_free done [13:09:08]process_json_proto returns [13:09:08]Send response to host [13:09:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":64989993.33,"fm.sale_refund.total":2683947.00,"fm.buy.total":0.00,"shift.sale.total":56733.00,"shift.sale.total_cash":53266.00,"shift.sale_refund.total":32004.00,"shift.sale_refund.total_cash":32004.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [13:09:08]free response buf [13:09:08]execute_script done [13:09:08]execute_script returns [13:09:08]free content buf [13:09:08]Sock 9.Close socket [13:09:08]Sock 9.Thread stoped [13:09:13]OFD Sender: No OFD packet to send [13:09:18]OFD Sender: No OFD packet to send [13:09:23]OFD Sender: No OFD packet to send [13:09:28]OFD Sender: No OFD packet to send [13:09:33]OFD Sender: No OFD packet to send [13:09:38]OFD Sender: No OFD packet to send [13:09:43]OFD Sender: No OFD packet to send [13:09:48]OFD Sender: No OFD packet to send [13:09:53]OFD Sender: No OFD packet to send [13:09:58]OFD Sender: No OFD packet to send [13:10:03]OFD Sender: No OFD packet to send [13:10:08]OFD Sender: No OFD packet to send [13:10:13]OFD Sender: No OFD packet to send [13:10:18]OFD Sender: No OFD packet to send [13:10:23]OFD Sender: No OFD packet to send [13:10:28]OFD Sender: No OFD packet to send [13:10:33]OFD Sender: No OFD packet to send [13:10:38]OFD Sender: No OFD packet to send [13:10:43]OFD Sender: No OFD packet to send [13:10:48]OFD Sender: No OFD packet to send [13:10:53]OFD Sender: No OFD packet to send [13:10:58]OFD Sender: No OFD packet to send [13:11:03]OFD Sender: No OFD packet to send [13:11:08]OFD Sender: No OFD packet to send [13:11:13]OFD Sender: No OFD packet to send [13:11:18]OFD Sender: No OFD packet to send [13:11:23]OFD Sender: No OFD packet to send [13:11:28]OFD Sender: No OFD packet to send [13:11:33]OFD Sender: No OFD packet to send [13:11:38]OFD Sender: No OFD packet to send [13:11:43]OFD Sender: No OFD packet to send [13:11:48]OFD Sender: No OFD packet to send [13:11:53]OFD Sender: No OFD packet to send [13:11:58]OFD Sender: No OFD packet to send [13:12:03]OFD Sender: No OFD packet to send [13:12:08]OFD Sender: No OFD packet to send [13:12:13]OFD Sender: No OFD packet to send [13:12:18]OFD Sender: No OFD packet to send [13:12:19]accept exits with 5 [13:12:19]New connection [13:12:19]New thread 3066834276 created [13:12:19]Thread 3066690916 joined [13:12:19]Waiting for new connection... [13:12:19] Sock 5.Parse request [13:12:19]Sock 5.Check first char [13:12:19]Sock 5.First char is OK [13:12:19]request: POST /json_proto HTTP/1.0 [13:12:19]Method: POST [13:12:19]URL: /json_proto [13:12:19]Method is POST - this is cgi request [13:12:19]url: /json_proto [13:12:19]query_string will be loaded in cgi processing [13:12:19]execute_cgi json_proto POST (null) [13:12:19]execute_cgi path=json_proto method=POST [13:12:19]POST find Content-Length [13:12:19]Host: 172.17.41.136:8080 [13:12:19]Content-Length: 215 [13:12:19]Content-Type: application/json [13:12:19] [13:12:19]POST finish read [13:12:19]Found Content-Length = 215 [13:12:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:12:19]execute_script... [13:12:19]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:12:19]POST & json_proto [13:12:19]process_json_proto [13:12:19]json parsed OK: [13:12:19]protocol is kg_v1.0 [13:12:19]action value=get_value [13:12:19]process_action get_value [13:12:19]cmd_get_value [13:12:19]process_action get_value done [13:12:19]requested_data is exist [13:12:19]produce_requested_data [13:12:19]requested_item kkm.sn is exist - process it [13:12:19]requested_item kkm.ver is exist - process it [13:12:19]requested_item fm.sn is exist - process it [13:12:19]wFMCommunicate request_size=4 [13:12:19]MH_SAM_APDU [13:12:19]CAPDU: 80 11 00 00 [13:12:19]Write to MH i2c: E2 08 00 2A 00 80 11 00 00 00 00 00 00 A4 [13:12:19]Write i2c OK [13:12:19]MH_I2C_Read... [13:12:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:12:19]Read from MH i2c: E2 [13:12:19]MH_I2C_Read... [13:12:19]Read from MH i2c: E2 17 00 [13:12:19]MH_I2C_Read... [13:12:19]Read from MH i2c: E2 17 00 2A 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 F2 [13:12:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [13:12:19]wFMCommunicate OK [13:12:19]requested_item fd.num is exist - process it [13:12:19]SAM_PROTO_GetFieldsCounters [13:12:19]wFMCommunicate request_size=4 [13:12:19]MH_SAM_APDU [13:12:19]CAPDU: 80 13 00 00 [13:12:19]Write to MH i2c: E2 08 00 2B 00 80 13 00 00 00 00 00 00 A7 [13:12:19]Write i2c OK [13:12:19]MH_I2C_Read... [13:12:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:12:19]Read from MH i2c: E2 [13:12:19]MH_I2C_Read... [13:12:19]Read from MH i2c: E2 62 00 [13:12:19]MH_I2C_Read... [13:12:19]Read from MH i2c: E2 62 00 2B 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 FF C5 01 00 0E 04 04 00 DA 01 00 00 12 04 04 00 4F 00 00 00 5E 04 04 00 4F 00 00 00 57 04 04 00 50 00 00 00 19 04 04 00 00 00 00 00 90 00 4D [13:12:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 FF C5 01 00 0E 04 04 00 DA 01 00 00 12 04 04 00 4F 00 00 00 5E 04 04 00 4F 00 00 00 57 04 04 00 50 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:12:19]wFMCommunicate OK [13:12:19]SAM_PROTO_GetFieldsCounters done [13:12:19]requested_item shift.num is exist - process it [13:12:19]requested_item shift.opened is exist - process it [13:12:19]req_shift_opened [13:12:19]FM_GetShiftState [13:12:19]SAM_PROTO_GetShiftState [13:12:19]wFMCommunicate request_size=4 [13:12:19]MH_SAM_APDU [13:12:19]CAPDU: 80 13 01 00 [13:12:19]Write to MH i2c: E2 08 00 2C 00 80 13 01 00 00 00 00 00 A9 [13:12:19]Write i2c OK [13:12:19]MH_I2C_Read... [13:12:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:12:19]Read from MH i2c: E2 [13:12:19]MH_I2C_Read... [13:12:19]Read from MH i2c: E2 0E 00 [13:12:19]MH_I2C_Read... [13:12:19]Read from MH i2c: E2 0E 00 2C 00 00 09 00 01 63 60 F3 66 00 00 00 00 90 00 D1 [13:12:19]RAPDU: 09 00 01 63 60 F3 66 00 00 00 00 90 00 [13:12:19]wFMCommunicate OK [13:12:19]SAM_PROTO_GetShiftState done [13:12:19]FM_GetShiftState done [13:12:19]req_shift_opened done [13:12:19]requested_item shift.open_date is exist - process it [13:12:19]req_shift_open_date [13:12:19]req_shift_open_date done [13:12:19]produce_requested_data done [13:12:19]produce_requested_data return {"kkm.sn":"0300000120","kkm.ver":"001","fm.sn":"0000000000871830","fd.num":116223,"shift.num":474,"shift.opened":1,"shift.open_date":1727225955} [13:12:19]process_action_free get_value [13:12:19]json_value_free [13:12:19]json_value_free done [13:12:19]process_json_proto returns [13:12:19]Send response to host [13:12:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000120","kkm.ver":"001","fm.sn":"0000000000871830","fd.num":116223,"shift.num":474,"shift.opened":1,"shift.open_date":1727225955}}} [13:12:19]free response buf [13:12:19]execute_script done [13:12:19]execute_script returns [13:12:19]free content buf [13:12:19]Sock 5.Close socket [13:12:19]Sock 5.Thread stoped [13:12:19]accept exits with 9 [13:12:19]New connection [13:12:19]New thread 3066690916 created [13:12:19]Thread 3066834276 joined [13:12:19]Waiting for new connection... [13:12:19] Sock 9.Parse request [13:12:19]Sock 9.Check first char [13:12:19]Sock 9.First char is OK [13:12:19]request: POST /json_proto HTTP/1.0 [13:12:19]Method: POST [13:12:19]URL: /json_proto [13:12:19]Method is POST - this is cgi request [13:12:19]url: /json_proto [13:12:19]query_string will be loaded in cgi processing [13:12:19]execute_cgi json_proto POST (null) [13:12:19]execute_cgi path=json_proto method=POST [13:12:19]POST find Content-Length [13:12:19]Host: 172.17.41.136:8080 [13:12:19]Content-Length: 331 [13:12:19]Content-Type: application/json [13:12:19] [13:12:19]POST finish read [13:12:19]Found Content-Length = 331 [13:12:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [13:12:19]execute_script... [13:12: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" ] } } [13:12:20]POST & json_proto [13:12:20]process_json_proto [13:12:20]json parsed OK: [13:12:20]protocol is kg_v1.0 [13:12:20]action value=get_value [13:12:20]process_action get_value [13:12:20]cmd_get_value [13:12:20]process_action get_value done [13:12:20]requested_data is exist [13:12:20]produce_requested_data [13:12:20]requested_item fm.sale.total is exist - process it [13:12:20]SAM_PROTO_GetFMData [13:12:20]wFMCommunicate request_size=4 [13:12:20]MH_SAM_APDU [13:12:20]CAPDU: 80 13 03 00 [13:12:20]Write to MH i2c: E2 08 00 2D 00 80 13 03 00 00 00 00 00 AC [13:12:20]Write i2c OK [13:12:20]MH_I2C_Read... [13:12:20]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [13:12:20]Read from MH i2c: E2 [13:12:20]MH_I2C_Read... [13:12:20]Read from MH i2c: E2 FD 00 [13:12:20]MH_I2C_Read... [13:12:20]Read from MH i2c: E2 FD 00 2D 00 00 C5 04 85 04 C1 04 6E 04 04 00 4A C2 01 00 69 04 A3 00 6F 04 04 00 CA C0 01 00 B1 04 05 00 25 DC 5E 83 01 70 04 05 00 FD 53 01 49 01 72 04 04 00 28 88 5D 3A 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 AA E1 24 29 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 C4 86 6D 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 80 01 00 00 B1 04 04 00 CC 60 FF 0F 70 04 04 00 CC 60 FF 0F 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 16 ED B2 01 EF 03 09 90 00 6A [13:12:20]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 4A C2 01 00 69 04 A3 00 6F 04 04 00 CA C0 01 00 B1 04 05 00 25 DC 5E 83 01 70 04 05 00 FD 53 01 49 01 72 04 04 00 28 88 5D 3A 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 AA E1 24 29 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 C4 86 6D 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 80 01 00 00 B1 04 04 00 CC 60 FF 0F 70 04 04 00 CC 60 FF 0F 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 16 ED B2 01 EF 03 09 90 00 [13:12:20]wFMCommunicate OK [13:12:20]wFMCommunicate request_size=4 [13:12:20]MH_SAM_APDU [13:12:20]CAPDU: 80 17 00 00 [13:12:20]Write to MH i2c: E2 08 00 2E 00 80 17 00 00 00 00 00 00 AE [13:12:20]Write i2c OK [13:12:20]MH_I2C_Read... [13:12:20]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [13:12:20]Read from MH i2c: E2 [13:12:20]MH_I2C_Read... [13:12:20]Read from MH i2c: E2 FD 00 [13:12:20]MH_I2C_Read... [13:12:20]Read from MH i2c: E2 FD 00 2E 00 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 50 3E 24 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 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 16 [13:12:20]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 50 3E 24 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 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 [13:12:20]wFMCommunicate OK [13:12:20]wFMCommunicate request_size=4 [13:12:20]MH_SAM_APDU [13:12:20]CAPDU: 80 17 00 00 [13:12:20]Write to MH i2c: E2 08 00 2F 00 80 17 00 00 00 00 00 00 AF [13:12:20]Write i2c OK [13:12:20]MH_I2C_Read... [13:12:21]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [13:12:21]Read from MH i2c: E2 [13:12:21]MH_I2C_Read... [13:12:21]Read from MH i2c: E2 FD 00 [13:12:21]MH_I2C_Read... [13:12:21]Read from MH i2c: E2 FD 00 2F 00 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 [13:12:21]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 [13:12:21]wFMCommunicate OK [13:12:21]wFMCommunicate request_size=4 [13:12:21]MH_SAM_APDU [13:12:21]CAPDU: 80 17 00 00 [13:12:21]Write to MH i2c: E2 08 00 30 00 80 17 00 00 00 00 00 00 B0 [13:12:21]Write i2c OK [13:12:21]MH_I2C_Read... [13:12:21]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [13:12:21]Read from MH i2c: E2 [13:12:21]MH_I2C_Read... [13:12:21]Read from MH i2c: E2 FD 00 [13:12:21]MH_I2C_Read... [13:12:21]Read from MH i2c: E2 FD 00 30 00 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 [13:12:21]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 [13:12:21]wFMCommunicate OK [13:12:21]wFMCommunicate request_size=4 [13:12:21]MH_SAM_APDU [13:12:21]CAPDU: 80 17 00 00 [13:12:21]Write to MH i2c: E2 08 00 31 00 80 17 00 00 00 00 00 00 B1 [13:12:21]Write i2c OK [13:12:21]MH_I2C_Read... [13:12:21]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [13:12:21]Read from MH i2c: E2 [13:12:21]MH_I2C_Read... [13:12:21]Read from MH i2c: E2 E2 00 [13:12:21]MH_I2C_Read... [13:12:21]Read from MH i2c: E2 E2 00 31 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [13:12:21]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 [13:12:21]wFMCommunicate OK [13:12:21]SAM_PROTO_GetFMData done [13:12:21]requested_item fm.sale_refund.total is exist - process it [13:12:21]requested_item fm.buy.total is exist - process it [13:12:21]requested_item shift.sale.total is exist - process it [13:12:21]SAM_PROTO_GetShiftData [13:12:21]wFMCommunicate request_size=4 [13:12:21]MH_SAM_APDU [13:12:21]CAPDU: 80 13 02 00 [13:12:21]Write to MH i2c: E2 08 00 32 00 80 13 02 00 00 00 00 00 B0 [13:12:21]Write i2c OK [13:12:21]MH_I2C_Read... [13:12:22]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [13:12:22]Read from MH i2c: E2 [13:12:22]MH_I2C_Read... [13:12:22]Read from MH i2c: E2 FD 00 [13:12:22]MH_I2C_Read... [13:12:22]Read from MH i2c: E2 FD 00 32 00 00 B9 04 AA 04 B5 04 6E 04 04 00 4F 00 00 00 69 04 9B 00 6F 04 04 00 4D 00 00 00 B1 04 03 00 54 91 56 70 04 03 00 08 47 51 72 04 03 00 4C 4A 05 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 70 31 09 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 10 C4 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 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 02 00 00 00 B1 04 03 00 90 D5 30 70 04 03 00 90 D5 30 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 99 2F 05 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 2E [13:12:22]RAPDU: B9 04 AA 04 B5 04 6E 04 04 00 4F 00 00 00 69 04 9B 00 6F 04 04 00 4D 00 00 00 B1 04 03 00 54 91 56 70 04 03 00 08 47 51 72 04 03 00 4C 4A 05 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 70 31 09 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 10 C4 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 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 02 00 00 00 B1 04 03 00 90 D5 30 70 04 03 00 90 D5 30 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 99 2F 05 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 [13:12:22]wFMCommunicate OK [13:12:22]wFMCommunicate request_size=4 [13:12:22]MH_SAM_APDU [13:12:22]CAPDU: 80 17 00 00 [13:12:22]Write to MH i2c: E2 08 00 33 00 80 17 00 00 00 00 00 00 B3 [13:12:22]Write i2c OK [13:12:22]MH_I2C_Read... [13:12:22]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [13:12:22]Read from MH i2c: E2 [13:12:22]MH_I2C_Read... [13:12:22]Read from MH i2c: E2 FD 00 [13:12:22]MH_I2C_Read... [13:12:22]Read from MH i2c: E2 FD 00 33 00 00 03 0B 00 F6 03 01 00 01 F7 03 02 00 A2 6E EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 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 90 00 82 [13:12:22]RAPDU: 03 0B 00 F6 03 01 00 01 F7 03 02 00 A2 6E EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 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 90 00 [13:12:22]wFMCommunicate OK [13:12:22]wFMCommunicate request_size=4 [13:12:22]MH_SAM_APDU [13:12:22]CAPDU: 80 17 00 00 [13:12:22]Write to MH i2c: E2 08 00 34 00 80 17 00 00 00 00 00 00 B4 [13:12:22]Write i2c OK [13:12:22]MH_I2C_Read... [13:12:22]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [13:12:22]Read from MH i2c: E2 [13:12:22]MH_I2C_Read... [13:12:22]Read from MH i2c: E2 FD 00 [13:12:22]MH_I2C_Read... [13:12:22]Read from MH i2c: E2 FD 00 34 00 00 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 90 00 DC [13:12:22]RAPDU: 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 90 00 [13:12:22]wFMCommunicate OK [13:12:22]wFMCommunicate request_size=4 [13:12:22]MH_SAM_APDU [13:12:22]CAPDU: 80 17 00 00 [13:12:22]Write to MH i2c: E2 08 00 35 00 80 17 00 00 00 00 00 00 B5 [13:12:22]Write i2c OK [13:12:22]MH_I2C_Read... [13:12:23]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [13:12:23]Read from MH i2c: E2 [13:12:23]MH_I2C_Read... [13:12:23]Read from MH i2c: E2 FD 00 [13:12:23]MH_I2C_Read... [13:12:23]Read from MH i2c: E2 FD 00 35 00 00 EF 03 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 90 00 2D [13:12:23]RAPDU: EF 03 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 90 00 [13:12:23]wFMCommunicate OK [13:12:23]wFMCommunicate request_size=4 [13:12:23]MH_SAM_APDU [13:12:23]CAPDU: 80 17 00 00 [13:12:23]Write to MH i2c: E2 08 00 36 00 80 17 00 00 00 00 00 00 B6 [13:12:23]Write i2c OK [13:12:23]MH_I2C_Read... [13:12:23]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 211! [13:12:23]Read from MH i2c: E2 [13:12:23]MH_I2C_Read... [13:12:23]Read from MH i2c: E2 D6 00 [13:12:23]MH_I2C_Read... [13:12:23]Read from MH i2c: E2 D6 00 36 00 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 98 [13:12:23]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 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [13:12:23]wFMCommunicate OK [13:12:23]SAM_PROTO_GetShiftData done [13:12:23]requested_item shift.sale.total_cash is exist - process it [13:12:23]requested_item shift.sale_refund.total is exist - process it [13:12:23]requested_item shift.sale_refund.total_cash is exist - process it [13:12:23]requested_item shift.buy.total is exist - process it [13:12:23]requested_item shift.buy.total_cash is exist - process it [13:12:23]produce_requested_data done [13:12:23]produce_requested_data return {"fm.sale.total":64989993.33,"fm.sale_refund.total":2683947.00,"fm.buy.total":0.00,"shift.sale.total":56733.00,"shift.sale.total_cash":53266.00,"shift.sale_refund.total":32004.00,"shift.sale_refund.total_cash":32004.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [13:12:23]process_action_free get_value [13:12:23]json_value_free [13:12:23]json_value_free done [13:12:23]process_json_proto returns [13:12:23]Send response to host [13:12:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":64989993.33,"fm.sale_refund.total":2683947.00,"fm.buy.total":0.00,"shift.sale.total":56733.00,"shift.sale.total_cash":53266.00,"shift.sale_refund.total":32004.00,"shift.sale_refund.total_cash":32004.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [13:12:23]free response buf [13:12:23]execute_script done [13:12:23]execute_script returns [13:12:23]free content buf [13:12:23]Sock 9.Close socket [13:12:23]Sock 9.Thread stoped [13:12:23]accept exits with 5 [13:12:23]New connection [13:12:23]New thread 3066834276 created [13:12:23]Thread 3066690916 joined [13:12:23]Waiting for new connection... [13:12:23] Sock 5.Parse request [13:12:23]Sock 5.Check first char [13:12:23]Sock 5.First char is OK [13:12:23]request: POST /json_proto HTTP/1.0 [13:12:23]Method: POST [13:12:23]URL: /json_proto [13:12:23]Method is POST - this is cgi request [13:12:23]url: /json_proto [13:12:23]query_string will be loaded in cgi processing [13:12:23]execute_cgi json_proto POST (null) [13:12:23]execute_cgi path=json_proto method=POST [13:12:23]POST find Content-Length [13:12:23]Host: 172.17.41.136:8080 [13:12:23]Content-Length: 331 [13:12:23]Content-Type: application/json [13:12:23] [13:12:23]POST finish read [13:12:23]Found Content-Length = 331 [13:12:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [13:12:23]execute_script... [13:12:23]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [13:12:23]POST & json_proto [13:12:23]process_json_proto [13:12:23]json parsed OK: [13:12:23]protocol is kg_v1.0 [13:12:23]action value=get_value [13:12:23]process_action get_value [13:12:23]cmd_get_value [13:12:23]process_action get_value done [13:12:23]requested_data is exist [13:12:23]produce_requested_data [13:12:23]requested_item fm.sale.total is exist - process it [13:12:23]SAM_PROTO_GetFMData [13:12:23]wFMCommunicate request_size=4 [13:12:23]MH_SAM_APDU [13:12:23]CAPDU: 80 13 03 00 [13:12:23]Write to MH i2c: E2 08 00 37 00 80 13 03 00 00 00 00 00 B6 [13:12:23]Write i2c OK [13:12:23]MH_I2C_Read... [13:12:23]OFD Sender: No OFD packet to send [13:12:23]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [13:12:23]Read from MH i2c: E2 [13:12:23]MH_I2C_Read... [13:12:23]Read from MH i2c: E2 FD 00 [13:12:23]MH_I2C_Read... [13:12:23]Read from MH i2c: E2 FD 00 37 00 00 C5 04 85 04 C1 04 6E 04 04 00 4A C2 01 00 69 04 A3 00 6F 04 04 00 CA C0 01 00 B1 04 05 00 25 DC 5E 83 01 70 04 05 00 FD 53 01 49 01 72 04 04 00 28 88 5D 3A 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 AA E1 24 29 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 C4 86 6D 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 80 01 00 00 B1 04 04 00 CC 60 FF 0F 70 04 04 00 CC 60 FF 0F 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 16 ED B2 01 EF 03 09 90 00 74 [13:12:23]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 4A C2 01 00 69 04 A3 00 6F 04 04 00 CA C0 01 00 B1 04 05 00 25 DC 5E 83 01 70 04 05 00 FD 53 01 49 01 72 04 04 00 28 88 5D 3A 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 AA E1 24 29 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 C4 86 6D 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 80 01 00 00 B1 04 04 00 CC 60 FF 0F 70 04 04 00 CC 60 FF 0F 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 16 ED B2 01 EF 03 09 90 00 [13:12:23]wFMCommunicate OK [13:12:23]wFMCommunicate request_size=4 [13:12:23]MH_SAM_APDU [13:12:23]CAPDU: 80 17 00 00 [13:12:23]Write to MH i2c: E2 08 00 38 00 80 17 00 00 00 00 00 00 B8 [13:12:23]Write i2c OK [13:12:23]MH_I2C_Read... [13:12:24]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [13:12:24]Read from MH i2c: E2 [13:12:24]MH_I2C_Read... [13:12:24]Read from MH i2c: E2 FD 00 [13:12:24]MH_I2C_Read... [13:12:24]Read from MH i2c: E2 FD 00 38 00 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 50 3E 24 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 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 20 [13:12:24]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 50 3E 24 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 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 [13:12:24]wFMCommunicate OK [13:12:24]wFMCommunicate request_size=4 [13:12:24]MH_SAM_APDU [13:12:24]CAPDU: 80 17 00 00 [13:12:24]Write to MH i2c: E2 08 00 39 00 80 17 00 00 00 00 00 00 B9 [13:12:24]Write i2c OK [13:12:24]MH_I2C_Read... [13:12:24]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [13:12:24]Read from MH i2c: E2 [13:12:24]MH_I2C_Read... [13:12:24]Read from MH i2c: E2 FD 00 [13:12:24]MH_I2C_Read... [13:12:24]Read from MH i2c: E2 FD 00 39 00 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 [13:12:24]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 [13:12:24]wFMCommunicate OK [13:12:24]wFMCommunicate request_size=4 [13:12:24]MH_SAM_APDU [13:12:24]CAPDU: 80 17 00 00 [13:12:24]Write to MH i2c: E2 08 00 3A 00 80 17 00 00 00 00 00 00 BA [13:12:24]Write i2c OK [13:12:24]MH_I2C_Read... [13:12:24]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [13:12:24]Read from MH i2c: E2 [13:12:24]MH_I2C_Read... [13:12:24]Read from MH i2c: E2 FD 00 [13:12:24]MH_I2C_Read... [13:12:24]Read from MH i2c: E2 FD 00 3A 00 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 [13:12: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 [13:12:24]wFMCommunicate OK [13:12:24]wFMCommunicate request_size=4 [13:12:24]MH_SAM_APDU [13:12:24]CAPDU: 80 17 00 00 [13:12:24]Write to MH i2c: E2 08 00 3B 00 80 17 00 00 00 00 00 00 BB [13:12:24]Write i2c OK [13:12:24]MH_I2C_Read... [13:12:25]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [13:12:25]Read from MH i2c: E2 [13:12:25]MH_I2C_Read... [13:12:25]Read from MH i2c: E2 E2 00 [13:12:25]MH_I2C_Read... [13:12:25]Read from MH i2c: E2 E2 00 3B 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [13:12:25]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 [13:12:25]wFMCommunicate OK [13:12:25]SAM_PROTO_GetFMData done [13:12:25]requested_item fm.sale_refund.total is exist - process it [13:12:25]requested_item fm.buy.total is exist - process it [13:12:25]requested_item shift.sale.total is exist - process it [13:12:25]SAM_PROTO_GetShiftData [13:12:25]wFMCommunicate request_size=4 [13:12:25]MH_SAM_APDU [13:12:25]CAPDU: 80 13 02 00 [13:12:25]Write to MH i2c: E2 08 00 3C 00 80 13 02 00 00 00 00 00 BA [13:12:25]Write i2c OK [13:12:25]MH_I2C_Read... [13:12:25]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [13:12:25]Read from MH i2c: E2 [13:12:25]MH_I2C_Read... [13:12:25]Read from MH i2c: E2 FD 00 [13:12:25]MH_I2C_Read... [13:12:25]Read from MH i2c: E2 FD 00 3C 00 00 B9 04 AA 04 B5 04 6E 04 04 00 4F 00 00 00 69 04 9B 00 6F 04 04 00 4D 00 00 00 B1 04 03 00 54 91 56 70 04 03 00 08 47 51 72 04 03 00 4C 4A 05 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 70 31 09 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 10 C4 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 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 02 00 00 00 B1 04 03 00 90 D5 30 70 04 03 00 90 D5 30 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 99 2F 05 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 38 [13:12:25]RAPDU: B9 04 AA 04 B5 04 6E 04 04 00 4F 00 00 00 69 04 9B 00 6F 04 04 00 4D 00 00 00 B1 04 03 00 54 91 56 70 04 03 00 08 47 51 72 04 03 00 4C 4A 05 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 70 31 09 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 10 C4 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 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 02 00 00 00 B1 04 03 00 90 D5 30 70 04 03 00 90 D5 30 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 99 2F 05 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 [13:12:25]wFMCommunicate OK [13:12:25]wFMCommunicate request_size=4 [13:12:25]MH_SAM_APDU [13:12:25]CAPDU: 80 17 00 00 [13:12:25]Write to MH i2c: E2 08 00 3D 00 80 17 00 00 00 00 00 00 BD [13:12:25]Write i2c OK [13:12:25]MH_I2C_Read... [13:12:26]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [13:12:26]Read from MH i2c: E2 [13:12:26]MH_I2C_Read... [13:12:26]Read from MH i2c: E2 FD 00 [13:12:26]MH_I2C_Read... [13:12:26]Read from MH i2c: E2 FD 00 3D 00 00 03 0B 00 F6 03 01 00 01 F7 03 02 00 A2 6E EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 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 90 00 8C [13:12:26]RAPDU: 03 0B 00 F6 03 01 00 01 F7 03 02 00 A2 6E EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 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 90 00 [13:12:26]wFMCommunicate OK [13:12:26]wFMCommunicate request_size=4 [13:12:26]MH_SAM_APDU [13:12:26]CAPDU: 80 17 00 00 [13:12:26]Write to MH i2c: E2 08 00 3E 00 80 17 00 00 00 00 00 00 BE [13:12:26]Write i2c OK [13:12:26]MH_I2C_Read... [13:12:26]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [13:12:26]Read from MH i2c: E2 [13:12:26]MH_I2C_Read... [13:12:26]Read from MH i2c: E2 FD 00 [13:12:26]MH_I2C_Read... [13:12:26]Read from MH i2c: E2 FD 00 3E 00 00 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 90 00 E6 [13:12:26]RAPDU: 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 90 00 [13:12:26]wFMCommunicate OK [13:12:26]wFMCommunicate request_size=4 [13:12:26]MH_SAM_APDU [13:12:26]CAPDU: 80 17 00 00 [13:12:26]Write to MH i2c: E2 08 00 3F 00 80 17 00 00 00 00 00 00 BF [13:12:26]Write i2c OK [13:12:26]MH_I2C_Read... [13:12:26]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [13:12:26]Read from MH i2c: E2 [13:12:26]MH_I2C_Read... [13:12:26]Read from MH i2c: E2 FD 00 [13:12:26]MH_I2C_Read... [13:12:26]Read from MH i2c: E2 FD 00 3F 00 00 EF 03 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 90 00 37 [13:12:27]RAPDU: EF 03 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 90 00 [13:12:27]wFMCommunicate OK [13:12:27]wFMCommunicate request_size=4 [13:12:27]MH_SAM_APDU [13:12:27]CAPDU: 80 17 00 00 [13:12:27]Write to MH i2c: E2 08 00 40 00 80 17 00 00 00 00 00 00 C0 [13:12:27]Write i2c OK [13:12:27]MH_I2C_Read... [13:12:27]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 211! [13:12:27]Read from MH i2c: E2 [13:12:27]MH_I2C_Read... [13:12:27]Read from MH i2c: E2 D6 00 [13:12:27]MH_I2C_Read... [13:12:27]Read from MH i2c: E2 D6 00 40 00 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 A2 [13:12:27]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 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [13:12:27]wFMCommunicate OK [13:12:27]SAM_PROTO_GetShiftData done [13:12:27]requested_item shift.sale.total_cash is exist - process it [13:12:27]requested_item shift.sale_refund.total is exist - process it [13:12:27]requested_item shift.sale_refund.total_cash is exist - process it [13:12:27]requested_item shift.buy.total is exist - process it [13:12:27]requested_item shift.buy.total_cash is exist - process it [13:12:27]produce_requested_data done [13:12:27]produce_requested_data return {"fm.sale.total":64989993.33,"fm.sale_refund.total":2683947.00,"fm.buy.total":0.00,"shift.sale.total":56733.00,"shift.sale.total_cash":53266.00,"shift.sale_refund.total":32004.00,"shift.sale_refund.total_cash":32004.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [13:12:27]process_action_free get_value [13:12:27]json_value_free [13:12:27]json_value_free done [13:12:27]process_json_proto returns [13:12:27]Send response to host [13:12:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":64989993.33,"fm.sale_refund.total":2683947.00,"fm.buy.total":0.00,"shift.sale.total":56733.00,"shift.sale.total_cash":53266.00,"shift.sale_refund.total":32004.00,"shift.sale_refund.total_cash":32004.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [13:12:27]free response buf [13:12:27]execute_script done [13:12:27]execute_script returns [13:12:27]free content buf [13:12:27]Sock 5.Close socket [13:12:27]Sock 5.Thread stoped [13:12:27]accept exits with 9 [13:12:27]New connection [13:12:27]New thread 3066690916 created [13:12:27]Thread 3066834276 joined [13:12:27]Waiting for new connection... [13:12:27] Sock 9.Parse request [13:12:27]Sock 9.Check first char [13:12:27]Sock 9.First char is OK [13:12:27]request: POST /json_proto HTTP/1.0 [13:12:27]Method: POST [13:12:27]URL: /json_proto [13:12:27]Method is POST - this is cgi request [13:12:27]url: /json_proto [13:12:27]query_string will be loaded in cgi processing [13:12:27]execute_cgi json_proto POST (null) [13:12:27]execute_cgi path=json_proto method=POST [13:12:27]POST find Content-Length [13:12:27]Host: 172.17.41.136:8080 [13:12:27]Content-Length: 251 [13:12:27]Content-Type: application/json [13:12:27] [13:12:27]POST finish read [13:12:27]Found Content-Length = 251 [13:12:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "x_report", "params" : { "operator" : "\u0416\u0430\u043A\u044B\u043F\u043E\u0432 \u0410. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:12:27]execute_script... [13:12:27]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "x_report", "params" : { "operator" : "\u0416\u0430\u043A\u044B\u043F\u043E\u0432 \u0410. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:12:27]POST & json_proto [13:12:27]process_json_proto [13:12:27]json parsed OK: [13:12:27]protocol is kg_v1.0 [13:12:27]action value=x_report [13:12:27]process_action x_report [13:12:27]cmd_x_report [13:12:27]MH_GetDate [13:12:27]Write to MH i2c: F0 00 00 41 00 30 [13:12:27]Write i2c OK [13:12:27]MH_I2C_Read... [13:12:27]Read from MH i2c: F0 [13:12:27]MH_I2C_Read... [13:12:27]Read from MH i2c: F0 09 00 [13:12:27]MH_I2C_Read... [13:12:27]Read from MH i2c: F0 09 00 41 00 00 3B 0C F4 66 1B D0 5A 64 83 [13:12:27]GetLastDocTimeStamp 1727269363 [13:12:27]current date 1727269947 [13:12:27]FM_GetShiftState [13:12:27]SAM_PROTO_GetShiftState [13:12:27]wFMCommunicate request_size=4 [13:12:27]MH_SAM_APDU [13:12:27]CAPDU: 80 13 01 00 [13:12:27]Write to MH i2c: E2 08 00 42 00 80 13 01 00 00 00 00 00 BF [13:12:27]Write i2c OK [13:12:27]MH_I2C_Read... [13:12:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:12:27]Read from MH i2c: E2 [13:12:27]MH_I2C_Read... [13:12:27]Read from MH i2c: E2 0E 00 [13:12:27]MH_I2C_Read... [13:12:27]Read from MH i2c: E2 0E 00 42 00 00 09 00 01 63 60 F3 66 00 00 00 00 90 00 E7 [13:12:27]RAPDU: 09 00 01 63 60 F3 66 00 00 00 00 90 00 [13:12:27]wFMCommunicate OK [13:12:27]SAM_PROTO_GetShiftState done [13:12:27]FM_GetShiftState done [13:12:27]KKMCreateXReportDocument [13:12:27]Load OK [13:12:27]Malloc new data [13:12:27]MH_GetDate [13:12:27]Write to MH i2c: F0 00 00 43 00 32 [13:12:27]Write i2c OK [13:12:27]MH_I2C_Read... [13:12:27]Read from MH i2c: F0 [13:12:27]MH_I2C_Read... [13:12:27]Read from MH i2c: F0 09 00 [13:12:27]MH_I2C_Read... [13:12:27]Read from MH i2c: F0 09 00 43 00 00 3C 0C F4 66 1B D0 5A 64 86 [13:12:27]Malloc new data [13:12:27]Malloc new data [13:12:27]wFMCommunicate request_size=4 [13:12:27]MH_SAM_APDU [13:12:27]CAPDU: 80 11 00 00 [13:12:27]Write to MH i2c: E2 08 00 44 00 80 11 00 00 00 00 00 00 BE [13:12:27]Write i2c OK [13:12:27]MH_I2C_Read... [13:12:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:12:27]Read from MH i2c: E2 [13:12:27]MH_I2C_Read... [13:12:27]Read from MH i2c: E2 17 00 [13:12:27]MH_I2C_Read... [13:12:27]Read from MH i2c: E2 17 00 44 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 0C [13:12:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [13:12:27]wFMCommunicate OK [13:12:27]SAM_PROTO_GetFieldsCounters [13:12:27]wFMCommunicate request_size=4 [13:12:27]MH_SAM_APDU [13:12:27]CAPDU: 80 13 00 00 [13:12:27]Write to MH i2c: E2 08 00 45 00 80 13 00 00 00 00 00 00 C1 [13:12:27]Write i2c OK [13:12:27]MH_I2C_Read... [13:12:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:12:27]Read from MH i2c: E2 [13:12:27]MH_I2C_Read... [13:12:27]Read from MH i2c: E2 62 00 [13:12:27]MH_I2C_Read... [13:12:27]Read from MH i2c: E2 62 00 45 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 FF C5 01 00 0E 04 04 00 DA 01 00 00 12 04 04 00 4F 00 00 00 5E 04 04 00 4F 00 00 00 57 04 04 00 50 00 00 00 19 04 04 00 00 00 00 00 90 00 67 [13:12:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 FF C5 01 00 0E 04 04 00 DA 01 00 00 12 04 04 00 4F 00 00 00 5E 04 04 00 4F 00 00 00 57 04 04 00 50 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:12:27]wFMCommunicate OK [13:12:27]SAM_PROTO_GetFieldsCounters done [13:12:27]Malloc new data [13:12:27]Malloc new data [13:12:27]Malloc new data [13:12:27]KKMCreateXReportDocument OK [13:12:27]KKMSetXReportData OK [13:12:27]KKMPrepareXReportFMData [13:12:27]SAM_PROTO_GetShiftData [13:12:27]wFMCommunicate request_size=4 [13:12:27]MH_SAM_APDU [13:12:27]CAPDU: 80 13 02 00 [13:12:27]Write to MH i2c: E2 08 00 46 00 80 13 02 00 00 00 00 00 C4 [13:12:27]Write i2c OK [13:12:27]MH_I2C_Read... [13:12:28]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [13:12:28]Read from MH i2c: E2 [13:12:28]MH_I2C_Read... [13:12:28]Read from MH i2c: E2 FD 00 [13:12:28]MH_I2C_Read... [13:12:28]Read from MH i2c: E2 FD 00 46 00 00 B9 04 AA 04 B5 04 6E 04 04 00 4F 00 00 00 69 04 9B 00 6F 04 04 00 4D 00 00 00 B1 04 03 00 54 91 56 70 04 03 00 08 47 51 72 04 03 00 4C 4A 05 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 70 31 09 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 10 C4 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 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 02 00 00 00 B1 04 03 00 90 D5 30 70 04 03 00 90 D5 30 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 99 2F 05 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 42 [13:12:28]RAPDU: B9 04 AA 04 B5 04 6E 04 04 00 4F 00 00 00 69 04 9B 00 6F 04 04 00 4D 00 00 00 B1 04 03 00 54 91 56 70 04 03 00 08 47 51 72 04 03 00 4C 4A 05 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 70 31 09 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 10 C4 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 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 02 00 00 00 B1 04 03 00 90 D5 30 70 04 03 00 90 D5 30 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 99 2F 05 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 [13:12:28]wFMCommunicate OK [13:12:28]wFMCommunicate request_size=4 [13:12:28]MH_SAM_APDU [13:12:28]CAPDU: 80 17 00 00 [13:12:28]Write to MH i2c: E2 08 00 47 00 80 17 00 00 00 00 00 00 C7 [13:12:28]Write i2c OK [13:12:28]MH_I2C_Read... [13:12:28]OFD Sender: No OFD packet to send [13:12:29]Read from MH i2c: E2 [13:12:29]MH_I2C_Read... [13:12:29]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [13:12:29]Read from MH i2c: E2 FD 00 [13:12:29]MH_I2C_Read... [13:12:29]Read from MH i2c: E2 FD 00 47 00 00 03 0B 00 F6 03 01 00 01 F7 03 02 00 A2 6E EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 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 90 00 96 [13:12:29]RAPDU: 03 0B 00 F6 03 01 00 01 F7 03 02 00 A2 6E EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 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 90 00 [13:12:29]wFMCommunicate OK [13:12:29]wFMCommunicate request_size=4 [13:12:29]MH_SAM_APDU [13:12:29]CAPDU: 80 17 00 00 [13:12:29]Write to MH i2c: E2 08 00 48 00 80 17 00 00 00 00 00 00 C8 [13:12:29]Write i2c OK [13:12:29]MH_I2C_Read... [13:12:29]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [13:12:29]Read from MH i2c: E2 [13:12:29]MH_I2C_Read... [13:12:29]Read from MH i2c: E2 FD 00 [13:12:29]MH_I2C_Read... [13:12:29]Read from MH i2c: E2 FD 00 48 00 00 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 90 00 F0 [13:12:29]RAPDU: 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 90 00 [13:12:29]wFMCommunicate OK [13:12:29]wFMCommunicate request_size=4 [13:12:29]MH_SAM_APDU [13:12:29]CAPDU: 80 17 00 00 [13:12:29]Write to MH i2c: E2 08 00 49 00 80 17 00 00 00 00 00 00 C9 [13:12:29]Write i2c OK [13:12:29]MH_I2C_Read... [13:12:29]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [13:12:29]Read from MH i2c: E2 [13:12:29]MH_I2C_Read... [13:12:29]Read from MH i2c: E2 FD 00 [13:12:29]MH_I2C_Read... [13:12:29]Read from MH i2c: E2 FD 00 49 00 00 EF 03 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 90 00 41 [13:12:29]RAPDU: EF 03 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 90 00 [13:12:30]wFMCommunicate OK [13:12:30]wFMCommunicate request_size=4 [13:12:30]MH_SAM_APDU [13:12:30]CAPDU: 80 17 00 00 [13:12:30]Write to MH i2c: E2 08 00 4A 00 80 17 00 00 00 00 00 00 CA [13:12:30]Write i2c OK [13:12:30]MH_I2C_Read... [13:12:30]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 211! [13:12:30]Read from MH i2c: E2 [13:12:30]MH_I2C_Read... [13:12:30]Read from MH i2c: E2 D6 00 [13:12:30]MH_I2C_Read... [13:12:30]Read from MH i2c: E2 D6 00 4A 00 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 AC [13:12:30]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 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [13:12:30]wFMCommunicate OK [13:12:30]SAM_PROTO_GetShiftData done [13:12:30]1194 (1205) - счетчики итогов смены [13:12:30] 1134 (4) - 79 - количество чеков со всеми признаками расчетов [13:12:30] 1129 (155) - счетчики операций «приход» [13:12:30] 1135 (4) - 77 - количество чеков по признаку расчетов [13:12:30] 1201 (3) - 56733.00 - общая итоговая сумма в чеках [13:12:30] 1136 (3) - 53266.00 - итоговая сумма в чеках наличными [13:12:30] 1138 (3) - 3467.00 - итоговая сумма в чеках безналичными [13:12:30] 1024 (122) - суммы налогов [13:12:30] 1006 (9) - суммы НДС [13:12:30] 1010 (1) - 0% - код ставки НДС [13:12:30] 1011 (0) - 0.00 - сумма НДС по ставке [13:12:30] 1006 (12) - суммы НДС [13:12:30] 1010 (1) - 12% - код ставки НДС [13:12:30] 1011 (3) - 6024.80 - сумма НДС по ставке [13:12:30] 1007 (9) - суммы НСП [13:12:30] 1014 (1) - 0% - код ставки НСП [13:12:30] 1015 (0) - 0.00 - сумма НСП по ставке [13:12:30] 1007 (11) - суммы НСП [13:12:30] 1014 (1) - 1% - код ставки НСП [13:12:30] 1015 (2) - 501.92 - сумма НСП по ставке [13:12:30] 1007 (9) - суммы НСП [13:12:30] 1014 (1) - 2% - код ставки НСП [13:12:30] 1015 (0) - 0.00 - сумма НСП по ставке [13:12:30] 1007 (9) - суммы НСП [13:12:30] 1014 (1) - 3% - код ставки НСП [13:12:30] 1015 (0) - 0.00 - сумма НСП по ставке [13:12:30] 1007 (9) - суммы НСП [13:12:30] 1014 (1) - 5% - код ставки НСП [13:12:30] 1015 (0) - 0.00 - сумма НСП по ставке [13:12:30] 1007 (9) - суммы НСП [13:12:30] 1014 (1) - 0,50% - код ставки НСП [13:12:30] 1015 (0) - 0.00 - сумма НСП по ставке [13:12:30] 1007 (9) - суммы НСП [13:12:30] 1014 (1) - 1,50% - код ставки НСП [13:12:30] 1015 (0) - 0.00 - сумма НСП по ставке [13:12:30] 1130 (152) - счетчики операций «возврат прихода» [13:12:30] 1135 (4) - 2 - количество чеков по признаку расчетов [13:12:30] 1201 (3) - 32004.00 - общая итоговая сумма в чеках [13:12:30] 1136 (3) - 32004.00 - итоговая сумма в чеках наличными [13:12:30] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [13:12:30] 1024 (122) - суммы налогов [13:12:30] 1006 (9) - суммы НДС [13:12:30] 1010 (1) - 0% - код ставки НДС [13:12:30] 1011 (0) - 0.00 - сумма НДС по ставке [13:12:30] 1006 (12) - суммы НДС [13:12:30] 1010 (1) - 12% - код ставки НДС [13:12:30] 1011 (3) - 3398.65 - сумма НДС по ставке [13:12:30] 1007 (9) - суммы НСП [13:12:30] 1014 (1) - 0% - код ставки НСП [13:12:30] 1015 (0) - 0.00 - сумма НСП по ставке [13:12:30] 1007 (11) - суммы НСП [13:12:30] 1014 (1) - 1% - код ставки НСП [13:12:30] 1015 (2) - 283.22 - сумма НСП по ставке [13:12:30] 1007 (9) - суммы НСП [13:12:30] 1014 (1) - 2% - код ставки НСП [13:12:30] 1015 (0) - 0.00 - сумма НСП по ставке [13:12:30] 1007 (9) - суммы НСП [13:12:30] 1014 (1) - 3% - код ставки НСП [13:12:30] 1015 (0) - 0.00 - сумма НСП по ставке [13:12:30] 1007 (9) - суммы НСП [13:12:30] 1014 (1) - 5% - код ставки НСП [13:12:30] 1015 (0) - 0.00 - сумма НСП по ставке [13:12:30] 1007 (9) - суммы НСП [13:12:30] 1014 (1) - 0,50% - код ставки НСП [13:12:30] 1015 (0) - 0.00 - сумма НСП по ставке [13:12:30] 1007 (9) - суммы НСП [13:12:30] 1014 (1) - 1,50% - код ставки НСП [13:12:30] 1015 (0) - 0.00 - сумма НСП по ставке [13:12:30] 1131 (141) - счетчики операций «расход» [13:12:30] 1135 (4) - 0 - количество чеков по признаку расчетов [13:12:30] 1201 (0) - 0.00 - общая итоговая сумма в чеках [13:12:30] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [13:12:30] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [13:12:30] 1024 (117) - суммы налогов [13:12:30] 1006 (9) - суммы НДС [13:12:30] 1010 (1) - 0% - код ставки НДС [13:12:30] 1011 (0) - 0.00 - сумма НДС по ставке [13:12:30] 1006 (9) - суммы НДС [13:12:30] 1010 (1) - 12% - код ставки НДС [13:12:30] 1011 (0) - 0.00 - сумма НДС по ставке [13:12:30] 1007 (9) - суммы НСП [13:12:30] 1014 (1) - 0% - код ставки НСП [13:12:30] 1015 (0) - 0.00 - сумма НСП по ставке [13:12:30] 1007 (9) - суммы НСП [13:12:30] 1014 (1) - 1% - код ставки НСП [13:12:30] 1015 (0) - 0.00 - сумма НСП по ставке [13:12:30] 1007 (9) - суммы НСП [13:12:30] 1014 (1) - 2% - код ставки НСП [13:12:30] 1015 (0) - 0.00 - сумма НСП по ставке [13:12:30] 1007 (9) - суммы НСП [13:12:30] 1014 (1) - 3% - код ставки НСП [13:12:30] 1015 (0) - 0.00 - сумма НСП по ставке [13:12:30] 1007 (9) - суммы НСП [13:12:30] 1014 (1) - 5% - код ставки НСП [13:12:30] 1015 (0) - 0.00 - сумма НСП по ставке [13:12:30] 1007 (9) - суммы НСП [13:12:30] 1014 (1) - 0,50% - код ставки НСП [13:12:30] 1015 (0) - 0.00 - сумма НСП по ставке [13:12:30] 1007 (9) - суммы НСП [13:12:30] 1014 (1) - 1,50% - код ставки НСП [13:12:30] 1015 (0) - 0.00 - сумма НСП по ставке [13:12:30] 1132 (141) - счетчики операций «возврат расхода» [13:12:30] 1135 (4) - 0 - количество чеков по признаку расчетов [13:12:30] 1201 (0) - 0.00 - общая итоговая сумма в чеках [13:12:30] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [13:12:30] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [13:12:30] 1024 (117) - суммы налогов [13:12:30] 1006 (9) - суммы НДС [13:12:30] 1010 (1) - 0% - код ставки НДС [13:12:30] 1011 (0) - 0.00 - сумма НДС по ставке [13:12:30] 1006 (9) - суммы НДС [13:12:30] 1010 (1) - 12% - код ставки НДС [13:12:30] 1011 (0) - 0.00 - сумма НДС по ставке [13:12:30] 1007 (9) - суммы НСП [13:12:30] 1014 (1) - 0% - код ставки НСП [13:12:30] 1015 (0) - 0.00 - сумма НСП по ставке [13:12:30] 1007 (9) - суммы НСП [13:12:30] 1014 (1) - 1% - код ставки НСП [13:12:30] 1015 (0) - 0.00 - сумма НСП по ставке [13:12:30] 1007 (9) - суммы НСП [13:12:30] 1014 (1) - 2% - код ставки НСП [13:12:30] 1015 (0) - 0.00 - сумма НСП по ставке [13:12:30] 1007 (9) - суммы НСП [13:12:30] 1014 (1) - 3% - код ставки НСП [13:12:30] 1015 (0) - 0.00 - сумма НСП по ставке [13:12:30] 1007 (9) - суммы НСП [13:12:30] 1014 (1) - 5% - код ставки НСП [13:12:30] 1015 (0) - 0.00 - сумма НСП по ставке [13:12:30] 1007 (9) - суммы НСП [13:12:30] 1014 (1) - 0,50% - код ставки НСП [13:12:30] 1015 (0) - 0.00 - сумма НСП по ставке [13:12:30] 1007 (9) - суммы НСП [13:12:30] 1014 (1) - 1,50% - код ставки НСП [13:12:30] 1015 (0) - 0.00 - сумма НСП по ставке [13:12:30] 1133 (588) - - счетчики коррекции - не используются [13:12:31]SetTLVBufToDocument [13:12:31]Processing tag 1194 (04AA) [13:12:31]Load OK [13:12:31]SetTLVBufToDocument [13:12:31]Processing tag 1134 (046E) [13:12:31]Malloc new data [13:12:31]Processing tag 1129 (0469) [13:12:31]Load OK [13:12:31]SetTLVBufToDocument [13:12:31]Processing tag 1135 (046F) [13:12:31]Malloc new data [13:12:31]Processing tag 1201 (04B1) [13:12:31]Malloc new data [13:12:31]Processing tag 1136 (0470) [13:12:31]Malloc new data [13:12:31]Processing tag 1138 (0472) [13:12:31]Malloc new data [13:12:31]Processing tag 1024 (0400) [13:12:31]Load OK [13:12:31]SetTLVBufToDocument [13:12:31]Processing tag 1006 (03EE) [13:12:31]Load OK [13:12:31]SetTLVBufToDocument [13:12:31]Processing tag 1010 (03F2) [13:12:31]Malloc new data [13:12:31]Processing tag 1011 (03F3) [13:12:31]Malloc new data [13:12:31]SetTLVBufToDocument err=0 [13:12:31]Processing tag 1006 (03EE) [13:12:31]Load OK [13:12:31]SetTLVBufToDocument [13:12:31]Processing tag 1010 (03F2) [13:12:31]Malloc new data [13:12:31]Processing tag 1011 (03F3) [13:12:31]Malloc new data [13:12:31]SetTLVBufToDocument err=0 [13:12:31]Processing tag 1007 (03EF) [13:12:31]Load OK [13:12:31]SetTLVBufToDocument [13:12:31]Processing tag 1014 (03F6) [13:12:31]Malloc new data [13:12:31]Processing tag 1015 (03F7) [13:12:31]Malloc new data [13:12:31]SetTLVBufToDocument err=0 [13:12:31]Processing tag 1007 (03EF) [13:12:31]Load OK [13:12:31]SetTLVBufToDocument [13:12:31]Processing tag 1014 (03F6) [13:12:31]Malloc new data [13:12:31]Processing tag 1015 (03F7) [13:12:31]Malloc new data [13:12:31]SetTLVBufToDocument err=0 [13:12:31]Processing tag 1007 (03EF) [13:12:31]Load OK [13:12:31]SetTLVBufToDocument [13:12:31]Processing tag 1014 (03F6) [13:12:31]Malloc new data [13:12:31]Processing tag 1015 (03F7) [13:12:31]Malloc new data [13:12:31]SetTLVBufToDocument err=0 [13:12:31]Processing tag 1007 (03EF) [13:12:31]Load OK [13:12:31]SetTLVBufToDocument [13:12:31]Processing tag 1014 (03F6) [13:12:31]Malloc new data [13:12:31]Processing tag 1015 (03F7) [13:12:31]Malloc new data [13:12:31]SetTLVBufToDocument err=0 [13:12:31]Processing tag 1007 (03EF) [13:12:31]Load OK [13:12:31]SetTLVBufToDocument [13:12:31]Processing tag 1014 (03F6) [13:12:31]Malloc new data [13:12:31]Processing tag 1015 (03F7) [13:12:31]Malloc new data [13:12:31]SetTLVBufToDocument err=0 [13:12:31]Processing tag 1007 (03EF) [13:12:31]Load OK [13:12:31]SetTLVBufToDocument [13:12:31]Processing tag 1014 (03F6) [13:12:31]Malloc new data [13:12:31]Processing tag 1015 (03F7) [13:12:31]Malloc new data [13:12:31]SetTLVBufToDocument err=0 [13:12:31]Processing tag 1007 (03EF) [13:12:31]Load OK [13:12:31]SetTLVBufToDocument [13:12:31]Processing tag 1014 (03F6) [13:12:31]Malloc new data [13:12:31]Processing tag 1015 (03F7) [13:12:31]Malloc new data [13:12:31]SetTLVBufToDocument err=0 [13:12:31]SetTLVBufToDocument err=0 [13:12:31]SetTLVBufToDocument err=0 [13:12:31]Processing tag 1130 (046A) [13:12:31]Load OK [13:12:31]SetTLVBufToDocument [13:12:31]Processing tag 1135 (046F) [13:12:31]Malloc new data [13:12:31]Processing tag 1201 (04B1) [13:12:31]Malloc new data [13:12:31]Processing tag 1136 (0470) [13:12:31]Malloc new data [13:12:31]Processing tag 1138 (0472) [13:12:31]Malloc new data [13:12:31]Processing tag 1024 (0400) [13:12:31]Load OK [13:12:31]SetTLVBufToDocument [13:12:31]Processing tag 1006 (03EE) [13:12:31]Load OK [13:12:31]SetTLVBufToDocument [13:12:31]Processing tag 1010 (03F2) [13:12:31]Malloc new data [13:12:31]Processing tag 1011 (03F3) [13:12:31]Malloc new data [13:12:31]SetTLVBufToDocument err=0 [13:12:31]Processing tag 1006 (03EE) [13:12:31]Load OK [13:12:31]SetTLVBufToDocument [13:12:31]Processing tag 1010 (03F2) [13:12:31]Malloc new data [13:12:31]Processing tag 1011 (03F3) [13:12:31]Malloc new data [13:12:31]SetTLVBufToDocument err=0 [13:12:31]Processing tag 1007 (03EF) [13:12:31]Load OK [13:12:31]SetTLVBufToDocument [13:12:31]Processing tag 1014 (03F6) [13:12:31]Malloc new data [13:12:31]Processing tag 1015 (03F7) [13:12:31]Malloc new data [13:12:31]SetTLVBufToDocument err=0 [13:12:31]Processing tag 1007 (03EF) [13:12:31]Load OK [13:12:31]SetTLVBufToDocument [13:12:31]Processing tag 1014 (03F6) [13:12:31]Malloc new data [13:12:31]Processing tag 1015 (03F7) [13:12:31]Malloc new data [13:12:31]SetTLVBufToDocument err=0 [13:12:31]Processing tag 1007 (03EF) [13:12:31]Load OK [13:12:31]SetTLVBufToDocument [13:12:31]Processing tag 1014 (03F6) [13:12:31]Malloc new data [13:12:31]Processing tag 1015 (03F7) [13:12:31]Malloc new data [13:12:31]SetTLVBufToDocument err=0 [13:12:31]Processing tag 1007 (03EF) [13:12:31]Load OK [13:12:31]SetTLVBufToDocument [13:12:31]Processing tag 1014 (03F6) [13:12:31]Malloc new data [13:12:31]Processing tag 1015 (03F7) [13:12:31]Malloc new data [13:12:31]SetTLVBufToDocument err=0 [13:12:31]Processing tag 1007 (03EF) [13:12:31]Load OK [13:12:31]SetTLVBufToDocument [13:12:31]Processing tag 1014 (03F6) [13:12:31]Malloc new data [13:12:31]Processing tag 1015 (03F7) [13:12:31]Malloc new data [13:12:31]SetTLVBufToDocument err=0 [13:12:31]Processing tag 1007 (03EF) [13:12:31]Load OK [13:12:31]SetTLVBufToDocument [13:12:31]Processing tag 1014 (03F6) [13:12:31]Malloc new data [13:12:31]Processing tag 1015 (03F7) [13:12:31]Malloc new data [13:12:31]SetTLVBufToDocument err=0 [13:12:31]Processing tag 1007 (03EF) [13:12:31]Load OK [13:12:31]SetTLVBufToDocument [13:12:31]Processing tag 1014 (03F6) [13:12:31]Malloc new data [13:12:31]Processing tag 1015 (03F7) [13:12:31]Malloc new data [13:12:31]SetTLVBufToDocument err=0 [13:12:31]SetTLVBufToDocument err=0 [13:12:31]SetTLVBufToDocument err=0 [13:12:31]Processing tag 1131 (046B) [13:12:31]Load OK [13:12:31]SetTLVBufToDocument [13:12:31]Processing tag 1135 (046F) [13:12:31]Malloc new data [13:12:31]Processing tag 1201 (04B1) [13:12:31]Malloc new data [13:12:31]Processing tag 1136 (0470) [13:12:31]Malloc new data [13:12:31]Processing tag 1138 (0472) [13:12:31]Malloc new data [13:12:31]Processing tag 1024 (0400) [13:12:31]Load OK [13:12:31]SetTLVBufToDocument [13:12:31]Processing tag 1006 (03EE) [13:12:31]Load OK [13:12:31]SetTLVBufToDocument [13:12:31]Processing tag 1010 (03F2) [13:12:31]Malloc new data [13:12:31]Processing tag 1011 (03F3) [13:12:31]Malloc new data [13:12:31]SetTLVBufToDocument err=0 [13:12:31]Processing tag 1006 (03EE) [13:12:31]Load OK [13:12:31]SetTLVBufToDocument [13:12:31]Processing tag 1010 (03F2) [13:12:31]Malloc new data [13:12:31]Processing tag 1011 (03F3) [13:12:31]Malloc new data [13:12:31]SetTLVBufToDocument err=0 [13:12:31]Processing tag 1007 (03EF) [13:12:31]Load OK [13:12:31]SetTLVBufToDocument [13:12:31]Processing tag 1014 (03F6) [13:12:31]Malloc new data [13:12:31]Processing tag 1015 (03F7) [13:12:31]Malloc new data [13:12:31]SetTLVBufToDocument err=0 [13:12:31]Processing tag 1007 (03EF) [13:12:31]Load OK [13:12:31]SetTLVBufToDocument [13:12:31]Processing tag 1014 (03F6) [13:12:31]Malloc new data [13:12:31]Processing tag 1015 (03F7) [13:12:31]Malloc new data [13:12:31]SetTLVBufToDocument err=0 [13:12:31]Processing tag 1007 (03EF) [13:12:31]Load OK [13:12:31]SetTLVBufToDocument [13:12:31]Processing tag 1014 (03F6) [13:12:31]Malloc new data [13:12:31]Processing tag 1015 (03F7) [13:12:31]Malloc new data [13:12:31]SetTLVBufToDocument err=0 [13:12:31]Processing tag 1007 (03EF) [13:12:31]Load OK [13:12:31]SetTLVBufToDocument [13:12:31]Processing tag 1014 (03F6) [13:12:31]Malloc new data [13:12:31]Processing tag 1015 (03F7) [13:12:31]Malloc new data [13:12:31]SetTLVBufToDocument err=0 [13:12:31]Processing tag 1007 (03EF) [13:12:31]Load OK [13:12:31]SetTLVBufToDocument [13:12:31]Processing tag 1014 (03F6) [13:12:31]Malloc new data [13:12:31]Processing tag 1015 (03F7) [13:12:31]Malloc new data [13:12:31]SetTLVBufToDocument err=0 [13:12:31]Processing tag 1007 (03EF) [13:12:31]Load OK [13:12:31]SetTLVBufToDocument [13:12:31]Processing tag 1014 (03F6) [13:12:31]Malloc new data [13:12:31]Processing tag 1015 (03F7) [13:12:31]Malloc new data [13:12:31]SetTLVBufToDocument err=0 [13:12:31]Processing tag 1007 (03EF) [13:12:31]Load OK [13:12:31]SetTLVBufToDocument [13:12:31]Processing tag 1014 (03F6) [13:12:31]Malloc new data [13:12:31]Processing tag 1015 (03F7) [13:12:31]Malloc new data [13:12:31]SetTLVBufToDocument err=0 [13:12:31]SetTLVBufToDocument err=0 [13:12:31]SetTLVBufToDocument err=0 [13:12:31]Processing tag 1132 (046C) [13:12:31]Load OK [13:12:31]SetTLVBufToDocument [13:12:31]Processing tag 1135 (046F) [13:12:31]Malloc new data [13:12:31]Processing tag 1201 (04B1) [13:12:31]Malloc new data [13:12:31]Processing tag 1136 (0470) [13:12:31]Malloc new data [13:12:31]Processing tag 1138 (0472) [13:12:31]Malloc new data [13:12:31]Processing tag 1024 (0400) [13:12:31]Load OK [13:12:31]SetTLVBufToDocument [13:12:31]Processing tag 1006 (03EE) [13:12:31]Load OK [13:12:31]SetTLVBufToDocument [13:12:31]Processing tag 1010 (03F2) [13:12:31]Malloc new data [13:12:31]Processing tag 1011 (03F3) [13:12:31]Malloc new data [13:12:31]SetTLVBufToDocument err=0 [13:12:31]Processing tag 1006 (03EE) [13:12:31]Load OK [13:12:31]SetTLVBufToDocument [13:12:31]Processing tag 1010 (03F2) [13:12:31]Malloc new data [13:12:31]Processing tag 1011 (03F3) [13:12:31]Malloc new data [13:12:31]SetTLVBufToDocument err=0 [13:12:31]Processing tag 1007 (03EF) [13:12:31]Load OK [13:12:31]SetTLVBufToDocument [13:12:31]Processing tag 1014 (03F6) [13:12:31]Malloc new data [13:12:31]Processing tag 1015 (03F7) [13:12:31]Malloc new data [13:12:31]SetTLVBufToDocument err=0 [13:12:31]Processing tag 1007 (03EF) [13:12:31]Load OK [13:12:31]SetTLVBufToDocument [13:12:31]Processing tag 1014 (03F6) [13:12:31]Malloc new data [13:12:31]Processing tag 1015 (03F7) [13:12:31]Malloc new data [13:12:31]SetTLVBufToDocument err=0 [13:12:31]Processing tag 1007 (03EF) [13:12:31]Load OK [13:12:31]SetTLVBufToDocument [13:12:31]Processing tag 1014 (03F6) [13:12:31]Malloc new data [13:12:31]Processing tag 1015 (03F7) [13:12:31]Malloc new data [13:12:31]SetTLVBufToDocument err=0 [13:12:31]Processing tag 1007 (03EF) [13:12:31]Load OK [13:12:31]SetTLVBufToDocument [13:12:31]Processing tag 1014 (03F6) [13:12:31]Malloc new data [13:12:31]Processing tag 1015 (03F7) [13:12:31]Malloc new data [13:12:31]SetTLVBufToDocument err=0 [13:12:31]Processing tag 1007 (03EF) [13:12:31]Load OK [13:12:31]SetTLVBufToDocument [13:12:31]Processing tag 1014 (03F6) [13:12:31]Malloc new data [13:12:31]Processing tag 1015 (03F7) [13:12:31]Malloc new data [13:12:31]SetTLVBufToDocument err=0 [13:12:31]Processing tag 1007 (03EF) [13:12:31]Load OK [13:12:31]SetTLVBufToDocument [13:12:31]Processing tag 1014 (03F6) [13:12:31]Malloc new data [13:12:31]Processing tag 1015 (03F7) [13:12:31]Malloc new data [13:12:31]SetTLVBufToDocument err=0 [13:12:31]Processing tag 1007 (03EF) [13:12:31]Load OK [13:12:31]SetTLVBufToDocument [13:12:31]Processing tag 1014 (03F6) [13:12:31]Malloc new data [13:12:31]Processing tag 1015 (03F7) [13:12:31]Malloc new data [13:12:31]SetTLVBufToDocument err=0 [13:12:31]SetTLVBufToDocument err=0 [13:12:31]SetTLVBufToDocument err=0 [13:12:31]Processing tag 1133 (046D) [13:12:31]Malloc new data [13:12:31]SetTLVBufToDocument err=0 [13:12:31]SetTLVBufToDocument err=0 [13:12:31]Malloc new data [13:12:31]SAM_PROTO_GetFMData [13:12:31]wFMCommunicate request_size=4 [13:12:31]MH_SAM_APDU [13:12:31]CAPDU: 80 13 03 00 [13:12:31]Write to MH i2c: E2 08 00 4B 00 80 13 03 00 00 00 00 00 CA [13:12:31]Write i2c OK [13:12:31]MH_I2C_Read... [13:12:31]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [13:12:31]Read from MH i2c: E2 [13:12:31]MH_I2C_Read... [13:12:31]Read from MH i2c: E2 FD 00 [13:12:31]MH_I2C_Read... [13:12:32]Read from MH i2c: E2 FD 00 4B 00 00 C5 04 85 04 C1 04 6E 04 04 00 4A C2 01 00 69 04 A3 00 6F 04 04 00 CA C0 01 00 B1 04 05 00 25 DC 5E 83 01 70 04 05 00 FD 53 01 49 01 72 04 04 00 28 88 5D 3A 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 AA E1 24 29 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 C4 86 6D 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 80 01 00 00 B1 04 04 00 CC 60 FF 0F 70 04 04 00 CC 60 FF 0F 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 16 ED B2 01 EF 03 09 90 00 88 [13:12:32]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 4A C2 01 00 69 04 A3 00 6F 04 04 00 CA C0 01 00 B1 04 05 00 25 DC 5E 83 01 70 04 05 00 FD 53 01 49 01 72 04 04 00 28 88 5D 3A 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 AA E1 24 29 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 C4 86 6D 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 80 01 00 00 B1 04 04 00 CC 60 FF 0F 70 04 04 00 CC 60 FF 0F 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 16 ED B2 01 EF 03 09 90 00 [13:12:32]wFMCommunicate OK [13:12:32]wFMCommunicate request_size=4 [13:12:32]MH_SAM_APDU [13:12:32]CAPDU: 80 17 00 00 [13:12:32]Write to MH i2c: E2 08 00 4C 00 80 17 00 00 00 00 00 00 CC [13:12:32]Write i2c OK [13:12:32]MH_I2C_Read... [13:12:32]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [13:12:32]Read from MH i2c: E2 [13:12:32]MH_I2C_Read... [13:12:32]Read from MH i2c: E2 FD 00 [13:12:32]MH_I2C_Read... [13:12:32]Read from MH i2c: E2 FD 00 4C 00 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 50 3E 24 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 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 34 [13:12:32]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 50 3E 24 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 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 [13:12:32]wFMCommunicate OK [13:12:32]wFMCommunicate request_size=4 [13:12:32]MH_SAM_APDU [13:12:32]CAPDU: 80 17 00 00 [13:12:32]Write to MH i2c: E2 08 00 4D 00 80 17 00 00 00 00 00 00 CD [13:12:32]Write i2c OK [13:12:32]MH_I2C_Read... [13:12:33]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [13:12:33]Read from MH i2c: E2 [13:12:33]MH_I2C_Read... [13:12:33]Read from MH i2c: E2 FD 00 [13:12:33]MH_I2C_Read... [13:12:33]Read from MH i2c: E2 FD 00 4D 00 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 [13:12:33]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 [13:12:33]wFMCommunicate OK [13:12:33]wFMCommunicate request_size=4 [13:12:33]MH_SAM_APDU [13:12:33]CAPDU: 80 17 00 00 [13:12:33]Write to MH i2c: E2 08 00 4E 00 80 17 00 00 00 00 00 00 CE [13:12:33]Write i2c OK [13:12:33]MH_I2C_Read... [13:12:33]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [13:12:33]Read from MH i2c: E2 [13:12:33]MH_I2C_Read... [13:12:33]Read from MH i2c: E2 FD 00 [13:12:33]MH_I2C_Read... [13:12:33]Read from MH i2c: E2 FD 00 4E 00 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 [13:12:33]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 [13:12:33]wFMCommunicate OK [13:12:33]wFMCommunicate request_size=4 [13:12:33]MH_SAM_APDU [13:12:33]CAPDU: 80 17 00 00 [13:12:33]Write to MH i2c: E2 08 00 4F 00 80 17 00 00 00 00 00 00 CF [13:12:33]Write i2c OK [13:12:33]MH_I2C_Read... [13:12:33]OFD Sender: No OFD packet to send [13:12:34]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [13:12:34]Read from MH i2c: E2 [13:12:34]MH_I2C_Read... [13:12:34]Read from MH i2c: E2 E2 00 [13:12:34]MH_I2C_Read... [13:12:34]Read from MH i2c: E2 E2 00 4F 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [13:12:34]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 [13:12:34]wFMCommunicate OK [13:12:34]SAM_PROTO_GetFMData done [13:12:34]FM_GetFMData:85 04 C1 04 6E 04 04 00 4A C2 01 00 69 04 A3 00 6F 04 04 00 CA C0 01 00 B1 04 05 00 25 DC 5E 83 01 70 04 05 00 FD 53 01 49 01 72 04 04 00 28 88 5D 3A 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 AA E1 24 29 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 C4 86 6D 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 80 01 00 00 B1 04 04 00 CC 60 FF 0F 70 04 04 00 CC 60 FF 0F 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 16 ED B2 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 50 3E 24 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 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 [13:12:35]oper:6F 04 04 00 CA C0 01 00 B1 04 05 00 25 DC 5E 83 01 70 04 05 00 FD 53 01 49 01 72 04 04 00 28 88 5D 3A 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 AA E1 24 29 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 C4 86 6D 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [13:12:35]total:25 DC 5E 83 01 [13:12:35]Malloc new data [13:12:35]oper:6F 04 04 00 80 01 00 00 B1 04 04 00 CC 60 FF 0F 70 04 04 00 CC 60 FF 0F 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 16 ED B2 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 50 3E 24 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [13:12:35]total:CC 60 FF 0F [13:12:35]Malloc new data [13:12:35]oper:6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [13:12:35]total: [13:12:35]Malloc new data [13:12:35]oper:6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [13:12:35]total: [13:12:35]Malloc new data [13:12:35]KKMPrepareXReportFMData err=0 [13:12:35]Х отчет ИНН: 02508201610067 Кассир: Жакыпов А. 25.09.2024 13:12 Смена: 266 РНМ: 0000000000091831 ЗНМ: 0300000120 СНО: Общий режим Всего чеков: 79 ИТОГИ ПРИХОД Чеков: 77 Общий итог: 56733.00 Итого наличными: 53266.00 Итого безнал.: 3467.00 НДС 0% : 0.00 НДС 12% : 6024.80 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 501.92 ИТОГИ ВОЗВРАТ ПРИХОДА Чеков: 2 Общий итог: 32004.00 Итого наличными: 32004.00 Итого безнал.: 0.00 НДС 0% : 0.00 НДС 12% : 3398.65 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 283.22 ИТОГИ РАСХОД Чеков: 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 Нал. в кассе: 21262.00 НС Приход: 64989993.33 НС Возвр.Прихода: 2683947.00 НС Расход: 0.00 НС Возвр.Расхода: 0.00 ФМ: 0000000000871830 [13:12:35]StoreToDocumentArchive [13:12:35]MH_GetDate [13:12:35]Write to MH i2c: F0 00 00 50 00 3F [13:12:35]Write i2c OK [13:12:35]MH_I2C_Read... [13:12:35]Read from MH i2c: F0 [13:12:35]MH_I2C_Read... [13:12:35]Read from MH i2c: F0 09 00 [13:12:35]MH_I2C_Read... [13:12:35]Read from MH i2c: F0 09 00 50 00 00 43 0C F4 66 1B D0 5A 64 9A [13:12:35]shift 266 fd 1727269955 [13:12:35]Create dir for shift 0266 [13:12:35]save to /storage/0266/doc_1727269955 [13:12:35]save last doc name /storage/0266/doc_1727269955 to /storage/kkm_last_doc_name [13:12:35]save OK [13:12:35]Clear old archive folders... [13:12:35]NVStorageSaveData kkm_last_timestamp [13:12:35]File name is /storage/kkm_last_timestamp [13:12:35]Write 4 bytes [13:12:35]NVStorageSaveData done [13:12:35]ExternCall_PrintAddStr [13:12:35]wPrintStart [13:12:35]Write to MH i2c: 01 00 00 51 00 51 [13:12:35]Write i2c OK [13:12:35]MH_I2C_Read... [13:12:35]Read from MH i2c: 01 [13:12:35]MH_I2C_Read... [13:12:35]Read from MH i2c: 01 07 00 [13:12:35]MH_I2C_Read... [13:12:35]Read from MH i2c: 01 07 00 51 00 00 00 00 00 00 FF 0F 66 [13:12:35]RasterBufferAndPrint [13:12:35]line Х отчет [13:12:35]line ИНН: 02508201610067 [13:12:35]line Кассир: Жакыпов А. [13:12:35]line 25.09.2024 13:12 [13:12:35]line Смена: 266 [13:12:35]line РНМ: 0000000000091831 [13:12:35]line ЗНМ: 0300000120 [13:12:35]line СНО: Общий режим [13:12:35]line Всего чеков: 79 [13:12:35]line ИТОГИ ПРИХОД [13:12:35]line Чеков: 77 [13:12:35]line Общий итог: 56733.00 [13:12:35]line Итого наличными: 53266.00 [13:12:35]line Итого безнал.: 3467.00 [13:12:35]line НДС 0% : 0.00 [13:12:35]line НДС 12% : 6024.80 [13:12:35]line НСП 0% : 0.00 [13:12:35]line НСП 1,50% : 0.00 [13:12:35]line НСП 0,50% : 0.00 [13:12:35]line НСП 5% : 0.00 [13:12:35]line НСП 3% : 0.00 [13:12:35]line НСП 2% : 0.00 [13:12:35]line НСП 1% : 501.92 [13:12:35]line ИТОГИ ВОЗВРАТ ПРИХОДА [13:12:35]line Чеков: 2 [13:12:35]line Общий итог: 32004.00 [13:12:35]line Итого наличными: 32004.00 [13:12:35]line Итого безнал.: 0.00 [13:12:35]line НДС 0% : 0.00 [13:12:35]line НДС 12% : 3398.65 [13:12:35]line НСП 0% : 0.00 [13:12:35]line НСП 1,50% : 0.00 [13:12:35]line НСП 0,50% : 0.00 [13:12:35]line НСП 5% : 0.00 [13:12:35]line НСП 3% : 0.00 [13:12:35]line НСП 2% : 0.00 [13:12:35]line НСП 1% : 283.22 [13:12:35]line ИТОГИ РАСХОД [13:12:35]line Чеков: 0 [13:12:35]line Общий итог: 0.00 [13:12:35]line Итого наличными: 0.00 [13:12:35]line Итого безнал.: 0.00 [13:12:35]line НДС 0% : 0.00 [13:12:35]line НДС 12% : 0.00 [13:12:35]line НСП 0% : 0.00 [13:12:35]line НСП 1,50% : 0.00 [13:12:35]line НСП 0,50% : 0.00 [13:12:35]line НСП 5% : 0.00 [13:12:35]line НСП 3% : 0.00 [13:12:35]line НСП 2% : 0.00 [13:12:35]line НСП 1% : 0.00 [13:12:35]line ИТОГИ ВОЗВРАТ РАСХОДА [13:12:35]line Чеков: 0 [13:12:35]line Общий итог: 0.00 [13:12:35]line Итого наличными: 0.00 [13:12:35]line Итого безнал.: 0.00 [13:12:35]line НДС 0% : 0.00 [13:12:35]line НДС 12% : 0.00 [13:12:35]line НСП 0% : 0.00 [13:12:35]line НСП 1,50% : 0.00 [13:12:35]line НСП 0,50% : 0.00 [13:12:35]line НСП 5% : 0.00 [13:12:35]line НСП 3% : 0.00 [13:12:35]line НСП 2% : 0.00 [13:12:35]line НСП 1% : 0.00 [13:12:35]line Сумма внесений: 0.00 [13:12:35]line Сумма выплат: 0.00 [13:12:35]line Нал. в кассе: 21262.00 [13:12:35]line НС Приход: 64989993.33 [13:12:35]line НС Возвр.Прихода: 2683947.00 [13:12:35]line НС Расход: 0.00 [13:12:35]line НС Возвр.Расхода: 0.00 [13:12:35]line ФМ: 0000000000871830 [13:12:35]written 0, free lines is 4095 [13:12:36]Write to MH i2c: 01 00 00 9C 00 9C [13:12:36]Write i2c OK [13:12:36]MH_I2C_Read... [13:12:36]Read from MH i2c: 01 [13:12:36]MH_I2C_Read... [13:12:36]Read from MH i2c: 01 07 00 [13:12:36]MH_I2C_Read... [13:12:36]Read from MH i2c: 01 07 00 9C 00 00 00 00 00 00 76 09 22 [13:12:36]RasterBufferAndPrint [13:12:36]line [13:12:36]line [13:12:36]line [13:12:36]line [13:12:36]line [13:12:36]written 0, free lines is 2446 [13:12:36]MH_Cut [13:12:36]Write to MH i2c: D1 01 00 A3 00 01 75 [13:12:36]Write i2c OK [13:12:36]MH_I2C_Read... [13:12:36]Read from MH i2c: D1 [13:12:36]MH_I2C_Read... [13:12:36]Read from MH i2c: D1 01 00 [13:12:36]MH_I2C_Read... [13:12:36]Read from MH i2c: D1 01 00 A3 00 00 74 [13:12:36]Write to MH i2c: 01 00 00 A4 00 A4 [13:12:36]Write i2c OK [13:12:36]MH_I2C_Read... [13:12:38]*** Cut start [13:12:38]*** Partial cut [13:12:38]*** CUTSNS_PIN = 1 [13:12:38]*** CUTSNS_PIN = 0 [13:12:38]*** Brake cut motor [13:12:38]Read from MH i2c: 01 [13:12:38]MH_I2C_Read... [13:12:38]*** Stop cut motor [13:12:38]*** Cut end [13:12:38]Read from MH i2c: 01 07 00 [13:12:38]MH_I2C_Read... [13:12:38]Read from MH i2c: 01 07 00 A4 00 00 00 00 00 00 FF 0F B9 [13:12:38]process_action x_report done [13:12:38]requested_data is exist [13:12:38]produce_requested_data [13:12:38]requested_item fd.num is exist - process it [13:12:38]SAM_PROTO_GetFieldsCounters [13:12:38]wFMCommunicate request_size=4 [13:12:38]MH_SAM_APDU [13:12:38]CAPDU: 80 13 00 00 [13:12:38]Write to MH i2c: E2 08 00 A5 00 80 13 00 00 00 00 00 00 21 [13:12:38]Write i2c OK [13:12:38]MH_I2C_Read... [13:12:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:12:39]OFD Sender: No OFD packet to send [13:12:39]Read from MH i2c: E2 [13:12:39]MH_I2C_Read... [13:12:39]Read from MH i2c: E2 62 00 [13:12:39]MH_I2C_Read... [13:12:39]Read from MH i2c: E2 62 00 A5 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 FF C5 01 00 0E 04 04 00 DA 01 00 00 12 04 04 00 4F 00 00 00 5E 04 04 00 4F 00 00 00 57 04 04 00 50 00 00 00 19 04 04 00 00 00 00 00 90 00 C7 [13:12:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 FF C5 01 00 0E 04 04 00 DA 01 00 00 12 04 04 00 4F 00 00 00 5E 04 04 00 4F 00 00 00 57 04 04 00 50 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:12:39]wFMCommunicate OK [13:12:39]SAM_PROTO_GetFieldsCounters done [13:12:39]requested_item shift.num is exist - process it [13:12:39]requested_item shift.opened is exist - process it [13:12:39]req_shift_opened [13:12:39]FM_GetShiftState [13:12:39]SAM_PROTO_GetShiftState [13:12:39]wFMCommunicate request_size=4 [13:12:39]MH_SAM_APDU [13:12:39]CAPDU: 80 13 01 00 [13:12:39]Write to MH i2c: E2 08 00 A6 00 80 13 01 00 00 00 00 00 23 [13:12:39]Write i2c OK [13:12:39]MH_I2C_Read... [13:12:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:12:39]Read from MH i2c: E2 [13:12:39]MH_I2C_Read... [13:12:39]Read from MH i2c: E2 0E 00 [13:12:39]MH_I2C_Read... [13:12:39]Read from MH i2c: E2 0E 00 A6 00 00 09 00 01 63 60 F3 66 00 00 00 00 90 00 4B [13:12:39]RAPDU: 09 00 01 63 60 F3 66 00 00 00 00 90 00 [13:12:39]wFMCommunicate OK [13:12:39]SAM_PROTO_GetShiftState done [13:12:39]FM_GetShiftState done [13:12:39]req_shift_opened done [13:12:39]requested_item shift.open_date is exist - process it [13:12:39]req_shift_open_date [13:12:39]req_shift_open_date done [13:12:39]produce_requested_data done [13:12:39]produce_requested_data return {"fd.num":116223,"shift.num":474,"shift.opened":1,"shift.open_date":1727225955} [13:12:39]process_action_free x_report [13:12:39]json_value_free [13:12:39]json_value_free done [13:12:39]process_json_proto returns [13:12:39]Send response to host [13:12:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":116223,"shift.num":474,"shift.opened":1,"shift.open_date":1727225955}}} [13:12:39]free response buf [13:12:39]execute_script done [13:12:39]execute_script returns [13:12:39]free content buf [13:12:39]Sock 9.Close socket [13:12:39]Sock 9.Thread stoped [13:12:44]OFD Sender: No OFD packet to send [13:12:49]OFD Sender: No OFD packet to send [13:12:54]OFD Sender: No OFD packet to send [13:12:59]OFD Sender: No OFD packet to send [13:13:04]OFD Sender: No OFD packet to send [13:13:09]OFD Sender: No OFD packet to send [13:13:10]accept exits with 5 [13:13:10]New connection [13:13:10]New thread 3066834276 created [13:13:10]Thread 3066690916 joined [13:13:10]Waiting for new connection... [13:13:10] Sock 5.Parse request [13:13:10]Sock 5.Check first char [13:13:10]Sock 5.First char is OK [13:13:10]request: POST /json_proto HTTP/1.0 [13:13:10]Method: POST [13:13:10]URL: /json_proto [13:13:10]Method is POST - this is cgi request [13:13:10]url: /json_proto [13:13:10]query_string will be loaded in cgi processing [13:13:10]execute_cgi json_proto POST (null) [13:13:10]execute_cgi path=json_proto method=POST [13:13:10]POST find Content-Length [13:13:10]Host: 172.17.41.136:8080 [13:13:10]Content-Length: 215 [13:13:10]Content-Type: application/json [13:13:10] [13:13:10]POST finish read [13:13:10]Found Content-Length = 215 [13:13:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:13:10]execute_script... [13:13:10]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:13:10]POST & json_proto [13:13:10]process_json_proto [13:13:10]json parsed OK: [13:13:10]protocol is kg_v1.0 [13:13:10]action value=get_value [13:13:10]process_action get_value [13:13:10]cmd_get_value [13:13:10]process_action get_value done [13:13:10]requested_data is exist [13:13:10]produce_requested_data [13:13:10]requested_item kkm.sn is exist - process it [13:13:10]requested_item kkm.ver is exist - process it [13:13:10]requested_item fm.sn is exist - process it [13:13:10]wFMCommunicate request_size=4 [13:13:10]MH_SAM_APDU [13:13:10]CAPDU: 80 11 00 00 [13:13:10]Write to MH i2c: E2 08 00 A7 00 80 11 00 00 00 00 00 00 21 [13:13:10]Write i2c OK [13:13:10]MH_I2C_Read... [13:13:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:13:10]Read from MH i2c: E2 [13:13:10]MH_I2C_Read... [13:13:10]Read from MH i2c: E2 17 00 [13:13:10]MH_I2C_Read... [13:13:10]Read from MH i2c: E2 17 00 A7 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 6F [13:13:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [13:13:10]wFMCommunicate OK [13:13:10]requested_item fd.num is exist - process it [13:13:10]SAM_PROTO_GetFieldsCounters [13:13:10]wFMCommunicate request_size=4 [13:13:10]MH_SAM_APDU [13:13:10]CAPDU: 80 13 00 00 [13:13:10]Write to MH i2c: E2 08 00 A8 00 80 13 00 00 00 00 00 00 24 [13:13:11]Write i2c OK [13:13:11]MH_I2C_Read... [13:13:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:13:11]Read from MH i2c: E2 [13:13:11]MH_I2C_Read... [13:13:11]Read from MH i2c: E2 62 00 [13:13:11]MH_I2C_Read... [13:13:11]Read from MH i2c: E2 62 00 A8 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 FF C5 01 00 0E 04 04 00 DA 01 00 00 12 04 04 00 4F 00 00 00 5E 04 04 00 4F 00 00 00 57 04 04 00 50 00 00 00 19 04 04 00 00 00 00 00 90 00 CA [13:13:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 FF C5 01 00 0E 04 04 00 DA 01 00 00 12 04 04 00 4F 00 00 00 5E 04 04 00 4F 00 00 00 57 04 04 00 50 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:13:11]wFMCommunicate OK [13:13:11]SAM_PROTO_GetFieldsCounters done [13:13:11]requested_item shift.num is exist - process it [13:13:11]requested_item shift.opened is exist - process it [13:13:11]req_shift_opened [13:13:11]FM_GetShiftState [13:13:11]SAM_PROTO_GetShiftState [13:13:11]wFMCommunicate request_size=4 [13:13:11]MH_SAM_APDU [13:13:11]CAPDU: 80 13 01 00 [13:13:11]Write to MH i2c: E2 08 00 A9 00 80 13 01 00 00 00 00 00 26 [13:13:11]Write i2c OK [13:13:11]MH_I2C_Read... [13:13:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:13:11]Read from MH i2c: E2 [13:13:11]MH_I2C_Read... [13:13:11]Read from MH i2c: E2 0E 00 [13:13:11]MH_I2C_Read... [13:13:11]Read from MH i2c: E2 0E 00 A9 00 00 09 00 01 63 60 F3 66 00 00 00 00 90 00 4E [13:13:11]RAPDU: 09 00 01 63 60 F3 66 00 00 00 00 90 00 [13:13:11]wFMCommunicate OK [13:13:11]SAM_PROTO_GetShiftState done [13:13:11]FM_GetShiftState done [13:13:11]req_shift_opened done [13:13:11]requested_item shift.open_date is exist - process it [13:13:11]req_shift_open_date [13:13:11]req_shift_open_date done [13:13:11]produce_requested_data done [13:13:11]produce_requested_data return {"kkm.sn":"0300000120","kkm.ver":"001","fm.sn":"0000000000871830","fd.num":116223,"shift.num":474,"shift.opened":1,"shift.open_date":1727225955} [13:13:11]process_action_free get_value [13:13:11]json_value_free [13:13:11]json_value_free done [13:13:11]process_json_proto returns [13:13:11]Send response to host [13:13:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000120","kkm.ver":"001","fm.sn":"0000000000871830","fd.num":116223,"shift.num":474,"shift.opened":1,"shift.open_date":1727225955}}} [13:13:11]free response buf [13:13:11]execute_script done [13:13:11]execute_script returns [13:13:11]free content buf [13:13:11]Sock 5.Close socket [13:13:11]Sock 5.Thread stoped [13:13:11]accept exits with 9 [13:13:11]New connection [13:13:11]New thread 3066690916 created [13:13:11]Thread 3066834276 joined [13:13:11]Waiting for new connection... [13:13:11] Sock 9.Parse request [13:13:11]Sock 9.Check first char [13:13:11]Sock 9.First char is OK [13:13:11]request: POST /json_proto HTTP/1.0 [13:13:11]Method: POST [13:13:11]URL: /json_proto [13:13:11]Method is POST - this is cgi request [13:13:11]url: /json_proto [13:13:11]query_string will be loaded in cgi processing [13:13:11]execute_cgi json_proto POST (null) [13:13:11]execute_cgi path=json_proto method=POST [13:13:11]POST find Content-Length [13:13:11]Host: 172.17.41.136:8080 [13:13:11]Content-Length: 331 [13:13:11]Content-Type: application/json [13:13:11] [13:13:11]POST finish read [13:13:11]Found Content-Length = 331 [13:13:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [13:13:11]execute_script... [13:13:11]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [13:13:11]POST & json_proto [13:13:11]process_json_proto [13:13:11]json parsed OK: [13:13:11]protocol is kg_v1.0 [13:13:11]action value=get_value [13:13:11]process_action get_value [13:13:11]cmd_get_value [13:13:11]process_action get_value done [13:13:11]requested_data is exist [13:13:11]produce_requested_data [13:13:11]requested_item fm.sale.total is exist - process it [13:13:11]SAM_PROTO_GetFMData [13:13:11]wFMCommunicate request_size=4 [13:13:11]MH_SAM_APDU [13:13:11]CAPDU: 80 13 03 00 [13:13:11]Write to MH i2c: E2 08 00 AA 00 80 13 03 00 00 00 00 00 29 [13:13:11]Write i2c OK [13:13:11]MH_I2C_Read... [13:13:11]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [13:13:11]Read from MH i2c: E2 [13:13:11]MH_I2C_Read... [13:13:11]Read from MH i2c: E2 FD 00 [13:13:11]MH_I2C_Read... [13:13:11]Read from MH i2c: E2 FD 00 AA 00 00 C5 04 85 04 C1 04 6E 04 04 00 4A C2 01 00 69 04 A3 00 6F 04 04 00 CA C0 01 00 B1 04 05 00 25 DC 5E 83 01 70 04 05 00 FD 53 01 49 01 72 04 04 00 28 88 5D 3A 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 AA E1 24 29 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 C4 86 6D 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 80 01 00 00 B1 04 04 00 CC 60 FF 0F 70 04 04 00 CC 60 FF 0F 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 16 ED B2 01 EF 03 09 90 00 E7 [13:13:11]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 4A C2 01 00 69 04 A3 00 6F 04 04 00 CA C0 01 00 B1 04 05 00 25 DC 5E 83 01 70 04 05 00 FD 53 01 49 01 72 04 04 00 28 88 5D 3A 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 AA E1 24 29 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 C4 86 6D 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 80 01 00 00 B1 04 04 00 CC 60 FF 0F 70 04 04 00 CC 60 FF 0F 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 16 ED B2 01 EF 03 09 90 00 [13:13:11]wFMCommunicate OK [13:13:11]wFMCommunicate request_size=4 [13:13:11]MH_SAM_APDU [13:13:11]CAPDU: 80 17 00 00 [13:13:11]Write to MH i2c: E2 08 00 AB 00 80 17 00 00 00 00 00 00 2B [13:13:11]Write i2c OK [13:13:11]MH_I2C_Read... [13:13:11]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [13:13:11]Read from MH i2c: E2 [13:13:11]MH_I2C_Read... [13:13:11]Read from MH i2c: E2 FD 00 [13:13:11]MH_I2C_Read... [13:13:11]Read from MH i2c: E2 FD 00 AB 00 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 50 3E 24 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 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 93 [13:13:12]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 50 3E 24 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 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 [13:13:12]wFMCommunicate OK [13:13:12]wFMCommunicate request_size=4 [13:13:12]MH_SAM_APDU [13:13:12]CAPDU: 80 17 00 00 [13:13:12]Write to MH i2c: E2 08 00 AC 00 80 17 00 00 00 00 00 00 2C [13:13:12]Write i2c OK [13:13:12]MH_I2C_Read... [13:13:12]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [13:13:12]Read from MH i2c: E2 [13:13:12]MH_I2C_Read... [13:13:12]Read from MH i2c: E2 FD 00 [13:13:12]MH_I2C_Read... [13:13:12]Read from MH i2c: E2 FD 00 AC 00 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 3E [13:13:12]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 [13:13:12]wFMCommunicate OK [13:13:12]wFMCommunicate request_size=4 [13:13:12]MH_SAM_APDU [13:13:12]CAPDU: 80 17 00 00 [13:13:12]Write to MH i2c: E2 08 00 AD 00 80 17 00 00 00 00 00 00 2D [13:13:12]Write i2c OK [13:13:12]MH_I2C_Read... [13:13:12]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [13:13:12]Read from MH i2c: E2 [13:13:12]MH_I2C_Read... [13:13:12]Read from MH i2c: E2 FD 00 [13:13:12]MH_I2C_Read... [13:13:12]Read from MH i2c: E2 FD 00 AD 00 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 B9 [13:13:12]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 [13:13:12]wFMCommunicate OK [13:13:12]wFMCommunicate request_size=4 [13:13:12]MH_SAM_APDU [13:13:12]CAPDU: 80 17 00 00 [13:13:12]Write to MH i2c: E2 08 00 AE 00 80 17 00 00 00 00 00 00 2E [13:13:12]Write i2c OK [13:13:12]MH_I2C_Read... [13:13:13]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [13:13:13]Read from MH i2c: E2 [13:13:13]MH_I2C_Read... [13:13:13]Read from MH i2c: E2 E2 00 [13:13:13]MH_I2C_Read... [13:13:13]Read from MH i2c: E2 E2 00 AE 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 0C [13:13:13]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 [13:13:13]wFMCommunicate OK [13:13:13]SAM_PROTO_GetFMData done [13:13:13]requested_item fm.sale_refund.total is exist - process it [13:13:13]requested_item fm.buy.total is exist - process it [13:13:13]requested_item shift.sale.total is exist - process it [13:13:13]SAM_PROTO_GetShiftData [13:13:13]wFMCommunicate request_size=4 [13:13:13]MH_SAM_APDU [13:13:13]CAPDU: 80 13 02 00 [13:13:13]Write to MH i2c: E2 08 00 AF 00 80 13 02 00 00 00 00 00 2D [13:13:13]Write i2c OK [13:13:13]MH_I2C_Read... [13:13:13]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [13:13:13]Read from MH i2c: E2 [13:13:13]MH_I2C_Read... [13:13:13]Read from MH i2c: E2 FD 00 [13:13:13]MH_I2C_Read... [13:13:13]Read from MH i2c: E2 FD 00 AF 00 00 B9 04 AA 04 B5 04 6E 04 04 00 4F 00 00 00 69 04 9B 00 6F 04 04 00 4D 00 00 00 B1 04 03 00 54 91 56 70 04 03 00 08 47 51 72 04 03 00 4C 4A 05 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 70 31 09 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 10 C4 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 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 02 00 00 00 B1 04 03 00 90 D5 30 70 04 03 00 90 D5 30 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 99 2F 05 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 AB [13:13:13]RAPDU: B9 04 AA 04 B5 04 6E 04 04 00 4F 00 00 00 69 04 9B 00 6F 04 04 00 4D 00 00 00 B1 04 03 00 54 91 56 70 04 03 00 08 47 51 72 04 03 00 4C 4A 05 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 70 31 09 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 10 C4 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 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 02 00 00 00 B1 04 03 00 90 D5 30 70 04 03 00 90 D5 30 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 99 2F 05 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 [13:13:13]wFMCommunicate OK [13:13:13]wFMCommunicate request_size=4 [13:13:13]MH_SAM_APDU [13:13:13]CAPDU: 80 17 00 00 [13:13:13]Write to MH i2c: E2 08 00 B0 00 80 17 00 00 00 00 00 00 30 [13:13:13]Write i2c OK [13:13:13]MH_I2C_Read... [13:13:13]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [13:13:14]Read from MH i2c: E2 [13:13:14]MH_I2C_Read... [13:13:14]Read from MH i2c: E2 FD 00 [13:13:14]MH_I2C_Read... [13:13:14]Read from MH i2c: E2 FD 00 B0 00 00 03 0B 00 F6 03 01 00 01 F7 03 02 00 A2 6E EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 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 90 00 FF [13:13:14]RAPDU: 03 0B 00 F6 03 01 00 01 F7 03 02 00 A2 6E EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 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 90 00 [13:13:14]wFMCommunicate OK [13:13:14]wFMCommunicate request_size=4 [13:13:14]MH_SAM_APDU [13:13:14]CAPDU: 80 17 00 00 [13:13:14]Write to MH i2c: E2 08 00 B1 00 80 17 00 00 00 00 00 00 31 [13:13:14]Write i2c OK [13:13:14]MH_I2C_Read... [13:13:14]OFD Sender: No OFD packet to send [13:13:14]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [13:13:14]Read from MH i2c: E2 [13:13:14]MH_I2C_Read... [13:13:14]Read from MH i2c: E2 FD 00 [13:13:14]MH_I2C_Read... [13:13:14]Read from MH i2c: E2 FD 00 B1 00 00 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 90 00 59 [13:13:14]RAPDU: 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 90 00 [13:13:14]wFMCommunicate OK [13:13:14]wFMCommunicate request_size=4 [13:13:14]MH_SAM_APDU [13:13:14]CAPDU: 80 17 00 00 [13:13:14]Write to MH i2c: E2 08 00 B2 00 80 17 00 00 00 00 00 00 32 [13:13:14]Write i2c OK [13:13:14]MH_I2C_Read... [13:13:14]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [13:13:14]Read from MH i2c: E2 [13:13:14]MH_I2C_Read... [13:13:14]Read from MH i2c: E2 FD 00 [13:13:14]MH_I2C_Read... [13:13:14]Read from MH i2c: E2 FD 00 B2 00 00 EF 03 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 90 00 AA [13:13:14]RAPDU: EF 03 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 90 00 [13:13:14]wFMCommunicate OK [13:13:14]wFMCommunicate request_size=4 [13:13:14]MH_SAM_APDU [13:13:14]CAPDU: 80 17 00 00 [13:13:14]Write to MH i2c: E2 08 00 B3 00 80 17 00 00 00 00 00 00 33 [13:13:14]Write i2c OK [13:13:14]MH_I2C_Read... [13:13:15]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 211! [13:13:15]Read from MH i2c: E2 [13:13:15]MH_I2C_Read... [13:13:15]Read from MH i2c: E2 D6 00 [13:13:15]MH_I2C_Read... [13:13:15]Read from MH i2c: E2 D6 00 B3 00 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 15 [13:13:15]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 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [13:13:15]wFMCommunicate OK [13:13:15]SAM_PROTO_GetShiftData done [13:13:15]requested_item shift.sale.total_cash is exist - process it [13:13:15]requested_item shift.sale_refund.total is exist - process it [13:13:15]requested_item shift.sale_refund.total_cash is exist - process it [13:13:15]requested_item shift.buy.total is exist - process it [13:13:15]requested_item shift.buy.total_cash is exist - process it [13:13:15]produce_requested_data done [13:13:15]produce_requested_data return {"fm.sale.total":64989993.33,"fm.sale_refund.total":2683947.00,"fm.buy.total":0.00,"shift.sale.total":56733.00,"shift.sale.total_cash":53266.00,"shift.sale_refund.total":32004.00,"shift.sale_refund.total_cash":32004.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [13:13:15]process_action_free get_value [13:13:15]json_value_free [13:13:15]json_value_free done [13:13:15]process_json_proto returns [13:13:15]Send response to host [13:13:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":64989993.33,"fm.sale_refund.total":2683947.00,"fm.buy.total":0.00,"shift.sale.total":56733.00,"shift.sale.total_cash":53266.00,"shift.sale_refund.total":32004.00,"shift.sale_refund.total_cash":32004.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [13:13:15]free response buf [13:13:15]execute_script done [13:13:15]execute_script returns [13:13:15]free content buf [13:13:15]Sock 9.Close socket [13:13:15]Sock 9.Thread stoped [13:13:15]accept exits with 5 [13:13:15]New connection [13:13:15]New thread 3066834276 created [13:13:15]Thread 3066690916 joined [13:13:15]Waiting for new connection... [13:13:15] Sock 5.Parse request [13:13:15]Sock 5.Check first char [13:13:15]Sock 5.First char is OK [13:13:15]request: POST /json_proto HTTP/1.0 [13:13:15]Method: POST [13:13:15]URL: /json_proto [13:13:15]Method is POST - this is cgi request [13:13:15]url: /json_proto [13:13:15]query_string will be loaded in cgi processing [13:13:15]execute_cgi json_proto POST (null) [13:13:15]execute_cgi path=json_proto method=POST [13:13:15]POST find Content-Length [13:13:15]Host: 172.17.41.136:8080 [13:13:15]Content-Length: 331 [13:13:15]Content-Type: application/json [13:13:15] [13:13:15]POST finish read [13:13:15]Found Content-Length = 331 [13:13:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [13:13:15]execute_script... [13:13:15]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [13:13:15]POST & json_proto [13:13:15]process_json_proto [13:13:15]json parsed OK: [13:13:15]protocol is kg_v1.0 [13:13:15]action value=get_value [13:13:15]process_action get_value [13:13:15]cmd_get_value [13:13:15]process_action get_value done [13:13:15]requested_data is exist [13:13:15]produce_requested_data [13:13:15]requested_item fm.sale.total is exist - process it [13:13:15]SAM_PROTO_GetFMData [13:13:15]wFMCommunicate request_size=4 [13:13:15]MH_SAM_APDU [13:13:15]CAPDU: 80 13 03 00 [13:13:15]Write to MH i2c: E2 08 00 B4 00 80 13 03 00 00 00 00 00 33 [13:13:15]Write i2c OK [13:13:15]MH_I2C_Read... [13:13:15]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [13:13:15]Read from MH i2c: E2 [13:13:15]MH_I2C_Read... [13:13:15]Read from MH i2c: E2 FD 00 [13:13:15]MH_I2C_Read... [13:13:15]Read from MH i2c: E2 FD 00 B4 00 00 C5 04 85 04 C1 04 6E 04 04 00 4A C2 01 00 69 04 A3 00 6F 04 04 00 CA C0 01 00 B1 04 05 00 25 DC 5E 83 01 70 04 05 00 FD 53 01 49 01 72 04 04 00 28 88 5D 3A 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 AA E1 24 29 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 C4 86 6D 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 80 01 00 00 B1 04 04 00 CC 60 FF 0F 70 04 04 00 CC 60 FF 0F 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 16 ED B2 01 EF 03 09 90 00 F1 [13:13:15]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 4A C2 01 00 69 04 A3 00 6F 04 04 00 CA C0 01 00 B1 04 05 00 25 DC 5E 83 01 70 04 05 00 FD 53 01 49 01 72 04 04 00 28 88 5D 3A 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 AA E1 24 29 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 C4 86 6D 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 80 01 00 00 B1 04 04 00 CC 60 FF 0F 70 04 04 00 CC 60 FF 0F 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 16 ED B2 01 EF 03 09 90 00 [13:13:15]wFMCommunicate OK [13:13:15]wFMCommunicate request_size=4 [13:13:15]MH_SAM_APDU [13:13:15]CAPDU: 80 17 00 00 [13:13:15]Write to MH i2c: E2 08 00 B5 00 80 17 00 00 00 00 00 00 35 [13:13:15]Write i2c OK [13:13:15]MH_I2C_Read... [13:13:16]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [13:13:16]Read from MH i2c: E2 [13:13:16]MH_I2C_Read... [13:13:16]Read from MH i2c: E2 FD 00 [13:13:16]MH_I2C_Read... [13:13:16]Read from MH i2c: E2 FD 00 B5 00 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 50 3E 24 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 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 [13:13:16]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 50 3E 24 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 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 [13:13:16]wFMCommunicate OK [13:13:16]wFMCommunicate request_size=4 [13:13:16]MH_SAM_APDU [13:13:16]CAPDU: 80 17 00 00 [13:13:16]Write to MH i2c: E2 08 00 B6 00 80 17 00 00 00 00 00 00 36 [13:13:16]Write i2c OK [13:13:16]MH_I2C_Read... [13:13:16]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [13:13:16]Read from MH i2c: E2 [13:13:16]MH_I2C_Read... [13:13:16]Read from MH i2c: E2 FD 00 [13:13:16]MH_I2C_Read... [13:13:16]Read from MH i2c: E2 FD 00 B6 00 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 48 [13:13: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 [13:13:16]wFMCommunicate OK [13:13:16]wFMCommunicate request_size=4 [13:13:16]MH_SAM_APDU [13:13:16]CAPDU: 80 17 00 00 [13:13:16]Write to MH i2c: E2 08 00 B7 00 80 17 00 00 00 00 00 00 37 [13:13:16]Write i2c OK [13:13:16]MH_I2C_Read... [13:13:17]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [13:13:17]Read from MH i2c: E2 [13:13:17]MH_I2C_Read... [13:13:17]Read from MH i2c: E2 FD 00 [13:13:17]MH_I2C_Read... [13:13:17]Read from MH i2c: E2 FD 00 B7 00 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 C3 [13:13:17]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 [13:13:17]wFMCommunicate OK [13:13:17]wFMCommunicate request_size=4 [13:13:17]MH_SAM_APDU [13:13:17]CAPDU: 80 17 00 00 [13:13:17]Write to MH i2c: E2 08 00 B8 00 80 17 00 00 00 00 00 00 38 [13:13:17]Write i2c OK [13:13:17]MH_I2C_Read... [13:13:17]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [13:13:17]Read from MH i2c: E2 [13:13:17]MH_I2C_Read... [13:13:17]Read from MH i2c: E2 E2 00 [13:13:17]MH_I2C_Read... [13:13:17]Read from MH i2c: E2 E2 00 B8 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 16 [13:13:17]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 [13:13:17]wFMCommunicate OK [13:13:17]SAM_PROTO_GetFMData done [13:13:17]requested_item fm.sale_refund.total is exist - process it [13:13:17]requested_item fm.buy.total is exist - process it [13:13:17]requested_item shift.sale.total is exist - process it [13:13:17]SAM_PROTO_GetShiftData [13:13:17]wFMCommunicate request_size=4 [13:13:17]MH_SAM_APDU [13:13:17]CAPDU: 80 13 02 00 [13:13:17]Write to MH i2c: E2 08 00 B9 00 80 13 02 00 00 00 00 00 37 [13:13:17]Write i2c OK [13:13:17]MH_I2C_Read... [13:13:18]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [13:13:18]Read from MH i2c: E2 [13:13:18]MH_I2C_Read... [13:13:18]Read from MH i2c: E2 FD 00 [13:13:18]MH_I2C_Read... [13:13:18]Read from MH i2c: E2 FD 00 B9 00 00 B9 04 AA 04 B5 04 6E 04 04 00 4F 00 00 00 69 04 9B 00 6F 04 04 00 4D 00 00 00 B1 04 03 00 54 91 56 70 04 03 00 08 47 51 72 04 03 00 4C 4A 05 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 70 31 09 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 10 C4 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 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 02 00 00 00 B1 04 03 00 90 D5 30 70 04 03 00 90 D5 30 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 99 2F 05 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 B5 [13:13:18]RAPDU: B9 04 AA 04 B5 04 6E 04 04 00 4F 00 00 00 69 04 9B 00 6F 04 04 00 4D 00 00 00 B1 04 03 00 54 91 56 70 04 03 00 08 47 51 72 04 03 00 4C 4A 05 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 70 31 09 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 10 C4 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 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 02 00 00 00 B1 04 03 00 90 D5 30 70 04 03 00 90 D5 30 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 99 2F 05 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 [13:13:18]wFMCommunicate OK [13:13:18]wFMCommunicate request_size=4 [13:13:18]MH_SAM_APDU [13:13:18]CAPDU: 80 17 00 00 [13:13:18]Write to MH i2c: E2 08 00 BA 00 80 17 00 00 00 00 00 00 3A [13:13:18]Write i2c OK [13:13:18]MH_I2C_Read... [13:13:18]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [13:13:18]Read from MH i2c: E2 [13:13:18]MH_I2C_Read... [13:13:18]Read from MH i2c: E2 FD 00 [13:13:18]MH_I2C_Read... [13:13:18]Read from MH i2c: E2 FD 00 BA 00 00 03 0B 00 F6 03 01 00 01 F7 03 02 00 A2 6E EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 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 90 00 09 [13:13:18]RAPDU: 03 0B 00 F6 03 01 00 01 F7 03 02 00 A2 6E EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 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 90 00 [13:13:18]wFMCommunicate OK [13:13:18]wFMCommunicate request_size=4 [13:13:18]MH_SAM_APDU [13:13:18]CAPDU: 80 17 00 00 [13:13:18]Write to MH i2c: E2 08 00 BB 00 80 17 00 00 00 00 00 00 3B [13:13:18]Write i2c OK [13:13:18]MH_I2C_Read... [13:13:19]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [13:13:19]Read from MH i2c: E2 [13:13:19]MH_I2C_Read... [13:13:19]Read from MH i2c: E2 FD 00 [13:13:19]MH_I2C_Read... [13:13:19]Read from MH i2c: E2 FD 00 BB 00 00 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 90 00 63 [13:13:19]RAPDU: 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 90 00 [13:13:19]wFMCommunicate OK [13:13:19]wFMCommunicate request_size=4 [13:13:19]MH_SAM_APDU [13:13:19]CAPDU: 80 17 00 00 [13:13:19]Write to MH i2c: E2 08 00 BC 00 80 17 00 00 00 00 00 00 3C [13:13:19]OFD Sender: No OFD packet to send [13:13:19]Write i2c OK [13:13:19]MH_I2C_Read... [13:13:19]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [13:13:19]Read from MH i2c: E2 [13:13:19]MH_I2C_Read... [13:13:19]Read from MH i2c: E2 FD 00 [13:13:19]MH_I2C_Read... [13:13:19]Read from MH i2c: E2 FD 00 BC 00 00 EF 03 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 90 00 B4 [13:13:19]RAPDU: EF 03 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 90 00 [13:13:20]wFMCommunicate OK [13:13:20]wFMCommunicate request_size=4 [13:13:20]MH_SAM_APDU [13:13:20]CAPDU: 80 17 00 00 [13:13:20]Write to MH i2c: E2 08 00 BD 00 80 17 00 00 00 00 00 00 3D [13:13:20]Write i2c OK [13:13:20]MH_I2C_Read... [13:13:20]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 211! [13:13:20]Read from MH i2c: E2 [13:13:20]MH_I2C_Read... [13:13:20]Read from MH i2c: E2 D6 00 [13:13:20]MH_I2C_Read... [13:13:20]Read from MH i2c: E2 D6 00 BD 00 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 1F [13:13:20]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 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [13:13:20]wFMCommunicate OK [13:13:20]SAM_PROTO_GetShiftData done [13:13:20]requested_item shift.sale.total_cash is exist - process it [13:13:20]requested_item shift.sale_refund.total is exist - process it [13:13:20]requested_item shift.sale_refund.total_cash is exist - process it [13:13:20]requested_item shift.buy.total is exist - process it [13:13:20]requested_item shift.buy.total_cash is exist - process it [13:13:20]produce_requested_data done [13:13:20]produce_requested_data return {"fm.sale.total":64989993.33,"fm.sale_refund.total":2683947.00,"fm.buy.total":0.00,"shift.sale.total":56733.00,"shift.sale.total_cash":53266.00,"shift.sale_refund.total":32004.00,"shift.sale_refund.total_cash":32004.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [13:13:20]process_action_free get_value [13:13:20]json_value_free [13:13:20]json_value_free done [13:13:20]process_json_proto returns [13:13:20]Send response to host [13:13:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":64989993.33,"fm.sale_refund.total":2683947.00,"fm.buy.total":0.00,"shift.sale.total":56733.00,"shift.sale.total_cash":53266.00,"shift.sale_refund.total":32004.00,"shift.sale_refund.total_cash":32004.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [13:13:20]free response buf [13:13:20]execute_script done [13:13:20]execute_script returns [13:13:20]free content buf [13:13:20]Sock 5.Close socket [13:13:20]Sock 5.Thread stoped [13:13:20]accept exits with 9 [13:13:20]New connection [13:13:20]New thread 3066690916 created [13:13:20]Thread 3066834276 joined [13:13:20]Waiting for new connection... [13:13:20] Sock 9.Parse request [13:13:20]Sock 9.Check first char [13:13:20]Sock 9.First char is OK [13:13:20]request: POST /json_proto HTTP/1.0 [13:13:20]Method: POST [13:13:20]URL: /json_proto [13:13:20]Method is POST - this is cgi request [13:13:20]url: /json_proto [13:13:20]query_string will be loaded in cgi processing [13:13:20]execute_cgi json_proto POST (null) [13:13:20]execute_cgi path=json_proto method=POST [13:13:20]POST find Content-Length [13:13:20]Host: 172.17.41.136:8080 [13:13:20]Content-Length: 254 [13:13:20]Content-Type: application/json [13:13:20] [13:13:20]POST finish read [13:13:20]Found Content-Length = 254 [13:13:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_shift", "params" : { "operator" : "\u0416\u0430\u043A\u044B\u043F\u043E\u0432 \u0410. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:13:20]execute_script... [13:13:20]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_shift", "params" : { "operator" : "\u0416\u0430\u043A\u044B\u043F\u043E\u0432 \u0410. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:13:20]POST & json_proto [13:13:20]process_json_proto [13:13:20]json parsed OK: [13:13:20]protocol is kg_v1.0 [13:13:20]action value=close_shift [13:13:20]process_action close_shift [13:13:20]cmd_close_shift [13:13:20]MH_GetDate [13:13:20]Write to MH i2c: F0 00 00 BE 00 AD [13:13:20]Write i2c OK [13:13:20]MH_I2C_Read... [13:13:20]Read from MH i2c: F0 [13:13:20]MH_I2C_Read... [13:13:20]Read from MH i2c: F0 09 00 [13:13:20]MH_I2C_Read... [13:13:20]Read from MH i2c: F0 09 00 BE 00 00 70 0C F4 66 1B D0 5A 64 35 [13:13:20]GetLastDocTimeStamp 1727269948 [13:13:20]current date 1727270000 [13:13:20]FM_GetShiftState [13:13:20]SAM_PROTO_GetShiftState [13:13:20]wFMCommunicate request_size=4 [13:13:20]MH_SAM_APDU [13:13:20]CAPDU: 80 13 01 00 [13:13:20]Write to MH i2c: E2 08 00 BF 00 80 13 01 00 00 00 00 00 3C [13:13:20]Write i2c OK [13:13:20]MH_I2C_Read... [13:13:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:13:20]Read from MH i2c: E2 [13:13:20]MH_I2C_Read... [13:13:20]Read from MH i2c: E2 0E 00 [13:13:20]MH_I2C_Read... [13:13:20]Read from MH i2c: E2 0E 00 BF 00 00 09 00 01 63 60 F3 66 00 00 00 00 90 00 64 [13:13:20]RAPDU: 09 00 01 63 60 F3 66 00 00 00 00 90 00 [13:13:20]wFMCommunicate OK [13:13:20]SAM_PROTO_GetShiftState done [13:13:20]FM_GetShiftState done [13:13:20]KKMCreateCloseShiftDocument [13:13:20]Load OK [13:13:20]Malloc new data [13:13:20]MH_GetDate [13:13:20]Write to MH i2c: F0 00 00 C0 00 AF [13:13:20]Write i2c OK [13:13:20]MH_I2C_Read... [13:13:20]Read from MH i2c: F0 [13:13:20]MH_I2C_Read... [13:13:20]Read from MH i2c: F0 09 00 [13:13:20]MH_I2C_Read... [13:13:20]Read from MH i2c: F0 09 00 C0 00 00 71 0C F4 66 1B D0 5A 64 38 [13:13:20]Malloc new data [13:13:20]Malloc new data [13:13:20]Malloc new data [13:13:20]Malloc new data [13:13:20]KKMCreateCloseShiftDocument OK [13:13:20]KKMSetCloseShiftData OK [13:13:20]ProcessDocumentItem done err = 0, tmpTLVsize=69 [13:13:20]tlvbuf is 01296120 [13:13:20]KKMLoadAndSignCloseShiftData [13:13:20]SAM_PROTO_ProcessDocument [13:13:20]wFMCommunicate request_size=9 [13:13:20]MH_SAM_APDU [13:13:20]CAPDU: 80 15 01 00 04 05 00 45 00 [13:13:20]Write to MH i2c: E2 0C 00 C1 00 80 15 01 00 04 00 05 00 45 00 00 00 92 [13:13:20]Write i2c OK [13:13:20]MH_I2C_Read... [13:13:20]*** iso7816_exchange 80 15 01 00... Resp OK rsp.len_out = 0! [13:13:20]Read from MH i2c: E2 [13:13:20]MH_I2C_Read... [13:13:20]Read from MH i2c: E2 03 00 [13:13:20]MH_I2C_Read... [13:13:20]Read from MH i2c: E2 03 00 C1 00 00 90 00 35 [13:13:20]RAPDU: 90 00 [13:13:20]wFMCommunicate OK [13:13:20]wFMCommunicate request_size=23 [13:13:20]MH_SAM_APDU [13:13:20]CAPDU: 80 15 02 00 12 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 [13:13:20]Write to MH i2c: E2 1A 00 C2 00 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 37 [13:13:20]Write i2c OK [13:13:20]MH_I2C_Read... [13:13:20]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [13:13:20]Read from MH i2c: E2 [13:13:20]MH_I2C_Read... [13:13:20]Read from MH i2c: E2 03 00 [13:13:20]MH_I2C_Read... [13:13:20]Read from MH i2c: E2 03 00 C2 00 00 90 00 36 [13:13:20]RAPDU: 90 00 [13:13:20]wFMCommunicate OK [13:13:20]wFMCommunicate request_size=28 [13:13:20]MH_SAM_APDU [13:13:20]CAPDU: 80 15 02 00 17 FD 03 13 00 D0 96 D0 B0 D0 BA D1 8B D0 BF D0 BE D0 B2 20 D0 90 2E 20 [13:13:20]Write to MH i2c: E2 1F 00 C3 00 80 15 02 00 17 00 FD 03 13 00 D0 96 D0 B0 D0 BA D1 8B D0 BF D0 BE D0 B2 20 D0 90 2E 20 00 00 BD [13:13:20]Write i2c OK [13:13:20]MH_I2C_Read... [13:13:20]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [13:13:20]Read from MH i2c: E2 [13:13:20]MH_I2C_Read... [13:13:20]Read from MH i2c: E2 03 00 [13:13:20]MH_I2C_Read... [13:13:20]Read from MH i2c: E2 03 00 C3 00 00 90 00 37 [13:13:20]RAPDU: 90 00 [13:13:20]wFMCommunicate OK [13:13:20]wFMCommunicate request_size=13 [13:13:20]MH_SAM_APDU [13:13:20]CAPDU: 80 15 02 00 08 F4 03 04 00 71 0C F4 66 [13:13:20]Write to MH i2c: E2 10 00 C4 00 80 15 02 00 08 00 F4 03 04 00 71 0C F4 66 00 00 26 [13:13:20]Write i2c OK [13:13:20]MH_I2C_Read... [13:13:21]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [13:13:21]Read from MH i2c: E2 [13:13:21]MH_I2C_Read... [13:13:21]Read from MH i2c: E2 03 00 [13:13:21]MH_I2C_Read... [13:13:21]Read from MH i2c: E2 03 00 C4 00 00 90 00 38 [13:13:21]RAPDU: 90 00 [13:13:21]wFMCommunicate OK [13:13:21]wFMCommunicate request_size=25 [13:13:21]MH_SAM_APDU [13:13:21]CAPDU: 80 15 02 00 14 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 [13:13:21]Write to MH i2c: E2 1C 00 C5 00 80 15 02 00 14 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 00 00 A4 [13:13:21]Write i2c OK [13:13:21]MH_I2C_Read... [13:13:21]Read from MH i2c: E2 [13:13:21]MH_I2C_Read... [13:13:21]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [13:13:21]Read from MH i2c: E2 03 00 [13:13:21]MH_I2C_Read... [13:13:21]Read from MH i2c: E2 03 00 C5 00 00 90 00 39 [13:13:21]RAPDU: 90 00 [13:13:21]wFMCommunicate OK [13:13:21]wFMCommunicate request_size=4 [13:13:21]MH_SAM_APDU [13:13:21]CAPDU: 80 15 03 00 [13:13:21]Write to MH i2c: E2 08 00 C6 00 80 15 03 00 00 00 00 00 47 [13:13:21]Write i2c OK [13:13:21]MH_I2C_Read... [13:13:21]*** iso7816_exchange 80 15 03 00... Resp OK rsp.len_out = 250! [13:13:21]Read from MH i2c: E2 [13:13:21]MH_I2C_Read... [13:13:21]Read from MH i2c: E2 FD 00 [13:13:21]MH_I2C_Read... [13:13:21]Read from MH i2c: E2 FD 00 C6 00 00 FC 04 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 00 C6 01 00 0E 04 04 00 DA 01 00 00 5E 04 04 00 4F 00 00 00 57 04 04 00 51 00 00 00 AA 04 B5 04 6E 04 04 00 4F 00 00 00 69 04 9B 00 6F 04 04 00 4D 00 00 00 B1 04 03 00 54 91 56 70 04 03 00 08 47 51 72 04 03 00 4C 4A 05 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 70 31 09 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 10 C4 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 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 02 00 00 00 B1 04 03 00 90 D5 30 70 90 00 2B [13:13:21]RAPDU: FC 04 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 00 C6 01 00 0E 04 04 00 DA 01 00 00 5E 04 04 00 4F 00 00 00 57 04 04 00 51 00 00 00 AA 04 B5 04 6E 04 04 00 4F 00 00 00 69 04 9B 00 6F 04 04 00 4D 00 00 00 B1 04 03 00 54 91 56 70 04 03 00 08 47 51 72 04 03 00 4C 4A 05 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 70 31 09 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 10 C4 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 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 02 00 00 00 B1 04 03 00 90 D5 30 70 90 00 [13:13:21]wFMCommunicate OK [13:13:21]SAM_PROTO_ProcessDocument answer len = 1276 [13:13:21]SAM_PROTO_ProcessDocument remain to read = 1028 [13:13:21]wFMCommunicate request_size=4 [13:13:21]MH_SAM_APDU [13:13:21]CAPDU: 80 17 00 00 [13:13:21]Write to MH i2c: E2 08 00 C7 00 80 17 00 00 00 00 00 00 47 [13:13:21]Write i2c OK [13:13:21]MH_I2C_Read... [13:13:22]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [13:13:22]Read from MH i2c: E2 [13:13:22]MH_I2C_Read... [13:13:22]Read from MH i2c: E2 FD 00 [13:13:22]MH_I2C_Read... [13:13:22]Read from MH i2c: E2 FD 00 C7 00 00 04 03 00 90 D5 30 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 99 2F 05 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 A2 6E EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 26 [13:13:22]RAPDU: 04 03 00 90 D5 30 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 99 2F 05 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 A2 6E EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 [13:13:22]wFMCommunicate OK [13:13:22]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [13:13:22]SAM_PROTO_ProcessDocument remain to read = 778 [13:13:22]wFMCommunicate request_size=4 [13:13:22]MH_SAM_APDU [13:13:22]CAPDU: 80 17 00 00 [13:13:22]Write to MH i2c: E2 08 00 C8 00 80 17 00 00 00 00 00 00 48 [13:13:22]Write i2c OK [13:13:22]MH_I2C_Read... [13:13:22]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [13:13:22]Read from MH i2c: E2 [13:13:22]MH_I2C_Read... [13:13:22]Read from MH i2c: E2 FD 00 [13:13:22]MH_I2C_Read... [13:13:22]Read from MH i2c: E2 FD 00 C8 00 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 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 90 00 AE [13:13:22]RAPDU: 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 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 90 00 [13:13:22]wFMCommunicate OK [13:13:22]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [13:13:22]SAM_PROTO_ProcessDocument remain to read = 528 [13:13:22]wFMCommunicate request_size=4 [13:13:22]MH_SAM_APDU [13:13:22]CAPDU: 80 17 00 00 [13:13:22]Write to MH i2c: E2 08 00 C9 00 80 17 00 00 00 00 00 00 49 [13:13:22]Write i2c OK [13:13:22]MH_I2C_Read... [13:13:23]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [13:13:23]Read from MH i2c: E2 [13:13:23]MH_I2C_Read... [13:13:23]Read from MH i2c: E2 FD 00 [13:13:23]MH_I2C_Read... [13:13:23]Read from MH i2c: E2 FD 00 C9 00 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 5C [13:13:23]RAPDU: 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [13:13:23]wFMCommunicate OK [13:13:23]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [13:13:23]SAM_PROTO_ProcessDocument remain to read = 278 [13:13:23]wFMCommunicate request_size=4 [13:13:23]MH_SAM_APDU [13:13:23]CAPDU: 80 17 00 00 [13:13:23]Write to MH i2c: E2 08 00 CA 00 80 17 00 00 00 00 00 00 4A [13:13:23]Write i2c OK [13:13:23]MH_I2C_Read... [13:13:23]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [13:13:23]Read from MH i2c: E2 [13:13:23]MH_I2C_Read... [13:13:23]Read from MH i2c: E2 FD 00 [13:13:23]MH_I2C_Read... [13:13:23]Read from MH i2c: E2 FD 00 CA 00 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 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 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 84 [13:13:23]RAPDU: 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 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 [13:13:24]wFMCommunicate OK [13:13:24]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [13:13:24]SAM_PROTO_ProcessDocument remain to read = 28 [13:13:24]wFMCommunicate request_size=4 [13:13:24]MH_SAM_APDU [13:13:24]CAPDU: 80 17 00 00 [13:13:24]Write to MH i2c: E2 08 00 CB 00 80 17 00 00 00 00 00 00 4B [13:13:24]Write i2c OK [13:13:24]MH_I2C_Read... [13:13:24]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 28! [13:13:24]Read from MH i2c: E2 [13:13:24]MH_I2C_Read... [13:13:24]Read from MH i2c: E2 1F 00 [13:13:24]MH_I2C_Read... [13:13:24]Read from MH i2c: E2 1F 00 CB 00 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 35 04 06 00 ED 8C E7 7E 24 73 90 00 03 [13:13:24]RAPDU: 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 35 04 06 00 ED 8C E7 7E 24 73 90 00 [13:13:24]wFMCommunicate OK [13:13:24]SAM_PROTO_ProcessDocument received (without SW) 28 bytes [13:13:24]SAM_PROTO_ProcessDocument done [13:13:24]1209 (1) - 1.0 - номер версии ФФД [13:13:24]1041 (16) - 0000000000871830 - номер ФМ [13:13:24]1040 (4) - 116224 - номер ФД [13:13:24]1038 (4) - 474 - номер смены [13:13:24]1118 (4) - 79 - количество кассовых чеков за смену [13:13:24]1111 (4) - 81 - общее количество ФД за смену [13:13:24]1194 (1205) - счетчики итогов смены [13:13:24] 1134 (4) - 79 - количество чеков со всеми признаками расчетов [13:13:24] 1129 (155) - счетчики операций «приход» [13:13:24] 1135 (4) - 77 - количество чеков по признаку расчетов [13:13:24] 1201 (3) - 56733.00 - общая итоговая сумма в чеках [13:13:24] 1136 (3) - 53266.00 - итоговая сумма в чеках наличными [13:13:24] 1138 (3) - 3467.00 - итоговая сумма в чеках безналичными [13:13:24] 1024 (122) - суммы налогов [13:13:24] 1006 (9) - суммы НДС [13:13:24] 1010 (1) - 0% - код ставки НДС [13:13:24] 1011 (0) - 0.00 - сумма НДС по ставке [13:13:24] 1006 (12) - суммы НДС [13:13:24] 1010 (1) - 12% - код ставки НДС [13:13:24] 1011 (3) - 6024.80 - сумма НДС по ставке [13:13:24] 1007 (9) - суммы НСП [13:13:24] 1014 (1) - 0% - код ставки НСП [13:13:24] 1015 (0) - 0.00 - сумма НСП по ставке [13:13:24] 1007 (11) - суммы НСП [13:13:24] 1014 (1) - 1% - код ставки НСП [13:13:24] 1015 (2) - 501.92 - сумма НСП по ставке [13:13:24] 1007 (9) - суммы НСП [13:13:24] 1014 (1) - 2% - код ставки НСП [13:13:24] 1015 (0) - 0.00 - сумма НСП по ставке [13:13:24] 1007 (9) - суммы НСП [13:13:24] 1014 (1) - 3% - код ставки НСП [13:13:24] 1015 (0) - 0.00 - сумма НСП по ставке [13:13:24] 1007 (9) - суммы НСП [13:13:24] 1014 (1) - 5% - код ставки НСП [13:13:24] 1015 (0) - 0.00 - сумма НСП по ставке [13:13:24] 1007 (9) - суммы НСП [13:13:24] 1014 (1) - 0,50% - код ставки НСП [13:13:24] 1015 (0) - 0.00 - сумма НСП по ставке [13:13:24] 1007 (9) - суммы НСП [13:13:24] 1014 (1) - 1,50% - код ставки НСП [13:13:24] 1015 (0) - 0.00 - сумма НСП по ставке [13:13:24] 1130 (152) - счетчики операций «возврат прихода» [13:13:24] 1135 (4) - 2 - количество чеков по признаку расчетов [13:13:24] 1201 (3) - 32004.00 - общая итоговая сумма в чеках [13:13:24] 1136 (3) - 32004.00 - итоговая сумма в чеках наличными [13:13:24] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [13:13:24] 1024 (122) - суммы налогов [13:13:24] 1006 (9) - суммы НДС [13:13:24] 1010 (1) - 0% - код ставки НДС [13:13:24] 1011 (0) - 0.00 - сумма НДС по ставке [13:13:24] 1006 (12) - суммы НДС [13:13:24] 1010 (1) - 12% - код ставки НДС [13:13:24] 1011 (3) - 3398.65 - сумма НДС по ставке [13:13:24] 1007 (9) - суммы НСП [13:13:24] 1014 (1) - 0% - код ставки НСП [13:13:24] 1015 (0) - 0.00 - сумма НСП по ставке [13:13:24] 1007 (11) - суммы НСП [13:13:24] 1014 (1) - 1% - код ставки НСП [13:13:24] 1015 (2) - 283.22 - сумма НСП по ставке [13:13:24] 1007 (9) - суммы НСП [13:13:24] 1014 (1) - 2% - код ставки НСП [13:13:24] 1015 (0) - 0.00 - сумма НСП по ставке [13:13:24] 1007 (9) - суммы НСП [13:13:24] 1014 (1) - 3% - код ставки НСП [13:13:24] 1015 (0) - 0.00 - сумма НСП по ставке [13:13:24] 1007 (9) - суммы НСП [13:13:24] 1014 (1) - 5% - код ставки НСП [13:13:24] 1015 (0) - 0.00 - сумма НСП по ставке [13:13:24] 1007 (9) - суммы НСП [13:13:24] 1014 (1) - 0,50% - код ставки НСП [13:13:24] 1015 (0) - 0.00 - сумма НСП по ставке [13:13:24] 1007 (9) - суммы НСП [13:13:24] 1014 (1) - 1,50% - код ставки НСП [13:13:24] 1015 (0) - 0.00 - сумма НСП по ставке [13:13:24] 1131 (141) - счетчики операций «расход» [13:13:24] 1135 (4) - 0 - количество чеков по признаку расчетов [13:13:24] 1201 (0) - 0.00 - общая итоговая сумма в чеках [13:13:24] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [13:13:24] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [13:13:24] 1024 (117) - суммы налогов [13:13:24] 1006 (9) - суммы НДС [13:13:24] 1010 (1) - 0% - код ставки НДС [13:13:24] 1011 (0) - 0.00 - сумма НДС по ставке [13:13:24] 1006 (9) - суммы НДС [13:13:24] 1010 (1) - 12% - код ставки НДС [13:13:24] 1011 (0) - 0.00 - сумма НДС по ставке [13:13:24] 1007 (9) - суммы НСП [13:13:24] 1014 (1) - 0% - код ставки НСП [13:13:24] 1015 (0) - 0.00 - сумма НСП по ставке [13:13:24] 1007 (9) - суммы НСП [13:13:24] 1014 (1) - 1% - код ставки НСП [13:13:24] 1015 (0) - 0.00 - сумма НСП по ставке [13:13:24] 1007 (9) - суммы НСП [13:13:24] 1014 (1) - 2% - код ставки НСП [13:13:24] 1015 (0) - 0.00 - сумма НСП по ставке [13:13:24] 1007 (9) - суммы НСП [13:13:24] 1014 (1) - 3% - код ставки НСП [13:13:24] 1015 (0) - 0.00 - сумма НСП по ставке [13:13:24] 1007 (9) - суммы НСП [13:13:24] 1014 (1) - 5% - код ставки НСП [13:13:24] 1015 (0) - 0.00 - сумма НСП по ставке [13:13:24] 1007 (9) - суммы НСП [13:13:24] 1014 (1) - 0,50% - код ставки НСП [13:13:24] 1015 (0) - 0.00 - сумма НСП по ставке [13:13:24] 1007 (9) - суммы НСП [13:13:24] 1014 (1) - 1,50% - код ставки НСП [13:13:24] 1015 (0) - 0.00 - сумма НСП по ставке [13:13:24] 1132 (141) - счетчики операций «возврат расхода» [13:13:24] 1135 (4) - 0 - количество чеков по признаку расчетов [13:13:24] 1201 (0) - 0.00 - общая итоговая сумма в чеках [13:13:24] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [13:13:24] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [13:13:24] 1024 (117) - суммы налогов [13:13:24] 1006 (9) - суммы НДС [13:13:24] 1010 (1) - 0% - код ставки НДС [13:13:24] 1011 (0) - 0.00 - сумма НДС по ставке [13:13:24] 1006 (9) - суммы НДС [13:13:24] 1010 (1) - 12% - код ставки НДС [13:13:24] 1011 (0) - 0.00 - сумма НДС по ставке [13:13:24] 1007 (9) - суммы НСП [13:13:24] 1014 (1) - 0% - код ставки НСП [13:13:24] 1015 (0) - 0.00 - сумма НСП по ставке [13:13:24] 1007 (9) - суммы НСП [13:13:24] 1014 (1) - 1% - код ставки НСП [13:13:24] 1015 (0) - 0.00 - сумма НСП по ставке [13:13:24] 1007 (9) - суммы НСП [13:13:24] 1014 (1) - 2% - код ставки НСП [13:13:24] 1015 (0) - 0.00 - сумма НСП по ставке [13:13:24] 1007 (9) - суммы НСП [13:13:24] 1014 (1) - 3% - код ставки НСП [13:13:24] 1015 (0) - 0.00 - сумма НСП по ставке [13:13:24] 1007 (9) - суммы НСП [13:13:24] 1014 (1) - 5% - код ставки НСП [13:13:24] 1015 (0) - 0.00 - сумма НСП по ставке [13:13:24] 1007 (9) - суммы НСП [13:13:24] 1014 (1) - 0,50% - код ставки НСП [13:13:24] 1015 (0) - 0.00 - сумма НСП по ставке [13:13:24] 1007 (9) - суммы НСП [13:13:24] 1014 (1) - 1,50% - код ставки НСП [13:13:24] 1015 (0) - 0.00 - сумма НСП по ставке [13:13:24] 1133 (588) - - счетчики коррекции - не используются [13:13:24]1077 (6) - 261189435008115 - ФПД [13:13:24]SetTLVBufToDocument [13:13:24]Processing tag 1209 (04B9) [13:13:24]Malloc new data [13:13:24]Processing tag 1041 (0411) [13:13:24]Processing tag 1040 (0410) [13:13:24]Malloc new data [13:13:24]Processing tag 1038 (040E) [13:13:24]Malloc new data [13:13:24]Processing tag 1118 (045E) [13:13:24]Malloc new data [13:13:24]Processing tag 1111 (0457) [13:13:24]Malloc new data [13:13:24]Processing tag 1194 (04AA) [13:13:24]Load OK [13:13:24]SetTLVBufToDocument [13:13:24]Processing tag 1134 (046E) [13:13:24]Malloc new data [13:13:24]Processing tag 1129 (0469) [13:13:24]Load OK [13:13:24]SetTLVBufToDocument [13:13:24]Processing tag 1135 (046F) [13:13:24]Malloc new data [13:13:24]Processing tag 1201 (04B1) [13:13:24]Malloc new data [13:13:24]Processing tag 1136 (0470) [13:13:24]Malloc new data [13:13:24]Processing tag 1138 (0472) [13:13:24]Malloc new data [13:13:24]Processing tag 1024 (0400) [13:13:24]Load OK [13:13:24]SetTLVBufToDocument [13:13:24]Processing tag 1006 (03EE) [13:13:24]Load OK [13:13:24]SetTLVBufToDocument [13:13:24]Processing tag 1010 (03F2) [13:13:24]Malloc new data [13:13:24]Processing tag 1011 (03F3) [13:13:24]Malloc new data [13:13:24]SetTLVBufToDocument err=0 [13:13:24]Processing tag 1006 (03EE) [13:13:24]Load OK [13:13:24]SetTLVBufToDocument [13:13:24]Processing tag 1010 (03F2) [13:13:24]Malloc new data [13:13:24]Processing tag 1011 (03F3) [13:13:24]Malloc new data [13:13:24]SetTLVBufToDocument err=0 [13:13:24]Processing tag 1007 (03EF) [13:13:24]Load OK [13:13:24]SetTLVBufToDocument [13:13:24]Processing tag 1014 (03F6) [13:13:24]Malloc new data [13:13:24]Processing tag 1015 (03F7) [13:13:24]Malloc new data [13:13:24]SetTLVBufToDocument err=0 [13:13:24]Processing tag 1007 (03EF) [13:13:24]Load OK [13:13:24]SetTLVBufToDocument [13:13:24]Processing tag 1014 (03F6) [13:13:24]Malloc new data [13:13:24]Processing tag 1015 (03F7) [13:13:24]Malloc new data [13:13:24]SetTLVBufToDocument err=0 [13:13:24]Processing tag 1007 (03EF) [13:13:24]Load OK [13:13:24]SetTLVBufToDocument [13:13:24]Processing tag 1014 (03F6) [13:13:24]Malloc new data [13:13:24]Processing tag 1015 (03F7) [13:13:24]Malloc new data [13:13:24]SetTLVBufToDocument err=0 [13:13:24]Processing tag 1007 (03EF) [13:13:24]Load OK [13:13:24]SetTLVBufToDocument [13:13:24]Processing tag 1014 (03F6) [13:13:24]Malloc new data [13:13:24]Processing tag 1015 (03F7) [13:13:24]Malloc new data [13:13:24]SetTLVBufToDocument err=0 [13:13:24]Processing tag 1007 (03EF) [13:13:24]Load OK [13:13:24]SetTLVBufToDocument [13:13:24]Processing tag 1014 (03F6) [13:13:24]Malloc new data [13:13:24]Processing tag 1015 (03F7) [13:13:24]Malloc new data [13:13:24]SetTLVBufToDocument err=0 [13:13:24]Processing tag 1007 (03EF) [13:13:24]Load OK [13:13:24]SetTLVBufToDocument [13:13:24]Processing tag 1014 (03F6) [13:13:24]Malloc new data [13:13:24]Processing tag 1015 (03F7) [13:13:24]Malloc new data [13:13:24]SetTLVBufToDocument err=0 [13:13:24]Processing tag 1007 (03EF) [13:13:24]Load OK [13:13:24]SetTLVBufToDocument [13:13:24]Processing tag 1014 (03F6) [13:13:24]Malloc new data [13:13:24]Processing tag 1015 (03F7) [13:13:24]Malloc new data [13:13:24]SetTLVBufToDocument err=0 [13:13:24]SetTLVBufToDocument err=0 [13:13:24]SetTLVBufToDocument err=0 [13:13:24]Processing tag 1130 (046A) [13:13:24]Load OK [13:13:24]SetTLVBufToDocument [13:13:24]Processing tag 1135 (046F) [13:13:24]Malloc new data [13:13:24]Processing tag 1201 (04B1) [13:13:24]Malloc new data [13:13:24]Processing tag 1136 (0470) [13:13:24]Malloc new data [13:13:24]Processing tag 1138 (0472) [13:13:24]Malloc new data [13:13:24]Processing tag 1024 (0400) [13:13:24]Load OK [13:13:24]SetTLVBufToDocument [13:13:24]Processing tag 1006 (03EE) [13:13:24]Load OK [13:13:24]SetTLVBufToDocument [13:13:24]Processing tag 1010 (03F2) [13:13:24]Malloc new data [13:13:24]Processing tag 1011 (03F3) [13:13:24]Malloc new data [13:13:24]SetTLVBufToDocument err=0 [13:13:24]Processing tag 1006 (03EE) [13:13:24]Load OK [13:13:24]SetTLVBufToDocument [13:13:24]Processing tag 1010 (03F2) [13:13:24]Malloc new data [13:13:24]Processing tag 1011 (03F3) [13:13:24]Malloc new data [13:13:24]SetTLVBufToDocument err=0 [13:13:24]Processing tag 1007 (03EF) [13:13:24]Load OK [13:13:24]SetTLVBufToDocument [13:13:24]Processing tag 1014 (03F6) [13:13:24]Malloc new data [13:13:24]Processing tag 1015 (03F7) [13:13:24]Malloc new data [13:13:24]SetTLVBufToDocument err=0 [13:13:24]Processing tag 1007 (03EF) [13:13:24]Load OK [13:13:24]SetTLVBufToDocument [13:13:24]Processing tag 1014 (03F6) [13:13:24]Malloc new data [13:13:24]Processing tag 1015 (03F7) [13:13:24]Malloc new data [13:13:24]SetTLVBufToDocument err=0 [13:13:24]Processing tag 1007 (03EF) [13:13:24]Load OK [13:13:24]SetTLVBufToDocument [13:13:24]Processing tag 1014 (03F6) [13:13:24]Malloc new data [13:13:24]Processing tag 1015 (03F7) [13:13:24]Malloc new data [13:13:24]SetTLVBufToDocument err=0 [13:13:24]Processing tag 1007 (03EF) [13:13:24]Load OK [13:13:24]SetTLVBufToDocument [13:13:24]Processing tag 1014 (03F6) [13:13:24]Malloc new data [13:13:24]Processing tag 1015 (03F7) [13:13:24]Malloc new data [13:13:24]SetTLVBufToDocument err=0 [13:13:24]Processing tag 1007 (03EF) [13:13:24]Load OK [13:13:24]SetTLVBufToDocument [13:13:24]Processing tag 1014 (03F6) [13:13:24]Malloc new data [13:13:24]Processing tag 1015 (03F7) [13:13:24]Malloc new data [13:13:24]SetTLVBufToDocument err=0 [13:13:24]Processing tag 1007 (03EF) [13:13:24]Load OK [13:13:24]SetTLVBufToDocument [13:13:24]Processing tag 1014 (03F6) [13:13:24]Malloc new data [13:13:24]Processing tag 1015 (03F7) [13:13:24]Malloc new data [13:13:24]SetTLVBufToDocument err=0 [13:13:24]Processing tag 1007 (03EF) [13:13:24]Load OK [13:13:24]SetTLVBufToDocument [13:13:24]Processing tag 1014 (03F6) [13:13:24]Malloc new data [13:13:24]Processing tag 1015 (03F7) [13:13:24]Malloc new data [13:13:24]SetTLVBufToDocument err=0 [13:13:24]SetTLVBufToDocument err=0 [13:13:24]OFD Sender: No OFD packet to send [13:13:24]SetTLVBufToDocument err=0 [13:13:24]Processing tag 1131 (046B) [13:13:24]Load OK [13:13:24]SetTLVBufToDocument [13:13:24]Processing tag 1135 (046F) [13:13:24]Malloc new data [13:13:24]Processing tag 1201 (04B1) [13:13:24]Malloc new data [13:13:24]Processing tag 1136 (0470) [13:13:24]Malloc new data [13:13:24]Processing tag 1138 (0472) [13:13:24]Malloc new data [13:13:24]Processing tag 1024 (0400) [13:13:24]Load OK [13:13:24]SetTLVBufToDocument [13:13:24]Processing tag 1006 (03EE) [13:13:24]Load OK [13:13:24]SetTLVBufToDocument [13:13:24]Processing tag 1010 (03F2) [13:13:24]Malloc new data [13:13:24]Processing tag 1011 (03F3) [13:13:24]Malloc new data [13:13:24]SetTLVBufToDocument err=0 [13:13:24]Processing tag 1006 (03EE) [13:13:24]Load OK [13:13:24]SetTLVBufToDocument [13:13:24]Processing tag 1010 (03F2) [13:13:24]Malloc new data [13:13:24]Processing tag 1011 (03F3) [13:13:24]Malloc new data [13:13:24]SetTLVBufToDocument err=0 [13:13:24]Processing tag 1007 (03EF) [13:13:24]Load OK [13:13:24]SetTLVBufToDocument [13:13:24]Processing tag 1014 (03F6) [13:13:24]Malloc new data [13:13:24]Processing tag 1015 (03F7) [13:13:24]Malloc new data [13:13:24]SetTLVBufToDocument err=0 [13:13:24]Processing tag 1007 (03EF) [13:13:24]Load OK [13:13:24]SetTLVBufToDocument [13:13:24]Processing tag 1014 (03F6) [13:13:24]Malloc new data [13:13:24]Processing tag 1015 (03F7) [13:13:24]Malloc new data [13:13:24]SetTLVBufToDocument err=0 [13:13:24]Processing tag 1007 (03EF) [13:13:24]Load OK [13:13:24]SetTLVBufToDocument [13:13:24]Processing tag 1014 (03F6) [13:13:24]Malloc new data [13:13:24]Processing tag 1015 (03F7) [13:13:24]Malloc new data [13:13:24]SetTLVBufToDocument err=0 [13:13:24]Processing tag 1007 (03EF) [13:13:24]Load OK [13:13:24]SetTLVBufToDocument [13:13:24]Processing tag 1014 (03F6) [13:13:24]Malloc new data [13:13:24]Processing tag 1015 (03F7) [13:13:24]Malloc new data [13:13:24]SetTLVBufToDocument err=0 [13:13:24]Processing tag 1007 (03EF) [13:13:24]Load OK [13:13:24]SetTLVBufToDocument [13:13:24]Processing tag 1014 (03F6) [13:13:24]Malloc new data [13:13:24]Processing tag 1015 (03F7) [13:13:24]Malloc new data [13:13:24]SetTLVBufToDocument err=0 [13:13:24]Processing tag 1007 (03EF) [13:13:24]Load OK [13:13:24]SetTLVBufToDocument [13:13:24]Processing tag 1014 (03F6) [13:13:24]Malloc new data [13:13:24]Processing tag 1015 (03F7) [13:13:25]Malloc new data [13:13:25]SetTLVBufToDocument err=0 [13:13:25]Processing tag 1007 (03EF) [13:13:25]Load OK [13:13:25]SetTLVBufToDocument [13:13:25]Processing tag 1014 (03F6) [13:13:25]Malloc new data [13:13:25]Processing tag 1015 (03F7) [13:13:25]Malloc new data [13:13:25]SetTLVBufToDocument err=0 [13:13:25]SetTLVBufToDocument err=0 [13:13:25]SetTLVBufToDocument err=0 [13:13:25]Processing tag 1132 (046C) [13:13:25]Load OK [13:13:25]SetTLVBufToDocument [13:13:25]Processing tag 1135 (046F) [13:13:25]Malloc new data [13:13:25]Processing tag 1201 (04B1) [13:13:25]Malloc new data [13:13:25]Processing tag 1136 (0470) [13:13:25]Malloc new data [13:13:25]Processing tag 1138 (0472) [13:13:25]Malloc new data [13:13:25]Processing tag 1024 (0400) [13:13:25]Load OK [13:13:25]SetTLVBufToDocument [13:13:25]Processing tag 1006 (03EE) [13:13:25]Load OK [13:13:25]SetTLVBufToDocument [13:13:25]Processing tag 1010 (03F2) [13:13:25]Malloc new data [13:13:25]Processing tag 1011 (03F3) [13:13:25]Malloc new data [13:13:25]SetTLVBufToDocument err=0 [13:13:25]Processing tag 1006 (03EE) [13:13:25]Load OK [13:13:25]SetTLVBufToDocument [13:13:25]Processing tag 1010 (03F2) [13:13:25]Malloc new data [13:13:25]Processing tag 1011 (03F3) [13:13:25]Malloc new data [13:13:25]SetTLVBufToDocument err=0 [13:13:25]Processing tag 1007 (03EF) [13:13:25]Load OK [13:13:25]SetTLVBufToDocument [13:13:25]Processing tag 1014 (03F6) [13:13:25]Malloc new data [13:13:25]Processing tag 1015 (03F7) [13:13:25]Malloc new data [13:13:25]SetTLVBufToDocument err=0 [13:13:25]Processing tag 1007 (03EF) [13:13:25]Load OK [13:13:25]SetTLVBufToDocument [13:13:25]Processing tag 1014 (03F6) [13:13:25]Malloc new data [13:13:25]Processing tag 1015 (03F7) [13:13:25]Malloc new data [13:13:25]SetTLVBufToDocument err=0 [13:13:25]Processing tag 1007 (03EF) [13:13:25]Load OK [13:13:25]SetTLVBufToDocument [13:13:25]Processing tag 1014 (03F6) [13:13:25]Malloc new data [13:13:25]Processing tag 1015 (03F7) [13:13:25]Malloc new data [13:13:25]SetTLVBufToDocument err=0 [13:13:25]Processing tag 1007 (03EF) [13:13:25]Load OK [13:13:25]SetTLVBufToDocument [13:13:25]Processing tag 1014 (03F6) [13:13:25]Malloc new data [13:13:25]Processing tag 1015 (03F7) [13:13:25]Malloc new data [13:13:25]SetTLVBufToDocument err=0 [13:13:25]Processing tag 1007 (03EF) [13:13:25]Load OK [13:13:25]SetTLVBufToDocument [13:13:25]Processing tag 1014 (03F6) [13:13:25]Malloc new data [13:13:25]Processing tag 1015 (03F7) [13:13:25]Malloc new data [13:13:25]SetTLVBufToDocument err=0 [13:13:25]Processing tag 1007 (03EF) [13:13:25]Load OK [13:13:25]SetTLVBufToDocument [13:13:25]Processing tag 1014 (03F6) [13:13:25]Malloc new data [13:13:25]Processing tag 1015 (03F7) [13:13:25]Malloc new data [13:13:25]SetTLVBufToDocument err=0 [13:13:25]Processing tag 1007 (03EF) [13:13:25]Load OK [13:13:25]SetTLVBufToDocument [13:13:25]Processing tag 1014 (03F6) [13:13:25]Malloc new data [13:13:25]Processing tag 1015 (03F7) [13:13:25]Malloc new data [13:13:25]SetTLVBufToDocument err=0 [13:13:25]SetTLVBufToDocument err=0 [13:13:25]SetTLVBufToDocument err=0 [13:13:25]Processing tag 1133 (046D) [13:13:25]Malloc new data [13:13:25]SetTLVBufToDocument err=0 [13:13:25]Processing tag 1077 (0435) [13:13:25]Malloc new data [13:13:25]SetTLVBufToDocument err=0 [13:13:25]Malloc new data [13:13:25]SAM_PROTO_GetFMData [13:13:25]wFMCommunicate request_size=4 [13:13:25]MH_SAM_APDU [13:13:25]CAPDU: 80 13 03 00 [13:13:25]Write to MH i2c: E2 08 00 CC 00 80 13 03 00 00 00 00 00 4B [13:13:25]Write i2c OK [13:13:25]MH_I2C_Read... [13:13:25]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [13:13:25]Read from MH i2c: E2 [13:13:25]MH_I2C_Read... [13:13:25]Read from MH i2c: E2 FD 00 [13:13:25]MH_I2C_Read... [13:13:25]Read from MH i2c: E2 FD 00 CC 00 00 C5 04 85 04 C1 04 6E 04 04 00 4A C2 01 00 69 04 A3 00 6F 04 04 00 CA C0 01 00 B1 04 05 00 25 DC 5E 83 01 70 04 05 00 FD 53 01 49 01 72 04 04 00 28 88 5D 3A 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 AA E1 24 29 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 C4 86 6D 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 80 01 00 00 B1 04 04 00 CC 60 FF 0F 70 04 04 00 CC 60 FF 0F 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 16 ED B2 01 EF 03 09 90 00 09 [13:13:26]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 4A C2 01 00 69 04 A3 00 6F 04 04 00 CA C0 01 00 B1 04 05 00 25 DC 5E 83 01 70 04 05 00 FD 53 01 49 01 72 04 04 00 28 88 5D 3A 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 AA E1 24 29 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 C4 86 6D 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 80 01 00 00 B1 04 04 00 CC 60 FF 0F 70 04 04 00 CC 60 FF 0F 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 16 ED B2 01 EF 03 09 90 00 [13:13:26]wFMCommunicate OK [13:13:26]wFMCommunicate request_size=4 [13:13:26]MH_SAM_APDU [13:13:26]CAPDU: 80 17 00 00 [13:13:26]Write to MH i2c: E2 08 00 CD 00 80 17 00 00 00 00 00 00 4D [13:13:26]Write i2c OK [13:13:26]MH_I2C_Read... [13:13:26]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [13:13:26]Read from MH i2c: E2 [13:13:26]MH_I2C_Read... [13:13:26]Read from MH i2c: E2 FD 00 [13:13:26]MH_I2C_Read... [13:13:26]Read from MH i2c: E2 FD 00 CD 00 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 50 3E 24 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 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 [13:13: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 50 3E 24 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 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 [13:13:26]wFMCommunicate OK [13:13:26]wFMCommunicate request_size=4 [13:13:26]MH_SAM_APDU [13:13:26]CAPDU: 80 17 00 00 [13:13:26]Write to MH i2c: E2 08 00 CE 00 80 17 00 00 00 00 00 00 4E [13:13:26]Write i2c OK [13:13:26]MH_I2C_Read... [13:13:27]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [13:13:27]Read from MH i2c: E2 [13:13:27]MH_I2C_Read... [13:13:27]Read from MH i2c: E2 FD 00 [13:13:27]MH_I2C_Read... [13:13:27]Read from MH i2c: E2 FD 00 CE 00 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 60 [13:13:27]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 [13:13:27]wFMCommunicate OK [13:13:27]wFMCommunicate request_size=4 [13:13:27]MH_SAM_APDU [13:13:27]CAPDU: 80 17 00 00 [13:13:27]Write to MH i2c: E2 08 00 CF 00 80 17 00 00 00 00 00 00 4F [13:13:27]Write i2c OK [13:13:27]MH_I2C_Read... [13:13:27]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [13:13:27]Read from MH i2c: E2 [13:13:27]MH_I2C_Read... [13:13:27]Read from MH i2c: E2 FD 00 [13:13:27]MH_I2C_Read... [13:13:27]Read from MH i2c: E2 FD 00 CF 00 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 DB [13:13: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 [13:13:27]wFMCommunicate OK [13:13:27]wFMCommunicate request_size=4 [13:13:27]MH_SAM_APDU [13:13:27]CAPDU: 80 17 00 00 [13:13:28]Write to MH i2c: E2 08 00 D0 00 80 17 00 00 00 00 00 00 50 [13:13:28]Write i2c OK [13:13:28]MH_I2C_Read... [13:13:28]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [13:13:28]Read from MH i2c: E2 [13:13:28]MH_I2C_Read... [13:13:28]Read from MH i2c: E2 E2 00 [13:13:28]MH_I2C_Read... [13:13:28]Read from MH i2c: E2 E2 00 D0 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 2E [13:13:28]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 [13:13:28]wFMCommunicate OK [13:13:28]SAM_PROTO_GetFMData done [13:13:28]Malloc new data [13:13:28]Malloc new data [13:13:28]Malloc new data [13:13:28]Malloc new data [13:13:28]KKMLoadAndSignCloseShiftData err=0 [13:13:28]Отчет о закрытии смены ФФД: 1.0 ИНН: 02508201610067 Кассир: Жакыпов А. 25.09.2024 13:13 Смена: 474 РНМ: 0000000000091831 ЗНМ: 0300000120 СНО: Общий режим Чеков за смену: 79 ФД за смену: 81 Всего чеков: 79 ИТОГИ ПРИХОД Чеков: 77 Общий итог: 56733.00 Итого наличными: 53266.00 Итого безнал.: 3467.00 НДС 0% : 0.00 НДС 12% : 6024.80 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 501.92 ИТОГИ ВОЗВРАТ ПРИХОДА Чеков: 2 Общий итог: 32004.00 Итого наличными: 32004.00 Итого безнал.: 0.00 НДС 0% : 0.00 НДС 12% : 3398.65 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 283.22 ИТОГИ РАСХОД Чеков: 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 Нал. в кассе: 21262.00 НС Приход: 64989993.33 НС Возвр.Прихода: 2683947.00 НС Расход: 0.00 НС Возвр.Расхода: 0.00 ФД: 116224 ФМ: 0000000000871830 ФПД: 261189435008115 [13:13:28]StoreToDocumentArchive [13:13:28]shift 474 fd 116224 [13:13:28]save to /storage/0474/doc_00116224 [13:13:28]save last doc name /storage/0474/doc_00116224 to /storage/kkm_last_doc_name [13:13:28]save OK [13:13:28]Clear old archive folders... [13:13:28]Remove dir /storage/0266 [13:13:28]opendir ok [13:13:28]file . [13:13:28]file .. [13:13:28]file doc_1727269955 [13:13:28]remove file /storage/0266/doc_1727269955 [13:13:28]remove dir /storage/0266 [13:13:28]NVStorageSaveData kkm_registers [13:13:28]File name is /storage/kkm_registers [13:13:28]Write 24 bytes [13:13:28]NVStorageSaveData done [13:13:28]NVStorageSaveData kkm_registers [13:13:28]File name is /storage/kkm_registers [13:13:28]Write 24 bytes [13:13:28]NVStorageSaveData done [13:13:28]ProcessDocumentItem done err = 0, tmpTLVsize=1384 [13:13:28]tlvbuf is 013B60C0 [13:13:28]SAM_PROTO_ClearQueue [13:13:28]wFMCommunicate request_size=4 [13:13:28]MH_SAM_APDU [13:13:28]CAPDU: 80 09 00 00 [13:13:28]Write to MH i2c: E2 08 00 D1 00 80 09 00 00 00 00 00 00 43 [13:13:28]Write i2c OK [13:13:28]MH_I2C_Read... [13:13:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:13:28]Read from MH i2c: E2 [13:13:28]MH_I2C_Read... [13:13:28]Read from MH i2c: E2 03 00 [13:13:28]MH_I2C_Read... [13:13:28]Read from MH i2c: E2 03 00 D1 00 00 90 00 45 [13:13:28]RAPDU: 90 00 [13:13:28]wFMCommunicate OK [13:13:28]SAM_PROTO_ClearQueue done [13:13:28]KKMCreateOFDPacket [13:13:28]OFDProtocolAddRootSTLVToBuf [13:13:28]FM_MakeSignedData [13:13:28]FM_MakeSignedData [13:13:28]SAM_PROTO_SignData [13:13:28]wFMCommunicate request_size=4 [13:13:28]MH_SAM_APDU [13:13:28]CAPDU: 80 0D 01 02 [13:13:28]Write to MH i2c: E2 08 00 D2 00 80 0D 01 02 00 00 00 00 4B [13:13:28]Write i2c OK [13:13:28]MH_I2C_Read... [13:13:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:13:28]Read from MH i2c: E2 [13:13:28]MH_I2C_Read... [13:13:28]Read from MH i2c: E2 03 00 [13:13:28]MH_I2C_Read... [13:13:28]Read from MH i2c: E2 03 00 D2 00 00 90 00 46 [13:13:28]RAPDU: 90 00 [13:13:28]wFMCommunicate OK [13:13:28]wFMCommunicate request_size=255 [13:13:28]MH_SAM_APDU [13:13:28]CAPDU: 80 0D 02 02 FA 05 00 68 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 13 00 D0 96 D0 B0 D0 BA D1 8B D0 BF D0 BE D0 B2 20 D0 90 2E 20 F4 03 04 00 71 0C F4 66 0E 04 04 00 DA 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 5E 04 04 00 4F 00 00 00 57 04 04 00 51 00 00 00 AA 04 DC 04 6E 04 04 00 4F 00 00 00 69 04 A2 00 6F 04 04 00 4D 00 00 00 B1 04 03 00 54 91 56 70 04 03 00 08 47 51 72 04 03 00 4C 4A 05 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 70 31 09 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 [13:13:28]Write to MH i2c: E2 02 01 D3 00 80 0D 02 02 FA 00 05 00 68 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 13 00 D0 96 D0 B0 D0 BA D1 8B D0 BF D0 BE D0 B2 20 D0 90 2E 20 F4 03 04 00 71 0C F4 66 0E 04 04 00 DA 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 5E 04 04 00 4F 00 00 00 57 04 04 00 51 00 00 00 AA 04 DC 04 6E 04 04 00 4F 00 00 00 69 04 A2 00 6F 04 04 00 4D 00 00 00 B1 04 03 00 54 91 56 70 04 03 00 08 47 51 72 04 03 00 4C 4A 05 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 70 31 09 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 00 FE [13:13:29]Write i2c OK [13:13:29]MH_I2C_Read... [13:13:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:13:29]Read from MH i2c: E2 [13:13:29]MH_I2C_Read... [13:13:29]Read from MH i2c: E2 03 00 [13:13:29]MH_I2C_Read... [13:13:29]Read from MH i2c: E2 03 00 D3 00 00 90 00 47 [13:13:29]RAPDU: 90 00 [13:13:29]wFMCommunicate OK [13:13:29]wFMCommunicate request_size=255 [13:13:29]MH_SAM_APDU [13:13:29]CAPDU: 80 0D 02 02 FA 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 10 C4 6A 04 A0 00 6F 04 04 00 02 00 00 00 B1 04 03 00 90 D5 30 70 04 03 00 90 D5 30 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 99 2F 05 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 A2 6E 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 [13:13:29]Write to MH i2c: E2 02 01 D4 00 80 0D 02 02 FA 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 10 C4 6A 04 A0 00 6F 04 04 00 02 00 00 00 B1 04 03 00 90 D5 30 70 04 03 00 90 D5 30 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 99 2F 05 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 A2 6E 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 00 00 AD [13:13:29]Write i2c OK [13:13:29]MH_I2C_Read... [13:13:29]OFD Sender: No OFD packet to send [13:13:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:13:30]Read from MH i2c: E2 [13:13:30]MH_I2C_Read... [13:13:30]Read from MH i2c: E2 03 00 [13:13:30]MH_I2C_Read... [13:13:30]Read from MH i2c: E2 03 00 D4 00 00 90 00 48 [13:13:30]RAPDU: 90 00 [13:13:30]wFMCommunicate OK [13:13:30]wFMCommunicate request_size=255 [13:13:30]MH_SAM_APDU [13:13:30]CAPDU: 80 0D 02 02 FA 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 [13:13:30]Write to MH i2c: E2 02 01 D5 00 80 0D 02 02 FA 00 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 00 00 15 [13:13:30]Write i2c OK [13:13:30]MH_I2C_Read... [13:13:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:13:30]Read from MH i2c: E2 [13:13:30]MH_I2C_Read... [13:13:30]Read from MH i2c: E2 03 00 [13:13:30]MH_I2C_Read... [13:13:30]Read from MH i2c: E2 03 00 D5 00 00 90 00 49 [13:13:30]RAPDU: 90 00 [13:13:30]wFMCommunicate OK [13:13:30]wFMCommunicate request_size=255 [13:13:30]MH_SAM_APDU [13:13:30]CAPDU: 80 0D 02 02 FA 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 [13:13:30]Write to MH i2c: E2 02 01 D6 00 80 0D 02 02 FA 00 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 00 00 12 [13:13:31]Write i2c OK [13:13:31]MH_I2C_Read... [13:13:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:13:31]Read from MH i2c: E2 [13:13:31]MH_I2C_Read... [13:13:31]Read from MH i2c: E2 03 00 [13:13:31]MH_I2C_Read... [13:13:31]Read from MH i2c: E2 03 00 D6 00 00 90 00 4A [13:13:31]RAPDU: 90 00 [13:13:31]wFMCommunicate OK [13:13:31]wFMCommunicate request_size=255 [13:13:31]MH_SAM_APDU [13:13:31]CAPDU: 80 0D 02 02 FA 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 [13:13:31]Write to MH i2c: E2 02 01 D7 00 80 0D 02 02 FA 00 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 00 00 EA [13:13:31]Write i2c OK [13:13:31]MH_I2C_Read... [13:13:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:13:32]Read from MH i2c: E2 [13:13:32]MH_I2C_Read... [13:13:32]Read from MH i2c: E2 03 00 [13:13:32]MH_I2C_Read... [13:13:32]Read from MH i2c: E2 03 00 D7 00 00 90 00 4B [13:13:32]RAPDU: 90 00 [13:13:32]wFMCommunicate OK [13:13:32]wFMCommunicate request_size=143 [13:13:32]MH_SAM_APDU [13:13:32]CAPDU: 80 0D 02 02 8A F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 00 C6 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 35 04 06 00 ED 8C E7 7E 24 73 [13:13:32]Write to MH i2c: E2 92 00 D8 00 80 0D 02 02 8A 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 00 C6 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 35 04 06 00 ED 8C E7 7E 24 73 00 00 C4 [13:13:32]Write i2c OK [13:13:32]MH_I2C_Read... [13:13:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:13:32]Read from MH i2c: E2 [13:13:32]MH_I2C_Read... [13:13:32]Read from MH i2c: E2 03 00 [13:13:32]MH_I2C_Read... [13:13:32]Read from MH i2c: E2 03 00 D8 00 00 90 00 4C [13:13:32]RAPDU: 90 00 [13:13:32]wFMCommunicate OK [13:13:32]wFMCommunicate request_size=4 [13:13:32]MH_SAM_APDU [13:13:32]CAPDU: 80 0D 03 02 [13:13:32]Write to MH i2c: E2 08 00 D9 00 80 0D 03 02 00 00 00 00 54 [13:13:32]Write i2c OK [13:13:32]MH_I2C_Read... [13:13:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:13:32]Read from MH i2c: E2 [13:13:32]MH_I2C_Read... [13:13:32]Read from MH i2c: E2 0B 00 [13:13:32]MH_I2C_Read... [13:13:32]Read from MH i2c: E2 0B 00 D9 00 00 94 A1 72 D4 69 D9 48 7C 90 00 D6 [13:13:32]RAPDU: 94 A1 72 D4 69 D9 48 7C 90 00 [13:13:32]wFMCommunicate OK [13:13:32]SAM_PROTO_SignData done [13:13:32]FM_MakeSignedData done [13:13:32]CreateOFDProtocolMessage [13:13:32]wFMCommunicate request_size=4 [13:13:32]MH_SAM_APDU [13:13:32]CAPDU: 80 11 00 00 [13:13:32]Write to MH i2c: E2 08 00 DA 00 80 11 00 00 00 00 00 00 54 [13:13:32]Write i2c OK [13:13:32]MH_I2C_Read... [13:13:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:13:32]Read from MH i2c: E2 [13:13:32]MH_I2C_Read... [13:13:32]Read from MH i2c: E2 17 00 [13:13:32]MH_I2C_Read... [13:13:32]Read from MH i2c: E2 17 00 DA 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 A2 [13:13:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 90 00 [13:13:32]wFMCommunicate OK [13:13:32]CreateOFDProtocolMessage done [13:13:32]OFDSenderStorePacket 116224 [13:13:32]StoreOFDPacket docnum=116224 [13:13:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 7C 05 00 00 77 48 74 05 65 F1 5A 05 01 00 05 00 68 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 13 00 D0 96 D0 B0 D0 BA D1 8B D0 BF D0 BE D0 B2 20 D0 90 2E 20 F4 03 04 00 71 0C F4 66 0E 04 04 00 DA 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 5E 04 04 00 4F 00 00 00 57 04 04 00 51 00 00 00 AA 04 DC 04 6E 04 04 00 4F 00 00 00 69 04 A2 00 6F 04 04 00 4D 00 00 00 B1 04 03 00 54 91 56 70 04 03 00 08 47 51 72 04 03 00 4C 4A 05 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 70 31 09 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 10 C4 6A 04 A0 00 6F 04 04 00 02 00 00 00 B1 04 03 00 90 D5 30 70 04 03 00 90 D5 30 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 99 2F 05 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 A2 6E 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 00 C6 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 35 04 06 00 ED 8C E7 7E 24 73 94 A1 72 D4 69 D9 48 7C [13:13:33]CheckFolder [13:13:33]dirname=/storage/ofd_packets [13:13:33]CheckFolder done [13:13:33]ProducePacketName [13:13:33]name=ofd_packets/00116224 [13:13:33]NVStorageSaveData ofd_packets/00116224 [13:13:33]File name is /storage/ofd_packets/00116224 [13:13:33]Write 1434 bytes [13:13:33]NVStorageSaveData done [13:13:33]OFDSenderStorePacket done [13:13:33]KKMCreateOFDPacket done [13:13:33]NVStorageSaveData kkm_last_timestamp [13:13:33]File name is /storage/kkm_last_timestamp [13:13:33]Write 4 bytes [13:13:33]NVStorageSaveData done [13:13:33]ExternCall_PrintAddStr [13:13:33]wPrintStart [13:13:33]Write to MH i2c: 01 00 00 DB 00 DB [13:13:33]Write i2c OK [13:13:33]MH_I2C_Read... [13:13:33]Read from MH i2c: 01 [13:13:33]MH_I2C_Read... [13:13:33]Read from MH i2c: 01 07 00 [13:13:33]MH_I2C_Read... [13:13:33]Read from MH i2c: 01 07 00 DB 00 00 00 00 00 00 FF 0F F0 [13:13:33]RasterBufferAndPrint [13:13:33]line Отчет о закрытии смены [13:13:33]line ФФД: 1.0 [13:13:33]line ИНН: 02508201610067 [13:13:33]line Кассир: Жакыпов А. [13:13:33]line 25.09.2024 13:13 [13:13:33]line Смена: 474 [13:13:33]line РНМ: 0000000000091831 [13:13:33]line ЗНМ: 0300000120 [13:13:33]line СНО: Общий режим [13:13:33]line Чеков за смену: 79 [13:13:33]line ФД за смену: 81 [13:13:33]line Всего чеков: 79 [13:13:33]line ИТОГИ ПРИХОД [13:13:33]line Чеков: 77 [13:13:33]line Общий итог: 56733.00 [13:13:33]line Итого наличными: 53266.00 [13:13:33]line Итого безнал.: 3467.00 [13:13:33]line НДС 0% : 0.00 [13:13:33]line НДС 12% : 6024.80 [13:13:33]line НСП 0% : 0.00 [13:13:33]line НСП 1,50% : 0.00 [13:13:33]line НСП 0,50% : 0.00 [13:13:33]line НСП 5% : 0.00 [13:13:33]line НСП 3% : 0.00 [13:13:33]line НСП 2% : 0.00 [13:13:33]line НСП 1% : 501.92 [13:13:33]line ИТОГИ ВОЗВРАТ ПРИХОДА [13:13:33]line Чеков: 2 [13:13:33]line Общий итог: 32004.00 [13:13:33]line Итого наличными: 32004.00 [13:13:33]line Итого безнал.: 0.00 [13:13:33]line НДС 0% : 0.00 [13:13:33]line НДС 12% : 3398.65 [13:13:33]line НСП 0% : 0.00 [13:13:33]line НСП 1,50% : 0.00 [13:13:33]line НСП 0,50% : 0.00 [13:13:33]line НСП 5% : 0.00 [13:13:33]line НСП 3% : 0.00 [13:13:33]line НСП 2% : 0.00 [13:13:33]line НСП 1% : 283.22 [13:13:33]line ИТОГИ РАСХОД [13:13:33]line Чеков: 0 [13:13:33]line Общий итог: 0.00 [13:13:33]line Итого наличными: 0.00 [13:13:33]line Итого безнал.: 0.00 [13:13:33]line НДС 0% : 0.00 [13:13:33]line НДС 12% : 0.00 [13:13:33]line НСП 0% : 0.00 [13:13:33]line НСП 1,50% : 0.00 [13:13:33]line НСП 0,50% : 0.00 [13:13:33]line НСП 5% : 0.00 [13:13:33]line НСП 3% : 0.00 [13:13:33]line НСП 2% : 0.00 [13:13:33]line НСП 1% : 0.00 [13:13:33]line ИТОГИ ВОЗВРАТ РАСХОДА [13:13:33]line Чеков: 0 [13:13:33]line Общий итог: 0.00 [13:13:33]line Итого наличными: 0.00 [13:13:33]line Итого безнал.: 0.00 [13:13:33]line НДС 0% : 0.00 [13:13:33]line НДС 12% : 0.00 [13:13:33]line НСП 0% : 0.00 [13:13:33]line НСП 1,50% : 0.00 [13:13:33]line НСП 0,50% : 0.00 [13:13:33]line НСП 5% : 0.00 [13:13:33]line НСП 3% : 0.00 [13:13:33]line НСП 2% : 0.00 [13:13:33]line НСП 1% : 0.00 [13:13:33]line Сумма внесений: 0.00 [13:13:33]line Сумма выплат: 0.00 [13:13:33]line Нал. в кассе: 21262.00 [13:13:33]line НС Приход: 64989993.33 [13:13:33]line НС Возвр.Прихода: 2683947.00 [13:13:33]line НС Расход: 0.00 [13:13:33]line НС Возвр.Расхода: 0.00 [13:13:33]line ФД: 116224 [13:13:33]line ФМ: 0000000000871830 [13:13:33]line ФПД: 261189435008115 [13:13:33]OFD Sender: Processing packet 116224 [packets to send 482, broken 481] [13:13:33]ProducePacketName [13:13:33]name=ofd_packets/00116224 [13:13:33]OFD Sender: To server: pG, [13:13:33]CommunicateWithHost lk.salyk.kg:30040 [13:13:33]ConnectInit lk.salyk.kg [13:13:33]written 0, free lines is 4095 [13:13:33]Connected sock=10 [13:13:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 7C 05 00 00 77 48 74 05 65 F1 5A 05 01 00 05 00 68 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 13 00 D0 96 D0 B0 D0 BA D1 8B D0 BF D0 BE D0 B2 20 D0 90 2E 20 F4 03 04 00 71 0C F4 66 0E 04 04 00 DA 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 5E 04 04 00 4F 00 00 00 57 04 04 00 51 00 00 00 AA 04 DC 04 6E 04 04 00 4F 00 00 00 69 04 A2 00 6F 04 04 00 4D 00 00 00 B1 04 03 00 54 91 56 70 04 03 00 08 47 51 72 04 03 00 4C 4A 05 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 70 31 09 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 10 C4 6A 04 A0 00 6F 04 04 00 02 00 00 00 B1 04 03 00 90 D5 30 70 04 03 00 90 D5 30 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 99 2F 05 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 A2 6E 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 Write to MH i2c: 03 01 01 00 00 00 00 2B EF 01 03 2C 0A [13:13:34]00 F6 Write i2c OK [13:13:34]03 MH_I2C_Read... [13:13:34]01 Read from MH i2c: 00 01 05 [13:13:34]F7 MH_I2C_Read... [13:13:34]03 01 00 00 EF 03 0A 00 Read from MH i2c: F6 01 03 07 01 00 00 [13:13:34]04 MH_I2C_Read... [13:13:34]F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 Read from MH i2c: 03 01 01 07 00 00 00 2B EF 01 03 00 0A 00 00 00 F6 00 03 00 01 5A 00 0A 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 97 F7 [13:13:34]03 RasterBufferAndPrint [13:13:34]01 line [13:13:34]00 line [13:13:34]00 line [13:13:34]6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 line [13:13:34]8D line [13:13:34]00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 written 0, free lines is 2739 [13:13:34]00 00 EF 03 09 00 F6 03 01 00 05 F7 03 MH_Cut [13:13:34]00 Write to MH i2c: 00 D1 EF 01 03 00 09 32 00 01 F6 01 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 05 04 [13:13:34]00 00 00 00 00 B1 04 00 00 70 Write i2c OK [13:13:34]04 MH_I2C_Read... [13:13:34]00 Read from MH i2c: 00 D1 72 [13:13:34]04 MH_I2C_Read... [13:13:34]00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 Read from MH i2c: 00 D1 00 01 EF 00 [13:13:34]03 MH_I2C_Read... [13:13:34]09 00 Read from MH i2c: F6 D1 03 01 01 00 00 32 03 01 F7 00 03 04 00 [13:13:34]00 Write to MH i2c: EF 01 03 00 09 00 00 33 F6 01 03 34 [13:13:34]01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 Write i2c OK [13:13:34]00 MH_I2C_Read... [13:13:34]EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 00 C6 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 35 04 06 00 ED 8C E7 7E 24 73 94 A1 72 D4 69 D9 48 7C [13:13:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 4F 00 00 00 C8 EF 47 00 EA C7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 10 04 04 00 00 C6 01 00 F4 03 04 00 B9 B1 F3 66 B6 04 01 00 00 F6 C1 25 49 28 B0 14 CA [13:13:35]CommunicateWithHost err = 0 [13:13:35]CheckOFDResponse [13:13:35]1017 (14) - 77093643461234 [13:13:35]1041 (16) - 0000000000871830 [13:13:35]1040 (4) - 116224 [13:13:35]1012 (4) - 25.09.2024 06:46 [13:13:35]1206 (1) - 0 [13:13:35]OFD Sender: Remove packet 116224 [13:13:35]ProducePacketName [13:13:35]name=ofd_packets/00116224 [13:13:35]NVStorageDeleteData [13:13:36]*** Cut start [13:13:36]*** Partial cut [13:13:36]*** CUTSNS_PIN = 1 [13:13:36]*** CUTSNS_PIN = 0 [13:13:36]*** Brake cut motor [13:13:36]OFD Sender: No OFD packet to send [13:13:36]Read from MH i2c: 01 [13:13:36]MH_I2C_Read... [13:13:36]*** Stop cut motor [13:13:36]*** Cut end [13:13:36]Read from MH i2c: 01 07 00 [13:13:36]MH_I2C_Read... [13:13:36]Read from MH i2c: 01 07 00 33 01 00 00 00 00 00 FF 0F 49 [13:13:36]process_action close_shift done [13:13:36]requested_data is exist [13:13:36]produce_requested_data [13:13:36]requested_item fd.num is exist - process it [13:13:36]SAM_PROTO_GetFieldsCounters [13:13:36]wFMCommunicate request_size=4 [13:13:36]MH_SAM_APDU [13:13:36]CAPDU: 80 13 00 00 [13:13:36]Write to MH i2c: E2 08 00 34 01 80 13 00 00 00 00 00 00 B1 [13:13:36]Write i2c OK [13:13:36]MH_I2C_Read... [13:13:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:13:36]Read from MH i2c: E2 [13:13:36]MH_I2C_Read... [13:13:36]Read from MH i2c: E2 62 00 [13:13:36]MH_I2C_Read... [13:13:36]Read from MH i2c: E2 62 00 34 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 00 C6 01 00 0E 04 04 00 DA 01 00 00 12 04 04 00 4F 00 00 00 5E 04 04 00 4F 00 00 00 57 04 04 00 51 00 00 00 19 04 04 00 00 00 00 00 90 00 5A [13:13:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 33 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 33 31 10 04 04 00 00 C6 01 00 0E 04 04 00 DA 01 00 00 12 04 04 00 4F 00 00 00 5E 04 04 00 4F 00 00 00 57 04 04 00 51 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:13:37]wFMCommunicate OK [13:13:37]SAM_PROTO_GetFieldsCounters done [13:13:37]requested_item shift.num is exist - process it [13:13:37]requested_item shift.opened is exist - process it [13:13:37]req_shift_opened [13:13:37]FM_GetShiftState [13:13:37]SAM_PROTO_GetShiftState [13:13:37]wFMCommunicate request_size=4 [13:13:37]MH_SAM_APDU [13:13:37]CAPDU: 80 13 01 00 [13:13:37]Write to MH i2c: E2 08 00 35 01 80 13 01 00 00 00 00 00 B3 [13:13:37]Write i2c OK [13:13:37]MH_I2C_Read... [13:13:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:13:37]Read from MH i2c: E2 [13:13:37]MH_I2C_Read... [13:13:37]Read from MH i2c: E2 0E 00 [13:13:37]MH_I2C_Read... [13:13:37]Read from MH i2c: E2 0E 00 35 01 00 09 00 00 00 00 00 00 00 00 00 00 90 00 BE [13:13:37]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [13:13:37]wFMCommunicate OK [13:13:37]SAM_PROTO_GetShiftState done [13:13:37]FM_GetShiftState done [13:13:37]req_shift_opened done [13:13:37]requested_item shift.open_date is exist - process it [13:13:37]req_shift_open_date [13:13:37]FM_GetShiftState [13:13:37]SAM_PROTO_GetShiftState [13:13:37]wFMCommunicate request_size=4 [13:13:37]MH_SAM_APDU [13:13:37]CAPDU: 80 13 01 00 [13:13:37]Write to MH i2c: E2 08 00 36 01 80 13 01 00 00 00 00 00 B4 [13:13:37]Write i2c OK [13:13:37]MH_I2C_Read... [13:13:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:13:37]Read from MH i2c: E2 [13:13:37]MH_I2C_Read... [13:13:37]Read from MH i2c: E2 0E 00 [13:13:37]MH_I2C_Read... [13:13:37]Read from MH i2c: E2 0E 00 36 01 00 09 00 00 00 00 00 00 00 00 00 00 90 00 BF [13:13:37]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [13:13:37]wFMCommunicate OK [13:13:37]SAM_PROTO_GetShiftState done [13:13:37]FM_GetShiftState done [13:13:37]req_shift_open_date done [13:13:37]produce_requested_data done [13:13:37]produce_requested_data return {"fd.num":116224,"shift.num":474,"shift.opened":0,"shift.open_date":0} [13:13:37]process_action_free close_shift [13:13:37]json_value_free [13:13:37]json_value_free done [13:13:37]process_json_proto returns [13:13:37]Send response to host [13:13:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":116224,"shift.num":474,"shift.opened":0,"shift.open_date":0}}} [13:13:37]free response buf [13:13:37]execute_script done [13:13:37]execute_script returns [13:13:37]free content buf [13:13:37]Sock 9.Close socket [13:13:37]Sock 9.Thread stoped [13:13:41]OFD Sender: No OFD packet to send [13:13:46]OFD Sender: No OFD packet to send [13:13:51]OFD Sender: No OFD packet to send [13:13:56]OFD Sender: No OFD packet to send [13:14:01]OFD Sender: No OFD packet to send [13:14:06]OFD Sender: No OFD packet to send [13:14:11]OFD Sender: No OFD packet to send [13:14:16]OFD Sender: No OFD packet to send [13:14:21]OFD Sender: No OFD packet to send [13:14:26]OFD Sender: No OFD packet to send [13:14:31]OFD Sender: No OFD packet to send [13:14:36]OFD Sender: No OFD packet to send [13:14:41]OFD Sender: No OFD packet to send [13:14:46]OFD Sender: No OFD packet to send [13:14:51]OFD Sender: No OFD packet to send [13:14:56]OFD Sender: No OFD packet to send [13:15:01]OFD Sender: No OFD packet to send [13:15:06]OFD Sender: No OFD packet to send [13:15:11]OFD Sender: No OFD packet to send [13:15:16]OFD Sender: No OFD packet to send [13:15:21]OFD Sender: No OFD packet to send [13:15:26]OFD Sender: No OFD packet to send [13:15:31]OFD Sender: No OFD packet to send [13:15:36]OFD Sender: No OFD packet to send [13:15:41]OFD Sender: No OFD packet to send [13:15:46]OFD Sender: No OFD packet to send [13:15:51]OFD Sender: No OFD packet to send [13:15:56]OFD Sender: No OFD packet to send [13:16:01]OFD Sender: No OFD packet to send [13:16:06]OFD Sender: No OFD packet to send [13:16:11]OFD Sender: No OFD packet to send [13:16:16]OFD Sender: No OFD packet to send [13:16:21]OFD Sender: No OFD packet to send [13:16:26]OFD Sender: No OFD packet to send [13:16:31]OFD Sender: No OFD packet to send [13:16:36]OFD Sender: No OFD packet to send [13:16:41]OFD Sender: No OFD packet to send [13:16:46]OFD Sender: No OFD packet to send [13:16:51]OFD Sender: No OFD packet to send [13:16:56]OFD Sender: No OFD packet to send [13:17:01]OFD Sender: No OFD packet to send [13:17:06]OFD Sender: No OFD packet to send [13:17:11]OFD Sender: No OFD packet to send [13:17:16]OFD Sender: No OFD packet to send [13:17:21]OFD Sender: No OFD packet to send [13:17:26]OFD Sender: No OFD packet to send [13:17:31]OFD Sender: No OFD packet to send [13:17:36]OFD Sender: No OFD packet to send [13:17:42]OFD Sender: No OFD packet to send [13:17:47]OFD Sender: No OFD packet to send [13:17:52]OFD Sender: No OFD packet to send [13:17:57]OFD Sender: No OFD packet to send [13:18:02]OFD Sender: No OFD packet to send [13:18:07]OFD Sender: No OFD packet to send [13:18:12]OFD Sender: No OFD packet to send [13:18:17]OFD Sender: No OFD packet to send [13:18:22]OFD Sender: No OFD packet to send [13:18:27]OFD Sender: No OFD packet to send [13:18:32]OFD Sender: No OFD packet to send [13:18:37]OFD Sender: No OFD packet to send [13:18:42]OFD Sender: No OFD packet to send [13:18:47]OFD Sender: No OFD packet to send [13:18:52]OFD Sender: No OFD packet to send [13:18:57]OFD Sender: No OFD packet to send [13:19:02]OFD Sender: No OFD packet to send [13:19:07]OFD Sender: No OFD packet to send