[22:03:08]OFD Sender: No OFD packet to send [22:03:13]OFD Sender: No OFD packet to send [22:03:18]OFD Sender: No OFD packet to send [22:03:23]OFD Sender: No OFD packet to send [22:03:28]OFD Sender: No OFD packet to send [22:03:33]OFD Sender: No OFD packet to send [22:03:38]OFD Sender: No OFD packet to send [22:03:43]OFD Sender: No OFD packet to send [22:03:48]OFD Sender: No OFD packet to send [22:03:53]OFD Sender: No OFD packet to send [22:03:58]OFD Sender: No OFD packet to send [22:04:03]OFD Sender: No OFD packet to send [22:04:08]OFD Sender: No OFD packet to send [22:04:13]OFD Sender: No OFD packet to send [22:04:18]OFD Sender: No OFD packet to send [22:04:23]OFD Sender: No OFD packet to send [22:04:28]OFD Sender: No OFD packet to send [22:04:33]OFD Sender: No OFD packet to send [22:04:34]ConnectInit Can't connect to host [22:04:38]OFD Sender: No OFD packet to send [22:04:43]OFD Sender: No OFD packet to send [22:04:48]OFD Sender: No OFD packet to send [22:04:53]OFD Sender: No OFD packet to send [22:04:58]OFD Sender: No OFD packet to send [22:05:03]OFD Sender: No OFD packet to send [22:05:08]OFD Sender: No OFD packet to send [22:05:13]OFD Sender: No OFD packet to send [22:05:18]OFD Sender: No OFD packet to send [22:05:23]OFD Sender: No OFD packet to send [22:05:28]OFD Sender: No OFD packet to send [22:05:33]OFD Sender: No OFD packet to send [22:05:38]OFD Sender: No OFD packet to send [22:05:43]OFD Sender: No OFD packet to send [22:05:48]OFD Sender: No OFD packet to send [22:05:53]OFD Sender: No OFD packet to send [22:05:58]OFD Sender: No OFD packet to send [22:06:03]OFD Sender: No OFD packet to send [22:06:08]OFD Sender: No OFD packet to send [22:06:13]OFD Sender: No OFD packet to send [22:06:18]OFD Sender: No OFD packet to send [22:06:23]OFD Sender: No OFD packet to send [22:06:28]OFD Sender: No OFD packet to send [22:06:33]OFD Sender: No OFD packet to send [22:06:38]OFD Sender: No OFD packet to send [22:06:43]OFD Sender: No OFD packet to send [22:06:48]OFD Sender: No OFD packet to send [22:06:52]ConnectInit Can't connect to host [22:06:53]OFD Sender: No OFD packet to send [22:06:58]OFD Sender: No OFD packet to send [22:07:03]OFD Sender: No OFD packet to send [22:07:08]OFD Sender: No OFD packet to send [22:07:13]OFD Sender: No OFD packet to send [22:07:18]OFD Sender: No OFD packet to send [22:07:23]OFD Sender: No OFD packet to send [22:07:28]OFD Sender: No OFD packet to send [22:07:33]OFD Sender: No OFD packet to send [22:07:38]OFD Sender: No OFD packet to send [22:07:43]OFD Sender: No OFD packet to send [22:07:48]OFD Sender: No OFD packet to send [22:07:53]OFD Sender: No OFD packet to send [22:07:58]OFD Sender: No OFD packet to send [22:08:03]OFD Sender: No OFD packet to send [22:08:08]OFD Sender: No OFD packet to send [22:08:13]OFD Sender: No OFD packet to send [22:08:18]OFD Sender: No OFD packet to send [22:08:23]OFD Sender: No OFD packet to send [22:08:28]OFD Sender: No OFD packet to send [22:08:33]OFD Sender: No OFD packet to send [22:08:38]OFD Sender: No OFD packet to send [22:08:43]OFD Sender: No OFD packet to send [22:08:48]OFD Sender: No OFD packet to send [22:08:53]OFD Sender: No OFD packet to send [22:08:58]OFD Sender: No OFD packet to send [22:09:03]OFD Sender: No OFD packet to send [22:09:08]OFD Sender: No OFD packet to send [22:09:10]ConnectInit Can't connect to host [22:09:13]OFD Sender: No OFD packet to send [22:09:18]OFD Sender: No OFD packet to send [22:09:23]OFD Sender: No OFD packet to send [22:09:28]OFD Sender: No OFD packet to send [22:09:33]OFD Sender: No OFD packet to send [22:09:38]OFD Sender: No OFD packet to send [22:09:43]OFD Sender: No OFD packet to send [22:09:48]OFD Sender: No OFD packet to send [22:09:53]OFD Sender: No OFD packet to send [22:09:58]OFD Sender: No OFD packet to send [22:10:03]OFD Sender: No OFD packet to send [22:10:08]OFD Sender: No OFD packet to send [22:10:13]OFD Sender: No OFD packet to send [22:10:18]OFD Sender: No OFD packet to send [22:10:23]OFD Sender: No OFD packet to send [22:10:28]OFD Sender: No OFD packet to send [22:10:33]OFD Sender: No OFD packet to send [22:10:38]OFD Sender: No OFD packet to send [22:10:43]OFD Sender: No OFD packet to send [22:10:48]OFD Sender: No OFD packet to send [22:10:53]OFD Sender: No OFD packet to send [22:10:58]OFD Sender: No OFD packet to send [22:11:03]OFD Sender: No OFD packet to send [22:11:08]OFD Sender: No OFD packet to send [22:11:13]OFD Sender: No OFD packet to send [22:11:18]OFD Sender: No OFD packet to send [22:11:23]OFD Sender: No OFD packet to send [22:11:28]ConnectInit Can't connect to host [22:11:28]OFD Sender: No OFD packet to send [22:11:33]OFD Sender: No OFD packet to send [22:11:38]OFD Sender: No OFD packet to send [22:11:43]OFD Sender: No OFD packet to send [22:11:48]OFD Sender: No OFD packet to send [22:11:53]OFD Sender: No OFD packet to send [22:11:58]OFD Sender: No OFD packet to send [22:12:03]OFD Sender: No OFD packet to send [22:12:08]OFD Sender: No OFD packet to send [22:12:13]OFD Sender: No OFD packet to send [22:12:18]OFD Sender: No OFD packet to send [22:12:23]OFD Sender: No OFD packet to send [22:12:29]OFD Sender: No OFD packet to send [22:12:34]OFD Sender: No OFD packet to send [22:12:39]OFD Sender: No OFD packet to send [22:12:44]OFD Sender: No OFD packet to send [22:12:49]OFD Sender: No OFD packet to send [22:12:54]OFD Sender: No OFD packet to send [22:12:59]OFD Sender: No OFD packet to send [22:13:04]OFD Sender: No OFD packet to send [22:13:09]OFD Sender: No OFD packet to send [22:13:14]OFD Sender: No OFD packet to send [22:13:19]OFD Sender: No OFD packet to send [22:13:24]OFD Sender: No OFD packet to send [22:13:29]OFD Sender: No OFD packet to send [22:13:34]OFD Sender: No OFD packet to send [22:13:39]OFD Sender: No OFD packet to send [22:13:44]OFD Sender: No OFD packet to send [22:13:47]ConnectInit Can't connect to host [22:13:49]OFD Sender: No OFD packet to send [22:13:54]OFD Sender: No OFD packet to send [22:13:59]OFD Sender: No OFD packet to send [22:14:04]OFD Sender: No OFD packet to send [22:14:09]OFD Sender: No OFD packet to send [22:14:14]OFD Sender: No OFD packet to send [22:14:19]OFD Sender: No OFD packet to send [22:14:24]OFD Sender: No OFD packet to send [22:14:29]OFD Sender: No OFD packet to send [22:14:34]OFD Sender: No OFD packet to send [22:14:39]OFD Sender: No OFD packet to send [22:14:44]OFD Sender: No OFD packet to send [22:14:49]OFD Sender: No OFD packet to send [22:14:54]OFD Sender: No OFD packet to send [22:14:59]OFD Sender: No OFD packet to send [22:15:04]OFD Sender: No OFD packet to send [22:15:09]OFD Sender: No OFD packet to send [22:15:14]OFD Sender: No OFD packet to send [22:15:19]OFD Sender: No OFD packet to send [22:15:24]OFD Sender: No OFD packet to send [22:15:29]OFD Sender: No OFD packet to send [22:15:34]OFD Sender: No OFD packet to send [22:15:39]OFD Sender: No OFD packet to send [22:15:44]OFD Sender: No OFD packet to send [22:15:49]OFD Sender: No OFD packet to send [22:15:54]OFD Sender: No OFD packet to send [22:15:59]OFD Sender: No OFD packet to send [22:16:04]OFD Sender: No OFD packet to send [22:16:05]ConnectInit Can't connect to host [22:16:09]OFD Sender: No OFD packet to send [22:16:14]OFD Sender: No OFD packet to send [22:16:19]OFD Sender: No OFD packet to send [22:16:24]OFD Sender: No OFD packet to send [22:16:29]OFD Sender: No OFD packet to send [22:16:34]OFD Sender: No OFD packet to send [22:16:39]OFD Sender: No OFD packet to send [22:16:44]OFD Sender: No OFD packet to send [22:16:49]OFD Sender: No OFD packet to send [22:16:54]OFD Sender: No OFD packet to send [22:16:59]OFD Sender: No OFD packet to send [22:17:04]OFD Sender: No OFD packet to send [22:17:09]OFD Sender: No OFD packet to send [22:17:14]OFD Sender: No OFD packet to send [22:17:19]OFD Sender: No OFD packet to send [22:17:24]OFD Sender: No OFD packet to send [22:17:29]OFD Sender: No OFD packet to send [22:17:34]OFD Sender: No OFD packet to send [22:17:39]OFD Sender: No OFD packet to send [22:17:44]OFD Sender: No OFD packet to send [22:17:49]OFD Sender: No OFD packet to send [22:17:54]OFD Sender: No OFD packet to send [22:17:59]OFD Sender: No OFD packet to send [22:18:04]OFD Sender: No OFD packet to send [22:18:09]OFD Sender: No OFD packet to send [22:18:14]OFD Sender: No OFD packet to send [22:18:19]OFD Sender: No OFD packet to send [22:18:23]ConnectInit Can't connect to host [22:18:24]OFD Sender: No OFD packet to send [22:18:29]OFD Sender: No OFD packet to send [22:18:34]OFD Sender: No OFD packet to send [22:18:38]accept exits with 10 [22:18:38]New connection [22:18:38]New thread 3067157860 created [22:18:38]Thread 3067301220 joined [22:18:38]Waiting for new connection... [22:18:38] Sock 10.Parse request [22:18:38]Sock 10.Check first char [22:18:38]Sock 10.First char is OK [22:18:38]request: POST /json_proto HTTP/1.0 [22:18:38]Method: POST [22:18:38]URL: /json_proto [22:18:38]Method is POST - this is cgi request [22:18:38]url: /json_proto [22:18:38]query_string will be loaded in cgi processing [22:18:38]execute_cgi json_proto POST (null) [22:18:38]execute_cgi path=json_proto method=POST [22:18:38]POST find Content-Length [22:18:38]Host: 172.17.36.3:8080 [22:18:38]Content-Length: 782 [22:18:38]Content-Type: application/json [22:18:38] [22:18:38]POST finish read [22:18:38]Found Content-Length = 782 [22:18:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)624424", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 82", "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: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A4992147", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:18:38]execute_script... [22:18:38]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)624424", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 82", "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: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A4992147", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:18:38]POST & json_proto [22:18:38]process_json_proto [22:18:38]json parsed OK: [22:18:38]protocol is kg_v1.0 [22:18:38]action value=close_receipt [22:18:38]process_action close_receipt [22:18:38]cmd_close_receipt [22:18:38]MH_GetDate [22:18:38]Write to MH i2c: F0 00 00 0A 0C 05 [22:18:38]Write i2c OK [22:18:38]MH_I2C_Read... [22:18:38]Read from MH i2c: F0 [22:18:38]MH_I2C_Read... [22:18:38]Read from MH i2c: F0 09 00 [22:18:38]MH_I2C_Read... [22:18:38]Read from MH i2c: F0 09 00 0A 0C 00 C0 2A C6 67 34 83 A9 66 EB [22:18:38]GetLastDocTimeStamp 1741039230 [22:18:38]current date 1741040320 [22:18:38]FM_GetShiftState [22:18:38]SAM_PROTO_GetShiftState [22:18:38]wFMCommunicate request_size=4 [22:18:38]MH_SAM_APDU [22:18:38]CAPDU: 80 13 01 00 [22:18:38]Write to MH i2c: E2 08 00 0B 0C 80 13 01 00 00 00 00 00 94 [22:18:38]Write i2c OK [22:18:38]MH_I2C_Read... [22:18:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:18:38]Read from MH i2c: E2 [22:18:38]MH_I2C_Read... [22:18:38]Read from MH i2c: E2 0E 00 [22:18:38]MH_I2C_Read... [22:18:38]Read from MH i2c: E2 0E 00 0B 0C 00 09 00 01 EA F4 C4 67 00 00 00 00 90 00 A9 [22:18:38]RAPDU: 09 00 01 EA F4 C4 67 00 00 00 00 90 00 [22:18:38]wFMCommunicate OK [22:18:38]SAM_PROTO_GetShiftState done [22:18:38]FM_GetShiftState done [22:18:38]opened in 1740961002 [22:18:38]opened+sec_in_day 1741047402 [22:18:38]quantity*price = 0 [22:18:38]sum+1 = 1 [22:18:38]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 112 "Партнер Нефть" Адрес: 720001, г. Талас, ул. Ч. Айтматова 292, 42.522657, 72.263018 СНО: Общий режим Чек 197 03.03.2025 22:18 Смена: 665 ФФД: 1.0 ЗНМ: 0300000131 РНМ: 0000000000090851 Версия ККМ: 001 Талоны: Партнер нефть 4992147 ФМ: 0000000000874705 ФД: 185800 ФПД: 101922415341288 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250303T221840&type=1&operation_type=1&fn_number=0000000000874705&fd_number=185800&fm=101922415341288&tin=02508201610067®Number=0000000000090851&sum=0 [22:18:41]StoreToDocumentArchive [22:18:41]shift 665 fd 185800 [22:18:41]save to /storage/0665/doc_00185800 [22:18:41]save last doc name /storage/0665/doc_00185800 to /storage/kkm_last_doc_name [22:18:41]save OK [22:18:41]Clear old archive folders... [22:18:41]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:18:41]tlvbuf is 017CD820 [22:18:41]SAM_PROTO_ClearQueue [22:18:41]wFMCommunicate request_size=4 [22:18:41]MH_SAM_APDU [22:18:41]CAPDU: 80 09 00 00 [22:18:41]Write to MH i2c: E2 08 00 18 0C 80 09 00 00 00 00 00 00 96 [22:18:42]Write i2c OK [22:18:42]MH_I2C_Read... [22:18:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:18:42]Read from MH i2c: E2 [22:18:42]MH_I2C_Read... [22:18:42]Read from MH i2c: E2 03 00 [22:18:42]MH_I2C_Read... [22:18:42]Read from MH i2c: E2 03 00 18 0C 00 90 00 98 [22:18:42]RAPDU: 90 00 [22:18:42]wFMCommunicate OK [22:18:42]SAM_PROTO_ClearQueue done [22:18:42]KKMCreateOFDPacket [22:18:42]OFDProtocolAddRootSTLVToBuf [22:18:42]FM_MakeSignedData [22:18:42]FM_MakeSignedData [22:18:42]SAM_PROTO_SignData [22:18:42]wFMCommunicate request_size=4 [22:18:42]MH_SAM_APDU [22:18:42]CAPDU: 80 0D 01 02 [22:18:42]Write to MH i2c: E2 08 00 19 0C 80 0D 01 02 00 00 00 00 9E [22:18:42]Write i2c OK [22:18:42]MH_I2C_Read... [22:18:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:18:42]Read from MH i2c: E2 [22:18:42]MH_I2C_Read... [22:18:42]Read from MH i2c: E2 03 00 [22:18:42]MH_I2C_Read... [22:18:42]Read from MH i2c: E2 03 00 19 0C 00 90 00 99 [22:18:42]RAPDU: 90 00 [22:18:42]wFMCommunicate OK [22:18:42]wFMCommunicate request_size=255 [22:18:42]MH_SAM_APDU [22:18:42]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 C5 00 00 00 F4 03 04 00 C0 2A C6 67 0E 04 04 00 99 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 30 35 10 04 04 00 C8 D5 02 00 35 04 06 00 5C [22:18:42]Write to MH i2c: E2 02 01 1A 0C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 C5 00 00 00 F4 03 04 00 C0 2A C6 67 0E 04 04 00 99 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 30 35 10 04 04 00 C8 D5 02 00 35 04 06 00 5C 00 00 4E [22:18:43]Write i2c OK [22:18:43]MH_I2C_Read... [22:18:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:18:43]Read from MH i2c: E2 [22:18:43]MH_I2C_Read... [22:18:43]Read from MH i2c: E2 03 00 [22:18:43]MH_I2C_Read... [22:18:43]Read from MH i2c: E2 03 00 1A 0C 00 90 00 9A [22:18:43]RAPDU: 90 00 [22:18:43]wFMCommunicate OK [22:18:43]wFMCommunicate request_size=10 [22:18:43]MH_SAM_APDU [22:18:43]CAPDU: 80 0D 02 02 05 B2 A9 5C 6E E8 [22:18:43]Write to MH i2c: E2 0D 00 1B 0C 80 0D 02 02 05 00 B2 A9 5C 6E E8 00 00 B8 [22:18:43]Write i2c OK [22:18:43]MH_I2C_Read... [22:18:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:18:43]Read from MH i2c: E2 [22:18:43]MH_I2C_Read... [22:18:43]Read from MH i2c: E2 03 00 [22:18:43]MH_I2C_Read... [22:18:43]Read from MH i2c: E2 03 00 1B 0C 00 90 00 9B [22:18:43]RAPDU: 90 00 [22:18:43]wFMCommunicate OK [22:18:43]wFMCommunicate request_size=4 [22:18:43]MH_SAM_APDU [22:18:43]CAPDU: 80 0D 03 02 [22:18:43]Write to MH i2c: E2 08 00 1C 0C 80 0D 03 02 00 00 00 00 A3 [22:18:44]Write i2c OK [22:18:44]MH_I2C_Read... [22:18:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:18:44]Read from MH i2c: E2 [22:18:44]MH_I2C_Read... [22:18:44]Read from MH i2c: E2 0B 00 [22:18:44]MH_I2C_Read... [22:18:44]Read from MH i2c: E2 0B 00 1C 0C 00 94 7E D4 08 FD 79 D0 1C 90 00 F4 [22:18:44]RAPDU: 94 7E D4 08 FD 79 D0 1C 90 00 [22:18:44]wFMCommunicate OK [22:18:44]SAM_PROTO_SignData done [22:18:44]FM_MakeSignedData done [22:18:44]CreateOFDProtocolMessage [22:18:44]wFMCommunicate request_size=4 [22:18:44]MH_SAM_APDU [22:18:44]CAPDU: 80 11 00 00 [22:18:44]Write to MH i2c: E2 08 00 1D 0C 80 11 00 00 00 00 00 00 A3 [22:18:44]Write i2c OK [22:18:44]MH_I2C_Read... [22:18:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:18:44]Read from MH i2c: E2 [22:18:44]MH_I2C_Read... [22:18:44]Read from MH i2c: E2 17 00 [22:18:44]MH_I2C_Read... [22:18:44]Read from MH i2c: E2 17 00 1D 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 30 35 90 00 F5 [22:18:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 30 35 90 00 [22:18:44]wFMCommunicate OK [22:18:44]CreateOFDProtocolMessage done [22:18:44]OFDSenderStorePacket 185800 [22:18:44]StoreOFDPacket docnum=185800 [22:18:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 30 35 0F 01 00 00 21 ED 07 01 3B 58 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 C5 00 00 00 F4 03 04 00 C0 2A C6 67 0E 04 04 00 99 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 30 35 10 04 04 00 C8 D5 02 00 35 04 06 00 5C B2 A9 5C 6E E8 94 7E D4 08 FD 79 D0 1C [22:18:44]CheckFolder [22:18:44]dirname=/storage/ofd_packets [22:18:44]CheckFolder done [22:18:44]ProducePacketName [22:18:44]name=ofd_packets/00185800 [22:18:44]NVStorageSaveData ofd_packets/00185800 [22:18:44]File name is /storage/ofd_packets/00185800 [22:18:44]Write 301 bytes [22:18:44]NVStorageSaveData done [22:18:44]OFDSenderStorePacket done [22:18:44]KKMCreateOFDPacket done [22:18:44]NVStorageSaveData kkm_last_timestamp [22:18:44]File name is /storage/kkm_last_timestamp [22:18:44]Write 4 bytes [22:18:44]NVStorageSaveData done [22:18:44]ExternCall_PrintAddStr [22:18:44]wPrintStart [22:18:44]Write to MH i2c: 01 00 00 1E 0C 2A [22:18:44]Write i2c OK [22:18:44]MH_I2C_Read... [22:18:44]Read from MH i2c: 01 [22:18:44]MH_I2C_Read... [22:18:44]OFD Sender: Processing packet 185800 [packets to send 75, broken 74] [22:18:44]ProducePacketName [22:18:44]name=ofd_packets/00185800 [22:18:44]OFD Sender: To server: pG, [22:18:44]CommunicateWithHost lk.salyk.kg:30040 [22:18:44]ConnectInit lk.salyk.kg [22:18:44]Read from MH i2c: 01 07 00 [22:18:44]MH_I2C_Read... [22:18:44]Read from MH i2c: 01 07 00 1E 0C 00 00 00 00 00 FF 0F 3F [22:18:44]RasterBufferAndPrint [22:18:44]line Счет N : (1)624424 [22:18:44]line ИНН: 02508201610067 [22:18:44]line Контрольно-Кассовый Чек [22:18:44]line ПРОДАЖА [22:18:44]line ТРК (МРК, ГНК) : 82 [22:18:44]line Товар: 2710124130 [22:18:44]line Аи-92-К-5 [22:18:44]line 10.000 * 0.00 [22:18:44]line = 0.00 [22:18:44]line НДС 12% НСП 1% [22:18:44]line > о реализуемом товаре [22:18:44]line ИТОГО: 0.00 [22:18:44]line НСП 1% : 0.00 [22:18:44]line НДС 12% : 0.00 [22:18:44]line Наличными: 0.00 [22:18:44]line Безнал.: 0.00 [22:18:44]line Место: АЗС № 112 "Партнер Нефть" [22:18:44]line Адрес: 720001, г. Талас, ул. Ч. Айтматова 292, 42.522657, 72.263018 [22:18:44]line СНО: Общий режим [22:18:44]line Чек 197 03.03.2025 22:18 [22:18:44]line Смена: 665 ФФД: 1.0 [22:18:44]line ЗНМ: 0300000131 [22:18:44]Connected sock=11 [22:18:44]line РНМ: 0000000000090851 [22:18:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 30 35 line Версия ККМ: 001 [22:18:44]0F line Талоны: Партнер нефть [22:18:44]01 00 00 21 ED 07 line 4992147 [22:18:44]01 line ФМ: 0000000000874705 [22:18:44]3B 58 5A 03 01 line ФД: 185800 [22:18:44]00 line ФПД: 101922415341288 [22:18:44]03 00 FB 00 1E 04 01 00 01 23 line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250303T221840&type=1&operation_type=1&fn_number=0000000000874705&fd_number=185800&fm=101922415341288&tin=02508201610067®Number=0000000000090851&sum=0 [22:18:44]04 4D written 0, free lines is 4095 [22:18:44]00 8A 04 0A 00 32 37 31 30 31 32 34 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 C5 00 00 00 F4 03 04 00 C0 2A C6 67 0E 04 04 00 99 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 Write to MH i2c: 30 01 30 00 30 30 30 30 30 30 00 39 48 30 38 35 31 11 04 0C 10 54 00 30 30 30 30 [22:18:45]30 30 30 30 Write i2c OK [22:18:45]30 MH_I2C_Read... [22:18:45]30 38 37 34 37 30 Read from MH i2c: 35 01 10 04 04 00 C8 [22:18:45]D5 MH_I2C_Read... [22:18:45]02 Read from MH i2c: 00 01 35 07 04 00 06 [22:18:45]00 MH_I2C_Read... [22:18:45]5C Read from MH i2c: B2 01 A9 07 5C 6E E8 94 7E D4 00 08 48 FD 79 D0 1C [22:18:45]0C 00 00 00 00 00 4B 0D B3 [22:18:45]RasterBufferAndPrint [22:18:45]line [22:18:45]line [22:18:45]line [22:18:45]line [22:18:45]line [22:18:45]written 0, free lines is 3662 [22:18:45]MH_Cut [22:18:45]Write to MH i2c: D1 01 00 4F 0C 01 2D [22:18:45]Write i2c OK [22:18:45]MH_I2C_Read... [22:18:45]Read from MH i2c: D1 [22:18:45]MH_I2C_Read... [22:18:45]Read from MH i2c: D1 01 00 [22:18:45]MH_I2C_Read... [22:18:45]Read from MH i2c: D1 01 00 4F 0C 00 2C [22:18:45]Write to MH i2c: 01 00 00 50 0C 5C [22:18:45]Write i2c OK [22:18:45]MH_I2C_Read... [22:18:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 30 35 4F 00 00 00 5A 71 47 00 DF 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 *** Cut start [22:18:46]30 30 30 *** Partial cut [22:18:46]30 38 37 *** CUTSNS_PIN = 1 [22:18:46]34 37 30 35 10 *** CUTSNS_PIN = 0 [22:18:46]04 04 00 C8 D5 02 00 F4 03 04 00 3D D4 C5 67 B6 04 01 00 00 4D 50 77 6B 9E 92 C0 7A [22:18:46]CommunicateWithHost err = 0 [22:18:46]CheckOFDResponse [22:18:46]1017 (14) - 77093643461234 [22:18:46]1041 (16) - 0000000000874705 [22:18:46]1040 (4) - 185800 [22:18:46]1012 (4) - 03.03.2025 16:09 [22:18:46]1206 (1) - 0 [22:18:46]OFD Sender: Remove packet 185800 [22:18:46]ProducePacketName [22:18:46]name=ofd_packets/00185800 [22:18:46]NVStorageDeleteData [22:18:46]*** Brake cut motor [22:18:46]Read from MH i2c: 01 [22:18:46]MH_I2C_Read... [22:18:46]*** Stop cut motor [22:18:46]*** Cut end [22:18:46]Read from MH i2c: 01 07 00 [22:18:46]MH_I2C_Read... [22:18:46]Read from MH i2c: 01 07 00 50 0C 00 00 00 00 00 FF 0F 71 [22:18:46]process_action close_receipt done [22:18:46]requested_data is exist [22:18:46]produce_requested_data [22:18:46]requested_item fm.sn is exist - process it [22:18:46]wFMCommunicate request_size=4 [22:18:46]MH_SAM_APDU [22:18:46]CAPDU: 80 11 00 00 [22:18:46]Write to MH i2c: E2 08 00 51 0C 80 11 00 00 00 00 00 00 D7 [22:18:46]OFD Sender: No OFD packet to send [22:18:46]Write i2c OK [22:18:46]MH_I2C_Read... [22:18:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:18:46]Read from MH i2c: E2 [22:18:46]MH_I2C_Read... [22:18:46]Read from MH i2c: E2 17 00 [22:18:46]MH_I2C_Read... [22:18:46]Read from MH i2c: E2 17 00 51 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 30 35 90 00 29 [22:18:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 30 35 90 00 [22:18:47]wFMCommunicate OK [22:18:47]requested_item fd.num is exist - process it [22:18:47]SAM_PROTO_GetFieldsCounters [22:18:47]wFMCommunicate request_size=4 [22:18:47]MH_SAM_APDU [22:18:47]CAPDU: 80 13 00 00 [22:18:47]Write to MH i2c: E2 08 00 52 0C 80 13 00 00 00 00 00 00 DA [22:18:47]Write i2c OK [22:18:47]MH_I2C_Read... [22:18:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:18:47]Read from MH i2c: E2 [22:18:47]MH_I2C_Read... [22:18:47]Read from MH i2c: E2 62 00 [22:18:47]MH_I2C_Read... [22:18:47]Read from MH i2c: E2 62 00 52 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 30 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 31 10 04 04 00 C8 D5 02 00 0E 04 04 00 99 02 00 00 12 04 04 00 C5 00 00 00 5E 04 04 00 C5 00 00 00 57 04 04 00 C6 00 00 00 19 04 04 00 00 00 00 00 90 00 81 [22:18: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 34 37 30 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 31 10 04 04 00 C8 D5 02 00 0E 04 04 00 99 02 00 00 12 04 04 00 C5 00 00 00 5E 04 04 00 C5 00 00 00 57 04 04 00 C6 00 00 00 19 04 04 00 00 00 00 00 90 00 [22:18:47]wFMCommunicate OK [22:18:47]SAM_PROTO_GetFieldsCounters done [22:18:47]requested_item shift.num is exist - process it [22:18:47]requested_item shift.opened is exist - process it [22:18:47]req_shift_opened [22:18:47]FM_GetShiftState [22:18:47]SAM_PROTO_GetShiftState [22:18:47]wFMCommunicate request_size=4 [22:18:47]MH_SAM_APDU [22:18:47]CAPDU: 80 13 01 00 [22:18:47]Write to MH i2c: E2 08 00 53 0C 80 13 01 00 00 00 00 00 DC [22:18:47]Write i2c OK [22:18:47]MH_I2C_Read... [22:18:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:18:47]Read from MH i2c: E2 [22:18:47]MH_I2C_Read... [22:18:47]Read from MH i2c: E2 0E 00 [22:18:47]MH_I2C_Read... [22:18:47]Read from MH i2c: E2 0E 00 53 0C 00 09 00 01 EA F4 C4 67 00 00 00 00 90 00 F1 [22:18:47]RAPDU: 09 00 01 EA F4 C4 67 00 00 00 00 90 00 [22:18:47]wFMCommunicate OK [22:18:47]SAM_PROTO_GetShiftState done [22:18:47]FM_GetShiftState done [22:18:47]req_shift_opened done [22:18:47]requested_item shift.open_date is exist - process it [22:18:47]req_shift_open_date [22:18:47]req_shift_open_date done [22:18:47]produce_requested_data done [22:18:47]produce_requested_data return {"fm.sn":"0000000000874705","fd.num":185800,"shift.num":665,"shift.opened":1,"shift.open_date":1740961002} [22:18:47]process_action_free close_receipt [22:18:47]json_value_free [22:18:48]json_value_free done [22:18:48]process_json_proto returns [22:18:48]Send response to host [22:18:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874705","fd.num":185800,"shift.num":665,"shift.opened":1,"shift.open_date":1740961002}}} [22:18:48]free response buf [22:18:48]execute_script done [22:18:48]execute_script returns [22:18:48]free content buf [22:18:48]Sock 10.Close socket [22:18:48]Sock 10.Thread stoped [22:18:51]OFD Sender: No OFD packet to send [22:18:56]OFD Sender: No OFD packet to send [22:19:01]OFD Sender: No OFD packet to send [22:19:06]OFD Sender: No OFD packet to send [22:19:11]OFD Sender: No OFD packet to send [22:19:16]OFD Sender: No OFD packet to send [22:19:21]OFD Sender: No OFD packet to send [22:19:26]OFD Sender: No OFD packet to send [22:19:31]OFD Sender: No OFD packet to send [22:19:36]OFD Sender: No OFD packet to send [22:19:41]OFD Sender: No OFD packet to send [22:19:46]OFD Sender: No OFD packet to send [22:19:51]OFD Sender: No OFD packet to send [22:19:56]OFD Sender: No OFD packet to send [22:20:01]OFD Sender: No OFD packet to send [22:20:06]OFD Sender: No OFD packet to send [22:20:11]OFD Sender: No OFD packet to send [22:20:16]OFD Sender: No OFD packet to send [22:20:22]OFD Sender: No OFD packet to send [22:20:27]OFD Sender: No OFD packet to send [22:20:32]OFD Sender: No OFD packet to send [22:20:37]OFD Sender: No OFD packet to send [22:20:41]ConnectInit Can't connect to host [22:20:42]OFD Sender: No OFD packet to send [22:20:47]OFD Sender: No OFD packet to send [22:20:52]OFD Sender: No OFD packet to send [22:20:57]OFD Sender: No OFD packet to send [22:21:02]OFD Sender: No OFD packet to send [22:21:07]OFD Sender: No OFD packet to send [22:21:12]OFD Sender: No OFD packet to send [22:21:17]OFD Sender: No OFD packet to send [22:21:22]OFD Sender: No OFD packet to send [22:21:27]OFD Sender: No OFD packet to send [22:21:32]OFD Sender: No OFD packet to send [22:21:37]OFD Sender: No OFD packet to send [22:21:42]OFD Sender: No OFD packet to send [22:21:47]OFD Sender: No OFD packet to send [22:21:52]OFD Sender: No OFD packet to send [22:21:57]OFD Sender: No OFD packet to send [22:22:02]OFD Sender: No OFD packet to send [22:22:07]OFD Sender: No OFD packet to send [22:22:12]OFD Sender: No OFD packet to send [22:22:17]OFD Sender: No OFD packet to send [22:22:22]OFD Sender: No OFD packet to send [22:22:27]OFD Sender: No OFD packet to send [22:22:32]OFD Sender: No OFD packet to send [22:22:37]OFD Sender: No OFD packet to send [22:22:42]OFD Sender: No OFD packet to send [22:22:47]OFD Sender: No OFD packet to send [22:22:52]OFD Sender: No OFD packet to send [22:22:57]OFD Sender: No OFD packet to send [22:23:00]ConnectInit Can't connect to host [22:23:02]OFD Sender: No OFD packet to send [22:23:07]OFD Sender: No OFD packet to send [22:23:12]OFD Sender: No OFD packet to send [22:23:17]OFD Sender: No OFD packet to send [22:23:22]OFD Sender: No OFD packet to send [22:23:27]OFD Sender: No OFD packet to send [22:23:32]OFD Sender: No OFD packet to send [22:23:37]OFD Sender: No OFD packet to send [22:23:42]OFD Sender: No OFD packet to send [22:23:47]OFD Sender: No OFD packet to send [22:23:52]OFD Sender: No OFD packet to send [22:23:57]OFD Sender: No OFD packet to send [22:24:02]OFD Sender: No OFD packet to send [22:24:07]OFD Sender: No OFD packet to send [22:24:12]OFD Sender: No OFD packet to send [22:24:17]OFD Sender: No OFD packet to send [22:24:22]OFD Sender: No OFD packet to send [22:24:27]OFD Sender: No OFD packet to send [22:24:32]OFD Sender: No OFD packet to send [22:24:37]OFD Sender: No OFD packet to send [22:24:42]OFD Sender: No OFD packet to send [22:24:47]OFD Sender: No OFD packet to send [22:24:52]OFD Sender: No OFD packet to send [22:24:57]OFD Sender: No OFD packet to send [22:25:02]OFD Sender: No OFD packet to send [22:25:07]OFD Sender: No OFD packet to send [22:25:12]OFD Sender: No OFD packet to send [22:25:17]OFD Sender: No OFD packet to send [22:25:18]ConnectInit Can't connect to host [22:25:22]OFD Sender: No OFD packet to send [22:25:27]OFD Sender: No OFD packet to send [22:25:32]OFD Sender: No OFD packet to send [22:25:37]OFD Sender: No OFD packet to send [22:25:42]OFD Sender: No OFD packet to send [22:25:47]OFD Sender: No OFD packet to send [22:25:52]OFD Sender: No OFD packet to send [22:25:57]OFD Sender: No OFD packet to send [22:26:02]OFD Sender: No OFD packet to send [22:26:07]OFD Sender: No OFD packet to send [22:26:12]OFD Sender: No OFD packet to send [22:26:17]OFD Sender: No OFD packet to send [22:26:22]OFD Sender: No OFD packet to send [22:26:27]OFD Sender: No OFD packet to send [22:26:32]OFD Sender: No OFD packet to send [22:26:37]OFD Sender: No OFD packet to send [22:26:42]OFD Sender: No OFD packet to send [22:26:47]OFD Sender: No OFD packet to send [22:26:52]OFD Sender: No OFD packet to send [22:26:53]accept exits with 9 [22:26:53]New connection [22:26:53]New thread 3067301220 created [22:26:53]Thread 3067157860 joined [22:26:53]Waiting for new connection... [22:26:53] Sock 9.Parse request [22:26:53]Sock 9.Check first char [22:26:53]Sock 9.First char is OK [22:26:53]request: POST /json_proto HTTP/1.0 [22:26:53]Method: POST [22:26:53]URL: /json_proto [22:26:53]Method is POST - this is cgi request [22:26:53]url: /json_proto [22:26:53]query_string will be loaded in cgi processing [22:26:53]execute_cgi json_proto POST (null) [22:26:53]execute_cgi path=json_proto method=POST [22:26:53]POST find Content-Length [22:26:53]Host: 172.17.36.3:8080 [22:26:53]Content-Length: 805 [22:26:53]Content-Type: application/json [22:26:53] [22:26:53]POST finish read [22:26:53]Found Content-Length = 805 [22:26:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)624425", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 82", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.80, "quantity" : 7.950, "sum" : 499.26, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 499.26 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:26:53]execute_script... [22:26:53]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)624425", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 82", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.80, "quantity" : 7.950, "sum" : 499.26, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 499.26 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:26:53]POST & json_proto [22:26:53]process_json_proto [22:26:53]json parsed OK: [22:26:53]protocol is kg_v1.0 [22:26:53]action value=close_receipt [22:26:53]process_action close_receipt [22:26:53]cmd_close_receipt [22:26:53]MH_GetDate [22:26:53]Write to MH i2c: F0 00 00 54 0C 4F [22:26:53]Write i2c OK [22:26:53]MH_I2C_Read... [22:26:53]Read from MH i2c: F0 [22:26:53]MH_I2C_Read... [22:26:53]Read from MH i2c: F0 09 00 [22:26:53]MH_I2C_Read... [22:26:53]Read from MH i2c: F0 09 00 54 0C 00 AF 2C C6 67 34 83 A9 66 26 [22:26:53]GetLastDocTimeStamp 1741040320 [22:26:53]current date 1741040815 [22:26:53]FM_GetShiftState [22:26:53]SAM_PROTO_GetShiftState [22:26:53]wFMCommunicate request_size=4 [22:26:53]MH_SAM_APDU [22:26:53]CAPDU: 80 13 01 00 [22:26:53]Write to MH i2c: E2 08 00 55 0C 80 13 01 00 00 00 00 00 DE [22:26:53]Write i2c OK [22:26:53]MH_I2C_Read... [22:26:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:26:53]Read from MH i2c: E2 [22:26:53]MH_I2C_Read... [22:26:53]Read from MH i2c: E2 0E 00 [22:26:53]MH_I2C_Read... [22:26:53]Read from MH i2c: E2 0E 00 55 0C 00 09 00 01 EA F4 C4 67 00 00 00 00 90 00 F3 [22:26:53]RAPDU: 09 00 01 EA F4 C4 67 00 00 00 00 90 00 [22:26:53]wFMCommunicate OK [22:26:53]SAM_PROTO_GetShiftState done [22:26:53]FM_GetShiftState done [22:26:53]opened in 1740961002 [22:26:53]opened+sec_in_day 1741047402 [22:26:53]quantity*price = 49926 [22:26:53]sum+1 = 49927 [22:26:53]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 499.26 НСП 1% : 4.42 НДС 12% : 53.02 Наличными: 0.00 Безнал.: 499.26 Место: АЗС № 112 "Партнер Нефть" Адрес: 720001, г. Талас, ул. Ч. Айтматова 292, 42.522657, 72.263018 СНО: Общий режим Чек 198 03.03.2025 22:26 Смена: 665 ФФД: 1.0 ЗНМ: 0300000131 РНМ: 0000000000090851 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000874705 ФД: 185801 ФПД: 254470793563229 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250303T222655&type=1&operation_type=1&fn_number=0000000000874705&fd_number=185801&fm=254470793563229&tin=02508201610067®Number=0000000000090851&sum=49926 [22:26:57]StoreToDocumentArchive [22:26:57]shift 665 fd 185801 [22:26:57]save to /storage/0665/doc_00185801 [22:26:57]save last doc name /storage/0665/doc_00185801 to /storage/kkm_last_doc_name [22:26:57]save OK [22:26:57]Clear old archive folders... [22:26:57]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:26:57]tlvbuf is 018B4590 [22:26:57]SAM_PROTO_ClearQueue [22:26:57]wFMCommunicate request_size=4 [22:26:57]MH_SAM_APDU [22:26:57]CAPDU: 80 09 00 00 [22:26:57]Write to MH i2c: E2 08 00 62 0C 80 09 00 00 00 00 00 00 E0 [22:26:57]Write i2c OK [22:26:57]MH_I2C_Read... [22:26:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:26:57]Read from MH i2c: E2 [22:26:57]MH_I2C_Read... [22:26:57]Read from MH i2c: E2 03 00 [22:26:57]MH_I2C_Read... [22:26:57]Read from MH i2c: E2 03 00 62 0C 00 90 00 E2 [22:26:57]RAPDU: 90 00 [22:26:57]wFMCommunicate OK [22:26:57]SAM_PROTO_ClearQueue done [22:26:57]KKMCreateOFDPacket [22:26:57]OFDProtocolAddRootSTLVToBuf [22:26:57]FM_MakeSignedData [22:26:57]FM_MakeSignedData [22:26:57]SAM_PROTO_SignData [22:26:57]wFMCommunicate request_size=4 [22:26:57]MH_SAM_APDU [22:26:57]CAPDU: 80 0D 01 02 [22:26:57]Write to MH i2c: E2 08 00 63 0C 80 0D 01 02 00 00 00 00 E8 [22:26:57]Write i2c OK [22:26:57]MH_I2C_Read... [22:26:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:26:57]Read from MH i2c: E2 [22:26:57]MH_I2C_Read... [22:26:57]Read from MH i2c: E2 03 00 [22:26:57]MH_I2C_Read... [22:26:57]Read from MH i2c: E2 03 00 63 0C 00 90 00 E3 [22:26:57]RAPDU: 90 00 [22:26:57]wFMCommunicate OK [22:26:57]wFMCommunicate request_size=255 [22:26:57]MH_SAM_APDU [22:26:57]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0E 1F 00 00 00 00 00 37 OFD Sender: No OFD packet to send [22:26:57]04 06 00 88 18 00 00 00 00 13 04 06 00 06 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 06 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B6 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 06 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C6 00 00 00 F4 03 04 00 AF 2C C6 67 0E 04 04 00 99 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 30 35 10 04 04 00 C9 D5 02 00 35 04 06 00 E7 [22:26:58]Write to MH i2c: E2 02 01 64 0C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0E 1F 00 00 00 00 00 37 04 06 00 88 18 00 00 00 00 13 04 06 00 06 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 06 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B6 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 06 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C6 00 00 00 F4 03 04 00 AF 2C C6 67 0E 04 04 00 99 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 30 35 10 04 04 00 C9 D5 02 00 35 04 06 00 E7 00 00 8C [22:26:58]Write i2c OK [22:26:58]MH_I2C_Read... [22:26:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:26:58]Read from MH i2c: E2 [22:26:58]MH_I2C_Read... [22:26:58]Read from MH i2c: E2 03 00 [22:26:58]MH_I2C_Read... [22:26:58]Read from MH i2c: E2 03 00 64 0C 00 90 00 E4 [22:26:58]RAPDU: 90 00 [22:26:58]wFMCommunicate OK [22:26:58]wFMCommunicate request_size=10 [22:26:58]MH_SAM_APDU [22:26:58]CAPDU: 80 0D 02 02 05 70 99 41 8C 5D [22:26:59]Write to MH i2c: E2 0D 00 65 0C 80 0D 02 02 05 00 70 99 41 8C 5D 00 00 28 [22:26:59]Write i2c OK [22:26:59]MH_I2C_Read... [22:26:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:26:59]Read from MH i2c: E2 [22:26:59]MH_I2C_Read... [22:26:59]Read from MH i2c: E2 03 00 [22:26:59]MH_I2C_Read... [22:26:59]Read from MH i2c: E2 03 00 65 0C 00 90 00 E5 [22:26:59]RAPDU: 90 00 [22:26:59]wFMCommunicate OK [22:26:59]wFMCommunicate request_size=4 [22:26:59]MH_SAM_APDU [22:26:59]CAPDU: 80 0D 03 02 [22:26:59]Write to MH i2c: E2 08 00 66 0C 80 0D 03 02 00 00 00 00 ED [22:26:59]Write i2c OK [22:26:59]MH_I2C_Read... [22:26:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:26:59]Read from MH i2c: E2 [22:26:59]MH_I2C_Read... [22:26:59]Read from MH i2c: E2 0B 00 [22:26:59]MH_I2C_Read... [22:26:59]Read from MH i2c: E2 0B 00 66 0C 00 19 6F F3 55 39 4A 06 30 90 00 77 [22:26:59]RAPDU: 19 6F F3 55 39 4A 06 30 90 00 [22:26:59]wFMCommunicate OK [22:26:59]SAM_PROTO_SignData done [22:26:59]FM_MakeSignedData done [22:26:59]CreateOFDProtocolMessage [22:26:59]wFMCommunicate request_size=4 [22:26:59]MH_SAM_APDU [22:26:59]CAPDU: 80 11 00 00 [22:26:59]Write to MH i2c: E2 08 00 67 0C 80 11 00 00 00 00 00 00 ED [22:26:59]Write i2c OK [22:26:59]MH_I2C_Read... [22:26:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:26:59]Read from MH i2c: E2 [22:26:59]MH_I2C_Read... [22:26:59]Read from MH i2c: E2 17 00 [22:26:59]MH_I2C_Read... [22:26:59]Read from MH i2c: E2 17 00 67 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 30 35 90 00 3F [22:26:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 30 35 90 00 [22:26:59]wFMCommunicate OK [22:26:59]CreateOFDProtocolMessage done [22:26:59]OFDSenderStorePacket 185801 [22:26:59]StoreOFDPacket docnum=185801 [22:26:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 30 35 0F 01 00 00 A2 73 07 01 0A EA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0E 1F 00 00 00 00 00 37 04 06 00 88 18 00 00 00 00 13 04 06 00 06 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 06 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B6 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 06 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C6 00 00 00 F4 03 04 00 AF 2C C6 67 0E 04 04 00 99 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 30 35 10 04 04 00 C9 D5 02 00 35 04 06 00 E7 70 99 41 8C 5D 19 6F F3 55 39 4A 06 30 [22:26:59]CheckFolder [22:26:59]dirname=/storage/ofd_packets [22:26:59]CheckFolder done [22:26:59]ProducePacketName [22:26:59]name=ofd_packets/00185801 [22:26:59]NVStorageSaveData ofd_packets/00185801 [22:26:59]File name is /storage/ofd_packets/00185801 [22:26:59]Write 301 bytes [22:26:59]NVStorageSaveData done [22:26:59]OFDSenderStorePacket done [22:26:59]KKMCreateOFDPacket done [22:26:59]NVStorageSaveData kkm_last_timestamp [22:26:59]File name is /storage/kkm_last_timestamp [22:26:59]Write 4 bytes [22:26:59]NVStorageSaveData done [22:26:59]ExternCall_PrintAddStr [22:26:59]wPrintStart [22:26:59]Write to MH i2c: 01 00 00 68 0C 74 [22:26:59]Write i2c OK [22:26:59]MH_I2C_Read... [22:26:59]Read from MH i2c: 01 [22:26:59]MH_I2C_Read... [22:26:59]OFD Sender: Processing packet 185801 [packets to send 75, broken 74] [22:26:59]ProducePacketName [22:26:59]name=ofd_packets/00185801 [22:26:59]OFD Sender: To server: pG, [22:26:59]CommunicateWithHost lk.salyk.kg:30040 [22:26:59]ConnectInit lk.salyk.kg [22:26:59]Read from MH i2c: 01 07 00 [22:26:59]MH_I2C_Read... [22:26:59]Read from MH i2c: 01 07 00 68 0C 00 00 00 00 00 FF 0F 89 [22:26:59]RasterBufferAndPrint [22:26:59]line Счет N : (1)624425 [22:26:59]line ИНН: 02508201610067 [22:26:59]line Контрольно-Кассовый Чек [22:26:59]line ПРОДАЖА [22:26:59]line ТРК (МРК, ГНК) : 82 [22:26:59]line Товар: 2710124130 [22:26:59]line Аи-92-К-5 [22:26:59]line 7.950 * 62.80 [22:26:59]line = 499.26 [22:26:59]line НДС 12% НСП 1% [22:26:59]line > о реализуемом товаре [22:26:59]line ИТОГО: 499.26 [22:26:59]line НСП 1% : 4.42 [22:26:59]line НДС 12% : 53.02 [22:26:59]line Наличными: 0.00 [22:26:59]line Безнал.: 499.26 [22:26:59]line Место: АЗС № 112 "Партнер Нефть" [22:26:59]line Адрес: 720001, г. Талас, ул. Ч. Айтматова 292, 42.522657, 72.263018 [22:26:59]line СНО: Общий режим [22:26:59]line Чек 198 03.03.2025 22:26 [22:26:59]line Смена: 665 ФФД: 1.0 [22:26:59]Connected sock=11 [22:26:59]line ЗНМ: 0300000131 [22:26:59]Data to sent: line РНМ: 0000000000090851 [22:26:59]line Версия ККМ: 001 [22:26:59]line Платежная система: О! деньги [22:26:59]line ФМ: 0000000000874705 [22:26:59]line ФД: 185801 [22:26:59]87 line ФПД: 254470793563229 [22:26:59]95 line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250303T222655&type=1&operation_type=1&fn_number=0000000000874705&fd_number=185801&fm=254470793563229&tin=02508201610067®Number=0000000000090851&sum=49926 [22:26:59]F6 written 0, free lines is 4095 [22:26:59]70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 30 35 0F 01 00 00 A2 73 07 01 0A EA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0E 1F 00 00 00 00 00 37 04 06 00 88 18 00 00 00 00 13 04 06 00 06 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 06 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B6 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 06 C3 00 00 00 00 1F 04 02 00 Write to MH i2c: 01 01 00 00 12 00 04 92 04 0C 00 C6 00 00 00 9E F4 [22:27:00]03 04 00 Write i2c OK [22:27:00]AF MH_I2C_Read... [22:27:00]2C Read from MH i2c: C6 01 67 [22:27:00]0E MH_I2C_Read... [22:27:00]04 Read from MH i2c: 04 01 00 99 02 00 00 07 B9 00 04 [22:27:00]01 MH_I2C_Read... [22:27:00]00 01 Read from MH i2c: 0D 01 04 10 00 30 30 30 07 30 00 30 30 30 30 30 30 30 39 30 38 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 30 35 10 04 04 00 C9 D5 02 00 35 04 06 00 E7 70 99 41 8C 5D 19 6F F3 55 39 4A 06 92 30 0C [22:27:00]00 00 00 00 00 4A 0D FC [22:27:00]RasterBufferAndPrint [22:27:00]line [22:27:00]line [22:27:00]line [22:27:00]line [22:27:00]line [22:27:00]written 0, free lines is 3954 [22:27:00]MH_Cut [22:27:00]Write to MH i2c: D1 01 00 99 0C 01 77 [22:27:00]Write i2c OK [22:27:00]MH_I2C_Read... [22:27:00]Read from MH i2c: D1 [22:27:00]MH_I2C_Read... [22:27:00]Read from MH i2c: D1 01 00 [22:27:00]MH_I2C_Read... [22:27:00]Read from MH i2c: D1 01 00 99 0C 00 76 [22:27:00]Write to MH i2c: 01 00 00 9A 0C A6 [22:27:00]Write i2c OK [22:27:00]MH_I2C_Read... [22:27:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 30 35 4F 00 00 00 FB E3 47 00 FA 7D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 *** Cut start [22:27:01]33 36 34 33 *** Partial cut [22:27:01]34 36 31 32 33 34 11 04 10 00 30 30 *** CUTSNS_PIN = 1 [22:27:01]30 30 30 *** CUTSNS_PIN = 0 [22:27:01]30 30 30 30 30 38 37 34 37 30 35 10 04 04 00 C9 D5 02 00 F4 03 04 00 2C D6 C5 67 B6 04 01 00 00 00 5E AB 06 99 27 2A 55 [22:27:01]CommunicateWithHost err = 0 [22:27:01]CheckOFDResponse [22:27:01]1017 (14) - 77093643461234 [22:27:01]1041 (16) - 0000000000874705 [22:27:01]1040 (4) - 185801 [22:27:01]1012 (4) - 03.03.2025 16:17 [22:27:01]1206 (1) - 0 [22:27:01]OFD Sender: Remove packet 185801 [22:27:01]ProducePacketName [22:27:01]name=ofd_packets/00185801 [22:27:01]NVStorageDeleteData [22:27:01]*** Brake cut motor [22:27:01]Read from MH i2c: 01 [22:27:01]MH_I2C_Read... [22:27:01]*** Stop cut motor [22:27:01]*** Cut end [22:27:01]Read from MH i2c: 01 07 00 [22:27:01]MH_I2C_Read... [22:27:01]Read from MH i2c: 01 07 00 9A 0C 00 00 00 00 00 FF 0F BB [22:27:01]process_action close_receipt done [22:27:01]requested_data is exist [22:27:01]produce_requested_data [22:27:01]requested_item fm.sn is exist - process it [22:27:01]wFMCommunicate request_size=4 [22:27:01]MH_SAM_APDU [22:27:01]CAPDU: 80 11 00 00 [22:27:01]Write to MH i2c: E2 08 00 OFD Sender: No OFD packet to send [22:27:01]9B 0C 80 11 00 00 00 00 00 00 21 [22:27:01]Write i2c OK [22:27:01]MH_I2C_Read... [22:27:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:27:02]Read from MH i2c: E2 [22:27:02]MH_I2C_Read... [22:27:02]Read from MH i2c: E2 17 00 [22:27:02]MH_I2C_Read... [22:27:02]Read from MH i2c: E2 17 00 9B 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 30 35 90 00 73 [22:27:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 30 35 90 00 [22:27:02]wFMCommunicate OK [22:27:02]requested_item fd.num is exist - process it [22:27:02]SAM_PROTO_GetFieldsCounters [22:27:02]wFMCommunicate request_size=4 [22:27:02]MH_SAM_APDU [22:27:02]CAPDU: 80 13 00 00 [22:27:02]Write to MH i2c: E2 08 00 9C 0C 80 13 00 00 00 00 00 00 24 [22:27:02]Write i2c OK [22:27:02]MH_I2C_Read... [22:27:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:27:02]Read from MH i2c: E2 [22:27:02]MH_I2C_Read... [22:27:02]Read from MH i2c: E2 62 00 [22:27:02]MH_I2C_Read... [22:27:02]Read from MH i2c: E2 62 00 9C 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 30 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 31 10 04 04 00 C9 D5 02 00 0E 04 04 00 99 02 00 00 12 04 04 00 C6 00 00 00 5E 04 04 00 C6 00 00 00 57 04 04 00 C7 00 00 00 19 04 04 00 00 00 00 00 90 00 CF [22:27:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 30 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 31 10 04 04 00 C9 D5 02 00 0E 04 04 00 99 02 00 00 12 04 04 00 C6 00 00 00 5E 04 04 00 C6 00 00 00 57 04 04 00 C7 00 00 00 19 04 04 00 00 00 00 00 90 00 [22:27:02]wFMCommunicate OK [22:27:02]SAM_PROTO_GetFieldsCounters done [22:27:02]requested_item shift.num is exist - process it [22:27:02]requested_item shift.opened is exist - process it [22:27:02]req_shift_opened [22:27:02]FM_GetShiftState [22:27:02]SAM_PROTO_GetShiftState [22:27:02]wFMCommunicate request_size=4 [22:27:02]MH_SAM_APDU [22:27:02]CAPDU: 80 13 01 00 [22:27:02]Write to MH i2c: E2 08 00 9D 0C 80 13 01 00 00 00 00 00 26 [22:27:02]Write i2c OK [22:27:02]MH_I2C_Read... [22:27:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:27:02]Read from MH i2c: E2 [22:27:02]MH_I2C_Read... [22:27:02]Read from MH i2c: E2 0E 00 [22:27:03]MH_I2C_Read... [22:27:03]Read from MH i2c: E2 0E 00 9D 0C 00 09 00 01 EA F4 C4 67 00 00 00 00 90 00 3B [22:27:03]RAPDU: 09 00 01 EA F4 C4 67 00 00 00 00 90 00 [22:27:03]wFMCommunicate OK [22:27:03]SAM_PROTO_GetShiftState done [22:27:03]FM_GetShiftState done [22:27:03]req_shift_opened done [22:27:03]requested_item shift.open_date is exist - process it [22:27:03]req_shift_open_date [22:27:03]req_shift_open_date done [22:27:03]produce_requested_data done [22:27:03]produce_requested_data return {"fm.sn":"0000000000874705","fd.num":185801,"shift.num":665,"shift.opened":1,"shift.open_date":1740961002} [22:27:03]process_action_free close_receipt [22:27:03]json_value_free [22:27:03]json_value_free done [22:27:03]process_json_proto returns [22:27:03]Send response to host [22:27:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874705","fd.num":185801,"shift.num":665,"shift.opened":1,"shift.open_date":1740961002}}} [22:27:03]free response buf [22:27:03]execute_script done [22:27:03]execute_script returns [22:27:03]free content buf [22:27:03]Sock 9.Close socket [22:27:03]Sock 9.Thread stoped [22:27:06]OFD Sender: No OFD packet to send [22:27:11]OFD Sender: No OFD packet to send [22:27:16]OFD Sender: No OFD packet to send [22:27:21]OFD Sender: No OFD packet to send [22:27:26]OFD Sender: No OFD packet to send [22:27:31]OFD Sender: No OFD packet to send [22:27:36]ConnectInit Can't connect to host [22:27:36]OFD Sender: No OFD packet to send [22:27:42]OFD Sender: No OFD packet to send [22:27:47]OFD Sender: No OFD packet to send [22:27:52]OFD Sender: No OFD packet to send [22:27:57]OFD Sender: No OFD packet to send [22:28:02]OFD Sender: No OFD packet to send [22:28:07]OFD Sender: No OFD packet to send [22:28:12]OFD Sender: No OFD packet to send [22:28:17]OFD Sender: No OFD packet to send [22:28:22]OFD Sender: No OFD packet to send [22:28:27]OFD Sender: No OFD packet to send [22:28:32]OFD Sender: No OFD packet to send [22:28:37]OFD Sender: No OFD packet to send [22:28:42]OFD Sender: No OFD packet to send [22:28:47]OFD Sender: No OFD packet to send [22:28:52]OFD Sender: No OFD packet to send [22:28:57]OFD Sender: No OFD packet to send [22:29:02]OFD Sender: No OFD packet to send [22:29:07]OFD Sender: No OFD packet to send [22:29:12]OFD Sender: No OFD packet to send [22:29:17]OFD Sender: No OFD packet to send [22:29:22]OFD Sender: No OFD packet to send [22:29:27]OFD Sender: No OFD packet to send [22:29:32]OFD Sender: No OFD packet to send [22:29:37]OFD Sender: No OFD packet to send [22:29:42]OFD Sender: No OFD packet to send [22:29:47]OFD Sender: No OFD packet to send [22:29:52]OFD Sender: No OFD packet to send [22:29:54]ConnectInit Can't connect to host [22:29:55]accept exits with 10 [22:29:55]New connection [22:29:55]New thread 3067157860 created [22:29:55]Thread 3067301220 joined [22:29:55]Waiting for new connection... [22:29:55] Sock 10.Parse request [22:29:55]Sock 10.Check first char [22:29:55]Sock 10.First char is OK [22:29:55]request: POST /json_proto HTTP/1.0 [22:29:55]Method: POST [22:29:55]URL: /json_proto [22:29:55]Method is POST - this is cgi request [22:29:55]url: /json_proto [22:29:55]query_string will be loaded in cgi processing [22:29:55]execute_cgi json_proto POST (null) [22:29:55]execute_cgi path=json_proto method=POST [22:29:55]POST find Content-Length [22:29:55]Host: 172.17.36.3:8080 [22:29:55]Content-Length: 836 [22:29:55]Content-Type: application/json [22:29:55] [22:29:55]POST finish read [22:29:55]Found Content-Length = 836 [22:29:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)624426", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "Super 92-\u041A-5", "price" : 64.30, "quantity" : 18.670, "sum" : 1200.48, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 1200.48 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:29:55]execute_script... [22:29: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)624426", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "Super 92-\u041A-5", "price" : 64.30, "quantity" : 18.670, "sum" : 1200.48, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 1200.48 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:29:55]POST & json_proto [22:29:55]process_json_proto [22:29:55]json parsed OK: [22:29:55]protocol is kg_v1.0 [22:29:55]action value=close_receipt [22:29:55]process_action close_receipt [22:29:55]cmd_close_receipt [22:29:55]MH_GetDate [22:29:55]Write to MH i2c: F0 00 00 9E 0C 99 [22:29:55]Write i2c OK [22:29:55]MH_I2C_Read... [22:29:55]Read from MH i2c: F0 [22:29:55]MH_I2C_Read... [22:29:55]Read from MH i2c: F0 09 00 [22:29:55]MH_I2C_Read... [22:29:55]Read from MH i2c: F0 09 00 9E 0C 00 65 2D C6 67 34 83 A9 66 27 [22:29:55]GetLastDocTimeStamp 1741040815 [22:29:55]current date 1741040997 [22:29:55]FM_GetShiftState [22:29:55]SAM_PROTO_GetShiftState [22:29:55]wFMCommunicate request_size=4 [22:29:55]MH_SAM_APDU [22:29:55]CAPDU: 80 13 01 00 [22:29:56]Write to MH i2c: E2 08 00 9F 0C 80 13 01 00 00 00 00 00 28 [22:29:56]Write i2c OK [22:29:56]MH_I2C_Read... [22:29:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:29:56]Read from MH i2c: E2 [22:29:56]MH_I2C_Read... [22:29:56]Read from MH i2c: E2 0E 00 [22:29:56]MH_I2C_Read... [22:29:56]Read from MH i2c: E2 0E 00 9F 0C 00 09 00 01 EA F4 C4 67 00 00 00 00 90 00 3D [22:29:56]RAPDU: 09 00 01 EA F4 C4 67 00 00 00 00 90 00 [22:29:56]wFMCommunicate OK [22:29:56]SAM_PROTO_GetShiftState done [22:29:56]FM_GetShiftState done [22:29:56]opened in 1740961002 [22:29:56]opened+sec_in_day 1741047402 [22:29:56]quantity*price = 120048 [22:29:56]sum+1 = 120049 [22:29:56]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1200.48 НСП 1% : 10.62 НДС 12% : 127.48 Наличными: 0.00 Безнал.: 1200.48 Место: АЗС № 112 "Партнер Нефть" Адрес: 720001, г. Талас, ул. Ч. Айтматова 292, 42.522657, 72.263018 СНО: Общий режим Чек 199 03.03.2025 22:29 Смена: 665 ФФД: 1.0 ЗНМ: 0300000131 РНМ: 0000000000090851 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000874705 ФД: 185802 ФПД: 87883375710094 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250303T222957&type=1&operation_type=1&fn_number=0000000000874705&fd_number=185802&fm=87883375710094&tin=02508201610067®Number=0000000000090851&sum=120048 [22:29:59]StoreToDocumentArchive [22:29:59]shift 665 fd 185802 [22:29:59]save to /storage/0665/doc_00185802 [22:29:59]save last doc name /storage/0665/doc_00185802 to /storage/kkm_last_doc_name [22:29:59]save OK [22:29:59]Clear old archive folders... [22:29:59]ProcessDocumentItem done err = 0, tmpTLVsize=252 [22:29:59]tlvbuf is 0170A400 [22:29:59]SAM_PROTO_ClearQueue [22:29:59]wFMCommunicate request_size=4 [22:29:59]MH_SAM_APDU [22:29:59]CAPDU: 80 09 00 00 [22:29:59]Write to MH i2c: E2 08 00 AC 0C 80 09 00 00 00 00 00 00 2A [22:29:59]Write i2c OK [22:29:59]MH_I2C_Read... [22:29:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:29:59]Read from MH i2c: E2 [22:29:59]MH_I2C_Read... [22:29:59]Read from MH i2c: E2 03 00 [22:29:59]MH_I2C_Read... [22:29:59]Read from MH i2c: E2 03 00 AC 0C 00 90 00 2C [22:29:59]RAPDU: 90 00 [22:29:59]wFMCommunicate OK [22:29:59]SAM_PROTO_ClearQueue done [22:29:59]KKMCreateOFDPacket [22:29:59]OFDProtocolAddRootSTLVToBuf [22:29:59]FM_MakeSignedData [22:29:59]FM_MakeSignedData [22:29:59]SAM_PROTO_SignData [22:29:59]wFMCommunicate request_size=4 [22:29:59]MH_SAM_APDU [22:29:59]CAPDU: 80 0D 01 02 [22:29:59]Write to MH i2c: E2 08 00 AD 0C 80 0D 01 02 00 00 00 00 32 [22:29:59]Write i2c OK [22:29:59]MH_I2C_Read... [22:29:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:29:59]Read from MH i2c: E2 [22:29:59]MH_I2C_Read... [22:29:59]Read from MH i2c: E2 03 00 [22:29:59]MH_I2C_Read... [22:29:59]Read from MH i2c: E2 03 00 AD 0C 00 90 00 2D [22:29:59]RAPDU: 90 00 [22:29:59]wFMCommunicate OK [22:29:59]wFMCommunicate request_size=255 [22:29:59]MH_SAM_APDU [22:29:59]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 EE 48 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 F0 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CC 31 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F0 D4 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 C7 00 00 00 F4 03 04 00 65 2D C6 67 0E 04 04 00 99 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 30 35 10 04 04 00 CA D5 02 00 35 04 06 00 [22:30:00]Write to MH i2c: E2 02 01 AE 0C 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 EE 48 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 F0 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CC 31 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F0 D4 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 C7 00 00 00 F4 03 04 00 65 2D C6 67 0E 04 04 00 99 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 30 35 10 04 04 00 CA D5 02 00 35 04 06 00 00 00 FB [22:30:01]Write i2c OK [22:30:01]MH_I2C_Read... [22:30:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:30:01]Read from MH i2c: E2 [22:30:01]MH_I2C_Read... [22:30:01]Read from MH i2c: E2 03 00 [22:30:01]MH_I2C_Read... [22:30:01]Read from MH i2c: E2 03 00 AE 0C 00 90 00 2E [22:30:01]RAPDU: 90 00 [22:30:01]wFMCommunicate OK [22:30:01]wFMCommunicate request_size=11 [22:30:01]MH_SAM_APDU [22:30:01]CAPDU: 80 0D 02 02 06 4F ED F1 64 0F 8E [22:30:01]Write to MH i2c: E2 0E 00 AF 0C 80 0D 02 02 06 00 4F ED F1 64 0F 8E 00 00 6F [22:30:01]Write i2c OK [22:30:01]MH_I2C_Read... [22:30:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:30:01]Read from MH i2c: E2 [22:30:01]MH_I2C_Read... [22:30:01]Read from MH i2c: E2 03 00 [22:30:01]MH_I2C_Read... [22:30:01]Read from MH i2c: E2 03 00 AF 0C 00 90 00 2F [22:30:01]RAPDU: 90 00 [22:30:01]wFMCommunicate OK [22:30:01]wFMCommunicate request_size=4 [22:30:01]MH_SAM_APDU [22:30:01]CAPDU: 80 0D 03 02 [22:30:01]Write to MH i2c: E2 08 00 B0 0C 80 0D 03 02 00 00 00 00 37 [22:30:01]Write i2c OK [22:30:01]MH_I2C_Read... [22:30:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:30:01]Read from MH i2c: E2 [22:30:01]MH_I2C_Read... [22:30:01]Read from MH i2c: E2 0B 00 [22:30:01]MH_I2C_Read... [22:30:01]Read from MH i2c: E2 0B 00 B0 0C 00 F6 22 CC 5D 48 68 35 24 90 00 82 [22:30:01]RAPDU: F6 22 CC 5D 48 68 35 24 90 00 [22:30:01]wFMCommunicate OK [22:30:01]SAM_PROTO_SignData done [22:30:01]FM_MakeSignedData done [22:30:01]CreateOFDProtocolMessage [22:30:01]wFMCommunicate request_size=4 [22:30:01]MH_SAM_APDU [22:30:01]CAPDU: 80 11 00 00 [22:30:01]Write to MH i2c: E2 08 00 B1 0C 80 11 00 00 00 00 00 00 37 [22:30:01]Write i2c OK [22:30:01]MH_I2C_Read... [22:30:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:30:01]Read from MH i2c: E2 [22:30:02]MH_I2C_Read... [22:30:02]Read from MH i2c: E2 17 00 [22:30:02]MH_I2C_Read... [22:30:02]Read from MH i2c: E2 17 00 B1 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 30 35 90 00 89 [22:30:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 30 35 90 00 [22:30:02]wFMCommunicate OK [22:30:02]CreateOFDProtocolMessage done [22:30:02]OFDSenderStorePacket 185802 [22:30:02]StoreOFDPacket docnum=185802 [22:30:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 30 35 10 01 00 00 5A 6B 08 01 E7 7E 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 EE 48 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 F0 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CC 31 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F0 D4 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 C7 00 00 00 F4 03 04 00 65 2D C6 67 0E 04 04 00 99 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 30 35 10 04 04 00 CA D5 02 00 35 04 06 00 4F ED F1 64 0F 8E F6 22 CC 5D 48 68 35 24 [22:30:02]CheckFolder [22:30:02]dirname=/storage/ofd_packets [22:30:02]CheckFolder done [22:30:02]ProducePacketName [22:30:02]name=ofd_packets/00185802 [22:30:02]NVStorageSaveData ofd_packets/00185802 [22:30:02]File name is /storage/ofd_packets/00185802 [22:30:02]Write 302 bytes [22:30:02]NVStorageSaveData done [22:30:02]OFDSenderStorePacket done [22:30:02]KKMCreateOFDPacket done [22:30:02]NVStorageSaveData kkm_last_timestamp [22:30:02]File name is /storage/kkm_last_timestamp [22:30:02]Write 4 bytes [22:30:02]NVStorageSaveData done [22:30:02]ExternCall_PrintAddStr [22:30:02]wPrintStart [22:30:02]Write to MH i2c: 01 00 00 B2 0C BE [22:30:02]Write i2c OK [22:30:02]MH_I2C_Read... [22:30:02]Read from MH i2c: 01 [22:30:02]MH_I2C_Read... [22:30:02]Read from MH i2c: 01 07 00 [22:30:02]MH_I2C_Read... [22:30:02]Read from MH i2c: 01 07 00 B2 0C 00 00 00 00 00 FF 0F D3 [22:30:02]RasterBufferAndPrint [22:30:02]line Счет N : (1)624426 [22:30:02]line ИНН: 02508201610067 [22:30:02]line Контрольно-Кассовый Чек [22:30:02]line ПРОДАЖА [22:30:02]line ТРК (МРК, ГНК) : 51 [22:30:02]line Товар: 2710124130 [22:30:02]line Super 92-К-5 [22:30:02]line 18.670 * 64.30 [22:30:02]line = 1200.48 [22:30:02]line НДС 12% НСП 1% [22:30:02]line > о реализуемом товаре [22:30:02]line ИТОГО: 1200.48 [22:30:02]line НСП 1% : 10.62 [22:30:02]line НДС 12% : 127.48 [22:30:02]line Наличными: 0.00 [22:30:02]line Безнал.: 1200.48 [22:30:02]line Место: АЗС № 112 "Партнер Нефть" [22:30:02]line Адрес: 720001, г. Талас, ул. Ч. Айтматова 292, 42.522657, 72.263018 [22:30:02]line СНО: Общий режим [22:30:02]line Чек 199 03.03.2025 22:29 [22:30:02]line Смена: 665 ФФД: 1.0 [22:30:02]line ЗНМ: 0300000131 [22:30:02]line РНМ: 0000000000090851 [22:30:02]line Версия ККМ: 001 [22:30:02]line Платежная система: АКБ Кыргызстан [22:30:02]line ФМ: 0000000000874705 [22:30:02]OFD Sender: Processing packet 185802 [packets to send 75, broken 74] [22:30:02]line ФД: 185802 [22:30:02]ProducePacketName [22:30:02]line ФПД: 87883375710094 [22:30:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250303T222957&type=1&operation_type=1&fn_number=0000000000874705&fd_number=185802&fm=87883375710094&tin=02508201610067®Number=0000000000090851&sum=120048 [22:30:02]name=ofd_packets/00185802 [22:30:02]OFD Sender: To server: pG, [22:30:02]CommunicateWithHost lk.salyk.kg:30040 [22:30:02]ConnectInit lk.salyk.kg [22:30:02]written 0, free lines is 4095 [22:30:02]Connected sock=11 [22:30:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 30 35 10 01 00 00 5A 6B 08 01 E7 7E 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 EE 48 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 F0 D4 01 00 00 00 F2 03 01 Write to MH i2c: 00 01 01 00 F6 03 01 00 01 00 BC DC 04 0C 01 E8 00 [22:30:03]01 FC 03 06 Write i2c OK [22:30:03]00 MH_I2C_Read... [22:30:03]F0 Read from MH i2c: D4 01 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 [22:30:03]00 MH_I2C_Read... [22:30:03]00 Read from MH i2c: 00 01 EE 07 03 00 0F [22:30:03]00 MH_I2C_Read... [22:30:03]F2 03 01 00 01 F3 Read from MH i2c: 03 01 06 07 00 00 CC DC 31 0C 00 00 00 00 00 00 00 00 07 00 04 58 06 0D 54 [22:30:03]RasterBufferAndPrint [22:30:03]line [22:30:03]line [22:30:03]00 line [22:30:03]00 line [22:30:03]line [22:30:03]00 00 00 00 00 39 04 06 00 F0 written 0, free lines is 3825 [22:30:03]D4 01 00 00 00 1F 04 02 00 01 00 MH_Cut [22:30:03]12 Write to MH i2c: 04 04 00 C7 00 D1 00 01 00 F4 03 04 00 65 00 2D E3 C6 67 0E 04 04 00 0C 99 01 02 C1 00 [22:30:03]00 B9 04 01 Write i2c OK [22:30:03]00 MH_I2C_Read... [22:30:03]01 Read from MH i2c: 0D D1 04 [22:30:03]10 MH_I2C_Read... [22:30:03]00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 30 Read from MH i2c: 35 D1 10 *** Cut start [22:30:03]04 *** Partial cut [22:30:03]*** CUTSNS_PIN = 1 [22:30:03]04 01 00 00 CA [22:30:03]D5 MH_I2C_Read... [22:30:03]02 00 35 *** CUTSNS_PIN = 0 [22:30:03]04 Read from MH i2c: 06 D1 00 4F ED F1 64 01 0F 00 8E E3 F6 0C 22 00 CC C0 5D [22:30:03]48 Write to MH i2c: 68 01 35 00 24 00 [22:30:03]E4 0C F0 [22:30:03]Write i2c OK [22:30:03]MH_I2C_Read... [22:30:04]*** Brake cut motor [22:30:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 30 35 4F 00 00 00 AD 85 47 00 04 F6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 30 35 10 04 04 00 CA D5 02 00 F4 03 04 00 E3 D6 C5 *** Stop cut motor [22:30:04]Read from MH i2c: *** Cut end [22:30:04]01 [22:30:04]MH_I2C_Read... [22:30:04]67 B6 04 01 00 00 0B 85 77 8D 5F 17 F8 E5 [22:30:04]Read from MH i2c: CommunicateWithHost err = 0 [22:30:04]01 CheckOFDResponse [22:30:04]07 1017 (14) - 77093643461234 [22:30:04]00 1041 (16) - 0000000000874705 [22:30:04] [22:30:04]1040 (4) - 185802 [22:30:04]MH_I2C_Read... [22:30:04]1012 (4) - 03.03.2025 16:20 [22:30:04]1206 (1) - 0 [22:30:04]OFD Sender: Remove packet 185802 [22:30:04]ProducePacketName [22:30:04]name=ofd_packets/00185802 [22:30:04]NVStorageDeleteData [22:30:04]Read from MH i2c: 01 07 00 E4 0C 00 00 00 00 00 FF 0F 05 [22:30:04]process_action close_receipt done [22:30:04]requested_data is exist [22:30:04]produce_requested_data [22:30:04]requested_item fm.sn is exist - process it [22:30:04]wFMCommunicate request_size=4 [22:30:04]MH_SAM_APDU [22:30:04]CAPDU: 80 11 00 00 [22:30:04]Write to MH i2c: E2 08 00 E5 0C 80 11 00 00 00 00 00 00 6B [22:30:04]Write i2c OK [22:30:04]MH_I2C_Read... [22:30:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:30:04]Read from MH i2c: E2 [22:30:04]MH_I2C_Read... [22:30:04]Read from MH i2c: E2 17 00 [22:30:04]MH_I2C_Read... [22:30:04]Read from MH i2c: E2 17 00 E5 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 30 35 90 00 BD [22:30:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 30 35 90 00 [22:30:04]wFMCommunicate OK [22:30:04]requested_item fd.num is exist - process it [22:30:04]SAM_PROTO_GetFieldsCounters [22:30:04]wFMCommunicate request_size=4 [22:30:04]MH_SAM_APDU [22:30:04]CAPDU: 80 13 00 00 [22:30:04]Write to MH i2c: E2 08 00 E6 0C 80 13 00 00 00 00 00 00 6E [22:30:04]Write i2c OK [22:30:04]MH_I2C_Read... [22:30:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:30:05]Read from MH i2c: E2 [22:30:05]MH_I2C_Read... [22:30:05]OFD Sender: No OFD packet to send [22:30:05]Read from MH i2c: E2 62 00 [22:30:05]MH_I2C_Read... [22:30:05]Read from MH i2c: E2 62 00 E6 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 30 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 31 10 04 04 00 CA D5 02 00 0E 04 04 00 99 02 00 00 12 04 04 00 C7 00 00 00 5E 04 04 00 C7 00 00 00 57 04 04 00 C8 00 00 00 19 04 04 00 00 00 00 00 90 00 1D [22:30:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 30 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 31 10 04 04 00 CA D5 02 00 0E 04 04 00 99 02 00 00 12 04 04 00 C7 00 00 00 5E 04 04 00 C7 00 00 00 57 04 04 00 C8 00 00 00 19 04 04 00 00 00 00 00 90 00 [22:30:05]wFMCommunicate OK [22:30:05]SAM_PROTO_GetFieldsCounters done [22:30:05]requested_item shift.num is exist - process it [22:30:05]requested_item shift.opened is exist - process it [22:30:05]req_shift_opened [22:30:05]FM_GetShiftState [22:30:05]SAM_PROTO_GetShiftState [22:30:05]wFMCommunicate request_size=4 [22:30:05]MH_SAM_APDU [22:30:05]CAPDU: 80 13 01 00 [22:30:05]Write to MH i2c: E2 08 00 E7 0C 80 13 01 00 00 00 00 00 70 [22:30:05]Write i2c OK [22:30:05]MH_I2C_Read... [22:30:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:30:05]Read from MH i2c: E2 [22:30:05]MH_I2C_Read... [22:30:05]Read from MH i2c: E2 0E 00 [22:30:05]MH_I2C_Read... [22:30:05]Read from MH i2c: E2 0E 00 E7 0C 00 09 00 01 EA F4 C4 67 00 00 00 00 90 00 85 [22:30:05]RAPDU: 09 00 01 EA F4 C4 67 00 00 00 00 90 00 [22:30:05]wFMCommunicate OK [22:30:05]SAM_PROTO_GetShiftState done [22:30:05]FM_GetShiftState done [22:30:05]req_shift_opened done [22:30:05]requested_item shift.open_date is exist - process it [22:30:05]req_shift_open_date [22:30:05]req_shift_open_date done [22:30:05]produce_requested_data done [22:30:05]produce_requested_data return {"fm.sn":"0000000000874705","fd.num":185802,"shift.num":665,"shift.opened":1,"shift.open_date":1740961002} [22:30:05]process_action_free close_receipt [22:30:05]json_value_free [22:30:05]json_value_free done [22:30:05]process_json_proto returns [22:30:05]Send response to host [22:30:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874705","fd.num":185802,"shift.num":665,"shift.opened":1,"shift.open_date":1740961002}}} [22:30:05]free response buf [22:30:05]execute_script done [22:30:05]execute_script returns [22:30:05]free content buf [22:30:05]Sock 10.Close socket [22:30:05]Sock 10.Thread stoped [22:30:10]OFD Sender: No OFD packet to send [22:30:15]OFD Sender: No OFD packet to send [22:30:20]OFD Sender: No OFD packet to send [22:30:25]OFD Sender: No OFD packet to send [22:30:30]OFD Sender: No OFD packet to send [22:30:35]OFD Sender: No OFD packet to send [22:30:40]OFD Sender: No OFD packet to send [22:30:45]OFD Sender: No OFD packet to send [22:30:50]OFD Sender: No OFD packet to send [22:30:55]OFD Sender: No OFD packet to send [22:31:00]OFD Sender: No OFD packet to send [22:31:05]OFD Sender: No OFD packet to send [22:31:10]OFD Sender: No OFD packet to send [22:31:15]OFD Sender: No OFD packet to send [22:31:20]OFD Sender: No OFD packet to send [22:31:25]OFD Sender: No OFD packet to send [22:31:30]OFD Sender: No OFD packet to send [22:31:35]OFD Sender: No OFD packet to send [22:31:40]OFD Sender: No OFD packet to send [22:31:45]OFD Sender: No OFD packet to send [22:31:50]OFD Sender: No OFD packet to send [22:31:55]OFD Sender: No OFD packet to send [22:32:00]OFD Sender: No OFD packet to send [22:32:05]OFD Sender: No OFD packet to send [22:32:10]OFD Sender: No OFD packet to send [22:32:13]ConnectInit Can't connect to host [22:32:15]OFD Sender: No OFD packet to send [22:32:20]OFD Sender: No OFD packet to send [22:32:25]OFD Sender: No OFD packet to send [22:32:30]OFD Sender: No OFD packet to send [22:32:35]OFD Sender: No OFD packet to send [22:32:40]OFD Sender: No OFD packet to send [22:32:45]OFD Sender: No OFD packet to send [22:32:50]OFD Sender: No OFD packet to send [22:32:55]OFD Sender: No OFD packet to send [22:33:00]OFD Sender: No OFD packet to send [22:33:05]OFD Sender: No OFD packet to send [22:33:10]OFD Sender: No OFD packet to send [22:33:15]OFD Sender: No OFD packet to send [22:33:20]OFD Sender: No OFD packet to send [22:33:25]OFD Sender: No OFD packet to send [22:33:30]OFD Sender: No OFD packet to send [22:33:35]OFD Sender: No OFD packet to send [22:33:40]OFD Sender: No OFD packet to send [22:33:45]OFD Sender: No OFD packet to send [22:33:50]OFD Sender: No OFD packet to send [22:33:55]OFD Sender: No OFD packet to send [22:34:00]OFD Sender: No OFD packet to send [22:34:05]OFD Sender: No OFD packet to send [22:34:10]OFD Sender: No OFD packet to send [22:34:15]OFD Sender: No OFD packet to send [22:34:20]OFD Sender: No OFD packet to send [22:34:25]OFD Sender: No OFD packet to send [22:34:30]OFD Sender: No OFD packet to send [22:34:31]ConnectInit Can't connect to host [22:34:35]OFD Sender: No OFD packet to send [22:34:40]OFD Sender: No OFD packet to send [22:34:45]OFD Sender: No OFD packet to send [22:34:50]OFD Sender: No OFD packet to send [22:34:55]OFD Sender: No OFD packet to send [22:35:00]OFD Sender: No OFD packet to send [22:35:05]OFD Sender: No OFD packet to send [22:35:10]OFD Sender: No OFD packet to send [22:35:15]OFD Sender: No OFD packet to send [22:35:20]OFD Sender: No OFD packet to send [22:35:25]OFD Sender: No OFD packet to send [22:35:30]OFD Sender: No OFD packet to send [22:35:35]OFD Sender: No OFD packet to send [22:35:40]OFD Sender: No OFD packet to send [22:35:45]OFD Sender: No OFD packet to send [22:35:50]OFD Sender: No OFD packet to send [22:35:55]OFD Sender: No OFD packet to send [22:36:00]OFD Sender: No OFD packet to send [22:36:05]OFD Sender: No OFD packet to send [22:36:10]OFD Sender: No OFD packet to send [22:36:15]OFD Sender: No OFD packet to send [22:36:20]OFD Sender: No OFD packet to send [22:36:25]OFD Sender: No OFD packet to send [22:36:30]OFD Sender: No OFD packet to send [22:36:35]OFD Sender: No OFD packet to send [22:36:40]OFD Sender: No OFD packet to send [22:36:45]OFD Sender: No OFD packet to send [22:36:49]ConnectInit Can't connect to host [22:36:50]OFD Sender: No OFD packet to send [22:36:55]OFD Sender: No OFD packet to send [22:37:00]OFD Sender: No OFD packet to send [22:37:05]OFD Sender: No OFD packet to send [22:37:10]OFD Sender: No OFD packet to send [22:37:15]OFD Sender: No OFD packet to send [22:37:20]OFD Sender: No OFD packet to send [22:37:25]OFD Sender: No OFD packet to send [22:37:30]OFD Sender: No OFD packet to send [22:37:35]OFD Sender: No OFD packet to send [22:37:40]OFD Sender: No OFD packet to send [22:37:45]OFD Sender: No OFD packet to send [22:37:50]OFD Sender: No OFD packet to send [22:37:55]OFD Sender: No OFD packet to send [22:38:00]OFD Sender: No OFD packet to send [22:38:05]OFD Sender: No OFD packet to send [22:38:10]OFD Sender: No OFD packet to send [22:38:15]OFD Sender: No OFD packet to send [22:38:20]OFD Sender: No OFD packet to send [22:38:25]OFD Sender: No OFD packet to send [22:38:30]OFD Sender: No OFD packet to send [22:38:35]OFD Sender: No OFD packet to send [22:38:40]OFD Sender: No OFD packet to send [22:38:45]OFD Sender: No OFD packet to send [22:38:50]OFD Sender: No OFD packet to send [22:38:55]OFD Sender: No OFD packet to send [22:39:00]OFD Sender: No OFD packet to send [22:39:05]OFD Sender: No OFD packet to send [22:39:07]ConnectInit Can't connect to host [22:39:10]OFD Sender: No OFD packet to send [22:39:15]OFD Sender: No OFD packet to send [22:39:20]OFD Sender: No OFD packet to send [22:39:25]OFD Sender: No OFD packet to send [22:39:30]OFD Sender: No OFD packet to send [22:39:35]OFD Sender: No OFD packet to send [22:39:40]OFD Sender: No OFD packet to send [22:39:45]OFD Sender: No OFD packet to send [22:39:50]OFD Sender: No OFD packet to send [22:39:55]OFD Sender: No OFD packet to send [22:40:00]OFD Sender: No OFD packet to send [22:40:05]OFD Sender: No OFD packet to send [22:40:10]OFD Sender: No OFD packet to send [22:40:15]OFD Sender: No OFD packet to send [22:40:21]OFD Sender: No OFD packet to send [22:40:26]OFD Sender: No OFD packet to send [22:40:31]OFD Sender: No OFD packet to send [22:40:36]OFD Sender: No OFD packet to send [22:40:41]OFD Sender: No OFD packet to send [22:40:46]OFD Sender: No OFD packet to send [22:40:51]OFD Sender: No OFD packet to send [22:40:56]OFD Sender: No OFD packet to send [22:41:01]OFD Sender: No OFD packet to send [22:41:06]OFD Sender: No OFD packet to send [22:41:11]OFD Sender: No OFD packet to send [22:41:16]OFD Sender: No OFD packet to send [22:41:21]OFD Sender: No OFD packet to send [22:41:25]ConnectInit Can't connect to host [22:41:26]OFD Sender: No OFD packet to send [22:41:31]OFD Sender: No OFD packet to send [22:41:36]OFD Sender: No OFD packet to send [22:41:41]OFD Sender: No OFD packet to send [22:41:46]OFD Sender: No OFD packet to send [22:41:51]OFD Sender: No OFD packet to send [22:41:56]OFD Sender: No OFD packet to send [22:42:01]OFD Sender: No OFD packet to send [22:42:06]OFD Sender: No OFD packet to send [22:42:11]OFD Sender: No OFD packet to send [22:42:16]OFD Sender: No OFD packet to send [22:42:21]OFD Sender: No OFD packet to send [22:42:26]OFD Sender: No OFD packet to send [22:42:31]OFD Sender: No OFD packet to send [22:42:36]OFD Sender: No OFD packet to send [22:42:41]OFD Sender: No OFD packet to send [22:42:46]OFD Sender: No OFD packet to send [22:42:51]OFD Sender: No OFD packet to send [22:42:56]OFD Sender: No OFD packet to send [22:43:01]OFD Sender: No OFD packet to send [22:43:06]OFD Sender: No OFD packet to send [22:43:11]OFD Sender: No OFD packet to send [22:43:16]OFD Sender: No OFD packet to send [22:43:21]OFD Sender: No OFD packet to send [22:43:26]OFD Sender: No OFD packet to send [22:43:31]OFD Sender: No OFD packet to send [22:43:36]OFD Sender: No OFD packet to send [22:43:41]OFD Sender: No OFD packet to send [22:43:44]ConnectInit Can't connect to host [22:43:46]OFD Sender: No OFD packet to send [22:43:51]OFD Sender: No OFD packet to send [22:43:56]OFD Sender: No OFD packet to send [22:44:01]OFD Sender: No OFD packet to send [22:44:06]OFD Sender: No OFD packet to send [22:44:11]OFD Sender: No OFD packet to send [22:44:16]OFD Sender: No OFD packet to send [22:44:21]OFD Sender: No OFD packet to send [22:44:26]OFD Sender: No OFD packet to send [22:44:26]accept exits with 7 [22:44:26]New connection [22:44:26]New thread 3067301220 created [22:44:26]Thread 3067157860 joined [22:44:26]Waiting for new connection... [22:44:26] Sock 7.Parse request [22:44:26]Sock 7.Check first char [22:44:26]Sock 7.First char is OK [22:44:26]request: POST /json_proto HTTP/1.0 [22:44:26]Method: POST [22:44:26]URL: /json_proto [22:44:26]Method is POST - this is cgi request [22:44:26]url: /json_proto [22:44:26]query_string will be loaded in cgi processing [22:44:26]execute_cgi json_proto POST (null) [22:44:26]execute_cgi path=json_proto method=POST [22:44:26]POST find Content-Length [22:44:26]Host: 172.17.36.3:8080 [22:44:26]Content-Length: 836 [22:44:26]Content-Type: application/json [22:44:26] [22:44:26]POST finish read [22:44:26]Found Content-Length = 836 [22:44:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)624427", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "Super 92-\u041A-5", "price" : 64.30, "quantity" : 20.000, "sum" : 1286.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 1286.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:44:26]execute_script... [22:44:26]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)624427", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "Super 92-\u041A-5", "price" : 64.30, "quantity" : 20.000, "sum" : 1286.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 1286.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:44:26]POST & json_proto [22:44:26]process_json_proto [22:44:26]json parsed OK: [22:44:26]protocol is kg_v1.0 [22:44:26]action value=close_receipt [22:44:26]process_action close_receipt [22:44:26]cmd_close_receipt [22:44:26]MH_GetDate [22:44:26]Write to MH i2c: F0 00 00 E8 0C E3 [22:44:26]Write i2c OK [22:44:26]MH_I2C_Read... [22:44:26]Read from MH i2c: F0 [22:44:26]MH_I2C_Read... [22:44:26]Read from MH i2c: F0 09 00 [22:44:26]MH_I2C_Read... [22:44:26]Read from MH i2c: F0 09 00 E8 0C 00 CC 30 C6 67 34 83 A9 66 DB [22:44:26]GetLastDocTimeStamp 1741040997 [22:44:26]current date 1741041868 [22:44:26]FM_GetShiftState [22:44:26]SAM_PROTO_GetShiftState [22:44:26]wFMCommunicate request_size=4 [22:44:26]MH_SAM_APDU [22:44:26]CAPDU: 80 13 01 00 [22:44:26]Write to MH i2c: E2 08 00 E9 0C 80 13 01 00 00 00 00 00 72 [22:44:26]Write i2c OK [22:44:26]MH_I2C_Read... [22:44:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:44:26]Read from MH i2c: E2 [22:44:26]MH_I2C_Read... [22:44:26]Read from MH i2c: E2 0E 00 [22:44:26]MH_I2C_Read... [22:44:26]Read from MH i2c: E2 0E 00 E9 0C 00 09 00 01 EA F4 C4 67 00 00 00 00 90 00 87 [22:44:26]RAPDU: 09 00 01 EA F4 C4 67 00 00 00 00 90 00 [22:44:26]wFMCommunicate OK [22:44:26]SAM_PROTO_GetShiftState done [22:44:26]FM_GetShiftState done [22:44:26]opened in 1740961002 [22:44:26]opened+sec_in_day 1741047402 [22:44:26]quantity*price = 128600 [22:44:26]sum+1 = 128601 [22:44:26]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1286.00 НСП 1% : 11.38 НДС 12% : 136.57 Наличными: 0.00 Безнал.: 1286.00 Место: АЗС № 112 "Партнер Нефть" Адрес: 720001, г. Талас, ул. Ч. Айтматова 292, 42.522657, 72.263018 СНО: Общий режим Чек 200 03.03.2025 22:44 Смена: 665 ФФД: 1.0 ЗНМ: 0300000131 РНМ: 0000000000090851 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000874705 ФД: 185803 ФПД: 67948502605404 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250303T224428&type=1&operation_type=1&fn_number=0000000000874705&fd_number=185803&fm=67948502605404&tin=02508201610067®Number=0000000000090851&sum=128600 [22:44:30]StoreToDocumentArchive [22:44:30]shift 665 fd 185803 [22:44:30]save to /storage/0665/doc_00185803 [22:44:30]save last doc name /storage/0665/doc_00185803 to /storage/kkm_last_doc_name [22:44:30]save OK [22:44:30]Clear old archive folders... [22:44:30]ProcessDocumentItem done err = 0, tmpTLVsize=252 [22:44:30]tlvbuf is 017ECF40 [22:44:30]SAM_PROTO_ClearQueue [22:44:30]wFMCommunicate request_size=4 [22:44:30]MH_SAM_APDU [22:44:30]CAPDU: 80 09 00 00 [22:44:30]Write to MH i2c: E2 08 00 F6 0C 80 09 00 00 00 00 00 00 74 [22:44:30]Write i2c OK [22:44:30]MH_I2C_Read... [22:44:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:44:30]Read from MH i2c: E2 [22:44:30]MH_I2C_Read... [22:44:30]Read from MH i2c: E2 03 00 [22:44:30]MH_I2C_Read... [22:44:30]Read from MH i2c: E2 03 00 F6 0C 00 90 00 76 [22:44:30]RAPDU: 90 00 [22:44:30]wFMCommunicate OK [22:44:30]SAM_PROTO_ClearQueue done [22:44:30]KKMCreateOFDPacket [22:44:30]OFDProtocolAddRootSTLVToBuf [22:44:30]FM_MakeSignedData [22:44:30]FM_MakeSignedData [22:44:30]SAM_PROTO_SignData [22:44:30]wFMCommunicate request_size=4 [22:44:30]MH_SAM_APDU [22:44:30]CAPDU: 80 0D 01 02 [22:44:30]Write to MH i2c: E2 08 00 F7 0C 80 0D 01 02 00 00 00 00 7C [22:44:30]Write i2c OK [22:44:30]MH_I2C_Read... [22:44:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:44:30]Read from MH i2c: E2 [22:44:30]MH_I2C_Read... [22:44:30]Read from MH i2c: E2 03 00 [22:44:30]MH_I2C_Read... [22:44:30]Read from MH i2c: E2 03 00 F7 0C 00 90 00 77 [22:44:30]RAPDU: 90 00 [22:44:30]wFMCommunicate OK [22:44:30]wFMCommunicate request_size=255 [22:44:30]MH_SAM_APDU [22:44:30]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 58 F6 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 F6 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 72 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 59 35 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 58 F6 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 C8 00 00 00 F4 03 04 00 CC 30 C6 67 0E 04 04 00 99 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 30 35 10 04 04 00 CB D5 02 00 35 04 06 00 [22:44:31]Write to MH i2c: E2 02 01 F8 0C 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 58 F6 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 F6 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 72 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 59 35 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 58 F6 01 00 00 00 1F 04 02 00 01 00 OFD Sender: No OFD packet to send [22:44:31]12 04 04 00 C8 00 00 00 F4 03 04 00 CC 30 C6 67 0E 04 04 00 99 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 30 35 10 04 04 00 CB D5 02 00 35 04 06 00 00 00 64 [22:44:31]Write i2c OK [22:44:31]MH_I2C_Read... [22:44:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:44:31]Read from MH i2c: E2 [22:44:31]MH_I2C_Read... [22:44:31]Read from MH i2c: E2 03 00 [22:44:31]MH_I2C_Read... [22:44:31]Read from MH i2c: E2 03 00 F8 0C 00 90 00 78 [22:44:31]RAPDU: 90 00 [22:44:31]wFMCommunicate OK [22:44:31]wFMCommunicate request_size=11 [22:44:31]MH_SAM_APDU [22:44:31]CAPDU: 80 0D 02 02 06 3D CC 7E 5C 5E 5C [22:44:32]Write to MH i2c: E2 0E 00 F9 0C 80 0D 02 02 06 00 3D CC 7E 5C 5E 5C 00 00 28 [22:44:32]Write i2c OK [22:44:32]MH_I2C_Read... [22:44:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:44:32]Read from MH i2c: E2 [22:44:32]MH_I2C_Read... [22:44:32]Read from MH i2c: E2 03 00 [22:44:32]MH_I2C_Read... [22:44:32]Read from MH i2c: E2 03 00 F9 0C 00 90 00 79 [22:44:32]RAPDU: 90 00 [22:44:32]wFMCommunicate OK [22:44:32]wFMCommunicate request_size=4 [22:44:32]MH_SAM_APDU [22:44:32]CAPDU: 80 0D 03 02 [22:44:32]Write to MH i2c: E2 08 00 FA 0C 80 0D 03 02 00 00 00 00 81 [22:44:32]Write i2c OK [22:44:32]MH_I2C_Read... [22:44:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:44:32]Read from MH i2c: E2 [22:44:32]MH_I2C_Read... [22:44:32]Read from MH i2c: E2 0B 00 [22:44:32]MH_I2C_Read... [22:44:32]Read from MH i2c: E2 0B 00 FA 0C 00 13 E1 CD 09 7E A1 9F 2F 90 00 39 [22:44:32]RAPDU: 13 E1 CD 09 7E A1 9F 2F 90 00 [22:44:32]wFMCommunicate OK [22:44:32]SAM_PROTO_SignData done [22:44:32]FM_MakeSignedData done [22:44:32]CreateOFDProtocolMessage [22:44:32]wFMCommunicate request_size=4 [22:44:32]MH_SAM_APDU [22:44:32]CAPDU: 80 11 00 00 [22:44:32]Write to MH i2c: E2 08 00 FB 0C 80 11 00 00 00 00 00 00 81 [22:44:32]Write i2c OK [22:44:32]MH_I2C_Read... [22:44:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:44:32]Read from MH i2c: E2 [22:44:32]MH_I2C_Read... [22:44:32]Read from MH i2c: E2 17 00 [22:44:32]MH_I2C_Read... [22:44:32]Read from MH i2c: E2 17 00 FB 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 30 35 90 00 D3 [22:44:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 30 35 90 00 [22:44:32]wFMCommunicate OK [22:44:32]CreateOFDProtocolMessage done [22:44:32]OFDSenderStorePacket 185803 [22:44:32]StoreOFDPacket docnum=185803 [22:44:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 30 35 10 01 00 00 6B F0 08 01 61 2A 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 58 F6 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 F6 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 72 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 59 35 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 58 F6 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 C8 00 00 00 F4 03 04 00 CC 30 C6 67 0E 04 04 00 99 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 30 35 10 04 04 00 CB D5 02 00 35 04 06 00 3D CC 7E 5C 5E 5C 13 E1 CD 09 7E A1 9F 2F [22:44:32]CheckFolder [22:44:32]dirname=/storage/ofd_packets [22:44:32]CheckFolder done [22:44:32]ProducePacketName [22:44:32]name=ofd_packets/00185803 [22:44:32]NVStorageSaveData ofd_packets/00185803 [22:44:32]File name is /storage/ofd_packets/00185803 [22:44:32]Write 302 bytes [22:44:32]NVStorageSaveData done [22:44:32]OFDSenderStorePacket done [22:44:32]KKMCreateOFDPacket done [22:44:32]NVStorageSaveData kkm_last_timestamp [22:44:32]File name is /storage/kkm_last_timestamp [22:44:32]Write 4 bytes [22:44:32]NVStorageSaveData done [22:44:32]ExternCall_PrintAddStr [22:44:32]wPrintStart [22:44:32]Write to MH i2c: 01 00 00 FC 0C 08 [22:44:32]OFD Sender: Processing packet 185803 [packets to send 75, broken 74] [22:44:32]ProducePacketName [22:44:32]name=ofd_packets/00185803 [22:44:32]OFD Sender: To server: pG, [22:44:32]CommunicateWithHost lk.salyk.kg:30040 [22:44:32]ConnectInit lk.salyk.kg [22:44:32]Write i2c OK [22:44:32]MH_I2C_Read... [22:44:32]Read from MH i2c: 01 [22:44:32]MH_I2C_Read... [22:44:32]Read from MH i2c: 01 07 00 [22:44:32]MH_I2C_Read... [22:44:32]Read from MH i2c: 01 07 00 FC 0C 00 00 00 00 00 FF 0F 1D [22:44:32]RasterBufferAndPrint [22:44:32]line Счет N : (1)624427 [22:44:32]line ИНН: 02508201610067 [22:44:32]line Контрольно-Кассовый Чек [22:44:32]line ПРОДАЖА [22:44:32]line ТРК (МРК, ГНК) : 51 [22:44:32]line Товар: 2710124130 [22:44:32]line Super 92-К-5 [22:44:32]line 20.000 * 64.30 [22:44:32]line = 1286.00 [22:44:32]line НДС 12% НСП 1% [22:44:32]line > о реализуемом товаре [22:44:32]line ИТОГО: 1286.00 [22:44:32]line НСП 1% : 11.38 [22:44:32]line НДС 12% : 136.57 [22:44:32]line Наличными: 0.00 [22:44:32]Connected sock=11 [22:44:32]line Безнал.: 1286.00 [22:44:32]Data to sent: line Место: АЗС № 112 "Партнер Нефть" [22:44:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 line Адрес: 720001, г. Талас, ул. Ч. Айтматова 292, 42.522657, 72.263018 [22:44:32]30 line СНО: Общий режим [22:44:32]30 line Чек 200 03.03.2025 22:44 [22:44:32]30 line Смена: 665 ФФД: 1.0 [22:44:32]38 line ЗНМ: 0300000131 [22:44:32]37 line РНМ: 0000000000090851 [22:44:32]34 line Версия ККМ: 001 [22:44:33]37 line Платежная система: АКБ Кыргызстан [22:44:33]30 line ФМ: 0000000000874705 [22:44:33]line ФД: 185803 [22:44:33]line ФПД: 67948502605404 [22:44:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250303T224428&type=1&operation_type=1&fn_number=0000000000874705&fd_number=185803&fm=67948502605404&tin=02508201610067®Number=0000000000090851&sum=128600 [22:44:33]35 10 01 00 00 6B F0 08 01 61 2A 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 20 written 0, free lines is 4095 [22:44:33]39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 58 F6 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 F6 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 72 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 59 35 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 58 F6 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 C8 00 00 00 F4 03 04 00 CC 30 C6 67 0E 04 04 00 99 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 30 35 10 04 04 00 Write to MH i2c: CB 01 D5 02 00 35 04 00 06 00 00 26 3D 0D CC 33 7E [22:44:33]5C 5E 5C Write i2c OK [22:44:33]13 MH_I2C_Read... [22:44:33]E1 Read from MH i2c: CD 01 09 7E A1 9F 2F [22:44:33] [22:44:33]MH_I2C_Read... [22:44:33]Read from MH i2c: 01 07 00 [22:44:33]MH_I2C_Read... [22:44:33]Read from MH i2c: 01 07 00 26 0D 00 00 00 00 00 51 0D 98 [22:44:33]RasterBufferAndPrint [22:44:33]line [22:44:33]line [22:44:33]line [22:44:33]line [22:44:33]line [22:44:33]written 0, free lines is 3558 [22:44:33]MH_Cut [22:44:33]Write to MH i2c: D1 01 00 2D 0D 01 0C [22:44:33]Write i2c OK [22:44:33]MH_I2C_Read... [22:44:33]Read from MH i2c: D1 [22:44:33]MH_I2C_Read... [22:44:33]Read from MH i2c: D1 01 00 [22:44:33]MH_I2C_Read... [22:44:33]Read from MH i2c: D1 01 00 2D 0D 00 0B [22:44:33]Write to MH i2c: 01 00 00 2E 0D Received data: 3B 87 [22:44:33]Write i2c OK [22:44:33]MH_I2C_Read... [22:44:34]95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 30 35 4F 00 00 00 AC 69 47 00 C2 7F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 30 35 10 04 04 00 CB D5 02 00 F4 03 04 00 49 DA C5 67 B6 04 01 00 *** Cut start [22:44:34]00 3A *** Partial cut [22:44:34]59 4F CE 46 32 1B 2B [22:44:34]CommunicateWithHost err = 0 [22:44:34]CheckOFDResponse [22:44:34]*** CUTSNS_PIN = 1 [22:44:34]1017 (14) - 77093643461234 [22:44:34]*** CUTSNS_PIN = 0 [22:44:34]1041 (16) - 0000000000874705 [22:44:34]1040 (4) - 185803 [22:44:34]1012 (4) - 03.03.2025 16:35 [22:44:34]1206 (1) - 0 [22:44:34]OFD Sender: Remove packet 185803 [22:44:34]ProducePacketName [22:44:34]name=ofd_packets/00185803 [22:44:34]NVStorageDeleteData [22:44:34]*** Brake cut motor [22:44:35]Read from MH i2c: *** Stop cut motor [22:44:35]01 *** Cut end [22:44:35] [22:44:35]MH_I2C_Read... [22:44:35]Read from MH i2c: 01 07 00 [22:44:35]MH_I2C_Read... [22:44:35]Read from MH i2c: 01 07 00 2E 0D 00 00 00 00 00 FF 0F 50 [22:44:35]process_action close_receipt done [22:44:35]requested_data is exist [22:44:35]produce_requested_data [22:44:35]requested_item fm.sn is exist - process it [22:44:35]wFMCommunicate request_size=4 [22:44:35]MH_SAM_APDU [22:44:35]CAPDU: 80 11 00 00 [22:44:35]Write to MH i2c: E2 08 00 2F 0D 80 11 00 00 00 00 00 00 B6 [22:44:35]Write i2c OK [22:44:35]MH_I2C_Read... [22:44:35]OFD Sender: No OFD packet to send [22:44:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:44:35]Read from MH i2c: E2 [22:44:35]MH_I2C_Read... [22:44:35]Read from MH i2c: E2 17 00 [22:44:35]MH_I2C_Read... [22:44:35]Read from MH i2c: E2 17 00 2F 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 30 35 90 00 08 [22:44:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 30 35 90 00 [22:44:35]wFMCommunicate OK [22:44:35]requested_item fd.num is exist - process it [22:44:35]SAM_PROTO_GetFieldsCounters [22:44:35]wFMCommunicate request_size=4 [22:44:35]MH_SAM_APDU [22:44:35]CAPDU: 80 13 00 00 [22:44:35]Write to MH i2c: E2 08 00 30 0D 80 13 00 00 00 00 00 00 B9 [22:44:35]Write i2c OK [22:44:35]MH_I2C_Read... [22:44:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:44:35]Read from MH i2c: E2 [22:44:35]MH_I2C_Read... [22:44:35]Read from MH i2c: E2 62 00 [22:44:35]MH_I2C_Read... [22:44:35]Read from MH i2c: E2 62 00 30 0D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 30 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 31 10 04 04 00 CB D5 02 00 0E 04 04 00 99 02 00 00 12 04 04 00 C8 00 00 00 5E 04 04 00 C8 00 00 00 57 04 04 00 C9 00 00 00 19 04 04 00 00 00 00 00 90 00 6C [22:44:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 30 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 31 10 04 04 00 CB D5 02 00 0E 04 04 00 99 02 00 00 12 04 04 00 C8 00 00 00 5E 04 04 00 C8 00 00 00 57 04 04 00 C9 00 00 00 19 04 04 00 00 00 00 00 90 00 [22:44:36]wFMCommunicate OK [22:44:36]SAM_PROTO_GetFieldsCounters done [22:44:36]requested_item shift.num is exist - process it [22:44:36]requested_item shift.opened is exist - process it [22:44:36]req_shift_opened [22:44:36]FM_GetShiftState [22:44:36]SAM_PROTO_GetShiftState [22:44:36]wFMCommunicate request_size=4 [22:44:36]MH_SAM_APDU [22:44:36]CAPDU: 80 13 01 00 [22:44:36]Write to MH i2c: E2 08 00 31 0D 80 13 01 00 00 00 00 00 BB [22:44:36]Write i2c OK [22:44:36]MH_I2C_Read... [22:44:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:44:36]Read from MH i2c: E2 [22:44:36]MH_I2C_Read... [22:44:36]Read from MH i2c: E2 0E 00 [22:44:36]MH_I2C_Read... [22:44:36]Read from MH i2c: E2 0E 00 31 0D 00 09 00 01 EA F4 C4 67 00 00 00 00 90 00 D0 [22:44:36]RAPDU: 09 00 01 EA F4 C4 67 00 00 00 00 90 00 [22:44:36]wFMCommunicate OK [22:44:36]SAM_PROTO_GetShiftState done [22:44:36]FM_GetShiftState done [22:44:36]req_shift_opened done [22:44:36]requested_item shift.open_date is exist - process it [22:44:36]req_shift_open_date [22:44:36]req_shift_open_date done [22:44:36]produce_requested_data done [22:44:36]produce_requested_data return {"fm.sn":"0000000000874705","fd.num":185803,"shift.num":665,"shift.opened":1,"shift.open_date":1740961002} [22:44:36]process_action_free close_receipt [22:44:36]json_value_free [22:44:36]json_value_free done [22:44:36]process_json_proto returns [22:44:36]Send response to host [22:44:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874705","fd.num":185803,"shift.num":665,"shift.opened":1,"shift.open_date":1740961002}}} [22:44:36]free response buf [22:44:36]execute_script done [22:44:36]execute_script returns [22:44:36]free content buf [22:44:36]Sock 7.Close socket [22:44:36]Sock 7.Thread stoped [22:44:40]OFD Sender: No OFD packet to send [22:44:45]OFD Sender: No OFD packet to send [22:44:50]OFD Sender: No OFD packet to send [22:44:55]OFD Sender: No OFD packet to send [22:45:00]OFD Sender: No OFD packet to send [22:45:05]OFD Sender: No OFD packet to send [22:45:10]OFD Sender: No OFD packet to send [22:45:15]OFD Sender: No OFD packet to send [22:45:20]OFD Sender: No OFD packet to send [22:45:25]OFD Sender: No OFD packet to send [22:45:30]OFD Sender: No OFD packet to send [22:45:35]OFD Sender: No OFD packet to send [22:45:40]OFD Sender: No OFD packet to send [22:45:45]OFD Sender: No OFD packet to send [22:45:50]OFD Sender: No OFD packet to send [22:45:55]OFD Sender: No OFD packet to send [22:46:00]OFD Sender: No OFD packet to send [22:46:02]ConnectInit Can't connect to host [22:46:05]OFD Sender: No OFD packet to send [22:46:10]OFD Sender: No OFD packet to send [22:46:15]OFD Sender: No OFD packet to send [22:46:20]OFD Sender: No OFD packet to send [22:46:25]OFD Sender: No OFD packet to send [22:46:30]OFD Sender: No OFD packet to send [22:46:35]OFD Sender: No OFD packet to send [22:46:40]OFD Sender: No OFD packet to send [22:46:45]OFD Sender: No OFD packet to send [22:46:50]OFD Sender: No OFD packet to send [22:46:55]OFD Sender: No OFD packet to send [22:47:00]OFD Sender: No OFD packet to send [22:47:05]OFD Sender: No OFD packet to send [22:47:10]OFD Sender: No OFD packet to send [22:47:15]OFD Sender: No OFD packet to send [22:47:20]OFD Sender: No OFD packet to send [22:47:25]OFD Sender: No OFD packet to send [22:47:30]OFD Sender: No OFD packet to send [22:47:35]OFD Sender: No OFD packet to send [22:47:40]OFD Sender: No OFD packet to send [22:47:45]OFD Sender: No OFD packet to send [22:47:50]OFD Sender: No OFD packet to send [22:47:55]OFD Sender: No OFD packet to send [22:48:00]OFD Sender: No OFD packet to send [22:48:05]OFD Sender: No OFD packet to send [22:48:10]OFD Sender: No OFD packet to send [22:48:15]OFD Sender: No OFD packet to send [22:48:20]OFD Sender: No OFD packet to send [22:48:20]ConnectInit Can't connect to host [22:48:25]OFD Sender: No OFD packet to send [22:48:30]OFD Sender: No OFD packet to send [22:48:35]OFD Sender: No OFD packet to send [22:48:40]OFD Sender: No OFD packet to send [22:48:45]OFD Sender: No OFD packet to send [22:48:50]OFD Sender: No OFD packet to send [22:48:55]OFD Sender: No OFD packet to send [22:49:00]OFD Sender: No OFD packet to send [22:49:05]OFD Sender: No OFD packet to send [22:49:10]OFD Sender: No OFD packet to send [22:49:15]OFD Sender: No OFD packet to send [22:49:20]OFD Sender: No OFD packet to send [22:49:25]OFD Sender: No OFD packet to send [22:49:30]OFD Sender: No OFD packet to send [22:49:35]OFD Sender: No OFD packet to send [22:49:40]OFD Sender: No OFD packet to send [22:49:45]OFD Sender: No OFD packet to send [22:49:50]OFD Sender: No OFD packet to send [22:49:55]OFD Sender: No OFD packet to send [22:50:00]OFD Sender: No OFD packet to send [22:50:05]OFD Sender: No OFD packet to send [22:50:10]OFD Sender: No OFD packet to send [22:50:15]OFD Sender: No OFD packet to send [22:50:20]OFD Sender: No OFD packet to send [22:50:25]OFD Sender: No OFD packet to send [22:50:30]OFD Sender: No OFD packet to send [22:50:35]OFD Sender: No OFD packet to send [22:50:38]ConnectInit Can't connect to host [22:50:40]OFD Sender: No OFD packet to send [22:50:45]OFD Sender: No OFD packet to send [22:50:50]OFD Sender: No OFD packet to send [22:50:55]OFD Sender: No OFD packet to send [22:51:00]OFD Sender: No OFD packet to send [22:51:05]OFD Sender: No OFD packet to send [22:51:10]OFD Sender: No OFD packet to send [22:51:15]OFD Sender: No OFD packet to send [22:51:20]OFD Sender: No OFD packet to send [22:51:25]OFD Sender: No OFD packet to send [22:51:30]OFD Sender: No OFD packet to send [22:51:35]OFD Sender: No OFD packet to send [22:51:40]OFD Sender: No OFD packet to send [22:51:45]OFD Sender: No OFD packet to send [22:51:50]OFD Sender: No OFD packet to send [22:51:55]OFD Sender: No OFD packet to send [22:52:00]OFD Sender: No OFD packet to send [22:52:05]OFD Sender: No OFD packet to send [22:52:10]OFD Sender: No OFD packet to send [22:52:15]OFD Sender: No OFD packet to send [22:52:20]OFD Sender: No OFD packet to send [22:52:25]OFD Sender: No OFD packet to send [22:52:30]OFD Sender: No OFD packet to send [22:52:35]OFD Sender: No OFD packet to send [22:52:40]OFD Sender: No OFD packet to send [22:52:46]OFD Sender: No OFD packet to send [22:52:51]OFD Sender: No OFD packet to send [22:52:56]OFD Sender: No OFD packet to send [22:52:57]ConnectInit Can't connect to host [22:53:01]OFD Sender: No OFD packet to send [22:53:06]OFD Sender: No OFD packet to send [22:53:11]OFD Sender: No OFD packet to send [22:53:16]OFD Sender: No OFD packet to send [22:53:21]OFD Sender: No OFD packet to send [22:53:26]OFD Sender: No OFD packet to send [22:53:31]OFD Sender: No OFD packet to send [22:53:34]accept exits with 10 [22:53:34]New connection [22:53:34]New thread 3067157860 created [22:53:34]Thread 3067301220 joined [22:53:34]Waiting for new connection... [22:53:34] Sock 10.Parse request [22:53:34]Sock 10.Check first char [22:53:34]Sock 10.First char is OK [22:53:34]request: POST /json_proto HTTP/1.0 [22:53:34]Method: POST [22:53:34]URL: /json_proto [22:53:34]Method is POST - this is cgi request [22:53:34]url: /json_proto [22:53:34]query_string will be loaded in cgi processing [22:53:34]execute_cgi json_proto POST (null) [22:53:34]execute_cgi path=json_proto method=POST [22:53:34]POST find Content-Length [22:53:34]Host: 172.17.36.3:8080 [22:53:34]Content-Length: 805 [22:53:34]Content-Type: application/json [22:53:34] [22:53:34]POST finish read [22:53:34]Found Content-Length = 805 [22:53:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)624429", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.80, "quantity" : 9.560, "sum" : 600.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 600.37 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:53:34]execute_script... [22:53: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)624429", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 62.80, "quantity" : 9.560, "sum" : 600.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 600.37 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:53:34]POST & json_proto [22:53:34]process_json_proto [22:53:34]json parsed OK: [22:53:34]protocol is kg_v1.0 [22:53:34]action value=close_receipt [22:53:34]process_action close_receipt [22:53:34]cmd_close_receipt [22:53:34]MH_GetDate [22:53:34]Write to MH i2c: F0 00 00 32 0D 2E [22:53:34]Write i2c OK [22:53:34]MH_I2C_Read... [22:53:34]Read from MH i2c: F0 [22:53:34]MH_I2C_Read... [22:53:34]Read from MH i2c: F0 09 00 [22:53:34]MH_I2C_Read... [22:53:34]Read from MH i2c: F0 09 00 32 0D 00 F0 32 C6 67 34 83 A9 66 4C [22:53:34]GetLastDocTimeStamp 1741041868 [22:53:34]current date 1741042416 [22:53:34]FM_GetShiftState [22:53:34]SAM_PROTO_GetShiftState [22:53:34]wFMCommunicate request_size=4 [22:53:34]MH_SAM_APDU [22:53:34]CAPDU: 80 13 01 00 [22:53:34]Write to MH i2c: E2 08 00 33 0D 80 13 01 00 00 00 00 00 BD [22:53:34]Write i2c OK [22:53:34]MH_I2C_Read... [22:53:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:53:34]Read from MH i2c: E2 [22:53:34]MH_I2C_Read... [22:53:34]Read from MH i2c: E2 0E 00 [22:53:34]MH_I2C_Read... [22:53:34]Read from MH i2c: E2 0E 00 33 0D 00 09 00 01 EA F4 C4 67 00 00 00 00 90 00 D2 [22:53:34]RAPDU: 09 00 01 EA F4 C4 67 00 00 00 00 90 00 [22:53:34]wFMCommunicate OK [22:53:34]SAM_PROTO_GetShiftState done [22:53:34]FM_GetShiftState done [22:53:34]opened in 1740961002 [22:53:34]opened+sec_in_day 1741047402 [22:53:34]quantity*price = 60036 [22:53:34]sum+1 = 60038 [22:53:34]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 600.37 НСП 1% : 5.31 НДС 12% : 63.76 Наличными: 0.00 Безнал.: 600.37 Место: АЗС № 112 "Партнер Нефть" Адрес: 720001, г. Талас, ул. Ч. Айтматова 292, 42.522657, 72.263018 СНО: Общий режим Чек 201 03.03.2025 22:53 Смена: 665 ФФД: 1.0 ЗНМ: 0300000131 РНМ: 0000000000090851 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000874705 ФД: 185804 ФПД: 37864764216886 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250303T225336&type=1&operation_type=1&fn_number=0000000000874705&fd_number=185804&fm=37864764216886&tin=02508201610067®Number=0000000000090851&sum=60037 [22:53:37]StoreToDocumentArchive [22:53:37]shift 665 fd 185804 [22:53:37]save to /storage/0665/doc_00185804 [22:53:37]save last doc name /storage/0665/doc_00185804 to /storage/kkm_last_doc_name [22:53:37]save OK [22:53:37]Clear old archive folders... [22:53:37]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:53:37]tlvbuf is 01798570 [22:53:37]SAM_PROTO_ClearQueue [22:53:37]wFMCommunicate request_size=4 [22:53:37]MH_SAM_APDU [22:53:37]CAPDU: 80 09 00 00 [22:53:37]Write to MH i2c: E2 08 00 40 0D 80 09 00 00 00 00 00 00 BF [22:53:37]Write i2c OK [22:53:37]MH_I2C_Read... [22:53:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:53:37]Read from MH i2c: E2 [22:53:37]MH_I2C_Read... [22:53:37]Read from MH i2c: E2 03 00 [22:53:37]MH_I2C_Read... [22:53:37]Read from MH i2c: E2 03 00 40 0D 00 90 00 C1 [22:53:37]RAPDU: 90 00 [22:53:37]wFMCommunicate OK [22:53:37]SAM_PROTO_ClearQueue done [22:53:37]KKMCreateOFDPacket [22:53:37]OFDProtocolAddRootSTLVToBuf [22:53:37]FM_MakeSignedData [22:53:37]FM_MakeSignedData [22:53:37]SAM_PROTO_SignData [22:53:37]wFMCommunicate request_size=4 [22:53:37]MH_SAM_APDU [22:53:37]CAPDU: 80 0D 01 02 [22:53:37]Write to MH i2c: E2 08 00 41 0D 80 0D 01 02 00 00 00 00 C7 [22:53:37]Write i2c OK [22:53:37]MH_I2C_Read... [22:53:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:53:37]Read from MH i2c: E2 [22:53:37]MH_I2C_Read... [22:53:37]Read from MH i2c: E2 03 00 [22:53:38]MH_I2C_Read... [22:53:38]Read from MH i2c: E2 03 00 41 0D 00 90 00 C2 [22:53:38]RAPDU: 90 00 [22:53:38]wFMCommunicate OK [22:53:38]wFMCommunicate request_size=255 [22:53:38]MH_SAM_APDU [22:53:38]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 58 25 00 00 00 00 00 37 04 06 00 88 18 00 00 00 00 13 04 06 00 85 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 85 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E8 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 85 EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C9 00 00 00 F4 03 04 00 F0 32 C6 67 0E 04 04 00 99 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 30 35 10 04 04 00 CC D5 02 00 35 04 06 00 22 [22:53:38]Write to MH i2c: E2 02 01 42 0D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 58 25 00 00 00 00 00 37 04 06 00 88 18 00 00 00 00 13 04 06 00 85 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 85 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E8 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 85 EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C9 00 00 00 F4 03 04 00 F0 32 C6 67 0E 04 04 00 99 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 30 35 10 04 04 00 CC D5 02 00 35 04 06 00 22 00 00 C5 [22:53:39]Write i2c OK [22:53:39]MH_I2C_Read... [22:53:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:53:39]Read from MH i2c: E2 [22:53:39]MH_I2C_Read... [22:53:39]Read from MH i2c: E2 03 00 [22:53:39]MH_I2C_Read... [22:53:39]Read from MH i2c: E2 03 00 42 0D 00 90 00 C3 [22:53:39]RAPDU: 90 00 [22:53:39]wFMCommunicate OK [22:53:39]wFMCommunicate request_size=10 [22:53:39]MH_SAM_APDU [22:53:39]CAPDU: 80 0D 02 02 05 70 13 D2 16 36 [22:53:39]Write to MH i2c: E2 0D 00 43 0D 80 0D 02 02 05 00 70 13 D2 16 36 00 00 75 [22:53:39]Write i2c OK [22:53:39]MH_I2C_Read... [22:53:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:53:39]Read from MH i2c: E2 [22:53:39]MH_I2C_Read... [22:53:39]Read from MH i2c: E2 03 00 [22:53:39]MH_I2C_Read... [22:53:39]Read from MH i2c: E2 03 00 43 0D 00 90 00 C4 [22:53:39]RAPDU: 90 00 [22:53:39]wFMCommunicate OK [22:53:39]wFMCommunicate request_size=4 [22:53:39]MH_SAM_APDU [22:53:39]CAPDU: 80 0D 03 02 [22:53:39]Write to MH i2c: E2 08 00 44 0D 80 0D 03 02 00 00 00 00 CC [22:53:39]Write i2c OK [22:53:39]MH_I2C_Read... [22:53:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:53:39]Read from MH i2c: E2 [22:53:39]MH_I2C_Read... [22:53:39]Read from MH i2c: E2 0B 00 [22:53:39]MH_I2C_Read... [22:53:39]Read from MH i2c: E2 0B 00 44 0D 00 F7 CE D1 1A 9F 0F 52 A1 90 00 1E [22:53:39]RAPDU: F7 CE D1 1A 9F 0F 52 A1 90 00 [22:53:39]wFMCommunicate OK [22:53:39]SAM_PROTO_SignData done [22:53:39]FM_MakeSignedData done [22:53:39]CreateOFDProtocolMessage [22:53:39]wFMCommunicate request_size=4 [22:53:39]MH_SAM_APDU [22:53:39]CAPDU: 80 11 00 00 [22:53:39]Write to MH i2c: E2 08 00 45 0D 80 11 00 00 00 00 00 00 CC [22:53:39]Write i2c OK [22:53:39]MH_I2C_Read... [22:53:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:53:40]Read from MH i2c: E2 [22:53:40]MH_I2C_Read... [22:53:40]Read from MH i2c: E2 17 00 [22:53:40]MH_I2C_Read... [22:53:40]Read from MH i2c: E2 17 00 45 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 30 35 90 00 1E [22:53:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 30 35 90 00 [22:53:40]wFMCommunicate OK [22:53:40]CreateOFDProtocolMessage done [22:53:40]OFDSenderStorePacket 185804 [22:53:40]StoreOFDPacket docnum=185804 [22:53:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 30 35 0F 01 00 00 89 DF 07 01 6C DF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 58 25 00 00 00 00 00 37 04 06 00 88 18 00 00 00 00 13 04 06 00 85 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 85 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E8 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 85 EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C9 00 00 00 F4 03 04 00 F0 32 C6 67 0E 04 04 00 99 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 30 35 10 04 04 00 CC D5 02 00 35 04 06 00 22 70 13 D2 16 36 F7 CE D1 1A 9F 0F 52 A1 [22:53:40]CheckFolder [22:53:40]dirname=/storage/ofd_packets [22:53:40]CheckFolder done [22:53:40]ProducePacketName [22:53:40]name=ofd_packets/00185804 [22:53:40]NVStorageSaveData ofd_packets/00185804 [22:53:40]File name is /storage/ofd_packets/00185804 [22:53:40]Write 301 bytes [22:53:40]NVStorageSaveData done [22:53:40]OFDSenderStorePacket done [22:53:40]KKMCreateOFDPacket done [22:53:40]NVStorageSaveData kkm_last_timestamp [22:53:40]File name is /storage/kkm_last_timestamp [22:53:40]Write 4 bytes [22:53:40]NVStorageSaveData done [22:53:40]ExternCall_PrintAddStr [22:53:40]wPrintStart [22:53:40]Write to MH i2c: 01 00 00 46 0D 53 [22:53:40]Write i2c OK [22:53:40]MH_I2C_Read... [22:53:40]Read from MH i2c: 01 [22:53:40]MH_I2C_Read... [22:53:40]Read from MH i2c: 01 07 00 [22:53:40]MH_I2C_Read... [22:53:40]Read from MH i2c: 01 07 00 46 0D 00 00 00 00 00 FF 0F 68 [22:53:40]RasterBufferAndPrint [22:53:40]line Счет N : (1)624429 [22:53:40]line ИНН: 02508201610067 [22:53:40]line Контрольно-Кассовый Чек [22:53:40]line ПРОДАЖА [22:53:40]OFD Sender: Processing packet 185804 [packets to send 75, broken 74] [22:53:40]line ТРК (МРК, ГНК) : 62 [22:53:40]ProducePacketName [22:53:40]line Товар: 2710124130 [22:53:40]line Аи-92-К-5 [22:53:40]line 9.560 * 62.80 [22:53:40]line = 600.37 [22:53:40]line НДС 12% НСП 1% [22:53:40]name=ofd_packets/00185804 [22:53:40]line > о реализуемом товаре [22:53:40]OFD Sender: To server: pG, [22:53:40]line ИТОГО: 600.37 [22:53:40]CommunicateWithHost lk.salyk.kg:30040 [22:53:40]line НСП 1% : 5.31 [22:53:40]ConnectInit lk.salyk.kg [22:53:40]line НДС 12% : 63.76 [22:53:40]line Наличными: 0.00 [22:53:40]line Безнал.: 600.37 [22:53:40]line Место: АЗС № 112 "Партнер Нефть" [22:53:40]line Адрес: 720001, г. Талас, ул. Ч. Айтматова 292, 42.522657, 72.263018 [22:53:40]line СНО: Общий режим [22:53:40]line Чек 201 03.03.2025 22:53 [22:53:40]line Смена: 665 ФФД: 1.0 [22:53:40]line ЗНМ: 0300000131 [22:53:40]line РНМ: 0000000000090851 [22:53:40]line Версия ККМ: 001 [22:53:40]line Платежная система: О! деньги [22:53:40]line ФМ: 0000000000874705 [22:53:40]line ФД: 185804 [22:53:40]line ФПД: 37864764216886 [22:53:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250303T225336&type=1&operation_type=1&fn_number=0000000000874705&fd_number=185804&fm=37864764216886&tin=02508201610067®Number=0000000000090851&sum=60037 [22:53:40]written 0, free lines is 4095 [22:53:40]Connected sock=11 [22:53:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 30 35 0F 01 00 00 89 DF 07 01 6C DF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 58 25 00 00 00 00 00 37 04 06 00 88 18 00 00 00 00 13 04 06 00 85 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 85 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 Write to MH i2c: 06 01 00 00 E8 00 18 00 00 00 00 70 07 0D 04 7D 06 [22:53:40]00 00 00 00 00 00 00 Write i2c OK [22:53:40]39 MH_I2C_Read... [22:53:40]04 06 00 85 EA Read from MH i2c: 00 01 00 [22:53:40]00 MH_I2C_Read... [22:53:40]00 1F 04 02 00 01 Read from MH i2c: 00 01 12 07 04 00 04 [22:53:41]00 MH_I2C_Read... [22:53:41]C9 00 00 00 F4 03 04 Read from MH i2c: 00 01 F0 07 32 00 C6 70 67 0D 0E 00 04 04 00 99 02 00 00 00 00 00 B9 00 04 45 01 0D 00 D6 01 0D 04 10 00 [22:53:41]30 RasterBufferAndPrint [22:53:41]30 line [22:53:41]30 line [22:53:41]30 line [22:53:41]30 line [22:53:41]30 line [22:53:41]30 30 30 30 30 39 written 0, free lines is 3779 [22:53:41]30 38 35 31 11 04 10 MH_Cut [22:53:41]00 Write to MH i2c: 30 30 30 30 30 30 D1 30 01 30 30 30 38 37 34 00 37 77 30 35 10 04 04 0D 00 01 CC 56 D5 [22:53:41]02 00 35 04 06 00 22 Write i2c OK [22:53:41]70 MH_I2C_Read... [22:53:41]13 D2 16 36 F7 CE Read from MH i2c: D1 D1 1A 9F 0F 52 A1 [22:53:41] [22:53:41]MH_I2C_Read... [22:53:41]Read from MH i2c: D1 01 00 [22:53:41]MH_I2C_Read... [22:53:41]Read from MH i2c: D1 01 00 77 0D 00 55 [22:53:41]Write to MH i2c: 01 00 00 78 0D 85 [22:53:41]Write i2c OK [22:53:41]MH_I2C_Read... [22:53:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 30 35 4F 00 00 00 0C D1 47 00 79 D6 A5 07 01 00 07 *** Cut start [22:53:41]00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 *** Partial cut [22:53:41]38 37 *** CUTSNS_PIN = 1 [22:53:41]34 37 30 35 *** CUTSNS_PIN = 0 [22:53:41]10 04 04 00 CC D5 02 00 F4 03 04 00 6C DC C5 67 B6 04 01 00 00 7D C7 7F 7F D6 E9 19 50 [22:53:41]CommunicateWithHost err = 0 [22:53:41]CheckOFDResponse [22:53:41]1017 (14) - 77093643461234 [22:53:41]1041 (16) - 0000000000874705 [22:53:41]1040 (4) - 185804 [22:53:41]1012 (4) - 03.03.2025 16:44 [22:53:41]1206 (1) - 0 [22:53:41]OFD Sender: Remove packet 185804 [22:53:41]ProducePacketName [22:53:41]name=ofd_packets/00185804 [22:53:41]NVStorageDeleteData [22:53:41]*** Brake cut motor [22:53:42]Read from MH i2c: 01 [22:53:42]MH_I2C_Read... [22:53:42]*** Stop cut motor [22:53:42]*** Cut end [22:53:42]Read from MH i2c: 01 07 00 [22:53:42]MH_I2C_Read... [22:53:42]Read from MH i2c: 01 07 00 78 0D 00 00 00 00 00 FF 0F 9A [22:53:42]process_action close_receipt done [22:53:42]requested_data is exist [22:53:42]produce_requested_data [22:53:42]requested_item fm.sn is exist - process it [22:53:42]wFMCommunicate request_size=4 [22:53:42]MH_SAM_APDU [22:53:42]CAPDU: 80 11 00 00 [22:53:42]Write to MH i2c: E2 08 00 79 0D 80 11 00 00 00 00 00 00 00 [22:53:42]Write i2c OK [22:53:42]MH_I2C_Read... [22:53:42]OFD Sender: No OFD packet to send [22:53:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:53:42]Read from MH i2c: E2 [22:53:42]MH_I2C_Read... [22:53:42]Read from MH i2c: E2 17 00 [22:53:42]MH_I2C_Read... [22:53:42]Read from MH i2c: E2 17 00 79 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 30 35 90 00 52 [22:53:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 30 35 90 00 [22:53:42]wFMCommunicate OK [22:53:42]requested_item fd.num is exist - process it [22:53:42]SAM_PROTO_GetFieldsCounters [22:53:42]wFMCommunicate request_size=4 [22:53:42]MH_SAM_APDU [22:53:42]CAPDU: 80 13 00 00 [22:53:42]Write to MH i2c: E2 08 00 7A 0D 80 13 00 00 00 00 00 00 03 [22:53:42]Write i2c OK [22:53:42]MH_I2C_Read... [22:53:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:53:42]Read from MH i2c: E2 [22:53:42]MH_I2C_Read... [22:53:42]Read from MH i2c: E2 62 00 [22:53:42]MH_I2C_Read... [22:53:42]Read from MH i2c: E2 62 00 7A 0D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 30 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 31 10 04 04 00 CC D5 02 00 0E 04 04 00 99 02 00 00 12 04 04 00 C9 00 00 00 5E 04 04 00 C9 00 00 00 57 04 04 00 CA 00 00 00 19 04 04 00 00 00 00 00 90 00 BA [22:53:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 30 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 31 10 04 04 00 CC D5 02 00 0E 04 04 00 99 02 00 00 12 04 04 00 C9 00 00 00 5E 04 04 00 C9 00 00 00 57 04 04 00 CA 00 00 00 19 04 04 00 00 00 00 00 90 00 [22:53:43]wFMCommunicate OK [22:53:43]SAM_PROTO_GetFieldsCounters done [22:53:43]requested_item shift.num is exist - process it [22:53:43]requested_item shift.opened is exist - process it [22:53:43]req_shift_opened [22:53:43]FM_GetShiftState [22:53:43]SAM_PROTO_GetShiftState [22:53:43]wFMCommunicate request_size=4 [22:53:43]MH_SAM_APDU [22:53:43]CAPDU: 80 13 01 00 [22:53:43]Write to MH i2c: E2 08 00 7B 0D 80 13 01 00 00 00 00 00 05 [22:53:43]Write i2c OK [22:53:43]MH_I2C_Read... [22:53:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:53:43]Read from MH i2c: E2 [22:53:43]MH_I2C_Read... [22:53:43]Read from MH i2c: E2 0E 00 [22:53:43]MH_I2C_Read... [22:53:43]Read from MH i2c: E2 0E 00 7B 0D 00 09 00 01 EA F4 C4 67 00 00 00 00 90 00 1A [22:53:43]RAPDU: 09 00 01 EA F4 C4 67 00 00 00 00 90 00 [22:53:43]wFMCommunicate OK [22:53:43]SAM_PROTO_GetShiftState done [22:53:43]FM_GetShiftState done [22:53:43]req_shift_opened done [22:53:43]requested_item shift.open_date is exist - process it [22:53:43]req_shift_open_date [22:53:43]req_shift_open_date done [22:53:43]produce_requested_data done [22:53:43]produce_requested_data return {"fm.sn":"0000000000874705","fd.num":185804,"shift.num":665,"shift.opened":1,"shift.open_date":1740961002} [22:53:43]process_action_free close_receipt [22:53:43]json_value_free [22:53:43]json_value_free done [22:53:43]process_json_proto returns [22:53:43]Send response to host [22:53:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874705","fd.num":185804,"shift.num":665,"shift.opened":1,"shift.open_date":1740961002}}} [22:53:43]free response buf [22:53:43]execute_script done [22:53:43]execute_script returns [22:53:43]free content buf [22:53:43]Sock 10.Close socket [22:53:43]Sock 10.Thread stoped [22:53:47]OFD Sender: No OFD packet to send [22:53:52]OFD Sender: No OFD packet to send [22:53:57]OFD Sender: No OFD packet to send [22:54:02]OFD Sender: No OFD packet to send [22:54:07]OFD Sender: No OFD packet to send [22:54:12]OFD Sender: No OFD packet to send [22:54:17]OFD Sender: No OFD packet to send [22:54:22]OFD Sender: No OFD packet to send [22:54:27]OFD Sender: No OFD packet to send [22:54:32]OFD Sender: No OFD packet to send [22:54:37]OFD Sender: No OFD packet to send [22:54:42]OFD Sender: No OFD packet to send [22:54:47]OFD Sender: No OFD packet to send [22:54:52]OFD Sender: No OFD packet to send [22:54:57]OFD Sender: No OFD packet to send [22:55:02]OFD Sender: No OFD packet to send [22:55:07]OFD Sender: No OFD packet to send [22:55:12]OFD Sender: No OFD packet to send [22:55:15]ConnectInit Can't connect to host [22:55:17]OFD Sender: No OFD packet to send [22:55:22]OFD Sender: No OFD packet to send [22:55:27]OFD Sender: No OFD packet to send [22:55:32]OFD Sender: No OFD packet to send [22:55:37]OFD Sender: No OFD packet to send [22:55:42]OFD Sender: No OFD packet to send [22:55:47]OFD Sender: No OFD packet to send [22:55:52]OFD Sender: No OFD packet to send [22:55:57]OFD Sender: No OFD packet to send [22:56:02]OFD Sender: No OFD packet to send [22:56:07]OFD Sender: No OFD packet to send [22:56:12]OFD Sender: No OFD packet to send [22:56:17]OFD Sender: No OFD packet to send [22:56:22]OFD Sender: No OFD packet to send [22:56:27]OFD Sender: No OFD packet to send [22:56:32]OFD Sender: No OFD packet to send [22:56:37]OFD Sender: No OFD packet to send [22:56:42]OFD Sender: No OFD packet to send [22:56:47]OFD Sender: No OFD packet to send [22:56:52]OFD Sender: No OFD packet to send [22:56:57]OFD Sender: No OFD packet to send [22:57:02]OFD Sender: No OFD packet to send [22:57:07]OFD Sender: No OFD packet to send [22:57:12]OFD Sender: No OFD packet to send [22:57:17]OFD Sender: No OFD packet to send [22:57:22]OFD Sender: No OFD packet to send [22:57:27]OFD Sender: No OFD packet to send [22:57:32]OFD Sender: No OFD packet to send [22:57:33]ConnectInit Can't connect to host [22:57:37]OFD Sender: No OFD packet to send [22:57:42]OFD Sender: No OFD packet to send [22:57:47]OFD Sender: No OFD packet to send [22:57:52]OFD Sender: No OFD packet to send [22:57:57]OFD Sender: No OFD packet to send [22:58:02]OFD Sender: No OFD packet to send [22:58:07]OFD Sender: No OFD packet to send [22:58:12]OFD Sender: No OFD packet to send [22:58:17]OFD Sender: No OFD packet to send [22:58:22]OFD Sender: No OFD packet to send [22:58:27]OFD Sender: No OFD packet to send [22:58:32]OFD Sender: No OFD packet to send [22:58:37]OFD Sender: No OFD packet to send [22:58:42]OFD Sender: No OFD packet to send [22:58:47]OFD Sender: No OFD packet to send [22:58:52]OFD Sender: No OFD packet to send [22:58:57]OFD Sender: No OFD packet to send [22:59:02]OFD Sender: No OFD packet to send [22:59:07]OFD Sender: No OFD packet to send [22:59:12]OFD Sender: No OFD packet to send [22:59:17]OFD Sender: No OFD packet to send [22:59:22]OFD Sender: No OFD packet to send [22:59:27]OFD Sender: No OFD packet to send [22:59:32]OFD Sender: No OFD packet to send [22:59:37]OFD Sender: No OFD packet to send [22:59:42]OFD Sender: No OFD packet to send [22:59:47]OFD Sender: No OFD packet to send [22:59:51]ConnectInit Can't connect to host [22:59:53]OFD Sender: No OFD packet to send [22:59:58]OFD Sender: No OFD packet to send [23:00:03]OFD Sender: No OFD packet to send [23:00:08]OFD Sender: No OFD packet to send [23:00:13]OFD Sender: No OFD packet to send [23:00:18]OFD Sender: No OFD packet to send [23:00:23]OFD Sender: No OFD packet to send [23:00:28]OFD Sender: No OFD packet to send [23:00:33]OFD Sender: No OFD packet to send [23:00:38]OFD Sender: No OFD packet to send [23:00:43]OFD Sender: No OFD packet to send [23:00:48]OFD Sender: No OFD packet to send [23:00:53]OFD Sender: No OFD packet to send [23:00:58]OFD Sender: No OFD packet to send [23:01:03]OFD Sender: No OFD packet to send [23:01:08]OFD Sender: No OFD packet to send [23:01:13]OFD Sender: No OFD packet to send [23:01:18]OFD Sender: No OFD packet to send [23:01:23]OFD Sender: No OFD packet to send [23:01:28]OFD Sender: No OFD packet to send [23:01:33]OFD Sender: No OFD packet to send [23:01:38]OFD Sender: No OFD packet to send [23:01:43]OFD Sender: No OFD packet to send [23:01:48]OFD Sender: No OFD packet to send [23:01:53]OFD Sender: No OFD packet to send [23:01:58]OFD Sender: No OFD packet to send [23:02:03]OFD Sender: No OFD packet to send [23:02:08]OFD Sender: No OFD packet to send [23:02:10]ConnectInit Can't connect to host [23:02:13]OFD Sender: No OFD packet to send [23:02:18]OFD Sender: No OFD packet to send [23:02:23]OFD Sender: No OFD packet to send [23:02:28]OFD Sender: No OFD packet to send [23:02:33]OFD Sender: No OFD packet to send [23:02:38]OFD Sender: No OFD packet to send [23:02:43]OFD Sender: No OFD packet to send [23:02:48]OFD Sender: No OFD packet to send [23:02:53]OFD Sender: No OFD packet to send [23:02:58]OFD Sender: No OFD packet to send [23:03:03]OFD Sender: No OFD packet to send [23:03:08]OFD Sender: No OFD packet to send [23:03:13]OFD Sender: No OFD packet to send [23:03:18]OFD Sender: No OFD packet to send [23:03:23]OFD Sender: No OFD packet to send [23:03:28]OFD Sender: No OFD packet to send [23:03:33]OFD Sender: No OFD packet to send [23:03:38]OFD Sender: No OFD packet to send [23:03:43]OFD Sender: No OFD packet to send [23:03:48]OFD Sender: No OFD packet to send [23:03:53]OFD Sender: No OFD packet to send [23:03:58]OFD Sender: No OFD packet to send [23:04:03]OFD Sender: No OFD packet to send [23:04:08]OFD Sender: No OFD packet to send [23:04:13]OFD Sender: No OFD packet to send [23:04:18]OFD Sender: No OFD packet to send [23:04:23]OFD Sender: No OFD packet to send [23:04:28]ConnectInit Can't connect to host [23:04:28]OFD Sender: No OFD packet to send [23:04:33]OFD Sender: No OFD packet to send [23:04:38]OFD Sender: No OFD packet to send [23:04:43]OFD Sender: No OFD packet to send [23:04:48]OFD Sender: No OFD packet to send [23:04:53]OFD Sender: No OFD packet to send [23:04:56]accept exits with 9 [23:04:56]New connection [23:04:56]New thread 3067301220 created [23:04:56]Thread 3067157860 joined [23:04:56]Waiting for new connection... [23:04:56] Sock 9.Parse request [23:04:56]Sock 9.Check first char [23:04:56]Sock 9.First char is OK [23:04:56]request: POST /json_proto HTTP/1.0 [23:04:56]Method: POST [23:04:56]URL: /json_proto [23:04:56]Method is POST - this is cgi request [23:04:56]url: /json_proto [23:04:56]query_string will be loaded in cgi processing [23:04:56]execute_cgi json_proto POST (null) [23:04:56]execute_cgi path=json_proto method=POST [23:04:56]POST find Content-Length [23:04:56]Host: 172.17.36.3:8080 [23:04:56]Content-Length: 802 [23:04:56]Content-Type: application/json [23:04:56] [23:04:56]POST finish read [23:04:56]Found Content-Length = 802 [23:04:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)624430", "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" : 68.60, "quantity" : 7.290, "sum" : 500.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 500.09 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:04:56]execute_script... [23:04: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)624430", "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" : 68.60, "quantity" : 7.290, "sum" : 500.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 500.09 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:04:56]POST & json_proto [23:04:56]process_json_proto [23:04:56]json parsed OK: [23:04:56]protocol is kg_v1.0 [23:04:56]action value=close_receipt [23:04:56]process_action close_receipt [23:04:56]cmd_close_receipt [23:04:56]MH_GetDate [23:04:56]Write to MH i2c: F0 00 00 7C 0D 78 [23:04:56]Write i2c OK [23:04:56]MH_I2C_Read... [23:04:56]Read from MH i2c: F0 [23:04:56]MH_I2C_Read... [23:04:56]Read from MH i2c: F0 09 00 [23:04:56]MH_I2C_Read... [23:04:56]Read from MH i2c: F0 09 00 7C 0D 00 9A 35 C6 67 34 83 A9 66 43 [23:04:56]GetLastDocTimeStamp 1741042416 [23:04:56]current date 1741043098 [23:04:56]FM_GetShiftState [23:04:56]SAM_PROTO_GetShiftState [23:04:56]wFMCommunicate request_size=4 [23:04:56]MH_SAM_APDU [23:04:56]CAPDU: 80 13 01 00 [23:04:56]Write to MH i2c: E2 08 00 7D 0D 80 13 01 00 00 00 00 00 07 [23:04:56]Write i2c OK [23:04:56]MH_I2C_Read... [23:04:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:04:56]Read from MH i2c: E2 [23:04:56]MH_I2C_Read... [23:04:56]Read from MH i2c: E2 0E 00 [23:04:56]MH_I2C_Read... [23:04:56]Read from MH i2c: E2 0E 00 7D 0D 00 09 00 01 EA F4 C4 67 00 00 00 00 90 00 1C [23:04:56]RAPDU: 09 00 01 EA F4 C4 67 00 00 00 00 90 00 [23:04:56]wFMCommunicate OK [23:04:56]SAM_PROTO_GetShiftState done [23:04:56]FM_GetShiftState done [23:04:56]opened in 1740961002 [23:04:56]opened+sec_in_day 1741047402 [23:04:56]quantity*price = 50009 [23:04:56]sum+1 = 50010 [23:04:56]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.09 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 0.00 Безнал.: 500.09 Место: АЗС № 112 "Партнер Нефть" Адрес: 720001, г. Талас, ул. Ч. Айтматова 292, 42.522657, 72.263018 СНО: Общий режим Чек 202 03.03.2025 23:04 Смена: 665 ФФД: 1.0 ЗНМ: 0300000131 РНМ: 0000000000090851 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000874705 ФД: 185805 ФПД: 159282168528939 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250303T230458&type=1&operation_type=1&fn_number=0000000000874705&fd_number=185805&fm=159282168528939&tin=02508201610067®Number=0000000000090851&sum=50009 [23:04:59]StoreToDocumentArchive [23:04:59]shift 665 fd 185805 [23:04:59]save to /storage/0665/doc_00185805 [23:04:59]save last doc name /storage/0665/doc_00185805 to /storage/kkm_last_doc_name [23:04:59]save OK [23:04:59]Clear old archive folders... [23:04:59]ProcessDocumentItem done err = 0, tmpTLVsize=248 [23:04:59]tlvbuf is 017C8DC0 [23:04:59]SAM_PROTO_ClearQueue [23:04:59]wFMCommunicate request_size=4 [23:04:59]MH_SAM_APDU [23:04:59]CAPDU: 80 09 00 00 [23:04:59]Write to MH i2c: E2 08 00 8A 0D 80 09 00 00 00 00 00 00 09 [23:04:59]Write i2c OK [23:04:59]MH_I2C_Read... [23:04:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:04:59]Read from MH i2c: E2 [23:04:59]MH_I2C_Read... [23:04:59]Read from MH i2c: E2 03 00 [23:04:59]MH_I2C_Read... [23:04:59]Read from MH i2c: E2 03 00 8A 0D 00 90 00 0B [23:04:59]RAPDU: 90 00 [23:04:59]wFMCommunicate OK [23:04:59]SAM_PROTO_ClearQueue done [23:04:59]KKMCreateOFDPacket [23:04:59]OFDProtocolAddRootSTLVToBuf [23:04:59]FM_MakeSignedData [23:04:59]FM_MakeSignedData [23:04:59]SAM_PROTO_SignData [23:04:59]wFMCommunicate request_size=4 [23:04:59]MH_SAM_APDU [23:04:59]CAPDU: 80 0D 01 02 [23:04:59]Write to MH i2c: E2 08 00 8B 0D 80 0D 01 02 00 00 00 00 11 [23:04:59]Write i2c OK [23:04:59]MH_I2C_Read... [23:04:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:04:59]Read from MH i2c: E2 [23:04:59]MH_I2C_Read... [23:04:59]Read from MH i2c: E2 03 00 [23:04:59]MH_I2C_Read... [23:04:59]Read from MH i2c: E2 03 00 8B 0D 00 90 00 0C [23:04:59]RAPDU: 90 00 [23:04:59]wFMCommunicate OK [23:04:59]wFMCommunicate request_size=255 [23:04:59]MH_SAM_APDU [23:04:59]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 7A 1C 00 00 00 00 00 37 04 06 00 CC 1A 00 00 00 00 13 04 06 00 59 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 59 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 59 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CA 00 00 00 F4 03 04 00 9A 35 C6 67 0E 04 04 00 99 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 30 35 10 04 04 00 CD D5 02 00 35 04 06 00 90 DD C5 13 [23:05:00]Write to MH i2c: E2 02 01 8C 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 7A 1C 00 00 00 00 00 37 04 06 00 CC 1A 00 00 00 00 13 04 06 00 59 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 59 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 59 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CA 00 00 00 F4 03 04 00 9A 35 C6 67 0E 04 04 00 99 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 30 35 10 04 04 00 CD D5 02 00 35 04 06 00 90 DD C5 13 00 00 14 [23:05:01]Write i2c OK [23:05:01]MH_I2C_Read... [23:05:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:05:01]Read from MH i2c: E2 [23:05:01]MH_I2C_Read... [23:05:01]Read from MH i2c: E2 03 00 [23:05:01]MH_I2C_Read... [23:05:01]Read from MH i2c: E2 03 00 8C 0D 00 90 00 0D [23:05:01]RAPDU: 90 00 [23:05:01]wFMCommunicate OK [23:05:01]wFMCommunicate request_size=7 [23:05:01]MH_SAM_APDU [23:05:01]CAPDU: 80 0D 02 02 02 00 2B [23:05:01]Write to MH i2c: E2 0A 00 8D 0D 80 0D 02 02 02 00 00 2B 00 00 43 [23:05:01]Write i2c OK [23:05:01]MH_I2C_Read... [23:05:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:05:01]Read from MH i2c: E2 [23:05:01]MH_I2C_Read... [23:05:01]Read from MH i2c: E2 03 00 [23:05:01]MH_I2C_Read... [23:05:01]Read from MH i2c: E2 03 00 8D 0D 00 90 00 0E [23:05:01]RAPDU: 90 00 [23:05:01]wFMCommunicate OK [23:05:01]wFMCommunicate request_size=4 [23:05:01]MH_SAM_APDU [23:05:01]CAPDU: 80 0D 03 02 [23:05:01]Write to MH i2c: E2 08 00 8E 0D 80 0D 03 02 00 00 00 00 16 [23:05:01]Write i2c OK [23:05:01]MH_I2C_Read... [23:05:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:05:01]Read from MH i2c: E2 [23:05:01]MH_I2C_Read... [23:05:01]Read from MH i2c: E2 0B 00 [23:05:01]MH_I2C_Read... [23:05:01]Read from MH i2c: E2 0B 00 8E 0D 00 DE CB 28 ED 23 23 7D 0C 90 00 A4 [23:05:01]RAPDU: DE CB 28 ED 23 23 7D 0C 90 00 [23:05:01]wFMCommunicate OK [23:05:01]SAM_PROTO_SignData done [23:05:01]FM_MakeSignedData done [23:05:01]CreateOFDProtocolMessage [23:05:01]wFMCommunicate request_size=4 [23:05:01]MH_SAM_APDU [23:05:01]CAPDU: 80 11 00 00 [23:05:01]Write to MH i2c: E2 08 00 8F 0D 80 11 00 00 00 00 00 00 16 [23:05:01]Write i2c OK [23:05:01]MH_I2C_Read... [23:05:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:05:01]Read from MH i2c: E2 [23:05:01]MH_I2C_Read... [23:05:01]Read from MH i2c: E2 17 00 [23:05:01]MH_I2C_Read... [23:05:01]Read from MH i2c: E2 17 00 8F 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 30 35 90 00 68 [23:05:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 30 35 90 00 [23:05:02]wFMCommunicate OK [23:05:02]CreateOFDProtocolMessage done [23:05:02]OFDSenderStorePacket 185805 [23:05:02]StoreOFDPacket docnum=185805 [23:05:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 30 35 0C 01 00 00 9D D9 04 01 7A C1 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 7A 1C 00 00 00 00 00 37 04 06 00 CC 1A 00 00 00 00 13 04 06 00 59 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 59 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 59 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CA 00 00 00 F4 03 04 00 9A 35 C6 67 0E 04 04 00 99 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 30 35 10 04 04 00 CD D5 02 00 35 04 06 00 90 DD C5 13 00 2B DE CB 28 ED 23 23 7D 0C [23:05:02]CheckFolder [23:05:02]dirname=/storage/ofd_packets [23:05:02]CheckFolder done [23:05:02]ProducePacketName [23:05:02]name=ofd_packets/00185805 [23:05:02]NVStorageSaveData ofd_packets/00185805 [23:05:02]File name is /storage/ofd_packets/00185805 [23:05:02]Write 298 bytes [23:05:02]NVStorageSaveData done [23:05:02]OFDSenderStorePacket done [23:05:02]KKMCreateOFDPacket done [23:05:02]NVStorageSaveData kkm_last_timestamp [23:05:02]File name is /storage/kkm_last_timestamp [23:05:02]Write 4 bytes [23:05:02]NVStorageSaveData done [23:05:02]ExternCall_PrintAddStr [23:05:02]wPrintStart [23:05:02]Write to MH i2c: 01 00 00 90 0D 9D [23:05:02]Write i2c OK [23:05:02]MH_I2C_Read... [23:05:02]Read from MH i2c: 01 [23:05:02]MH_I2C_Read... [23:05:02]OFD Sender: Processing packet 185805 [packets to send 75, broken 74] [23:05:02]ProducePacketName [23:05:02]name=ofd_packets/00185805 [23:05:02]OFD Sender: To server: pG, [23:05:02]CommunicateWithHost lk.salyk.kg:30040 [23:05:02]ConnectInit lk.salyk.kg [23:05:02]Read from MH i2c: 01 07 00 [23:05:02]MH_I2C_Read... [23:05:02]Read from MH i2c: 01 07 00 90 0D 00 00 00 00 00 FF 0F B2 [23:05:02]RasterBufferAndPrint [23:05:02]line Счет N : (1)624430 [23:05:02]line ИНН: 02508201610067 [23:05:02]line Контрольно-Кассовый Чек [23:05:02]line ПРОДАЖА [23:05:02]line ТРК (МРК, ГНК) : 22 [23:05:02]line Товар: 2710194210 [23:05:02]line ДТ-К-5 [23:05:02]line 7.290 * 68.60 [23:05:02]line = 500.09 [23:05:02]line НДС 12% НСП 1% [23:05:02]line > о реализуемом товаре [23:05:02]line ИТОГО: 500.09 [23:05:02]line НСП 1% : 4.43 [23:05:02]line НДС 12% : 53.11 [23:05:02]line Наличными: 0.00 [23:05:02]line Безнал.: 500.09 [23:05:02]line Место: АЗС № 112 "Партнер Нефть" [23:05:02]line Адрес: 720001, г. Талас, ул. Ч. Айтматова 292, 42.522657, 72.263018 [23:05:02]line СНО: Общий режим [23:05:02]line Чек 202 03.03.2025 23:04 [23:05:02]line Смена: 665 ФФД: 1.0 [23:05:02]line ЗНМ: 0300000131 [23:05:02]line РНМ: 0000000000090851 [23:05:02]line Версия ККМ: 001 [23:05:02]line Платежная система: О! деньги [23:05:02]line ФМ: 0000000000874705 [23:05:02]line ФД: 185805 [23:05:02]line ФПД: 159282168528939 [23:05:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250303T230458&type=1&operation_type=1&fn_number=0000000000874705&fd_number=185805&fm=159282168528939&tin=02508201610067®Number=0000000000090851&sum=50009 [23:05:02]Connected sock=11 [23:05:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 written 0, free lines is 4095 [23:05:02]30 30 30 30 30 30 30 30 30 38 37 34 37 30 35 0C 01 00 00 9D D9 04 01 7A C1 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 7A 1C 00 00 00 00 00 37 04 06 00 CC 1A 00 00 00 00 13 04 06 00 59 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 59 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 Write to MH i2c: 07 01 04 00 06 00 00 BA 00 00 00 00 00 00 39 04 06 00 0D 59 C7 C3 [23:05:02]00 Write i2c OK [23:05:02]00 MH_I2C_Read... [23:05:02]00 Read from MH i2c: 00 01 1F 04 02 00 01 [23:05:02]00 MH_I2C_Read... [23:05:02]12 04 04 00 CA 00 Read from MH i2c: 00 01 00 07 F4 00 03 [23:05:02]04 00 9A 35 C6 MH_I2C_Read... [23:05:02]67 0E 04 04 Read from MH i2c: 00 01 99 02 00 00 B9 04 07 01 00 00 BA 01 0D 0D 00 04 00 10 00 00 30 30 30 30 30 00 30 00 30 30 30 30 30 39 64 30 0D 38 3F 35 [23:05:03]31 RasterBufferAndPrint [23:05:03]line [23:05:03]line [23:05:03]line [23:05:03]line [23:05:03]line [23:05:03]11 04 10 00 30 30 30 30 30 30 30 30 30 30 written 0, free lines is 3762 [23:05:03]38 37 34 37 30 MH_Cut [23:05:03]35 Write to MH i2c: 10 D1 04 01 04 00 00 C1 CD D5 02 00 35 0D 04 01 06 A0 00 [23:05:03]90 DD C5 13 00 2B DE CB 28 ED 23 23 7D 0C [23:05:03]Write i2c OK [23:05:03]MH_I2C_Read... [23:05:03]Read from MH i2c: D1 [23:05:03]MH_I2C_Read... [23:05:03]Read from MH i2c: D1 01 00 [23:05:03]MH_I2C_Read... [23:05:03]Read from MH i2c: D1 01 00 C1 0D 00 9F [23:05:03]Write to MH i2c: 01 00 00 C2 0D CF [23:05:03]Write i2c OK [23:05:03]MH_I2C_Read... [23:05:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 30 35 4F 00 00 00 9D C7 47 00 2B 5A A5 07 01 00 *** Cut start [23:05:03]07 00 3B *** Partial cut [23:05:03]00 F9 03 *** CUTSNS_PIN = 1 [23:05:03]0E *** CUTSNS_PIN = 0 [23:05:03]00 37 37 30 39 33 36 34 33 34 36 31 32 *** Brake cut motor [23:05:03]33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 30 35 10 04 04 00 CD D5 02 00 F4 03 04 00 16 DF C5 67 B6 04 01 00 00 DF 5C D6 BC BB 25 A9 00 [23:05:04]CommunicateWithHost err = 0 [23:05:04]CheckOFDResponse [23:05:04]1017 (14) - 77093643461234 [23:05:04]1041 (16) - 0000000000874705 [23:05:04]1040 (4) - 185805 [23:05:04]1012 (4) - 03.03.2025 16:55 [23:05:04]1206 (1) - 0 [23:05:04]OFD Sender: Remove packet 185805 [23:05:04]ProducePacketName [23:05:04]name=ofd_packets/00185805 [23:05:04]NVStorageDeleteData [23:05:04]Read from MH i2c: 01 *** Stop cut motor [23:05:04] [23:05:04]*** Cut end [23:05:04]MH_I2C_Read... [23:05:04]Read from MH i2c: 01 07 00 [23:05:04]MH_I2C_Read... [23:05:04]Read from MH i2c: 01 07 00 C2 0D 00 00 00 00 00 FF 0F E4 [23:05:04]process_action close_receipt done [23:05:04]requested_data is exist [23:05:04]produce_requested_data [23:05:04]requested_item fm.sn is exist - process it [23:05:04]wFMCommunicate request_size=4 [23:05:04]MH_SAM_APDU [23:05:04]CAPDU: 80 11 00 00 [23:05:04]Write to MH i2c: E2 08 00 C3 0D 80 11 00 00 00 00 00 00 4A [23:05:04]Write i2c OK [23:05:04]MH_I2C_Read... [23:05:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:05:04]Read from MH i2c: E2 [23:05:04]MH_I2C_Read... [23:05:04]Read from MH i2c: E2 17 00 [23:05:04]MH_I2C_Read... [23:05:04]Read from MH i2c: E2 17 00 C3 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 30 35 90 00 9C [23:05:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 30 35 90 00 [23:05:04]wFMCommunicate OK [23:05:04]requested_item fd.num is exist - process it [23:05:04]SAM_PROTO_GetFieldsCounters [23:05:04]wFMCommunicate request_size=4 [23:05:04]MH_SAM_APDU [23:05:04]CAPDU: 80 13 00 00 [23:05:04]Write to MH i2c: E2 08 00 C4 0D 80 13 00 00 00 00 00 00 4D [23:05:04]Write i2c OK [23:05:04]MH_I2C_Read... [23:05:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:05:04]OFD Sender: No OFD packet to send [23:05:04]Read from MH i2c: E2 [23:05:04]MH_I2C_Read... [23:05:04]Read from MH i2c: E2 62 00 [23:05:04]MH_I2C_Read... [23:05:04]Read from MH i2c: E2 62 00 C4 0D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 30 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 31 10 04 04 00 CD D5 02 00 0E 04 04 00 99 02 00 00 12 04 04 00 CA 00 00 00 5E 04 04 00 CA 00 00 00 57 04 04 00 CB 00 00 00 19 04 04 00 00 00 00 00 90 00 08 [23:05:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 30 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 31 10 04 04 00 CD D5 02 00 0E 04 04 00 99 02 00 00 12 04 04 00 CA 00 00 00 5E 04 04 00 CA 00 00 00 57 04 04 00 CB 00 00 00 19 04 04 00 00 00 00 00 90 00 [23:05:05]wFMCommunicate OK [23:05:05]SAM_PROTO_GetFieldsCounters done [23:05:05]requested_item shift.num is exist - process it [23:05:05]requested_item shift.opened is exist - process it [23:05:05]req_shift_opened [23:05:05]FM_GetShiftState [23:05:05]SAM_PROTO_GetShiftState [23:05:05]wFMCommunicate request_size=4 [23:05:05]MH_SAM_APDU [23:05:05]CAPDU: 80 13 01 00 [23:05:05]Write to MH i2c: E2 08 00 C5 0D 80 13 01 00 00 00 00 00 4F [23:05:05]Write i2c OK [23:05:05]MH_I2C_Read... [23:05:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:05:05]Read from MH i2c: E2 [23:05:05]MH_I2C_Read... [23:05:05]Read from MH i2c: E2 0E 00 [23:05:05]MH_I2C_Read... [23:05:05]Read from MH i2c: E2 0E 00 C5 0D 00 09 00 01 EA F4 C4 67 00 00 00 00 90 00 64 [23:05:05]RAPDU: 09 00 01 EA F4 C4 67 00 00 00 00 90 00 [23:05:05]wFMCommunicate OK [23:05:05]SAM_PROTO_GetShiftState done [23:05:05]FM_GetShiftState done [23:05:05]req_shift_opened done [23:05:05]requested_item shift.open_date is exist - process it [23:05:05]req_shift_open_date [23:05:05]req_shift_open_date done [23:05:05]produce_requested_data done [23:05:05]produce_requested_data return {"fm.sn":"0000000000874705","fd.num":185805,"shift.num":665,"shift.opened":1,"shift.open_date":1740961002} [23:05:05]process_action_free close_receipt [23:05:05]json_value_free [23:05:05]json_value_free done [23:05:05]process_json_proto returns [23:05:05]Send response to host [23:05:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874705","fd.num":185805,"shift.num":665,"shift.opened":1,"shift.open_date":1740961002}}} [23:05:05]free response buf [23:05:05]execute_script done [23:05:05]execute_script returns [23:05:05]free content buf [23:05:05]Sock 9.Close socket [23:05:05]Sock 9.Thread stoped [23:05:09]OFD Sender: No OFD packet to send [23:05:14]OFD Sender: No OFD packet to send [23:05:19]OFD Sender: No OFD packet to send [23:05:24]OFD Sender: No OFD packet to send [23:05:29]OFD Sender: No OFD packet to send [23:05:34]OFD Sender: No OFD packet to send [23:05:39]OFD Sender: No OFD packet to send [23:05:44]OFD Sender: No OFD packet to send [23:05:49]OFD Sender: No OFD packet to send [23:05:54]OFD Sender: No OFD packet to send [23:05:59]OFD Sender: No OFD packet to send [23:06:04]OFD Sender: No OFD packet to send [23:06:09]OFD Sender: No OFD packet to send [23:06:14]OFD Sender: No OFD packet to send [23:06:19]OFD Sender: No OFD packet to send [23:06:24]OFD Sender: No OFD packet to send [23:06:29]OFD Sender: No OFD packet to send [23:06:34]OFD Sender: No OFD packet to send [23:06:39]OFD Sender: No OFD packet to send [23:06:44]OFD Sender: No OFD packet to send [23:06:46]ConnectInit Can't connect to host [23:06:49]OFD Sender: No OFD packet to send [23:06:54]OFD Sender: No OFD packet to send [23:06:59]OFD Sender: No OFD packet to send [23:07:04]OFD Sender: No OFD packet to send [23:07:09]OFD Sender: No OFD packet to send [23:07:14]OFD Sender: No OFD packet to send [23:07:19]OFD Sender: No OFD packet to send [23:07:24]OFD Sender: No OFD packet to send [23:07:29]OFD Sender: No OFD packet to send [23:07:34]OFD Sender: No OFD packet to send [23:07:39]OFD Sender: No OFD packet to send [23:07:44]OFD Sender: No OFD packet to send [23:07:49]OFD Sender: No OFD packet to send [23:07:54]OFD Sender: No OFD packet to send [23:07:59]OFD Sender: No OFD packet to send [23:08:04]OFD Sender: No OFD packet to send [23:08:10]OFD Sender: No OFD packet to send [23:08:15]OFD Sender: No OFD packet to send [23:08:20]OFD Sender: No OFD packet to send [23:08:25]OFD Sender: No OFD packet to send [23:08:30]OFD Sender: No OFD packet to send [23:08:35]OFD Sender: No OFD packet to send [23:08:40]OFD Sender: No OFD packet to send [23:08:45]OFD Sender: No OFD packet to send [23:08:50]OFD Sender: No OFD packet to send [23:08:55]OFD Sender: No OFD packet to send [23:09:00]OFD Sender: No OFD packet to send [23:09:04]ConnectInit Can't connect to host [23:09:05]OFD Sender: No OFD packet to send [23:09:10]OFD Sender: No OFD packet to send [23:09:15]OFD Sender: No OFD packet to send [23:09:20]OFD Sender: No OFD packet to send [23:09:25]OFD Sender: No OFD packet to send [23:09:30]OFD Sender: No OFD packet to send [23:09:35]OFD Sender: No OFD packet to send [23:09:40]OFD Sender: No OFD packet to send [23:09:45]OFD Sender: No OFD packet to send [23:09:50]OFD Sender: No OFD packet to send [23:09:55]OFD Sender: No OFD packet to send [23:10:00]OFD Sender: No OFD packet to send [23:10:05]OFD Sender: No OFD packet to send [23:10:10]OFD Sender: No OFD packet to send [23:10:15]OFD Sender: No OFD packet to send [23:10:20]OFD Sender: No OFD packet to send [23:10:25]OFD Sender: No OFD packet to send [23:10:30]OFD Sender: No OFD packet to send [23:10:35]OFD Sender: No OFD packet to send [23:10:40]OFD Sender: No OFD packet to send [23:10:45]OFD Sender: No OFD packet to send [23:10:50]OFD Sender: No OFD packet to send [23:10:55]OFD Sender: No OFD packet to send [23:11:00]OFD Sender: No OFD packet to send [23:11:05]OFD Sender: No OFD packet to send [23:11:10]OFD Sender: No OFD packet to send [23:11:15]OFD Sender: No OFD packet to send [23:11:20]OFD Sender: No OFD packet to send [23:11:23]ConnectInit Can't connect to host [23:11:25]OFD Sender: No OFD packet to send [23:11:30]OFD Sender: No OFD packet to send [23:11:35]OFD Sender: No OFD packet to send [23:11:40]OFD Sender: No OFD packet to send [23:11:45]OFD Sender: No OFD packet to send [23:11:50]OFD Sender: No OFD packet to send [23:11:55]OFD Sender: No OFD packet to send [23:12:00]OFD Sender: No OFD packet to send [23:12:05]OFD Sender: No OFD packet to send [23:12:10]OFD Sender: No OFD packet to send [23:12:15]OFD Sender: No OFD packet to send [23:12:20]OFD Sender: No OFD packet to send [23:12:25]OFD Sender: No OFD packet to send [23:12:30]OFD Sender: No OFD packet to send [23:12:35]OFD Sender: No OFD packet to send [23:12:40]OFD Sender: No OFD packet to send [23:12:45]OFD Sender: No OFD packet to send [23:12:50]OFD Sender: No OFD packet to send [23:12:55]OFD Sender: No OFD packet to send [23:13:00]OFD Sender: No OFD packet to send [23:13:05]OFD Sender: No OFD packet to send [23:13:10]OFD Sender: No OFD packet to send [23:13:15]OFD Sender: No OFD packet to send [23:13:20]OFD Sender: No OFD packet to send [23:13:25]OFD Sender: No OFD packet to send [23:13:30]OFD Sender: No OFD packet to send [23:13:35]OFD Sender: No OFD packet to send [23:13:40]OFD Sender: No OFD packet to send [23:13:41]ConnectInit Can't connect to host [23:13:45]OFD Sender: No OFD packet to send [23:13:50]OFD Sender: No OFD packet to send [23:13:55]OFD Sender: No OFD packet to send [23:14:00]OFD Sender: No OFD packet to send [23:14:05]OFD Sender: No OFD packet to send [23:14:10]OFD Sender: No OFD packet to send [23:14:15]OFD Sender: No OFD packet to send [23:14:20]OFD Sender: No OFD packet to send [23:14:22]accept exits with 10 [23:14:22]New connection [23:14:22]New thread 3067157860 created [23:14:22]Thread 3067301220 joined [23:14:22]Waiting for new connection... [23:14:22] Sock 10.Parse request [23:14:22]Sock 10.Check first char [23:14:22]Sock 10.First char is OK [23:14:22]request: POST /json_proto HTTP/1.0 [23:14:22]Method: POST [23:14:22]URL: /json_proto [23:14:22]Method is POST - this is cgi request [23:14:22]url: /json_proto [23:14:22]query_string will be loaded in cgi processing [23:14:22]execute_cgi json_proto POST (null) [23:14:22]execute_cgi path=json_proto method=POST [23:14:22]POST find Content-Length [23:14:22]Host: 172.17.36.3:8080 [23:14:22]Content-Length: 1014 [23:14:22]Content-Type: application/json [23:14:22] [23:14:22]POST finish read [23:14:22]Found Content-Length = 1014 [23:14:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)624431", "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" : 67.60, "quantity" : 56.220, "sum" : 3800.47, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0421\u043A\u0438\u0434\u043A\u0430\u0414\u0422\u000A\u043D\u043E\u043C\u0435\u0440 112\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 56.22 \u0441\u043E\u043C", "deposit" : 3800.00, "total" : 3800.00, "payments": [ { "type": 0, "sum" : 3800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:14:22]execute_script... [23:14:22]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)624431", "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" : 67.60, "quantity" : 56.220, "sum" : 3800.47, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0421\u043A\u0438\u0434\u043A\u0430\u0414\u0422\u000A\u043D\u043E\u043C\u0435\u0440 112\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 56.22 \u0441\u043E\u043C", "deposit" : 3800.00, "total" : 3800.00, "payments": [ { "type": 0, "sum" : 3800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:14:22]POST & json_proto [23:14:22]process_json_proto [23:14:22]json parsed OK: [23:14:22]protocol is kg_v1.0 [23:14:22]action value=close_receipt [23:14:22]process_action close_receipt [23:14:22]cmd_close_receipt [23:14:22]MH_GetDate [23:14:22]Write to MH i2c: F0 00 00 C6 0D C2 [23:14:22]Write i2c OK [23:14:22]MH_I2C_Read... [23:14:22]Read from MH i2c: F0 [23:14:22]MH_I2C_Read... [23:14:22]Read from MH i2c: F0 09 00 [23:14:22]MH_I2C_Read... [23:14:22]Read from MH i2c: F0 09 00 C6 0D 00 D0 37 C6 67 34 83 A9 66 C5 [23:14:22]GetLastDocTimeStamp 1741043098 [23:14:22]current date 1741043664 [23:14:22]FM_GetShiftState [23:14:22]SAM_PROTO_GetShiftState [23:14:22]wFMCommunicate request_size=4 [23:14:22]MH_SAM_APDU [23:14:22]CAPDU: 80 13 01 00 [23:14:22]Write to MH i2c: E2 08 00 C7 0D 80 13 01 00 00 00 00 00 51 [23:14:22]Write i2c OK [23:14:22]MH_I2C_Read... [23:14:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:14:22]Read from MH i2c: E2 [23:14:22]MH_I2C_Read... [23:14:22]Read from MH i2c: E2 0E 00 [23:14:22]MH_I2C_Read... [23:14:22]Read from MH i2c: E2 0E 00 C7 0D 00 09 00 01 EA F4 C4 67 00 00 00 00 90 00 66 [23:14:22]RAPDU: 09 00 01 EA F4 C4 67 00 00 00 00 90 00 [23:14:22]wFMCommunicate OK [23:14:22]SAM_PROTO_GetShiftState done [23:14:22]FM_GetShiftState done [23:14:22]opened in 1740961002 [23:14:22]opened+sec_in_day 1741047402 [23:14:22]quantity*price = 380047 [23:14:22]sum+1 = 380048 [23:14:22]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.47 ИТОГО: 3800.00 Внесено: 3800.00 СДАЧА: 0.00 НСП 1% : 33.63 НДС 12% : 403.59 Наличными: 3800.00 Безнал.: 0.00 Место: АЗС № 112 "Партнер Нефть" Адрес: 720001, г. Талас, ул. Ч. Айтматова 292, 42.522657, 72.263018 СНО: Общий режим Чек 203 03.03.2025 23:14 Смена: 665 ФФД: 1.0 ЗНМ: 0300000131 РНМ: 0000000000090851 Версия ККМ: 001 Дисконтная программа СкидкаДТ номер 112 сэкономлено 56.22 сом ФМ: 0000000000874705 ФД: 185806 ФПД: 2029803418164 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250303T231424&type=1&operation_type=1&fn_number=0000000000874705&fd_number=185806&fm=2029803418164&tin=02508201610067®Number=0000000000090851&sum=380000 [23:14:25]StoreToDocumentArchive [23:14:25]shift 665 fd 185806 [23:14:25]save to /storage/0665/doc_00185806 [23:14:25]save last doc name /storage/0665/doc_00185806 to /storage/kkm_last_doc_name [23:14:25]save OK [23:14:25]Clear old archive folders... [23:14:25]ProcessDocumentItem done err = 0, tmpTLVsize=248 [23:14:25]tlvbuf is 019531D0 [23:14:25]SAM_PROTO_ClearQueue [23:14:25]wFMCommunicate request_size=4 [23:14:25]MH_SAM_APDU [23:14:25]CAPDU: 80 09 00 00 [23:14:25]Write to MH i2c: E2 08 00 D4 0D OFD Sender: No OFD packet to send [23:14:25]80 09 00 00 00 00 00 00 53 [23:14:25]Write i2c OK [23:14:25]MH_I2C_Read... [23:14:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:14:25]Read from MH i2c: E2 [23:14:25]MH_I2C_Read... [23:14:25]Read from MH i2c: E2 03 00 [23:14:25]MH_I2C_Read... [23:14:25]Read from MH i2c: E2 03 00 D4 0D 00 90 00 55 [23:14:25]RAPDU: 90 00 [23:14:25]wFMCommunicate OK [23:14:25]SAM_PROTO_ClearQueue done [23:14:25]KKMCreateOFDPacket [23:14:25]OFDProtocolAddRootSTLVToBuf [23:14:25]FM_MakeSignedData [23:14:25]FM_MakeSignedData [23:14:25]SAM_PROTO_SignData [23:14:25]wFMCommunicate request_size=4 [23:14:25]MH_SAM_APDU [23:14:25]CAPDU: 80 0D 01 02 [23:14:25]Write to MH i2c: E2 08 00 D5 0D 80 0D 01 02 00 00 00 00 5B [23:14:25]Write i2c OK [23:14:25]MH_I2C_Read... [23:14:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:14:25]Read from MH i2c: E2 [23:14:25]MH_I2C_Read... [23:14:25]Read from MH i2c: E2 03 00 [23:14:25]MH_I2C_Read... [23:14:25]Read from MH i2c: E2 03 00 D5 0D 00 90 00 56 [23:14:25]RAPDU: 90 00 [23:14:25]wFMCommunicate OK [23:14:25]wFMCommunicate request_size=255 [23:14:25]MH_SAM_APDU [23:14:25]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 9C DB 00 00 00 00 00 37 04 06 00 68 1A 00 00 00 00 13 04 06 00 8F CC 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 CC 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 23 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A7 9D 00 00 00 00 07 04 06 00 60 CC 05 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CB 00 00 00 F4 03 04 00 D0 37 C6 67 0E 04 04 00 99 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 30 35 10 04 04 00 CE D5 02 00 35 04 06 00 01 D8 99 B6 [23:14:26]Write to MH i2c: E2 02 01 D6 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 9C DB 00 00 00 00 00 37 04 06 00 68 1A 00 00 00 00 13 04 06 00 8F CC 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 CC 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 23 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A7 9D 00 00 00 00 07 04 06 00 60 CC 05 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CB 00 00 00 F4 03 04 00 D0 37 C6 67 0E 04 04 00 99 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 30 35 10 04 04 00 CE D5 02 00 35 04 06 00 01 D8 99 B6 00 00 4B [23:14:26]Write i2c OK [23:14:26]MH_I2C_Read... [23:14:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:14:27]Read from MH i2c: E2 [23:14:27]MH_I2C_Read... [23:14:27]Read from MH i2c: E2 03 00 [23:14:27]MH_I2C_Read... [23:14:27]Read from MH i2c: E2 03 00 D6 0D 00 90 00 57 [23:14:27]RAPDU: 90 00 [23:14:27]wFMCommunicate OK [23:14:27]wFMCommunicate request_size=7 [23:14:27]MH_SAM_APDU [23:14:27]CAPDU: 80 0D 02 02 02 32 34 [23:14:27]Write to MH i2c: E2 0A 00 D7 0D 80 0D 02 02 02 00 32 34 00 00 C8 [23:14:27]Write i2c OK [23:14:27]MH_I2C_Read... [23:14:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:14:27]Read from MH i2c: E2 [23:14:27]MH_I2C_Read... [23:14:27]Read from MH i2c: E2 03 00 [23:14:27]MH_I2C_Read... [23:14:27]Read from MH i2c: E2 03 00 D7 0D 00 90 00 58 [23:14:27]RAPDU: 90 00 [23:14:27]wFMCommunicate OK [23:14:27]wFMCommunicate request_size=4 [23:14:27]MH_SAM_APDU [23:14:27]CAPDU: 80 0D 03 02 [23:14:27]Write to MH i2c: E2 08 00 D8 0D 80 0D 03 02 00 00 00 00 60 [23:14:27]Write i2c OK [23:14:27]MH_I2C_Read... [23:14:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:14:27]Read from MH i2c: E2 [23:14:27]MH_I2C_Read... [23:14:27]Read from MH i2c: E2 0B 00 [23:14:27]MH_I2C_Read... [23:14:27]Read from MH i2c: E2 0B 00 D8 0D 00 BD E4 E7 B9 BD 05 ED 72 90 00 C3 [23:14:27]RAPDU: BD E4 E7 B9 BD 05 ED 72 90 00 [23:14:27]wFMCommunicate OK [23:14:27]SAM_PROTO_SignData done [23:14:27]FM_MakeSignedData done [23:14:27]CreateOFDProtocolMessage [23:14:27]wFMCommunicate request_size=4 [23:14:27]MH_SAM_APDU [23:14:27]CAPDU: 80 11 00 00 [23:14:27]Write to MH i2c: E2 08 00 D9 0D 80 11 00 00 00 00 00 00 60 [23:14:27]Write i2c OK [23:14:27]MH_I2C_Read... [23:14:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:14:27]Read from MH i2c: E2 [23:14:27]MH_I2C_Read... [23:14:27]Read from MH i2c: E2 17 00 [23:14:27]MH_I2C_Read... [23:14:27]Read from MH i2c: E2 17 00 D9 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 30 35 90 00 B2 [23:14:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 30 35 90 00 [23:14:27]wFMCommunicate OK [23:14:27]CreateOFDProtocolMessage done [23:14:27]OFDSenderStorePacket 185806 [23:14:27]StoreOFDPacket docnum=185806 [23:14:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 30 35 0C 01 00 00 97 1C 04 01 76 6B 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 9C DB 00 00 00 00 00 37 04 06 00 68 1A 00 00 00 00 13 04 06 00 8F CC 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 CC 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 23 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A7 9D 00 00 00 00 07 04 06 00 60 CC 05 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CB 00 00 00 F4 03 04 00 D0 37 C6 67 0E 04 04 00 99 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 30 35 10 04 04 00 CE D5 02 00 35 04 06 00 01 D8 99 B6 32 34 BD E4 E7 B9 BD 05 ED 72 [23:14:27]CheckFolder [23:14:27]dirname=/storage/ofd_packets [23:14:27]CheckFolder done [23:14:27]ProducePacketName [23:14:27]name=ofd_packets/00185806 [23:14:27]NVStorageSaveData ofd_packets/00185806 [23:14:27]File name is /storage/ofd_packets/00185806 [23:14:27]Write 298 bytes [23:14:27]NVStorageSaveData done [23:14:27]OFDSenderStorePacket done [23:14:27]KKMCreateOFDPacket done [23:14:27]NVStorageSaveData kkm_last_timestamp [23:14:27]File name is /storage/kkm_last_timestamp [23:14:27]Write 4 bytes [23:14:27]NVStorageSaveData done [23:14:27]ExternCall_PrintAddStr [23:14:27]wPrintStart [23:14:27]Write to MH i2c: 01 00 00 DA 0D E7 [23:14:27]Write i2c OK [23:14:27]MH_I2C_Read... [23:14:27]Read from MH i2c: 01 [23:14:27]MH_I2C_Read... [23:14:27]Read from MH i2c: 01 07 00 [23:14:28]MH_I2C_Read... [23:14:28]OFD Sender: Processing packet 185806 [packets to send 75, broken 74] [23:14:28]Read from MH i2c: ProducePacketName [23:14:28]01 name=ofd_packets/00185806 [23:14:28]07 OFD Sender: To server: pG, [23:14:28]00 CommunicateWithHost lk.salyk.kg:30040 [23:14:28]DA 0D 00 00 00 00 ConnectInit lk.salyk.kg [23:14:28]00 FF 0F FC [23:14:28]RasterBufferAndPrint [23:14:28]line Счет N : (1)624431 [23:14:28]line ИНН: 02508201610067 [23:14:28]line Контрольно-Кассовый Чек [23:14:28]line ПРОДАЖА [23:14:28]line ТРК (МРК, ГНК) : 22 [23:14:28]line Товар: 2710194210 [23:14:28]line ДТ-К-5 [23:14:28]line 56.220 * 67.60 [23:14:28]line = 3800.47 [23:14:28]line НДС 12% НСП 1% [23:14:28]line > о реализуемом товаре [23:14:28]line ОКРУГЛЕНИЕ: -0.47 [23:14:28]line ИТОГО: 3800.00 [23:14:28]line Внесено: 3800.00 [23:14:28]line СДАЧА: 0.00 [23:14:28]line НСП 1% : 33.63 [23:14:28]line НДС 12% : 403.59 [23:14:28]line Наличными: 3800.00 [23:14:28]line Безнал.: 0.00 [23:14:28]line Место: АЗС № 112 "Партнер Нефть" [23:14:28]line Адрес: 720001, г. Талас, ул. Ч. Айтматова 292, 42.522657, 72.263018 [23:14:28]line СНО: Общий режим [23:14:28]line Чек 203 03.03.2025 23:14 [23:14:28]line Смена: 665 ФФД: 1.0 [23:14:28]line ЗНМ: 0300000131 [23:14:28]line РНМ: 0000000000090851 [23:14:28]line Версия ККМ: 001 [23:14:28]line [23:14:28]line Дисконтная программа [23:14:28]line СкидкаДТ [23:14:28]line номер 112 [23:14:28]line сэкономлено 56.22 сом [23:14:28]line ФМ: 0000000000874705 [23:14:28]line ФД: 185806 [23:14:28]line ФПД: 2029803418164 [23:14:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250303T231424&type=1&operation_type=1&fn_number=0000000000874705&fd_number=185806&fm=2029803418164&tin=02508201610067®Number=0000000000090851&sum=380000 [23:14:28]Connected sock=11 [23:14:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 30 35 0C 01 00 00 97 1C 04 01 76 6B 5A written 0, free lines is 4095 [23:14:28]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 9C DB 00 00 00 00 00 37 04 06 00 68 1A 00 00 00 00 13 04 06 00 8F CC 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 CC 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 23 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A7 9D 00 00 00 00 07 04 06 00 60 CC 05 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CB 00 00 00 F4 03 04 00 D0 37 C6 67 0E 04 04 00 99 Write to MH i2c: 02 01 00 00 00 00 B9 0A 04 0E 01 18 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 30 35 10 04 04 00 CE D5 02 00 [23:14:29]35 04 06 00 Write i2c OK [23:14:29]01 MH_I2C_Read... [23:14:29]D8 99 B6 32 34 BD Read from MH i2c: E4 01 E7 [23:14:29]B9 MH_I2C_Read... [23:14:29]BD 05 Read from MH i2c: ED 01 72 07 [23:14:29]00 [23:14:29]MH_I2C_Read... [23:14:29]Read from MH i2c: 01 07 00 0A 0E 00 00 00 00 00 E8 0D 14 [23:14:29]RasterBufferAndPrint [23:14:29]line [23:14:29]line [23:14:29]line [23:14:29]line [23:14:29]line [23:14:29]written 0, free lines is 3743 [23:14:29]MH_Cut [23:14:29]Write to MH i2c: D1 01 00 11 0E 01 F1 [23:14:29]Write i2c OK [23:14:29]MH_I2C_Read... [23:14:29]Read from MH i2c: D1 [23:14:29]MH_I2C_Read... [23:14:29]Read from MH i2c: D1 01 00 [23:14:29]MH_I2C_Read... [23:14:29]Read from MH i2c: D1 01 00 11 0E 00 F0 [23:14:29]Write to MH i2c: 01 00 00 12 0E 20 [23:14:29]Write i2c OK [23:14:29]MH_I2C_Read... [23:14:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 30 35 4F 00 00 00 C5 96 47 00 54 11 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 30 35 10 04 04 00 CE D5 02 00 F4 03 04 00 4C E1 C5 67 B6 04 01 00 00 23 A1 20 C9 6B A6 AA A6 [23:14:29]CommunicateWithHost err = 0 [23:14:29]CheckOFDResponse [23:14:29]1017 (14) - 77093643461234 [23:14:29]1041 (16) - 0000000000874705 [23:14:29]1040 (4) - 185806 [23:14:29]1012 (4) - 03.03.2025 17:05 [23:14:29]1206 (1) - 0 [23:14:29]OFD Sender: Remove packet 185806 [23:14:29]ProducePacketName [23:14:29]name=ofd_packets/00185806 [23:14:29]NVStorageDeleteData [23:14:29]*** Cut start [23:14:29]*** Partial cut [23:14:29]*** CUTSNS_PIN = 1 [23:14:29]*** CUTSNS_PIN = 0 [23:14:30]*** Brake cut motor [23:14:30]OFD Sender: No OFD packet to send [23:14:30]Read from MH i2c: 01 [23:14:30]MH_I2C_Read... [23:14:30]*** Stop cut motor [23:14:30]*** Cut end [23:14:30]Read from MH i2c: 01 07 00 [23:14:30]MH_I2C_Read... [23:14:30]Read from MH i2c: 01 07 00 12 0E 00 00 00 00 00 FF 0F 35 [23:14:30]process_action close_receipt done [23:14:30]requested_data is exist [23:14:30]produce_requested_data [23:14:30]requested_item fm.sn is exist - process it [23:14:30]wFMCommunicate request_size=4 [23:14:30]MH_SAM_APDU [23:14:30]CAPDU: 80 11 00 00 [23:14:30]Write to MH i2c: E2 08 00 13 0E 80 11 00 00 00 00 00 00 9B [23:14:30]Write i2c OK [23:14:30]MH_I2C_Read... [23:14:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:14:30]Read from MH i2c: E2 [23:14:30]MH_I2C_Read... [23:14:30]Read from MH i2c: E2 17 00 [23:14:30]MH_I2C_Read... [23:14:30]Read from MH i2c: E2 17 00 13 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 30 35 90 00 ED [23:14:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 30 35 90 00 [23:14:30]wFMCommunicate OK [23:14:30]requested_item fd.num is exist - process it [23:14:30]SAM_PROTO_GetFieldsCounters [23:14:30]wFMCommunicate request_size=4 [23:14:30]MH_SAM_APDU [23:14:30]CAPDU: 80 13 00 00 [23:14:30]Write to MH i2c: E2 08 00 14 0E 80 13 00 00 00 00 00 00 9E [23:14:30]Write i2c OK [23:14:30]MH_I2C_Read... [23:14:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:14:30]Read from MH i2c: E2 [23:14:30]MH_I2C_Read... [23:14:30]Read from MH i2c: E2 62 00 [23:14:30]MH_I2C_Read... [23:14:30]Read from MH i2c: E2 62 00 14 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 30 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 31 10 04 04 00 CE D5 02 00 0E 04 04 00 99 02 00 00 12 04 04 00 CB 00 00 00 5E 04 04 00 CB 00 00 00 57 04 04 00 CC 00 00 00 19 04 04 00 00 00 00 00 90 00 5D [23:14:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 30 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 31 10 04 04 00 CE D5 02 00 0E 04 04 00 99 02 00 00 12 04 04 00 CB 00 00 00 5E 04 04 00 CB 00 00 00 57 04 04 00 CC 00 00 00 19 04 04 00 00 00 00 00 90 00 [23:14:31]wFMCommunicate OK [23:14:31]SAM_PROTO_GetFieldsCounters done [23:14:31]requested_item shift.num is exist - process it [23:14:31]requested_item shift.opened is exist - process it [23:14:31]req_shift_opened [23:14:31]FM_GetShiftState [23:14:31]SAM_PROTO_GetShiftState [23:14:31]wFMCommunicate request_size=4 [23:14:31]MH_SAM_APDU [23:14:31]CAPDU: 80 13 01 00 [23:14:31]Write to MH i2c: E2 08 00 15 0E 80 13 01 00 00 00 00 00 A0 [23:14:31]Write i2c OK [23:14:31]MH_I2C_Read... [23:14:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:14:31]Read from MH i2c: E2 [23:14:31]MH_I2C_Read... [23:14:31]Read from MH i2c: E2 0E 00 [23:14:31]MH_I2C_Read... [23:14:31]Read from MH i2c: E2 0E 00 15 0E 00 09 00 01 EA F4 C4 67 00 00 00 00 90 00 B5 [23:14:31]RAPDU: 09 00 01 EA F4 C4 67 00 00 00 00 90 00 [23:14:31]wFMCommunicate OK [23:14:31]SAM_PROTO_GetShiftState done [23:14:31]FM_GetShiftState done [23:14:31]req_shift_opened done [23:14:31]requested_item shift.open_date is exist - process it [23:14:31]req_shift_open_date [23:14:31]req_shift_open_date done [23:14:31]produce_requested_data done [23:14:31]produce_requested_data return {"fm.sn":"0000000000874705","fd.num":185806,"shift.num":665,"shift.opened":1,"shift.open_date":1740961002} [23:14:31]process_action_free close_receipt [23:14:31]json_value_free [23:14:31]json_value_free done [23:14:31]process_json_proto returns [23:14:31]Send response to host [23:14:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874705","fd.num":185806,"shift.num":665,"shift.opened":1,"shift.open_date":1740961002}}} [23:14:31]free response buf [23:14:31]execute_script done [23:14:31]execute_script returns [23:14:31]free content buf [23:14:31]Sock 10.Close socket [23:14:31]Sock 10.Thread stoped [23:14:35]OFD Sender: No OFD packet to send [23:14:40]OFD Sender: No OFD packet to send [23:14:45]OFD Sender: No OFD packet to send [23:14:50]OFD Sender: No OFD packet to send [23:14:55]OFD Sender: No OFD packet to send [23:15:00]OFD Sender: No OFD packet to send [23:15:05]OFD Sender: No OFD packet to send [23:15:10]OFD Sender: No OFD packet to send [23:15:15]OFD Sender: No OFD packet to send [23:15:20]OFD Sender: No OFD packet to send [23:15:25]OFD Sender: No OFD packet to send [23:15:30]OFD Sender: No OFD packet to send [23:15:35]OFD Sender: No OFD packet to send [23:15:40]OFD Sender: No OFD packet to send [23:15:45]OFD Sender: No OFD packet to send [23:15:50]OFD Sender: No OFD packet to send [23:15:55]OFD Sender: No OFD packet to send [23:15:59]ConnectInit Can't connect to host [23:16:00]OFD Sender: No OFD packet to send [23:16:05]OFD Sender: No OFD packet to send [23:16:10]OFD Sender: No OFD packet to send [23:16:15]OFD Sender: No OFD packet to send [23:16:20]OFD Sender: No OFD packet to send [23:16:25]OFD Sender: No OFD packet to send [23:16:30]OFD Sender: No OFD packet to send [23:16:35]OFD Sender: No OFD packet to send [23:16:40]OFD Sender: No OFD packet to send [23:16:45]OFD Sender: No OFD packet to send [23:16:50]OFD Sender: No OFD packet to send [23:16:55]OFD Sender: No OFD packet to send [23:17:00]OFD Sender: No OFD packet to send [23:17:05]OFD Sender: No OFD packet to send [23:17:10]OFD Sender: No OFD packet to send [23:17:15]OFD Sender: No OFD packet to send [23:17:20]OFD Sender: No OFD packet to send [23:17:20]accept exits with 9 [23:17:20]New connection [23:17:20]New thread 3067301220 created [23:17:20]Thread 3067157860 joined [23:17:20]Waiting for new connection... [23:17:20] Sock 9.Parse request [23:17:20]Sock 9.Check first char [23:17:20]Sock 9.First char is OK [23:17:20]request: POST /json_proto HTTP/1.0 [23:17:20]Method: POST [23:17:20]URL: /json_proto [23:17:20]Method is POST - this is cgi request [23:17:20]url: /json_proto [23:17:20]query_string will be loaded in cgi processing [23:17:20]execute_cgi json_proto POST (null) [23:17:20]execute_cgi path=json_proto method=POST [23:17:20]POST find Content-Length [23:17:20]Host: 172.17.36.3:8080 [23:17:20]Content-Length: 840 [23:17:20]Content-Type: application/json [23:17:20] [23:17:20]POST finish read [23:17:20]Found Content-Length = 840 [23:17:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)624432", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 68.60, "quantity" : 14.580, "sum" : 1000.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 1000.19 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:17:20]execute_script... [23:17:20]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)624432", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 68.60, "quantity" : 14.580, "sum" : 1000.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 1000.19 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:17:20]POST & json_proto [23:17:20]process_json_proto [23:17:20]json parsed OK: [23:17:20]protocol is kg_v1.0 [23:17:20]action value=close_receipt [23:17:20]process_action close_receipt [23:17:20]cmd_close_receipt [23:17:20]MH_GetDate [23:17:20]Write to MH i2c: F0 00 00 16 0E 13 [23:17:20]Write i2c OK [23:17:20]MH_I2C_Read... [23:17:20]Read from MH i2c: F0 [23:17:20]MH_I2C_Read... [23:17:20]Read from MH i2c: F0 09 00 [23:17:20]MH_I2C_Read... [23:17:20]Read from MH i2c: F0 09 00 16 0E 00 82 38 C6 67 34 83 A9 66 C9 [23:17:20]GetLastDocTimeStamp 1741043664 [23:17:20]current date 1741043842 [23:17:20]FM_GetShiftState [23:17:21]SAM_PROTO_GetShiftState [23:17:21]wFMCommunicate request_size=4 [23:17:21]MH_SAM_APDU [23:17:21]CAPDU: 80 13 01 00 [23:17:21]Write to MH i2c: E2 08 00 17 0E 80 13 01 00 00 00 00 00 A2 [23:17:21]Write i2c OK [23:17:21]MH_I2C_Read... [23:17:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:17:21]Read from MH i2c: E2 [23:17:21]MH_I2C_Read... [23:17:21]Read from MH i2c: E2 0E 00 [23:17:21]MH_I2C_Read... [23:17:21]Read from MH i2c: E2 0E 00 17 0E 00 09 00 01 EA F4 C4 67 00 00 00 00 90 00 B7 [23:17:21]RAPDU: 09 00 01 EA F4 C4 67 00 00 00 00 90 00 [23:17:21]wFMCommunicate OK [23:17:21]SAM_PROTO_GetShiftState done [23:17:21]FM_GetShiftState done [23:17:21]opened in 1740961002 [23:17:21]opened+sec_in_day 1741047402 [23:17:21]quantity*price = 100018 [23:17:21]sum+1 = 100020 [23:17:21]Check (price>sum+1) || (price+1